亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? createjobresumehtml.java

?? java阿里巴巴代碼
?? JAVA
字號:
package com.buildhtml;

import java.util.ArrayList;
import java.util.HashMap;

import tools.util.FileIO;
import tools.util.StrReplace;

import com.saas.biz.AreaInfoMgr.AreaInfo;
import com.saas.biz.JobMgr.JobInfo;
import com.saas.biz.commen.ParamethodMgr;
import com.saas.biz.newsMgr.NewsInfo;
import com.saas.biz.ordercastMgr.OrderCast;
import com.saas.biz.resumeMgr.ResumeInfo;
import com.saas.biz.sortMgr.ClassInfoBuild;
import com.saas.sys.exp.SaasApplicationException;
import com.saas.sys.log.Logger;

/**
 * @author:LiuYang
 * @desc:生成人才庫首頁
 * @2008-7-8
 */
public class CreateJobResumeHtml {
	
	
	FileAndString FileString = new FileAndString();
	
	
	ClassInfoBuild classBuild = new ClassInfoBuild();
	
	
	Logger log = new Logger(this);
	
	
	
	
	/**
	 * 生成人才庫首頁
	 * 
	 * @param rootpath
	 * @throws SaasApplicationException
	 */
	
	public void buildIndex(String rootpath) throws SaasApplicationException {

		String str = "";
		String filepath = rootpath + "/" + "/talents/index.html";
		String templatePath = rootpath + "/" + "templates/hr.html";
		String templateStr = FileIO.LoadFile(templatePath);
		log.LOG_INFO("filepath" + filepath);
		log.LOG_INFO("templatePath" + templatePath);
		String[] tab = { "{#include-top#}", "{#include-bottom#}", "{#list-12-tr-td#}", "{#job-news:7#}", "{#resume-user-16#}", "{#new-resume-a:22#}", "{#new-resume-b:22#}", "{#new-resume-a:25#}", "{#new-resume-b:25#}" };
		str = StrReplace.replace(templateStr, tab[0], FileString.f2s(rootpath + "/top.html"));
		str = StrReplace.replace(str, tab[1], FileString.f2s(rootpath + "/footer.html"));
		// 推薦招聘
		String recJob = getRecommendJobString(12);
		str = StrReplace.replace(str, tab[2], recJob);
		log.LOG_INFO("推薦招聘");
		// 就業指導
		String jobGuide = getJobGuide(0, 7);
		str = StrReplace.replace(str, tab[3], jobGuide);
		log.LOG_INFO("就業指導");
		// 推薦人才
		String recResume = getRecommendResume(0, 16);
		str = StrReplace.replace(str, tab[4], recResume);
		log.LOG_INFO("推薦人才");
		// 最新招聘a
		String newJob_a = getNewJobInfo(1, 16);
		str = StrReplace.replace(str, tab[5], newJob_a);
		log.LOG_INFO("最新招聘a");
		// 最新招聘b
		String newJob_b = getNewJobInfo(2, 16);
		str = StrReplace.replace(str, tab[6], newJob_b);
		log.LOG_INFO("最新招聘b");
		// 最新人才a
		String newResume_a = getNesResumeInfo(1, 25);
		str = StrReplace.replace(str, tab[7], newResume_a);
		log.LOG_INFO(" 最新人才a");
		// 最新人才b
		String newResume_b = getNesResumeInfo(2, 25);
		str = StrReplace.replace(str, tab[8], newResume_b);
		log.LOG_INFO(" 最新人才b");
		//省分信息
		String province=getProvinceInfo();
		str = StrReplace.replace(str, "{#provice-1#}", province);
		//工作類型
		String jobInof=getJobTypeInfo();
		str = StrReplace.replace(str, "{#job-type#}", jobInof);
		
		FileIO.SaveToFile(str, filepath);
	}
	

	//替換省份信息
	
