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

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

?? createcustomerhtml.java

?? java阿里巴巴代碼
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
	public String SaleList(String cust_id) throws SaasApplicationException {

		String saleTemp = "";
		String initStr = "<div class=\"cp\"><div><a href={#sale:link#} target=_self>{#sale:pict#}</a></div>" + 
		 "<div><b>名稱:<a href={#sale:link#}  target=_self>{#sale:title#}</a></b><br>價格:{#sale:sale_price#}<br/>有效日期:{#sale:end_date#}<br>地址: {#sale:addr#}</div></div>";
		SaleInfo sale = new SaleInfo();
		ArrayList saleList = sale.genSaleListByCust_ID(cust_id,12 );
		if (saleList != null && saleList.size() > 0) {
			for (int i = 0; i < saleList.size(); i++) {
				HashMap saleInfo = (HashMap) saleList.get(i);
				String sale_id = saleInfo.get("sale_id").toString();
				String title = "";
				String sale_price = "";
				String end_date = "";
				String sale_addr = "";
				if (saleInfo.get("title") != null) {
					title = saleInfo.get("title").toString();
				}
				if (saleInfo.get("sale_price") != null) {
					sale_price = saleInfo.get("sale_price").toString();
				}
				if (saleInfo.get("end_date") != null) {
					end_date = saleInfo.get("end_date").toString();
					if( end_date.length() > 10 )
					end_date = end_date.substring( 0, 10 );
				}
				if (saleInfo.get("sale_addr") != null) {
					sale_addr = saleInfo.get("sale_addr").toString();
				}
				String pict_path = new SaleInfo().searchfj(sale_id, "0");
				if (pict_path == null || pict_path == "") {
					pict_path = "/upload/default.gif";
				}
				saleTemp = saleTemp + initStr;
				saleTemp = StrReplace.replace(saleTemp, "{#sale:title#}", title);
				saleTemp = StrReplace.replace(saleTemp, "{#sale:sale_price#}", sale_price);
				saleTemp = StrReplace.replace(saleTemp, "{#sale:end_date#}", end_date);
				saleTemp = StrReplace.replace(saleTemp, "{#sale:addr#}", sale_addr);
				saleTemp = StrReplace.replace(saleTemp, "{#sale:link#}", "/zone_b2b/supply/saleInquiry.jsp?sale_id=" + sale_id);
				saleTemp = StrReplace.replace(saleTemp, "{#sale:pict#}", "<img src=" + pict_path + " border=0>");
			}
		}
		return saleTemp;
	}
	
	
	
	/*
	 * 生成企業資質榮譽
	 */
	public int createCustomerCredit(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 = "credit.htm";
		String templatePath = rootpath + "/" + "templates/enterprise/default/ym_credit.html";
		String[] tab = { "{#include:bottom#}", "{#cust:name#}", "{#cust:scope#}", "{#company_logo#}", "{#juristic#}", "{#mail#}", "{#telephone#}", "{#fax#}", "{#address#}", "{#postcode#}", "{#website#}", "{#linker#}", "{#product_list#}", "{#credit_list#}", "{#cust_id#}" ,"{#WebTitle#}"};
		str = FileIO.LoadFile(templatePath);
		
		Custinfo custInfo = new Custinfo();
		String tempStr = "";
		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 creditStrTemp = CreditList(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], creditStrTemp);
					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 CreditList(String cust_id) throws SaasApplicationException {

		String creditTemp = "";
		String initStr = "<div>\n" + "          <div>\n" + "            {#sale:pict#}\n" + "          </div>\n" + "          <div>\n" + "            <h5>\n" + "             {#sale:title#}\n" + "            </h5>\n" + "            {#sale:credit_type#}\n<br>" + "            {#sale:end_date#}\n<br>" + "            {#sale:desc#}\n" + "          </div>\n" + "        </div>";
		ParamethodMgr param = new ParamethodMgr();
		CreditInfo credit = new CreditInfo();
		ArrayList creditList = credit.genCustCredit(cust_id);
		if (creditList != null && creditList.size() > 0) {
			for (int i = 0; i < creditList.size(); i++) {
				HashMap creditInfo = (HashMap) creditList.get(i);
				String credit_id = creditInfo.get("credit_id").toString();
				String credit_title = "";
				String credit_type = "";
				String credit_end_date = "";
				String credit_desc = "";
				if (creditInfo.get("credit_title") != null) {
					credit_title = creditInfo.get("credit_title").toString();
				}
				if (creditInfo.get("credit_type") != null) {
					credit_type = creditInfo.get("credit_type").toString();
				}
				
				if (creditInfo.get("credit_end_date") != null) {
					credit_end_date = creditInfo.get("credit_end_date").toString();
					if (credit_end_date.length() > 10) {
						credit_end_date = credit_end_date.substring(0, 10);
					}
				}
				if (creditInfo.get("credit_desc") != null) {
					credit_desc = creditInfo.get("credit_desc").toString();
					credit_desc = credit_desc.replaceAll("<[^<>]+>", "");
				}
				if (credit_type != null) {
					credit_type = param.getParamNameByValue("7", credit_type);
				}
				String pict_path = new Custinfo().getCustAttachPath(credit_id, "0");
				if (pict_path == null || pict_path == "") {
					pict_path = "/upload/default.gif";
				}
				creditTemp = creditTemp + initStr;
				creditTemp = StrReplace.replace(creditTemp, "{#sale:title#}", "名稱:" + credit_title);
				creditTemp = StrReplace.replace(creditTemp, "{#sale:credit_type#}", "類型:" + credit_type);
				creditTemp = StrReplace.replace(creditTemp, "{#sale:end_date#}", "有效日期:" + credit_end_date);
				creditTemp = StrReplace.replace(creditTemp, "{#sale:desc#}", "說明:" + credit_desc);
				creditTemp = StrReplace.replace(creditTemp, "{#sale:pict#}", "<img src=" + pict_path + " border=0>");
			}
		}
		return creditTemp;
	}
	
	
	
	/*
	 * 生成企業采購
	 */
	public int createCustomerStock(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 = "stock.htm";
		String templatePath = rootpath + "/" + "templates/enterprise/default/ym_stock.html";
		String[] tab = { "{#include:bottom#}", "{#cust:name#}", "{#cust:scope#}", "{#company_logo#}", "{#juristic#}", "{#mail#}", "{#telephone#}", "{#fax#}", "{#address#}", "{#postcode#}", "{#website#}", "{#linker#}", "{#product_list#}", "{#stock_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 stockStrTemp = StockList(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], stockStrTemp);
					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;
	}
	
	
	
	// ///////////////企業求購生成結束///////////////////////
	
	
	/*
	 * 替換求購
	 */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av福利精品导航| 成人av午夜电影| 午夜在线成人av| 欧美大片一区二区| 欧美二区在线观看| 欧美精品色一区二区三区| 9191精品国产综合久久久久久| 在线免费精品视频| 欧美三级日韩三级国产三级| 欧美日韩情趣电影| 精品日韩一区二区三区| wwwwww.欧美系列| 欧美不卡一区二区三区四区| 欧美一区二区高清| 97久久久精品综合88久久| 丁香激情综合五月| av不卡免费在线观看| 91香蕉国产在线观看软件| 国产高清精品在线| 不卡视频在线看| 欧美亚洲国产一卡| thepron国产精品| 国产精品综合视频| jlzzjlzz国产精品久久| 91小视频免费观看| 欧美日韩高清不卡| 久久精品一二三| 国产欧美中文在线| 亚洲欧美在线观看| 免费在线视频一区| 久久99精品久久久久久国产越南| 婷婷中文字幕一区三区| 视频一区二区三区在线| 国产不卡高清在线观看视频| gogo大胆日本视频一区| 欧美日本一区二区三区| 久久久国产精品午夜一区ai换脸| 亚洲一区成人在线| 国产精品一区不卡| 97国产精品videossex| 日韩欧美亚洲国产另类| 国产精品免费视频观看| 亚洲成人手机在线| 色噜噜狠狠色综合中国| 国产三级精品视频| 日韩国产在线观看| 欧美午夜影院一区| 中文字幕日韩一区二区| 国产一区二区免费视频| 欧美一区二区三区电影| 天天影视网天天综合色在线播放| 94-欧美-setu| 亚洲手机成人高清视频| 亚洲欧美国产三级| 国产福利91精品一区二区三区| 欧美成人高清电影在线| 高清av一区二区| 亚洲三级在线看| 欧美一区二区视频免费观看| 精品亚洲成av人在线观看| 国产肉丝袜一区二区| 欧美在线影院一区二区| 久久精工是国产品牌吗| 欧美国产精品v| 欧美精品 国产精品| 国产东北露脸精品视频| 亚洲第一福利一区| 国产午夜亚洲精品理论片色戒| 制服丝袜国产精品| 欧美日韩精品一区二区天天拍小说 | 国产麻豆视频一区二区| 亚洲国产精品久久艾草纯爱| 日本一区二区在线不卡| 欧美另类变人与禽xxxxx| 丁香婷婷综合激情五月色| 亚洲成av人影院| 伊人色综合久久天天人手人婷| 884aa四虎影成人精品一区| 成人国产精品免费| 精品在线一区二区三区| 久久99九九99精品| 黄色小说综合网站| 精品一区二区免费看| 欧美a级理论片| 九九视频精品免费| 美女脱光内衣内裤视频久久网站| 亚洲一区二区四区蜜桃| 亚洲国产人成综合网站| 国产精品的网站| **网站欧美大片在线观看| 亚洲精品乱码久久久久久日本蜜臀| 国产精品高清亚洲| 一区二区三区日韩| 午夜精品福利在线| 蜜桃视频一区二区| 性做久久久久久| 国产在线观看一区二区 | 91浏览器打开| 欧美性猛交xxxxxx富婆| 欧美丝袜丝交足nylons| 欧美疯狂做受xxxx富婆| 久久综合久久综合亚洲| 国产精品麻豆欧美日韩ww| 免费人成在线不卡| 色哟哟精品一区| 精品国产一区二区在线观看| 久久久蜜臀国产一区二区| 亚洲天堂成人在线观看| 亚洲成人精品一区| 日本道在线观看一区二区| 日韩欧美中文字幕公布| 中文字幕免费不卡在线| 亚洲永久免费视频| 国产激情视频一区二区在线观看| 色综合久久久久久久久| 久久精品一级爱片| 日韩在线一二三区| 日本道在线观看一区二区| 26uuu欧美日本| 日本欧美一区二区三区乱码| 99精品久久久久久| 中文字幕一区二区三区视频| 丁香婷婷深情五月亚洲| 91精品国产色综合久久不卡电影| 一区免费观看视频| 国内精品不卡在线| 精品国产一区二区三区不卡| 欧美a一区二区| 久久午夜电影网| 久久精品99国产精品日本| 91福利在线播放| 亚洲欧美福利一区二区| 高清在线成人网| 欧美激情在线一区二区| 福利电影一区二区| 亚洲免费观看视频| 欧美三级电影精品| 日韩电影免费一区| 欧美一区欧美二区| 麻豆精品视频在线观看视频| 欧美精品一区二区蜜臀亚洲| 久久精品av麻豆的观看方式| 欧美国产日韩亚洲一区| 91在线视频18| 一区二区三区波多野结衣在线观看| 欧美在线观看视频一区二区| 午夜精品久久久久久久蜜桃app| 欧美人伦禁忌dvd放荡欲情| 日本不卡在线视频| 欧美精品一区二区三区在线| 成人自拍视频在线观看| 亚洲靠逼com| 久久天天做天天爱综合色| 成人免费黄色在线| 日本成人超碰在线观看| 亚洲视频在线观看三级| 69p69国产精品| 97久久精品人人做人人爽50路| 一区二区三区国产豹纹内裤在线| 日韩一区二区三区视频在线 | 欧洲av一区二区嗯嗯嗯啊| 狠狠狠色丁香婷婷综合激情| 亚洲超丰满肉感bbw| 亚洲欧美日韩国产综合在线| 欧美一卡2卡三卡4卡5免费| 在线亚洲精品福利网址导航| 国产不卡免费视频| 日本最新不卡在线| 国产精品午夜免费| 日韩视频在线你懂得| 日本精品免费观看高清观看| 免费观看一级特黄欧美大片| 亚洲资源中文字幕| 又紧又大又爽精品一区二区| 亚洲欧美一区二区三区国产精品| 欧美一区二区三区在线看| 欧美性淫爽ww久久久久无| jiyouzz国产精品久久| caoporm超碰国产精品| 成人av在线一区二区| av成人免费在线观看| 成av人片一区二区| aaa亚洲精品一二三区| 色综合天天在线| 日韩欧美电影一区| 久久嫩草精品久久久精品| 久久综合色天天久久综合图片| 久久久久88色偷偷免费| 欧美激情一二三区| 一区二区三区 在线观看视频| 亚洲国产精品影院| 国产美女精品人人做人人爽| 色综合久久中文综合久久97| 欧美一区二区福利在线| 久久久精品日韩欧美| 亚洲一线二线三线视频| 蜜臀av在线播放一区二区三区| 国产69精品久久99不卡| 欧美三级视频在线播放| 久久久久97国产精华液好用吗|