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

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

?? gbs_presentationsubaction.java

?? 對日軟件外包 為東芝做的一個全球商業管理系統
?? JAVA
字號:

package ACTION;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;

import COMMON.BaseCommonCheck;
import COMMON.BaseDispatchAction;
import COMMON.MessageList;
import COMMON.ReturnValue;
import COMMON.SystemConstants;
import DataBean.GBS_Presentation_stBean;
import LOGIC.GBS_PresentationsubActionLogic;


/**
 * GBS_PresentationsubAction	extends BaseDispatchAction implements SystemConstants
 * created on 11-08-2004
 * @author mxx
 * @version  1.0
 */

public class GBS_PresentationsubAction	extends BaseDispatchAction
										implements SystemConstants {
/**
 * method init 
 * @param mapping
 * @param form
 * @param request
 * @param response
 * @return
 * @throws Exception
 */	
public ActionForward init( ActionMapping mapping, 
						   ActionForm form,
						   HttpServletRequest request,
						   HttpServletResponse response)
	throws Exception {
		GBS_PresentationsubForm 	thisForm = (GBS_PresentationsubForm) form;
//	get login user info from session
	this.setUserInfoFromSession( request, thisForm);   	

	GBS_PresentationsubActionLogic logic = new GBS_PresentationsubActionLogic(this.getDataSource(request));
	ReturnValue returnValue = new ReturnValue();
	//MessageList errorMsg = new MessageList();
	GBS_Presentation_stBean Presentation_st = new GBS_Presentation_stBean();
	String customerId = thisForm.getCustomerId();
	String rfpNo = thisForm.getRfpNo();
	String lineNo = thisForm.getLineNo();
	String fileName;
	
	if(lineNo.equals("")){
		thisForm.setMethod("insert");						
	}else{
		returnValue = logic.getPresentationByKey(customerId,rfpNo,lineNo);
		//errorMsg = returnValue.getMessageList();		
		if ( returnValue.isError()){
			if(returnValue.isBussinessError()){
				this.setMessage( returnValue.getMessageList() );
				//return (mapping.findForward(nextview));	
			}				
		}
		Presentation_st = (GBS_Presentation_stBean) returnValue.getDataValue();
		thisForm.setCustomerId(Presentation_st.getCustomerId());
		thisForm.setRfpNo(Presentation_st.getRfpNo());
		thisForm.setLineNo(Presentation_st.getLineNo());
		thisForm.setTitle(Presentation_st.getTitle());
		thisForm.setPresentationDate(Presentation_st.getPresentationDate());
		thisForm.setPresentationBy(Presentation_st.getPresentationBy());
		thisForm.setListener(Presentation_st.getListener());
		thisForm.setAttachmentfilename(Presentation_st.getAttachmentFileName());
		thisForm.setDelFlag("off");
		thisForm.setMethod("update");					
	}
	//	
	return (mapping.findForward(nextview));		
}


/**method insert
 * @param mapping
 * @param form
 * @param request
 * @param response
 * @return
 * @throws Exception
 */
public ActionForward insert(
	ActionMapping mapping,
	ActionForm form,
	HttpServletRequest request,
	HttpServletResponse response)
	throws Exception {
	GBS_PresentationsubForm thisForm = (GBS_PresentationsubForm) form;

	//get login user info from session
	this.setUserInfoFromSession(request, thisForm);

	GBS_PresentationsubActionLogic logic = new GBS_PresentationsubActionLogic(this.getDataSource(request));
	//MessageList errorMsg = new MessageList();
	String strCustomerId = thisForm.getCustomerId();
	String strRfpNo = thisForm.getRfpNo();
	String strLineNo = thisForm.getLineNo();
	String strTitle = thisForm.getTitle();
	String strPresentationBy = thisForm.getPresentationBy();
	String strPresentationDate = BaseCommonCheck.convertDateToYYYYMMDD(thisForm.getPresentationDate());
	String strListener = thisForm.getListener();
	String strCreateUser = thisForm.getLoginUserId();
	String flag = thisForm.getDelFlag();

	//input check
	MessageList errorMsg = new MessageList();
	errorMsg = inputCheck(thisForm, request);
	if (errorMsg.size() > 0) {
		//save error to request
		this.setMessage(errorMsg);
		return (mapping.findForward(nextview));
	}

	//insert a new record into Presentation
	ReturnValue returnValue =
		logic.insertPresentation(
			strCustomerId,
			strRfpNo,
			strListener,
			strTitle,
			strPresentationDate,
			strPresentationBy,
			strCreateUser,
			thisForm.getAttachmentFile());
	if (returnValue.isError()) {
		if (returnValue.isBussinessError()) {
			this.setMessage(returnValue.getMessageList());
			//return (mapping.findForward(nextview));		
		}
	}
	int iLineNo = ((Integer) returnValue.getDataValue()).intValue();
	if (iLineNo > 0) {
		strLineNo = String.valueOf(iLineNo);
	}
	// forward to sucess 

	thisForm.setMethod("close");
	return (mapping.findForward(nextview));
}




/**
 * method update
 * @param mapping
 * @param form
 * @param request
 * @param response
 * @return
 * @throws Exception
 */		
	public ActionForward update( ActionMapping mapping, 
								 ActionForm form,
								 HttpServletRequest request,
								 HttpServletResponse response)
			throws Exception {
				GBS_PresentationsubForm thisForm = (GBS_PresentationsubForm) form;
				
				//get login user info from session
				this.setUserInfoFromSession( request, thisForm);
				
				//MessageList errorMsg = new MessageList();
				ReturnValue	returnValue = new ReturnValue();
				GBS_PresentationsubActionLogic logic = new GBS_PresentationsubActionLogic(
								this.getDataSource(request));	
				String strCustomerId = thisForm.getCustomerId();
				String strRfpNo = thisForm.getRfpNo();
				String strLineNo = thisForm.getLineNo();
				String strTitle = thisForm.getTitle();
				String strPresentationDate = BaseCommonCheck.convertDateToYYYYMMDD(thisForm.getPresentationDate());
				String strPresentationBy = thisForm.getPresentationBy();
				String strListener = thisForm.getListener();
				String strUpdateUser = thisForm.getLoginUserId();
				String flag = thisForm.getDelFlag();
				FormFile AttachmentFile = thisForm.getAttachmentFile();		
				boolean FileDelete = false;	
				
				//input check
				MessageList errorMsg = new MessageList();
				errorMsg = inputCheck(thisForm, request);
				if (errorMsg.size() > 0) {
					//save error to request
					this.setMessage( errorMsg );
					return (mapping.findForward(nextview));
				}					
								
				//update Presentation					
				//if the flag=1,then delete the AttachmentFile
					if(flag.equals("on")){
						FileDelete = true;
					}
				returnValue = logic.updatePresentation(	strCustomerId,
												strRfpNo,
												strLineNo,
												strTitle,
												strPresentationDate,
												strPresentationBy,
												strListener,
												strUpdateUser,
												thisForm.getAttachmentFile(),
												FileDelete );				
				if ( returnValue.isError()){
					if( returnValue.isBussinessError() ){
						this.setMessage( returnValue.getMessageList() );
						//return (mapping.findForward(nextview));		
					}					
				}
				int iLineNo = ((Integer) returnValue.getDataValue()).intValue();
				if ( iLineNo > 0 ){
					strLineNo = String.valueOf(iLineNo);
				}
				// forward to sucess 

				thisForm.setMethod("close");
				return (mapping.findForward(nextview));		
		}

/**
 * method delete
 * @param mapping
 * @param form
 * @param request
 * @param response
 * @return
 * @throws Exception
 */			
	public ActionForward delete( ActionMapping mapping, 
								 ActionForm form,
								 HttpServletRequest request,
								 HttpServletResponse response)
			throws Exception {
			GBS_PresentationsubForm thisForm = (GBS_PresentationsubForm) form;
//			get login user info from session
			this.setUserInfoFromSession( request, thisForm);
			   	
			//MessageList errorMsg = new MessageList();
			ReturnValue	returnValue = new ReturnValue();
			GBS_PresentationsubActionLogic logic = new GBS_PresentationsubActionLogic(
													this.getDataSource(request));
			String strCustomerId = thisForm.getCustomerId();
			String strRfpNo = thisForm.getRfpNo();
			String strLineNo = thisForm.getLineNo();
			returnValue = logic.deletePresentation(strCustomerId,strRfpNo,strLineNo);
			
			thisForm.setMethod("close");
			return (mapping.findForward(nextview));		
		}

/**
 * method inputCheck
 * @param requestForm GBS_PresentationsubForm
 * @param request HttpServletRequest
 * @throws Exception
 * @return ErrorMessages
 */
		private MessageList inputCheck(GBS_PresentationsubForm requestForm,
										HttpServletRequest request) throws Exception {
		//create ErrorMessages to display error message
		MessageList messages = new MessageList();
		String presentationDate = requestForm.getPresentationDate();
		FormFile AttachmentFile = requestForm.getAttachmentFile();		
		if (BaseCommonCheck.isEmpty(requestForm.getTitle())) {
			messages.setMessage("title", requestForm.getTitle(), "10000009", Integer.MIN_VALUE,
			new Object[]{ "Title" }, "Title");
		}
		
		//Presentation Date check
		if ((!presentationDate.equals(""))&&(!BaseCommonCheck.isDateType(presentationDate))) {
			messages.setMessage("presentationDate", requestForm.getPresentationDate(), "90000025", Integer.MIN_VALUE,
			new Object[]{ "Presentation Date" }, "Presentation Date");
		}
		
		//check the file
		//if(requestForm.getDelFlag().equals("off")){
		if((AttachmentFile != null && !AttachmentFile.getFileName().equals("")) && AttachmentFile.getFileSize()==0){
			//update by YM 20040823 start
			//this.setMessage( "attachmentFile", null, "10000012", Integer.MIN_VALUE,
			//new Object[]{ "AttachmentFile" }, "AttachmentFile");
			messages.setMessage( "attachmentFile", null, "10000012", Integer.MIN_VALUE,
			new Object[]{ "AttachmentFile" }, "AttachmentFile");
			//update by YM 20040823 end
		}
		//}
		//AttachmentFile's name check
		if(AttachmentFile != null && AttachmentFile.getFileName().length() > 100){
			messages.setMessage("","", "10000018", Integer.MIN_VALUE);
		}
		return messages;
		}													

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产夜色精品一区二区av| 亚洲成av人片| 亚洲精品在线电影| 亚洲精品免费在线观看| 在线观看一区不卡| 日韩电影在线一区| 日韩亚洲欧美一区| 国产99久久久国产精品潘金网站| 国产日韩欧美高清| 色呦呦一区二区三区| 亚洲亚洲人成综合网络| 日韩欧美国产麻豆| 成人激情校园春色| 亚洲高清视频的网址| 日韩三级视频在线观看| 国产**成人网毛片九色 | 欧美久久高跟鞋激| 美美哒免费高清在线观看视频一区二区| 欧美一区二区三区在线观看视频| 精品无人区卡一卡二卡三乱码免费卡 | 欧美精品一级二级| 国内成人免费视频| 国产精品久久久久久久岛一牛影视| 91色|porny| 美腿丝袜亚洲一区| 亚洲欧美另类在线| 日韩欧美电影在线| 91啪在线观看| 精品一区二区免费看| 亚洲色图制服丝袜| 日韩精品一区二区三区视频播放| 成人av网在线| 裸体歌舞表演一区二区| 亚洲男人的天堂av| 久久久99精品免费观看不卡| 在线免费不卡视频| 成人小视频免费观看| 麻豆久久久久久久| 亚洲最新在线观看| 国产精品免费久久| 日韩欧美aaaaaa| 欧美日韩高清在线| 色欧美片视频在线观看| 成人免费视频免费观看| 免费三级欧美电影| 五月天欧美精品| 亚洲丝袜制服诱惑| 国产精品区一区二区三| 精品国产免费人成在线观看| 欧美片网站yy| 欧美性猛交xxxxxxxx| 成人精品一区二区三区中文字幕| 蜜桃视频在线观看一区二区| 亚洲福利一区二区三区| 综合中文字幕亚洲| 中文字幕一区二区三区在线播放| 欧美成人女星排名| 欧美一级视频精品观看| 欧美三级日本三级少妇99| 色狠狠av一区二区三区| 91同城在线观看| hitomi一区二区三区精品| 国产综合久久久久影院| 蜜桃视频在线观看一区| 日本aⅴ亚洲精品中文乱码| 亚洲国产wwwccc36天堂| 亚洲一区二区在线免费看| 一区二区三区免费网站| 伊人色综合久久天天| 亚洲欧美一区二区三区极速播放 | 亚洲国产精品久久人人爱蜜臀| 综合av第一页| 亚洲人成在线观看一区二区| 国产精品久久久久aaaa| 国产精品区一区二区三区| 国产精品久久久久精k8| 中文字幕在线观看不卡视频| 国产精品每日更新在线播放网址| 中文字幕一区二区三| 亚洲免费看黄网站| 亚洲成人综合网站| 蜜桃精品视频在线| 国产精品一区免费在线观看| 国产精品99久| 成人av免费网站| 日本道精品一区二区三区| 欧美体内she精视频| 欧美日韩精品福利| 欧美一区二区三区不卡| 精品处破学生在线二十三| 久久久99久久| 一区二区三区小说| 日韩国产欧美在线播放| 国产一区视频导航| 不卡视频一二三四| 欧美日韩在线精品一区二区三区激情| 欧美精品tushy高清| 精品国产91洋老外米糕| 国产精品久久久久天堂| 亚洲午夜久久久久久久久久久| 日韩精品每日更新| 国产99久久久国产精品潘金| 欧美在线视频全部完| 欧美一区二区私人影院日本| 国产亚洲欧美日韩在线一区| 一区二区在线观看不卡| 日本人妖一区二区| 成人av在线观| 欧美一三区三区四区免费在线看| 久久嫩草精品久久久精品一| 亚洲日本va午夜在线电影| 日韩在线一二三区| 丁香天五香天堂综合| 欧美日韩在线三区| 日本一区二区久久| 日韩精彩视频在线观看| 成人午夜伦理影院| 91麻豆精品91久久久久同性| 久久久精品免费网站| 亚洲国产wwwccc36天堂| 国产成人精品一区二| 欧美巨大另类极品videosbest | 欧美精品一区二区三区四区 | 亚洲国产成人午夜在线一区| 性感美女极品91精品| 国产白丝网站精品污在线入口| 欧美日韩午夜在线| 国产精品麻豆久久久| 日本欧美久久久久免费播放网| 大尺度一区二区| 69久久99精品久久久久婷婷| 中文字幕精品一区| 美女任你摸久久| 在线观看一区不卡| 国产精品拍天天在线| 久久国内精品视频| 欧美三级电影一区| 亚洲素人一区二区| 成人性视频免费网站| 精品乱人伦一区二区三区| 亚洲一二三级电影| 在线免费一区三区| 中文字幕视频一区| 国产电影一区在线| 久久午夜色播影院免费高清| 日本女优在线视频一区二区| 欧美影院午夜播放| 亚洲欧美一区二区视频| 国产成人午夜电影网| 欧美videos大乳护士334| 日韩电影免费在线看| 欧美日韩久久不卡| 亚洲国产一区二区视频| 91国模大尺度私拍在线视频| 国产精品福利影院| aaa亚洲精品一二三区| 中文字幕av一区二区三区 | 成人高清免费在线播放| 国产亚洲综合性久久久影院| 激情图区综合网| 精品免费日韩av| 紧缚捆绑精品一区二区| 欧美精品一区二区在线观看| 黄一区二区三区| 久久久久青草大香线综合精品| 美女网站色91| 欧美精品一区二区高清在线观看 | 波多野结衣视频一区| 国产精品天美传媒| 国产69精品一区二区亚洲孕妇| 国产亚洲综合色| 岛国av在线一区| 亚洲日本电影在线| 欧美唯美清纯偷拍| 日韩精品电影在线| 精品国产乱码久久久久久久久| 精品综合免费视频观看| 久久夜色精品国产噜噜av| 成人看片黄a免费看在线| 亚洲精品久久久蜜桃| 欧美挠脚心视频网站| 蜜臀av性久久久久蜜臀aⅴ | 蜜臀久久99精品久久久久久9 | 欧美无砖砖区免费| 日本中文字幕一区| 久久久久久免费网| fc2成人免费人成在线观看播放| 国产精品二三区| 欧美熟乱第一页| 精品在线播放免费| 国产精品色在线| 欧美无人高清视频在线观看| 久久精品国产**网站演员| 国产欧美日韩中文久久| 色吧成人激情小说| 裸体一区二区三区| 国产精品久久久久一区二区三区共| 在线亚洲+欧美+日本专区| 热久久国产精品| 中文字幕一区二区三区在线播放 |