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

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

?? createcustomerhtml.java

?? java阿里巴巴代碼
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
				if (prodInfo.get("cust_id") != null) {
					cust_id = prodInfo.get("cust_id").toString();
				}
				if (prodInfo.get("product_site") != null) {
					product_site = prodInfo.get("product_site").toString();
				}
				if (prodInfo.get("product_name") != null) {
					product_name = prodInfo.get("product_name").toString();
				}
				if (prodInfo.get("publish_date") != null) {
					publish_date = prodInfo.get("publish_date").toString();
					if (publish_date.length() > 10)
						publish_date = publish_date.substring(0, 10);
				}
				cust_name = new Custinfo().getCustCompany( cust_id );
				prodTemp = prodTemp + initStr;
				prodTemp = StrReplace.replace(prodTemp, "{#prod:title#}",product_name);
				prodTemp = StrReplace.replace(prodTemp, "{#prod:unit#}", cust_name);
				prodTemp = StrReplace.replace(prodTemp, "{#prod:end_date#}", publish_date);
				prodTemp = StrReplace.replace(prodTemp, "{#prod:addr#}", product_site);
				prodTemp = StrReplace.replace(prodTemp, "{#prod:link#}", "/zone_b2b/enterprise/productInfo.jsp?product_id=" + product_id+"&cust_id=" + cust_id);
				String pict_path = new ProductInfo().getCustAttachPath(product_id, "0");
				if (pict_path == null) {
					pict_path = "/upload/default.gif";
				}
				prodTemp = StrReplace.replace(prodTemp, "{#prod:pict#}", "<img src=" + pict_path + " border=0>");
			}
		}
		return prodTemp;
	}
	
	
	
	/*
	 * 生成企業招聘
	 */
	public int createCustomerResume(String rootpath) throws SaasApplicationException {

		log.LOG_INFO("生成企業招聘");
		int error = 0;
		config configFile = new config();
	  configFile.init();
	  String webtitle = configFile.getString("mysqlbase.webtitle");
		String str = "", cust_id = "";
		String filepath = rootpath + "/" + "enterprise/customer/";
		String temppath = filepath;
		String filename = "resume.htm";
		String templatePath = rootpath + "/" + "templates/enterprise/default/ym_resume.html";
		String[] tab = { "{#include:bottom#}", "{#cust:name#}", "{#cust:scope#}", "{#company_logo#}", "{#juristic#}", "{#mail#}", "{#telephone#}", "{#fax#}", "{#address#}", "{#postcode#}", "{#website#}", "{#linker#}", "{#product_list#}", "{#resume_list#}", "{#cust_id#}" ,"{#WebTitle#}"};
		str = FileIO.LoadFile(templatePath);
		String tempStr = "";
		Custinfo custInfo = new Custinfo();
		ArrayList custList = custInfo.getAllCust();
		try 
		{
			if (custList != null && custList.size() > 0) 
			{
				for (int i = 0; i < custList.size(); i++) 
				{
					tempStr = str;
					HashMap info = (HashMap) custList.get(i);
					cust_id = info.get("cust_id").toString();
					String cust_name = "";
					String cust_scope = "";
					String email = "";
					String juristic = "";
					String group_contact_phone = "";
					String fax_nbr = "";
					String company_address = "";
					String post_code = "";
					String website = "";
					if (info.get("cust_name") != null) {
						cust_name = info.get("cust_name").toString();
					}
					if (info.get("juristic") != null) {
						juristic = info.get("juristic").toString();
					}
					if (info.get("scope") != null) {
						cust_scope = info.get("scope").toString();
					}
					if (info.get("email") != null) {
						email = info.get("email").toString();
					}
					if (info.get("group_contact_phone") != null) {
						group_contact_phone = info.get("group_contact_phone").toString();
					}
					if (info.get("fax_nbr") != null) {
						fax_nbr = info.get("fax_nbr").toString();
					}
					if (info.get("company_address") != null) {
						company_address = info.get("company_address").toString();
					}
					if (info.get("post_code") != null) {
						post_code = info.get("post_code").toString();
					}
					if (info.get("website") != null) {
						website = info.get("website").toString();
					}
					filepath = temppath + "/" + cust_id + "/";
					String LinkStrTemp = FriendlyLink(cust_id);
					String ProductStrTemp = ProductList(cust_id);
					String JobStrTemp = JobList(cust_id);
					String file_path = new Custinfo().getCustAttachPath(cust_id, "0");
					if (file_path == null || file_path == "") {
						file_path = "/upload/default.gif";
					}
					tempStr = StrReplace.replace(tempStr, tab[0], FileString.f2s(rootpath + "/footer.jsp"));
					tempStr = StrReplace.replace(tempStr, tab[1], cust_name);
					tempStr = StrReplace.replace(tempStr, tab[2], cust_scope);
					tempStr = StrReplace.replace(tempStr, tab[3], file_path);
					tempStr = StrReplace.replace(tempStr, tab[4], juristic);
					tempStr = StrReplace.replace(tempStr, tab[5], email);
					tempStr = StrReplace.replace(tempStr, tab[6], group_contact_phone);
					tempStr = StrReplace.replace(tempStr, tab[7], fax_nbr);
					tempStr = StrReplace.replace(tempStr, tab[8], company_address);
					tempStr = StrReplace.replace(tempStr, tab[9], post_code);
					tempStr = StrReplace.replace(tempStr, tab[10], website);
					tempStr = StrReplace.replace(tempStr, tab[11], LinkStrTemp);
					tempStr = StrReplace.replace(tempStr, tab[12], ProductStrTemp);
					tempStr = StrReplace.replace(tempStr, tab[13], JobStrTemp);
					tempStr = StrReplace.replace(tempStr, tab[14], cust_id);
					tempStr = StrReplace.replace(tempStr, tab[15], webtitle);
					if (FileIO.ExistFloder(filepath)) {
						FileIO.SaveToFile(tempStr, filepath + filename);
					}
					else {
						FileIO.CreateFloder(filepath);
						FileIO.SaveToFile(tempStr, filepath + filename);
					}
				}
			}
		}
		catch (Exception e) {
			log.LOG_INFO(e.getMessage());
		}
		log.LOG_INFO("生成企業招聘結束");
		return error;
	}
	
	
	
	/*
	 * 替換企業招聘
	 */
	public String JobList(String cust_id) throws SaasApplicationException {

		String jobTemp = "";
		String initStr = "<div><div><b>職位:</b><b><font size=3><a href=\"{#link#}\">{#job:title#}</a></font></b><br>工作地點:{#job:addr#}<br>要求:{#job:request#}</div></div><br>";
		JobInfo job = new JobInfo();
		ArrayList jobList = job.genNewJobList(cust_id);
		log.LOG_INFO( "" + jobList );
		if (jobList != null && jobList.size() > 0) 
		{
			for (int i = 0; i < jobList.size(); i++) 
			{
				HashMap jobInfo = (HashMap) jobList.get(i);
				String job_id = jobInfo.get("job_id").toString();
				String title = "";
				String job_addr = "";
				String request = "";
				String job_unit = "";
				if (jobInfo.get("title") != null) 
				{
					title = jobInfo.get("title").toString();
				}
				if (jobInfo.get("job_unit") != null) 
				{
					job_unit = jobInfo.get("job_unit").toString();
				}
				if (jobInfo.get("job_addr") != null) 
				{
					job_addr = jobInfo.get("job_addr").toString();
				}
				if (jobInfo.get("request") != null) 
				{
					request = jobInfo.get("request").toString();
				}
				jobTemp = jobTemp + initStr;
				jobTemp = StrReplace.replace(jobTemp, "{#link#}", "/zone_b2b/job/jobinfo.jsp?cust_id=" + job_unit );
				jobTemp = StrReplace.replace(jobTemp, "{#job:title#}",title);
				jobTemp = StrReplace.replace(jobTemp, "{#job:addr#}", job_addr);
				jobTemp = StrReplace.replace(jobTemp, "{#job:request#}",request);
			}
		}
		return jobTemp;
	}
	
	
	
	// 生成企業留言
	public int createCustomerLeave(String rootpath) throws SaasApplicationException {

		log.LOG_INFO("生成企業留言");
		int error = 0;
		config configFile = new config();
	  configFile.init();
	  String webtitle = configFile.getString("mysqlbase.webtitle");
		String str = "", cust_id = "";
		String filepath = rootpath + "/" + "enterprise/customer/";
		String temppath = filepath;
		String filename = "leavel.htm";
		String listStr = "";
		String templatePath = rootpath + "/" + "templates/enterprise/default/ym_leave.html";
		String[] tab = { "{#include:bottom#}", "{#cust:name#}", "{#cust:scope#}", 
										 "{#company_logo#}", "{#juristic#}", "{#mail#}", "{#telephone#}", 
										 "{#fax#}", "{#address#}", "{#postcode#}", "{#website#}", "{#linker#}", 
										 "{#product_list#}", "{#leave_list#}", "{#cust_id#}","{#WebTitle#}" };
		str = FileIO.LoadFile(templatePath);
		String tempStr = "";
		Custinfo custInfo = new Custinfo();
		ArrayList custList = custInfo.getAllCust();
		try {
			if (custList != null && custList.size() > 0) {
				for (int i = 0; i < custList.size(); i++) {
					tempStr = str;
					HashMap info = (HashMap) custList.get(i);
					cust_id = info.get("cust_id").toString();
					String cust_name = "";
					String cust_scope = "";
					String email = "";
					String juristic = "";
					String group_contact_phone = "";
					String fax_nbr = "";
					String company_address = "";
					String post_code = "";
					String website = "";
					if (info.get("cust_name") != null) {
						cust_name = info.get("cust_name").toString();
					}
					if (info.get("juristic") != null) {
						juristic = info.get("juristic").toString();
					}
					if (info.get("scope") != null) {
						cust_scope = info.get("scope").toString();
					}
					if (info.get("email") != null) {
						email = info.get("email").toString();
					}
					if (info.get("group_contact_phone") != null) {
						group_contact_phone = info.get("group_contact_phone").toString();
					}
					if (info.get("fax_nbr") != null) {
						fax_nbr = info.get("fax_nbr").toString();
					}
					if (info.get("company_address") != null) {
						company_address = info.get("company_address").toString();
					}
					if (info.get("post_code") != null) {
						post_code = info.get("post_code").toString();
					}
					if (info.get("website") != null) {
						website = info.get("website").toString();
					}
					filepath = temppath + "/" + cust_id + "/";
					String LinkStrTemp = FriendlyLink(cust_id);
					String ProductStrTemp = ProductList(cust_id);
					// String LeaveStrTemp=LeaveList( cust_id );
					String file_path = new Custinfo().getCustAttachPath(cust_id, "0");
					if (file_path == null || file_path == "") {
						file_path = "/upload/default.gif";
					}
					tempStr = StrReplace.replace(tempStr, tab[0], FileString.f2s(rootpath + "/footer.jsp"));
					tempStr = StrReplace.replace(tempStr, tab[1], cust_name);
					tempStr = StrReplace.replace(tempStr, tab[2], cust_scope);
					tempStr = StrReplace.replace(tempStr, tab[3], file_path);
					tempStr = StrReplace.replace(tempStr, tab[4], juristic);
					tempStr = StrReplace.replace(tempStr, tab[5], email);
					tempStr = StrReplace.replace(tempStr, tab[6], group_contact_phone);
					tempStr = StrReplace.replace(tempStr, tab[7], fax_nbr);
					tempStr = StrReplace.replace(tempStr, tab[8], company_address);
					tempStr = StrReplace.replace(tempStr, tab[9], post_code);
					tempStr = StrReplace.replace(tempStr, tab[10], website);
					tempStr = StrReplace.replace(tempStr, tab[11], LinkStrTemp);
					tempStr = StrReplace.replace(tempStr, tab[12], ProductStrTemp);
					tempStr = StrReplace.replace(tempStr, tab[14], cust_id);
					tempStr = StrReplace.replace(tempStr, tab[15], webtitle);
					// tempStr = StrReplace.replace( tempStr,tab[13],LeaveStrTemp );
					tempStr = StrReplace.replace(tempStr, "{#cust:idx#}", cust_id);
					if (FileIO.ExistFloder(filepath)) {
						FileIO.SaveToFile(tempStr, filepath + filename);
					}
					else {
						FileIO.CreateFloder(filepath);
						FileIO.SaveToFile(tempStr, filepath + filename);
					}
				}
			}
		}
		catch (Exception e) {
			log.LOG_INFO(e.getMessage());
		}
		log.LOG_INFO("生成企業留言結束");
		return error;
	}
	
	
	
	/*
	 * 主方法
	 */
	public void createCustomer(String rootpath) throws SaasApplicationException {

		
		this.createCustomerIntroduce(rootpath);
		this.createCustomerSupply(rootpath);
		this.createCustomerCredit(rootpath);
		this.createCustomerStock(rootpath);
		this.createCustomerNews(rootpath);
		this.createCustomerBidding(rootpath);
		this.createCustomerTech(rootpath);
		this.createCustomerProduct(rootpath);
		this.createCustomerResume(rootpath);
		// this.createCustomerCon( rootpath );
		// this.createCustomerFriendly( rootpath );
		this.createCustomerLeave(rootpath);
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本高清无吗v一区| 国产欧美精品一区二区三区四区| 欧美电影精品一区二区| 久久久高清一区二区三区| 亚洲视频每日更新| 成人性生交大片免费看在线播放| 成人黄色av电影| 欧美日韩一级二级| 久久夜色精品一区| 一区二区久久久久久| 毛片av一区二区| 99r国产精品| 日韩一区二区精品在线观看| 国产精品美女一区二区| 丝袜亚洲另类丝袜在线| 丁香激情综合国产| 8x福利精品第一导航| 国产三级欧美三级日产三级99| 亚洲激情图片一区| 精品一区二区久久久| 色先锋久久av资源部| 欧美精品一区二区三区蜜臀| 国产精品欧美久久久久一区二区| 天堂精品中文字幕在线| av一区二区三区黑人| 日韩午夜电影在线观看| 亚洲色图欧美激情| 国产在线精品一区二区不卡了 | 中文一区二区完整视频在线观看| 亚洲影院理伦片| 国产成人在线免费观看| 欧美理论片在线| 亚洲色图视频网站| 国产精品 欧美精品| 欧美一区二区三区日韩视频| 亚洲免费伊人电影| 国产传媒久久文化传媒| 欧美电影免费观看高清完整版在线 | 亚洲午夜影视影院在线观看| 成人av在线资源| 精品国产免费一区二区三区四区| 亚洲国产一二三| 99久久精品免费看国产免费软件| 久久午夜国产精品| 免费一级欧美片在线观看| 色吊一区二区三区| 国产精品国产三级国产三级人妇| 久久99国产精品久久99| 欧美一区二区三区小说| 亚洲国产精品嫩草影院| 在线日韩av片| 亚洲精品中文字幕乱码三区| 成人ar影院免费观看视频| 久久久久国色av免费看影院| 久久精品国产亚洲一区二区三区 | 日韩一区精品字幕| 欧洲激情一区二区| 又紧又大又爽精品一区二区| 不卡一区二区三区四区| 久久久91精品国产一区二区精品| 男人的j进女人的j一区| 91精品国产免费| 亚洲成av人片在线| 欧美日韩一区二区在线观看视频| 亚洲日本在线a| av一区二区不卡| 国产精品久久久久久久蜜臀| 国产mv日韩mv欧美| 午夜久久福利影院| 欧美视频在线一区| 亚洲嫩草精品久久| 色偷偷久久一区二区三区| 亚洲色图19p| 91麻豆蜜桃一区二区三区| 亚洲欧洲韩国日本视频| caoporen国产精品视频| 综合欧美一区二区三区| 色一情一乱一乱一91av| 一区二区久久久久久| 欧美日韩欧美一区二区| 日本美女视频一区二区| 精品国产一区二区三区久久影院| 蜜桃视频第一区免费观看| 日韩欧美在线123| 国内成人免费视频| 国产精品毛片久久久久久| thepron国产精品| 亚洲美女免费在线| 欧美色图天堂网| 日本大胆欧美人术艺术动态| 日韩一区二区电影| 国产综合色产在线精品| 中日韩av电影| 在线精品视频免费播放| 天堂影院一区二区| 精品乱人伦小说| 成人一区二区三区| 亚洲自拍欧美精品| 日韩午夜在线影院| 国产高清无密码一区二区三区| 欧美韩国日本不卡| 色哟哟一区二区| 青青草原综合久久大伊人精品优势| 欧美电视剧免费全集观看 | 国产成人综合在线| 美女视频第一区二区三区免费观看网站| 国产欧美日本一区视频| 日韩视频在线永久播放| 欧美色精品天天在线观看视频| 粉嫩一区二区三区在线看| 韩国av一区二区三区在线观看 | 国产亚洲美州欧州综合国| 久久综合久久综合久久综合| 欧美一区二区视频在线观看| 欧美区一区二区三区| 色婷婷精品久久二区二区蜜臀av | 91在线精品秘密一区二区| 国内成人免费视频| 91在线精品秘密一区二区| 国产中文字幕一区| 岛国精品在线播放| 国产91精品免费| 懂色av一区二区三区蜜臀| 国产精品乡下勾搭老头1| 91理论电影在线观看| av不卡免费在线观看| 91亚洲精品久久久蜜桃网站 | 亚洲免费在线电影| 日韩1区2区日韩1区2区| 青草av.久久免费一区| 在线免费观看日韩欧美| 欧美一级理论性理论a| 国产欧美一区二区精品性色 | 欧美一区二区观看视频| 天天亚洲美女在线视频| 精品区一区二区| 日日摸夜夜添夜夜添亚洲女人| 精品91自产拍在线观看一区| 欧美自拍偷拍午夜视频| 国内不卡的二区三区中文字幕| 亚洲最大色网站| 国产女主播视频一区二区| 717成人午夜免费福利电影| 91影院在线观看| 国产成人在线影院| 美国av一区二区| 一区二区三区四区蜜桃| 日韩久久久久久| 亚洲va天堂va国产va久| 韩国一区二区在线观看| 色妞www精品视频| 久久―日本道色综合久久| 亚洲精品久久久蜜桃| 国产大片一区二区| 制服丝袜成人动漫| 国产精品电影院| 精彩视频一区二区三区| 欧美情侣在线播放| 亚洲欧美日韩国产一区二区三区| 亚洲国产综合视频在线观看| 国产麻豆成人精品| 久久久欧美精品sm网站| 尤物视频一区二区| 99re这里只有精品首页| 国产三级三级三级精品8ⅰ区| 奇米影视在线99精品| 欧美乱妇一区二区三区不卡视频 | 日韩亚洲国产中文字幕欧美| 亚洲黄色在线视频| 不卡一卡二卡三乱码免费网站| 精品福利一区二区三区免费视频| 亚洲成人免费看| 在线播放中文一区| 日本一道高清亚洲日美韩| 日本精品免费观看高清观看| 亚洲国产精品成人综合 | 亚洲电影一级黄| 日韩欧美视频一区| 蜜桃视频在线观看一区| 色久综合一二码| 亚洲综合色噜噜狠狠| 欧美性猛交xxxx乱大交退制版| 一区二区三区免费看视频| 欧美国产在线观看| 亚洲欧洲性图库| 国产欧美一区二区精品性色超碰| 麻豆成人av在线| 麻豆成人久久精品二区三区红| 美女视频黄免费的久久| 久久99久久精品欧美| 蜜臀久久99精品久久久久久9| 日本aⅴ精品一区二区三区| 日韩av电影免费观看高清完整版 | 欧美一区二区三区精品| 日韩av网站免费在线| 欧美mv日韩mv国产| 国产91精品免费| 偷拍自拍另类欧美| 欧美国产乱子伦 | 97精品国产露脸对白|