	public String getProvinceInfo()throws SaasApplicationException{
		String province="";
		AreaInfo area=new AreaInfo();
		province=area.getCountrySelect("5J2mc0X0G85BH");
		return province;
	}
	
	//替換職業
	
	public String getJobTypeInfo()throws SaasApplicationException{
		String job_info="";
		ParamethodMgr param=new ParamethodMgr();
		job_info=param.getSelectItems("17");
		return job_info;
	}
	
	/**
	 * 取出推薦招聘
	 */
	public String getRecommendJobString(int limit) throws SaasApplicationException {

		String source = "";
		String resource = "<tr><td valign=\"top\">" + "<a href=/zone_b2b/enterprise/customer/{#cust-id#}/ class=lanse target=_blank>{#cust-name#}</a>" + "<br> 招聘 : <a href=/zone_b2b/job/jobinfo.jsp?talents=1&cust_id={#job-id#} target=_blank>{#job-title#}</a>" + "</td>" + "</tr>";
		OrderCast order = new OrderCast();
		ArrayList list = order.getRecommendJob(0, limit);
		if (list != null && list.size() > 0) {
			for (int i = 0; i < list.size(); i++) {
				HashMap map = (HashMap) list.get(i);
				String job_id = "", title = "", cust_name = "", cust_id = "";
				if (map.get("job_id") != null) {
					job_id = map.get("job_id").toString();
				}
				if (map.get("title") != null) {
					title = map.get("title").toString();
				}
				if (map.get("cust_name") != null) {
					cust_name = map.get("cust_name").toString();
				}
				if (map.get("job_unit") != null) {
					cust_id = map.get("job_unit").toString();
				}
				source = source + StrReplace.replace(resource, "{#cust-id#}", cust_id);
				source = StrReplace.replace(source, "{#cust-name#}", cust_name);
				source = StrReplace.replace(source, "{#job-title#}", title);
				source = StrReplace.replace(source, "{#job-id#}", cust_id);
			}
		}
		return source;
	}
	
	
	
	/**
	 * 取出就業指導信息
	 */
	public String getJobGuide(int iStart, int limit) throws SaasApplicationException {

		String source = "";
		String resource = "<tr>" + "<td>" + "<a href=/zone_b2b/news/zixun_list_content.jsp?news_id={#news-id#} target=_blank>{#news-title#}</a>" + "</td>" + "</tr>";
		String news_type = "42wE3JLp88FsjBT";
		NewsInfo info = new NewsInfo();
		ArrayList list = info.getNewsByType(iStart, limit, news_type);
		if (list != null && list.size() > 0) {
			for (int i = 0; i < list.size(); i++) {
				HashMap map = (HashMap) list.get(i);
				String news_id = "", title = "";
				if (map.get("news_id") != null) {
					news_id = map.get("news_id").toString();
				}
				if (map.get("title") != null) {
					title = map.get("title").toString();
					if(title.length()>20){
						title=title.substring(0,18)+"...";
					}
				}
				source = source + StrReplace.replace(resource, "{#news-id#}", news_id);
				source = StrReplace.replace(source, "{#news-title#}", title);
			}
		}
		return source;
	}
	
	
	
