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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? gbs_mifentryaction.java

?? 對日軟件外包 為東芝做的一個全球商業(yè)管理系統(tǒng)
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
	public ActionForward delete(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
		throws Exception {
		GBS_MifEntryForm thisForm = (GBS_MifEntryForm) form;
		//get login user info from session
		this.setUserInfoFromSession(request, thisForm);
		GBS_MifEntryActionLogic logic = new GBS_MifEntryActionLogic(this.getDataSource(request));
		GBS_MMif_stBean mif_st = new GBS_MMif_stBean();
		ReturnValue returnValue = new ReturnValue();
		MessageList errorMsg = new MessageList();

		// getComboxValue
		this.getComboxValueAndName(thisForm, request);

		//GBS_MMif_stBean
		mif_st.setCountryCode(thisForm.getCountryCode().trim());
		mif_st.setCustomerId(thisForm.getCustomerId().trim());
		mif_st.setProductCategory(thisForm.getProductCategory().trim());
		mif_st.setSubsidiaryCode(thisForm.getSubsidiaryCode().trim());
		returnValue = (ReturnValue) logic.delMifDetail(mif_st);
		if (returnValue.isError()) {
			if (returnValue.isBussinessError()) {
				this.setMessage(errorMsg);
			}
			thisForm = returnFormData(thisForm, request);
			return (mapping.findForward(nextview));
		}
		thisForm.reset(mapping, request);
		thisForm.setMethod("close");
		return (mapping.findForward(nextview));
	}

	/**
	 * InputCheck
	 * @param requestForm GBS_MifEntryForm
	 * @param request HttpServletRequest
	 * @throws Exception
	 * @return ErrorMessages
	 */
	private MessageList inputCheck(GBS_MifEntryForm requestform, HttpServletRequest request) throws Exception {

		//create ErrorMessages to display error message
		MessageList messages = new MessageList();
		//		FormFile attachmentFile = requestform.getAttachmentFile();
		//ProductCategory check
		if (BaseCommonCheck.isEmpty(requestform.getProductCategory()) || requestform.getProductCategory().equals("-1")) {
			messages.setMessage(
				"productCategory",
				requestform.getProductCategory(),
				"10000009",
				Integer.MIN_VALUE,
				new Object[] { "Category" });
		}
		//Country check
		if (BaseCommonCheck.isEmpty(requestform.getCountryCode()) || requestform.getCountryCode().equals("-1")) {
			messages.setMessage(
				"countryCode",
				requestform.getCountryCode(),
				"10000009",
				Integer.MIN_VALUE,
				new Object[] { "Country" });
		}
		//Subsidiary check
		if (BaseCommonCheck.isEmpty(requestform.getSubsidiaryCode()) || requestform.getSubsidiaryCode().equals("-1")) {
			messages.setMessage(
				"subsidiaryCode",
				requestform.getSubsidiaryCode(),
				"10000009",
				Integer.MIN_VALUE,
				new Object[] { "Subs" });
		}
		//		//AttachmentFile check
		//		//if(requestform.getDeleteFile().equals("off")){
		//			if((attachmentFile != null && !attachmentFile.getFileName().equals("")) && attachmentFile.getFileSize()==0){
		//				messages.setMessage( "attachmentFile", null, "10000012", Integer.MIN_VALUE,
		//				new Object[]{ "AttachmentFile" }, "AttachmentFile");						
		//			}	
		//		//}
		//		//AttachmentFile's name check
		//		if(attachmentFile != null && attachmentFile.getFileName().length() > 100){
		//			messages.setMessage("","", "10000018", Integer.MIN_VALUE);
		//		}
		String[] model = requestform.getModel();
		String[] qty = requestform.getQty();
		String[] hardPrice = requestform.getHardPrice();
		String[] cpcPrice = requestform.getCpcPrice();
		String[] mcv = requestform.getMcv();
		String[] installDate = requestform.getInstallDate();
		String[] rfpDate = requestform.getRfpDate();
		for (int i = 0; model != null && i < model.length; i++) {
			String strModel = model[i];
			String strQty = remove(qty[i], ',');
			String strHardPrice = remove(hardPrice[i], ',');
			String strCpcPrice = remove(cpcPrice[i], ',');
			String strMcv = remove(mcv[i], ',');
			;
			String strInstallDate = installDate[i];
			String strRfpDate = rfpDate[i];
			//model傪擖椡帪
			if (!strModel.trim().equals("")) {
				//update by Ym 20040824 start
				//Qty check(Digit)
				if (!BaseCommonCheck.isEmpty(strQty)) {
					if (!BaseCommonCheck.isInteger(strQty)) {
						//messages.setMessage("qty", qty[i], "90000008", i+1);
						messages.setMessage("qty", qty[i], "90000008", i + 1, new Object[] { "Qty." }, "qty");
					} else if (strQty.compareTo("999999") > 0) {
						messages.setMessage("qty", strQty, "90000025", i + 1);
					} else if (new Integer(strQty).intValue() < 0) {
						messages.setMessage("qty", strQty, "90000015", i + 1);
					}
				}
				//HardPrice check(Digit)
				//BigDecimal bigHardPrice =  new BigDecimal(strHardPrice);
				if (!BaseCommonCheck.isEmpty(strHardPrice)) {
					if (!BaseCommonCheck.isFloat(strHardPrice)) {
						messages.setMessage("hardPrice", hardPrice[i], "90000008", i + 1);
						//}else if (bigHardPrice.compareTo( new BigDecimal("9999999999.99")) > 0 ){
					} else if (new Double(strHardPrice).doubleValue() > 9999999999.99) {
						messages.setMessage("hardPrice", hardPrice[i], "90000025", i + 1);
					} else if (new Double(strHardPrice).doubleValue() < 0) {
						messages.setMessage("hardPrice", hardPrice[i], "90000015", i + 1);
					}
				}
				//CpcPrice check(Digit)
				if (!BaseCommonCheck.isEmpty(strCpcPrice)) {
					if (!BaseCommonCheck.isFloat(strCpcPrice)) {
						messages.setMessage("cpcPrice", cpcPrice[i], "90000008", i + 1);
					} else if (new Double(strCpcPrice).doubleValue() > 999999.9999) {
						//BigDecimal bigCpcPrice = new BigDecimal(strCpcPrice);
						//if (bigCpcPrice.compareTo( new BigDecimal("999999.9999")) >0 ){
						messages.setMessage("cpcPrice", cpcPrice[i], "90000025", i + 1);
					} else if (new Double(strCpcPrice).doubleValue() < 0) {
						messages.setMessage("cpcPrice", cpcPrice[i], "90000015", i + 1);
					}
				}
				//Mcv check(Digit)
				/*
				if (!BaseCommonCheck.isEmpty(strMcv)){
					if (!BaseCommonCheck.isFloat( strMcv )) {
						messages.setMessage("mcv", mcv[i], "90000008", i+1);
					}
				}*/
				if (!BaseCommonCheck.isEmpty(strMcv)) {
					if (!BaseCommonCheck.isBigInteger(strMcv)) {
						messages.setMessage("mcv", mcv[i], "90000008", i + 1, new Object[] { "MCV" }, "mcv");
					} else if (strMcv.compareTo("9999999999") > 0) {
						messages.setMessage("mcv", mcv[i], "90000025", i + 1);
					} else if (new BigDecimal(strMcv).intValue() < 0) {
						messages.setMessage("mcv", mcv[i], "90000015", i + 1);
					}
				}
				//InstallDate check(Date)
				if (!BaseCommonCheck.isEmpty(strInstallDate)) {
					//strInstallDate = BaseCommonCheck.convertDateToYYYYMMDD( strInstallDate);
					if ((!BaseCommonCheck.isDateType(strInstallDate))) {
						messages.setMessage("installDate", installDate[i], "90000025", i + 1);
					}
				}
				//RfpDate check(Date)
				if (!BaseCommonCheck.isEmpty(strRfpDate)) {
					//strRfpDate = BaseCommonCheck.convertDateToYYYYMMDD( strRfpDate );
					if ((!BaseCommonCheck.isDateType(strRfpDate))) {
						messages.setMessage("rfpDate", rfpDate[i], "90000025", i + 1);
					}
				}
			}
		}
		return messages;
	}

	/**
	 * LogicCheck
	 * @param requestForm GBS_MifEntryForm
	 * @param request HttpServletRequest
	 * @throws Exception
	 * @return ErrorMessages
	 */
	private MessageList logicCheck(GBS_MifEntryForm requestForm, HttpServletRequest request) throws Exception {

		//柧嵶椞堟?zhèn)虊鏂?model偑廳暋偟偰偄傞帪僄儔乕
		MessageList messages = new MessageList();
		boolean isError = false;
		String model[] = requestForm.getModel();
		for (int i = 0; model != null && i < model.length; i++) {
			for (int j = i + 1; j < model.length - 1; j++) {
				if (!model[i].trim().equals("")) {
					if (model[i].trim().equals(model[j].trim())) {
						messages.setMessage("model", model[i], "10000011", i + 1, "Model");
						isError = true;
						break;
					}
				}
			}
			if (isError) {
				break;
			}
		}
		return messages;

	}

	/**
	 * returnFormData
	 * @param requestForm GBS_MifEntryForm
	 * @param request HttpServletRequest
	 * @throws Exception
	 * @return ErrorMessages
	 */
	private GBS_MifEntryForm returnFormData(GBS_MifEntryForm thisForm, HttpServletRequest request) throws Exception {
		GBS_MifEntryForm returnForm = (GBS_MifEntryForm) thisForm;
		ArrayList lstDetail = new ArrayList();
		String[] model = thisForm.getModel();
		String[] modelOld = thisForm.getModelOld();
		String[] qty = thisForm.getQty();
		String[] currency = thisForm.getCurrency();
		String[] hardPrice = thisForm.getHardPrice();
		String[] cpcPrice = thisForm.getCpcPrice();
		String[] mcv = thisForm.getMcv();
		String[] installDate = thisForm.getInstallDate();
		String[] rfpDate = thisForm.getRfpDate();
		String[] person = thisForm.getPerson();
		for (int i = 0; model != null && i < model.length; i++) {
			GBS_MMifDetail_stBean mifdetail_st = new GBS_MMifDetail_stBean();
			mifdetail_st.setModel(model[i]);
			String strInstallDate = installDate[i];
			mifdetail_st.setInstallDate(strInstallDate);
			String strRfpDate = rfpDate[i];
			mifdetail_st.setRfpDate(strRfpDate);
			mifdetail_st.setQty(qty[i]);
			mifdetail_st.setCurrency(currency[i]);
			mifdetail_st.setHardPrice(hardPrice[i]);
			mifdetail_st.setCpcPrice(cpcPrice[i]);
			mifdetail_st.setMcv(mcv[i]);
			mifdetail_st.setUserName(person[i]);
			mifdetail_st.setPerson(person[i]);
			mifdetail_st.setModelOld(modelOld[i]);
			lstDetail.add(mifdetail_st);
		}
		returnForm.setMifDetail(lstDetail);
		returnForm.setErrorFlag("error");
		return returnForm;
	}

	/**
	 * remove
	 * @param String in,char re
	 * @return String
	 */
	private String remove(String in, char re) {
		String out = "";
		for (int i = 0; i < in.length(); i++) {
			char charst = in.charAt(i);
			if (charst != re) {
				out += charst;
			}
		}
		return out;
	}

	private void getComboxValueAndName(GBS_MifEntryForm thisForm, HttpServletRequest request) throws Exception {
		//get combox value from database 
		GBS_MifEntryActionLogic logic = new GBS_MifEntryActionLogic(this.getDataSource(request));

		ReturnValue returnValue = null;

		ArrayList lstDetail = new ArrayList();
		ArrayList lstModel = new ArrayList();
		Map getCountry = new HashMap();
		Map getSubsidiary = new HashMap();
		Map getCurrency = new HashMap();

		//Category
		returnValue = logic.getProductCategory();
		if (returnValue.isError()) {
			if (returnValue.isBussinessError()) {
				this.setMessage(returnValue.getMessageList());
			}
			// getErrorCode, getErrorMessage proc
		} else {
			Map getProductCategory = new HashMap();
			getProductCategory = (Map) returnValue.getDataValue();
			thisForm.setProductCategoryCodeValue((ArrayList) getProductCategory.get(PRODUCT_CATEGORY_CODE));
			thisForm.setProductCategoryLabelValue((ArrayList) getProductCategory.get(PRODUCT_CATEGORY_LABEL));
		}

		//Country
		returnValue = (ReturnValue) logic.getCountry();
		if (returnValue.isError()) {
			if (returnValue.isBussinessError()) {
				this.setMessage(returnValue.getMessageList());
			}
			// getErrorCode, getErrorMessage proc
		} else {
			getCountry = (Map) returnValue.getDataValue();
			thisForm.setCountryCodeValue((ArrayList) getCountry.get(COUNTRY_CODE));
			thisForm.setCountryLabelValue((ArrayList) getCountry.get(COUNTRY_NAME));
		}

		//Subs
		returnValue = (ReturnValue) logic.getSubsidiary();
		if (returnValue.isError()) {
			if (returnValue.isBussinessError()) {
				this.setMessage(returnValue.getMessageList());
			}
			// getErrorCode, getErrorMessage proc
		} else {
			getSubsidiary = (Map) returnValue.getDataValue();
			thisForm.setSubsidiaryCodeValue((ArrayList) getSubsidiary.get(SUBSIDIARY_CODE));
			thisForm.setSubsidiaryLabelValue((ArrayList) getSubsidiary.get(SUBSIDIARY_NAME));
		}

		//Currency
		returnValue = (ReturnValue) logic.getCurrency();
		if (returnValue.isError()) {
			if (returnValue.isBussinessError()) {
				this.setMessage(returnValue.getMessageList());
			}
			// getErrorCode, getErrorMessage proc
		} else {
			getCurrency = (Map) returnValue.getDataValue();
			thisForm.setCurrencyCodeValue((ArrayList) getCurrency.get(CURRENCY_CODE));
			thisForm.setCurrencyLabelValue((ArrayList) getCurrency.get(CURRENCY_LABEL));

		}
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久人人超碰精品| 一区二区三区视频在线看| 欧美国产日韩一二三区| 亚洲国产成人av网| 97se亚洲国产综合自在线观| 欧美日韩情趣电影| 国产精品免费久久久久| 国内成人精品2018免费看| 欧美日韩亚洲综合在线 | 色女孩综合影院| 国产喂奶挤奶一区二区三区| 免费成人性网站| 欧美精选在线播放| 亚洲自拍偷拍图区| 色噜噜狠狠色综合中国| 国产精品萝li| 欧美网站大全在线观看| 一区二区三区中文免费| 在线播放中文一区| 国产麻豆精品theporn| 欧美精品一区二区不卡| 亚洲黄色尤物视频| 91麻豆国产在线观看| 18成人在线视频| 国产91精品露脸国语对白| 日本一区二区三区免费乱视频 | 国产香蕉久久精品综合网| www.av亚洲| 日韩毛片高清在线播放| 色偷偷88欧美精品久久久 | 国产成人午夜电影网| 国产情人综合久久777777| 色8久久精品久久久久久蜜| 久久av老司机精品网站导航| 精品粉嫩超白一线天av| 在线看国产一区二区| 午夜久久久久久久久| 91精品国产乱| 国产精品一区二区不卡| 中文字幕乱码日本亚洲一区二区 | 成人av在线影院| 中文字幕五月欧美| 日韩欧美专区在线| 国产麻豆日韩欧美久久| 婷婷久久综合九色国产成人| 日韩一区日韩二区| 久久久亚洲欧洲日产国码αv| 欧美日韩视频第一区| 色婷婷久久一区二区三区麻豆| 国产麻豆精品在线| 久久国产精品无码网站| 午夜久久久久久久久久一区二区| 国产精品久线在线观看| 欧美主播一区二区三区美女| 风间由美一区二区av101| 美女国产一区二区三区| 国产精品久久福利| 日韩精品一区二区在线观看| 成人av免费在线观看| 蜜桃视频在线一区| 天天操天天干天天综合网| 亚洲视频你懂的| 亚洲视频免费在线观看| 国产精品久久久久久久久久久免费看 | 欧美视频中文字幕| 91视视频在线观看入口直接观看www | 日韩欧美一区二区免费| 欧美乱妇20p| 欧洲一区在线电影| 欧美性大战xxxxx久久久| 色综合久久88色综合天天6| 成人av资源站| 成人福利视频在线| 成人免费高清在线| 日韩电影在线看| 中文字幕一区二区日韩精品绯色| 久久夜色精品国产噜噜av| 精品少妇一区二区三区| 欧美亚洲一区三区| 欧美吞精做爰啪啪高潮| 一区二区在线观看视频| 免费成人av资源网| www精品美女久久久tv| 精品国产百合女同互慰| 欧美精品一区二区久久久| 精品久久免费看| 久久久精品影视| 中文字幕亚洲欧美在线不卡| 18成人在线观看| 亚洲图片欧美色图| 免费看精品久久片| 国产精品一品视频| 91理论电影在线观看| 在线视频你懂得一区| 制服丝袜av成人在线看| 99国产精品国产精品毛片| 色综合天天综合给合国产| 国产a久久麻豆| 成人av免费观看| 欧美亚洲综合一区| 精品国产一区二区三区不卡| 国产欧美日韩另类视频免费观看 | 91久久精品国产91性色tv| 欧美日韩精品福利| 欧美色综合天天久久综合精品| 欧美日韩国产小视频| 欧美α欧美αv大片| 中文一区二区在线观看| 亚洲一区二区三区国产| 国内成人免费视频| 色系网站成人免费| 日韩一区二区免费在线电影| 欧美激情一区二区三区四区| 亚洲成人激情社区| 午夜视频在线观看一区二区| 精品一区二区精品| 极品少妇xxxx精品少妇偷拍| 97久久精品人人爽人人爽蜜臀| 69精品人人人人| 国产精品毛片a∨一区二区三区| 午夜精品福利一区二区三区蜜桃| 国产高清不卡一区二区| 欧美性xxxxxx少妇| 欧美国产丝袜视频| 日本欧美久久久久免费播放网| av亚洲产国偷v产偷v自拍| 欧美电影免费观看完整版| 亚洲免费在线视频一区 二区| 亚洲国产一二三| 国产成人免费av在线| 91麻豆精品国产无毒不卡在线观看 | 亚洲欧美另类小说视频| 国产在线视频一区二区三区| 欧美三级视频在线观看| 国产精品久久久久久久久快鸭 | 久久精品国产99国产| 色噜噜狠狠一区二区三区果冻| 久久久天堂av| 久久精品国产久精国产爱| 欧美在线观看一区二区| 国产精品国产三级国产aⅴ原创| 久久精品国产一区二区| 欧美日本国产视频| 亚洲视频一区二区在线观看| 国产99久久久精品| 日韩精品最新网址| 琪琪一区二区三区| 欧美日韩精品欧美日韩精品一 | 亚洲精选视频在线| 高清视频一区二区| 久久嫩草精品久久久久| 久久99久久久久| 欧美一区二区三区免费观看视频 | 久久66热偷产精品| 666欧美在线视频| 亚洲第一狼人社区| 欧美日韩一区二区三区高清| 亚洲免费观看高清完整| 色欲综合视频天天天| 亚洲日本护士毛茸茸| 91香蕉视频mp4| 亚洲狠狠丁香婷婷综合久久久| 99国内精品久久| 亚洲精品欧美专区| 欧美中文字幕不卡| 一区二区三区成人| 欧美日韩精品一区视频| 天使萌一区二区三区免费观看| 国产精品一区免费视频| 精品粉嫩超白一线天av| 国产在线精品一区在线观看麻豆| 久久嫩草精品久久久精品| 国产成人av一区二区| 中文字幕免费观看一区| av不卡免费电影| 亚洲综合激情另类小说区| 日本乱码高清不卡字幕| 亚洲va欧美va国产va天堂影院| 日韩一区二区影院| 精品一区二区三区av| 国产精品人人做人人爽人人添| 99这里只有精品| 亚洲一区二区三区视频在线| 欧美一区二区三区四区在线观看| 激情亚洲综合在线| 欧美国产日韩亚洲一区| 一本一本大道香蕉久在线精品 | 亚洲色图在线播放| 欧美性色黄大片| 日韩av网站免费在线| 久久精品免费在线观看| 99re成人在线| 天堂久久一区二区三区| 久久精品免费在线观看| 91九色02白丝porn| 麻豆freexxxx性91精品| 国产精品理论在线观看| 欧美日韩电影一区| 国产原创一区二区| 综合久久久久久|