⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gbs_memberlistaction.java

📁 对日软件外包 为东芝做的一个全球商业管理系统
💻 JAVA
字号:
package ACTION;

/** 
 * method GBS_MemberListAction.java
 * created on 08-02-2004
 * @author   XUSHENG
 * @version  1.0
 */
import java.util.ArrayList;
import java.util.HashMap;

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 COMMON.BaseDispatchAction;
import COMMON.MessageList;
import COMMON.ReturnValue;
import COMMON.SystemConstants;
import LOGIC.GBS_MemberListActionLogic;

public class GBS_MemberListAction extends BaseDispatchAction implements SystemConstants {

	/**
	 * init page   member ArrayList data
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return
	 * @throws Exception
	 */
	public ActionForward init(
		ActionMapping mapping,
		ActionForm form,
		HttpServletRequest request,
		HttpServletResponse response)
		throws Exception {
		log.info("[location info]GBS_MemberListAction.init method!");
		GBS_MemberListForm thisForm = (GBS_MemberListForm) form;

		//get login user info from session
		this.setUserInfoFromSession(request, thisForm);
		ReturnValue returnValue = new ReturnValue();
		MessageList errorMsg = new MessageList();
		//get memberList date.
		GBS_MemberListActionLogic logic =
			new GBS_MemberListActionLogic(this.getDataSource(request));
		returnValue = logic.getMembers(thisForm.getLoginAdminAuthority(),thisForm.getLoginUserId());
		if (returnValue.isError()) {
			if (returnValue.isBussinessError()) {
				this.setMessage(returnValue.getMessageList());
			}
			return (mapping.findForward(nextview));
		} else {
			HashMap map = (HashMap) returnValue.getDataValue();
			thisForm.setMemberCommittee((ArrayList) map.get(MENBER_COMMITTEE));
			thisForm.setMemberSupport((ArrayList) map.get(MENBER_SUPPORT));
			thisForm.setMemberOperation((ArrayList) map.get(MENBER_OPERATION));
			thisForm.setMemberLocal((ArrayList) map.get(MENBER_LOCAL));
			thisForm.setMemberSubsidiary((ArrayList) map.get(MEMBER_SUBSIDIARY));
			return (mapping.findForward(nextview));
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -