/**
 * 搜索项目js
 */
var search={
    
    /**
     * 模态窗口获得所选项目/系统ID并赋值给主界面
     */
    getTheProject:function()
    {
        window.returnValue = $('input:radio:checked').val();
        window.close();
    },
        
    /**
     * 搜索项目/系统
     */
    searchProject:function()
    {   
        var proSysType = $("#proSysType").val();
        var timestamp = new Date().getTime(); 
        var keyWords = pf.encodeURItoUTf8($("#keyWordsId").val());
        $("#searchForm").attr("action", "srtApplyAction!searchProject.action?keyWords="+keyWords+"&proSysType="+proSysType+"&time="+timestamp);
        search.listPageReq();
    },
   
    /**
     * 分页函数
     */
    paging: function(start) 
    {
        var proSysType = $("#proSysType").val();
        $("#searchForm").attr("action", "srtApplyAction!searchProject.action?keyWords="+keyWords+"&proSysType="+proSysType+"&page.start="+start+ "&page.pageSize="+ pf.operationPageSize+"&time="+timestamp);
        search.listPageReq();
    },

    listPageReq:function() 
    {
        pf.simpleSubmitForm("searchForm", "searchDiv", search.listPageReqBack);
    },

    listPageReqBack:function() 
    {
    }
    
}