	/**
	 * 取出推薦人才
	 */
	public String getRecommendResume(int iStart, int limit) throws SaasApplicationException {

		String source = "";
		String resource = "<tr>" + "<td width=64 height=25 class=rencei_table_xian>" + "<a href=/zone_b2b/resume/resume_content.jsp?resume_id={#user-id#}><img src=/zone_b2b/images/d_tb.gif width=5 height=9>{#user-name#}</a>" + "</td>" + "<td width=47 class=rencei_table_xian>" + "{#sex#}" + "</td>" + "<td width=42 class=rencei_table_xian>" + "{#age#}" + "</td>" + "<td width=42 class=rencei_table_xian>" + "<span class=lanse_renceitop>{#degree#}</span>" + "</td>" + "<td width=53 class=rencei_table_xian>" + "<span class=zi>{#posit#}</span>" + "</td>" + "</tr>";
		OrderCast order = new OrderCast();
		ArrayList list = order.getRecommendResume(iStart, limit);
		ParamethodMgr param = new ParamethodMgr();
		if (list != null && list.size() > 0) {
			for (int i = 0; i < list.size(); i++) {
				HashMap map = (HashMap) list.get(i);
				String resume_id = "", name = "", remark = "", age = "", degree = "", profession = "";
				if (map.get("resume_id") != null) {
					resume_id = map.get("resume_id").toString();
				}
				if (map.get("name") != null) {
					name = map.get("name").toString();
				}
				if (map.get("remark") != null) {
					remark = map.get("remark").toString();
					if (remark == "0" || remark.equals("0")) {
						remark = "男";
					}
					else {
						remark = "女";
					}
				}
				if (map.get("age") != null) {
					age = map.get("age").toString();
				}
				if (map.get("profession") != null) {
					profession = map.get("profession").toString();
				}
				if (map.get("degree") != null) {
					degree = map.get("degree").toString();
					degree = param.getParamNameByValue("39", degree);
				}
				source = source + StrReplace.replace(resource, "{#user-id#}", resume_id);
				source = StrReplace.replace(source, "{#user-name#}", name);
				source = StrReplace.replace(source, "{#sex#}", remark);
				source = StrReplace.replace(source, "{#age#}", age);
				source = StrReplace.replace(source, "{#degree#}", degree);
				source = StrReplace.replace(source, "{#posit#}", profession);
			}
		}
		return source;
	}
	
	
	
	/**
	 * 最新招聘
	 */
	public String getNewJobInfo(int iStart, int limit) throws SaasApplicationException {

		String source = "";
		String resource = "<tr>" + "<td height=25 class=rencei_table_xian>" + "<a href=/zone_b2b/enterprise/customer/{#cust-id#}/>{#cust-name#}</a>" + "</td>" + "<td class=rencei_table_xian>" + "	<span class=zi>招聘:</spen>" + "</td>" + "<td class=rencei_table_xian>" + "<span class=lanse_renceitop><a href=/zone_b2b/job/jobinfo.jsp?cust_id={#job-id#} target=_blank>{#job-title#}</a></span>" + "</td>" + "</tr>";
		JobInfo job = new JobInfo();
		ArrayList list = job.genLatestJobList(iStart, limit);
		if (list != null && list.size() > 0) {
			for (int i = 0; i < list.size(); i++) {
				HashMap map = (HashMap) list.get(i);
				String job_id = "", title = "", cust_name = "", cust_id = "";
				if (map.get("job_id") != null) {
					job_id = map.get("job_id").toString();
				}
				if (map.get("title") != null) {
					title = map.get("title").toString();
				}
				if (map.get("cust_name") != null) {
					cust_name = map.get("cust_name").toString();
				}
				if (map.get("job_unit") != null) {
					cust_id = map.get("job_unit").toString();
				}
				source = source + StrReplace.replace(resource, "{#cust-id#}", cust_id);
				source = StrReplace.replace(source, "{#cust-name#}", cust_name);
				source = StrReplace.replace(source, "{#job-title#}", title);
				source = StrReplace.replace(source, "{#job-id#}", cust_id);
			}
		}
		return source;
	}
	
	
	
	/**
	 * 最新人才
	 */
	public String getNesResumeInfo(int iStart, int limit) throws SaasApplicationException {

		String source = "";
		String resource = "<tr>" +"<td width=20% class=rencei_table_xian style=font-weight: bold;>" + "<a href=/zone_b2b/resume/resume_content.jsp?resume_id={#user-id#}>{#user-name#}</a>" + "</td>"  + "<td width=50%  height=25 class=rencei_table_xian>" + "{#grade-form#}" + "</td>" + "<td width=30% class=rencei_table_xian>" + "	<span class=lanse_renceitop>{#posit#}</span>" + "</td>" + "</tr>";
		ResumeInfo resume = new ResumeInfo();
		ArrayList list = resume.getNewResumeByList(iStart, limit);
		if (list != null && list.size() > 0) {
			for (int i = 0; i < list.size(); i++) {
				HashMap map = (HashMap) list.get(i);
				String resume_id = "", name = "", profession = "", grade_from = "";
				if (map.get("resume_id") != null) {
					resume_id = map.get("resume_id").toString();
				}
				if (map.get("name") != null) {
					name = map.get("name").toString();
				}
				if (map.get("profession") != null) {
					profession = map.get("profession").toString();
				}
				if (map.get("grad_from") != null) {
					grade_from = map.get("grad_from").toString();
				}
				source = source + StrReplace.replace(resource, "{#grade-form#}", grade_from);
				source = StrReplace.replace(source, "{#user-id#}", resume_id);
				source = StrReplace.replace(source, "{#user-name#}", name);
				source = StrReplace.replace(source, "{#posit#}", profession);
			}
		}
		return source;
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
九九精品视频在线看| 亚洲免费看黄网站| 91 com成人网| 欧美日韩国产一级片| 欧洲一区二区av| 欧美天天综合网| 成人免费视频一区| 国产suv一区二区三区88区| 国产成人av在线影院| 国产成人av电影在线播放| 成人综合婷婷国产精品久久| 成人激情视频网站| 91蝌蚪porny九色| 欧美综合色免费| 欧美人成免费网站| 日韩欧美国产一区二区三区| 精品免费视频.| 中文av字幕一区| 中文字幕乱码亚洲精品一区| 一区二区三区在线观看国产| 亚洲高清不卡在线| 裸体一区二区三区| 成人免费视频caoporn| 欧美私模裸体表演在线观看| 日韩欧美一区二区久久婷婷| 国产欧美综合在线| 亚洲一区二区三区四区在线免费观看| 亚洲午夜久久久久久久久电影网| 亚洲综合在线视频| 国产曰批免费观看久久久| 99re6这里只有精品视频在线观看| 欧洲激情一区二区| 欧美精品一区二区三区四区| 亚洲精品亚洲人成人网| 青椒成人免费视频| 91浏览器打开| 久久久久久久久久久久久夜| 一卡二卡三卡日韩欧美| 国内精品伊人久久久久av一坑| 99久精品国产| 久久久99久久| 免费在线观看日韩欧美| 国产高清久久久| 欧美日韩在线综合| 国产精品每日更新在线播放网址| 日韩高清欧美激情| 色综合久久中文字幕综合网| 精品成人免费观看| 午夜电影一区二区三区| 99国产精品一区| 久久精品一区二区三区不卡| 日本中文字幕一区| 欧美三级电影在线看| 国产精品国产成人国产三级| 国产在线播精品第三| 欧美一区二区三区在线电影| 亚洲欧美视频在线观看| 成人网男人的天堂| 亚洲精品在线一区二区| 蜜桃av噜噜一区二区三区小说| 在线观看不卡视频| 亚洲精选一二三| 色综合天天综合网天天看片| 中文成人av在线| 成人黄色电影在线 | 国产一区二区三区蝌蚪| 欧美色手机在线观看| 国产精品久久久久永久免费观看| 老司机一区二区| 欧美不卡一区二区三区| 日韩av一区二区在线影视| 欧美美女黄视频| 香蕉加勒比综合久久| 在线视频国内自拍亚洲视频| 一区二区三区四区不卡视频| 色综合久久久久久久| 亚洲摸摸操操av| 色哟哟国产精品免费观看| 亚洲日本青草视频在线怡红院| 美女网站在线免费欧美精品| 欧美精品一二三四| 美日韩一级片在线观看| 精品日韩欧美一区二区| 国产精品资源在线观看| 久久久久99精品一区| 国产精品一二一区| 日本一区二区三区电影| av色综合久久天堂av综合| 亚洲视频中文字幕| 欧美私人免费视频| 免费高清视频精品| 欧美国产成人精品| 色94色欧美sute亚洲线路一久| 亚洲福中文字幕伊人影院| 欧美一区二区三区啪啪| 国产成人在线网站| 一区二区三区国产| 欧美一区二区三区免费视频| 韩国成人精品a∨在线观看| 国产精品每日更新| 欧美久久久久久久久久| 韩国女主播一区| 1024国产精品| 欧美一区二区三区色| 成人综合激情网| 日精品一区二区| 国产精品视频观看| 欧美视频三区在线播放| 久久99精品久久久久久动态图 | 在线免费观看日本欧美| 蜜臀av亚洲一区中文字幕| 国产欧美精品一区二区色综合| 色综合咪咪久久| 久久97超碰色| 一区二区三区不卡视频| 久久久久久黄色| 91麻豆精品国产91久久久久 | 日韩欧美自拍偷拍| 成人高清免费观看| 久久aⅴ国产欧美74aaa| 一卡二卡欧美日韩| 国产性色一区二区| 制服丝袜一区二区三区| 91丨九色丨蝌蚪丨老版| 精品无人码麻豆乱码1区2区| 亚洲综合色婷婷| 国产精品国产自产拍在线| 欧美tickling挠脚心丨vk| 91在线无精精品入口| 国产成人自拍在线| 美女国产一区二区三区| 亚洲国产日韩av| 亚洲色图视频网| 国产精品美女视频| 久久久久88色偷偷免费| 欧美va亚洲va香蕉在线| 欧美日韩亚洲国产综合| 欧美性生活影院| 91丨porny丨国产| 高清国产午夜精品久久久久久| 久久黄色级2电影| 青青草97国产精品免费观看无弹窗版| 亚洲自拍偷拍图区| 亚洲色图色小说| 中文字幕综合网| 亚洲日本韩国一区| 中文字幕中文字幕在线一区| 久久综合九色综合欧美亚洲| 日韩一级视频免费观看在线| 91麻豆精品91久久久久同性| 欧美体内she精高潮| 欧美日韩国产123区| 欧美日韩一区二区三区四区| 欧美三电影在线| 欧美人与z0zoxxxx视频| 欧美一区二区美女| 日韩欧美第一区| 欧美大白屁股肥臀xxxxxx| 日韩精品一区二区在线| 日韩欧美国产综合一区| 26uuu色噜噜精品一区二区| 337p粉嫩大胆噜噜噜噜噜91av| 欧美日韩中文字幕精品| 欧美一级免费大片| 久久毛片高清国产| 国产精品网曝门| 亚洲精品美腿丝袜| 亚洲成人av电影在线| 日本欧美大码aⅴ在线播放| 久久99精品久久久久| 国产不卡高清在线观看视频| 91丨porny丨中文| 欧美日韩在线播放三区四区| 日韩一区二区中文字幕| 国产色产综合产在线视频| 国产精品久久久久天堂| 亚洲高清免费视频| 国产在线精品不卡| 91九色最新地址| 日韩手机在线导航| 国产精品久久久久精k8| 亚洲成人激情社区| 国产一区二区三区日韩 | 91精品国产欧美一区二区18| 日韩欧美色综合| 日本一区二区高清| 一卡二卡欧美日韩| 国产一区二区精品久久| 在线视频亚洲一区| 久久综合av免费| 亚洲一区二区偷拍精品| 韩国三级在线一区| 欧美性受xxxx| 国产精品视频观看| 日本中文在线一区| 色八戒一区二区三区| 国产日韩欧美不卡| 亚洲一区免费在线观看| 国产成人免费视频精品含羞草妖精| 99久久亚洲一区二区三区青草|