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

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

?? customeraction.java

?? 基于Sturts+Spring+Hibernate的一個高級銷售管理系統。內容豐富
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
			forward = "userLogin";
		}
		return mapping.findForward(forward);
	}

	/**
	 * 顯示客戶的詳細;
	 * 
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return
	 * @throws ApplicationException
	 */
	public ActionForward showDetail(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws ApplicationException {
		String id = request.getParameter("id");
		Customer customer = customerMgr.getCustomerById(Integer.parseInt(id));
		CustomerForm customerForm = new CustomerForm();
		try {
			BeanUtils.copyProperties(customerForm, customer);
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		} catch (InvocationTargetException e) {
			e.printStackTrace();
		}
		request.setAttribute("customer", customerForm);
		return mapping.findForward("customerDetail");
	}

	/**
	 * 顯示出被凍結的客戶;
	 * 
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return
	 * @throws ApplicationException
	 */
	public ActionForward listDeleteData(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws ApplicationException {
		User user = SessionMgr.getCustSession(request);

		String forward = "listDeleteData";
		List<CustomerVo> customers = null;
		customers = customerMgr.getCustomerByDelete();
		System.out.println("一共有幾個選項:" + customers.size());
		String currentPage = request.getParameter("currentPage");
		XPage xpage = new XPage(request.getContextPath()
				+ "/customer.do?method=listDeleteData", customers.size(), 1, 8,
				customers);
		if (currentPage != null && !currentPage.equals("")) {
			xpage.setCurrentItems(Integer.parseInt(currentPage));
		} else {
			xpage.setCurrentItems(1);
		}
		xpage.setPageBar();
		request.setAttribute("xpage", xpage);
		return mapping.findForward(forward);
	}

	// ------------------------------------更新后------------------------------------//

	/**
	 * 
	 * 搜索客戶相關項
	 * 
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return
	 * @throws ApplicationException拋出應用異常
	 */
	public ActionForward correlation(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws ApplicationException {
		CustomerForm cForm = (CustomerForm) form;
		// String customerId = request.getParameter("customerId");
		String customerId = cForm.getCustomerId();
		String forward = "customerCorrelation";// 跳轉到客戶相關項

		if (!StringTool.isNotBlank(customerId)) { // 若傳入的參數為空
			throw new IllegalParameterException(
					Constants.ILLEALPARAMGOGALEXCEPTION);
		}

		try {
			// 搜索出相應客戶
			Customer customer = customerMgr.getCustomerById(Integer
					.parseInt(customerId));
			CustomerVo customerVo = new CustomerVo();
			BeanUtils.copyProperties(customerVo, customer);
			// 2009-02-24 add
			if (cForm.getDelRights() == null || cForm.getModifyRights() == null
					|| "".equals(cForm.getDelRights())
					|| "".equals(cForm.getModifyRights())) {
				//查找
				User user = SessionMgr.getCustSession(request);
				Rights rights = SessionMgr.getJspRightsControl(request)
						.get("1").getRightsMap().get("104");
				String userIds = authorizationMgr.findUserDataRange(rights
						.getId(), user);
				if (!authorizationMgr.isRights(user.getId(), userIds)) {
					return mapping.findForward("noRights");
				} else {
					// 刪除(數據范圍)
					Rights delRights = SessionMgr.getJspRightsControl(request).get("1")
							.getRightsMap().get("103");
					String delUserIds = authorizationMgr.findUserDataRange(delRights
							.getId(), user);
					logger.debug("delUserIds : " + delUserIds);
					// 修改(數據范圍)
					Rights modifyRights = SessionMgr.getJspRightsControl(request).get("1")
							.getRightsMap().get("102");
					String modifyUserIds = authorizationMgr.findUserDataRange(modifyRights
							.getId(), user);
					if(authorizationMgr.isRights(user.getId(), delUserIds)){
						customerVo.setDelRights("y");
					}
					if(authorizationMgr.isRights(user.getId(), modifyUserIds)){
						customerVo.setModifyRights("y");
					}
				}
			} else {
				customerVo.setDelRights(cForm.getDelRights());
				customerVo.setModifyRights(cForm.getModifyRights());
			}
			// end
			request.setAttribute("customerVo", customerVo);

			// 根據修改人的ID查找上次修改人
			User modifyMan = customerMgr.getCustomerDao().getUserById(
					customerVo.getModifyManId());
			request.setAttribute("modifyUser", new UserVo(modifyMan.getId(),
					modifyMan.getFamilyName()));

			// 搜索相關聯系人
			List contacts = relationManage.getEntities(
					ClassCodeMgr.CUSTOMER_CONTACTINT, ClassCodeMgr.CUSTOMERINT,
					Integer.parseInt(customerId));
			List<ContactVo> contactVoList = relationManage
					.contactsToContactVos(contacts);
			request.setAttribute("contacts", contactVoList);
			request.setAttribute("contactSize", contactVoList.size());

			// 搜索業務機會
			List busiOpports = relationManage.getEntities(
					ClassCodeMgr.BUSINESS_OPPORTINT, ClassCodeMgr.CUSTOMERINT,
					Integer.parseInt(customerId));
			List<BusinessOpportunityVo> busiOpportList = relationManage
					.busiOpportToBusiOpportVos(busiOpports);
			request.setAttribute("busiOpports", busiOpportList);
			request.setAttribute("busiOpportSize", busiOpportList.size());
			logger.debug("業務機會。。。");

			// 搜索未處理的任務
			List<ActivityTaskVo> imCompletedRasks = relationManage
					.getActivityRasksByRelation(
							CorrelationConstant.CUSTOMERRELATION, Integer
									.parseInt(customerId), 1);
			request.setAttribute("imCompletedRasks", imCompletedRasks);
			request
					.setAttribute("imCompletedRaskSize", imCompletedRasks
							.size());
			logger.debug("未處理的任務。。。" + imCompletedRasks);

			// 搜索未處理的事件
			List<EventVo> imCompletedEvents = relationManage
					.getEventByRelation(CorrelationConstant.CUSTOMERRELATION,
							Integer.parseInt(customerId), true);
			request.setAttribute("imCompletedEvents", imCompletedEvents);
			request.setAttribute("imCompletedEventSize", imCompletedEvents
					.size());
			logger.debug("未處理的事件。。。" + imCompletedEvents);

			// 搜索任務歷史---已經完成的任務
			List<ActivityTaskVo> completedRasks = relationManage
					.getActivityRasksByRelation(
							CorrelationConstant.CUSTOMERRELATION, Integer
									.parseInt(customerId),
							Constants.RASKEXECUTEED);
			request.setAttribute("completedRasks", completedRasks);
			request.setAttribute("completedRaskSize", completedRasks.size());
			logger.debug("已處理的任務。。。" + completedRasks);

			// 搜索歷史事件----過期事件
			List<EventVo> completedEvents = relationManage.getEventByRelation(
					CorrelationConstant.CUSTOMERRELATION, Integer
							.parseInt(customerId), false);
			request.setAttribute("completedEvents", completedEvents);
			request.setAttribute("completedEventSize", completedEvents.size());
			logger.debug("已過期的事件。。。" + completedEvents);
		} catch (Exception e) {
			e.printStackTrace();
			throw new ApplicationException(Constants.WITHOUTDATA);
		}
		return mapping.findForward(forward);
	}

	public CustomerMgr getCustomerMgr() {
		return customerMgr;
	}

	/**
	 * 創建聯系人
	 * 
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return
	 * @throws ApplicationException
	 */
	public ActionForward createContact(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws ApplicationException {
		String customerId = request.getParameter("customerId");

		if (!StringTool.isNotBlank(customerId)) { // 若傳入的參數為空
			throw new IllegalParameterException(
					Constants.ILLEALPARAMGOGALEXCEPTION);
		}
		try {
			// 搜索出相應客戶
			Customer c = customerMgr.getCustomerById(Integer
					.parseInt(customerId));
			request.setAttribute("customerVo", new CustomerVo(c.getId(), c
					.getCustomerName()));

		} catch (Exception e) {
			e.printStackTrace();
			throw new ApplicationException(Constants.WITHOUTDATA);
		}
		return mapping.findForward("newContact");
	}

	/**
	 * 新建任務
	 * 
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return
	 * @throws ApplicationException
	 *             2008-11-07 by 張明強 copied liu's
	 */
	public ActionForward createNewTask(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws ApplicationException {
		String customerId = request.getParameter("customerId");
		logger.error("參數為。。。" + customerId);
		if (!StringTool.isNotBlank(customerId)) {
			logger.debug("the param you input is illegal");
			request.setAttribute(Constants.ERRMSG, Constants.INPUTBANK);
			throw new IllegalParameterException(
					"the param you input is illegal");
		}
		try {
			Customer customer = customerMgr.getCustomerById(Integer
					.parseInt(customerId));
			logger.error("有到這里嗎。。。" + customer);
			request.setAttribute("CorrelationVo", new CorrelationVo(customer
					.getId(), customer.getCustomerName()));

			// 保存客戶相關項編碼
			request.setAttribute("customerRelation",
					CorrelationConstant.CUSTOMERRELATION);

			ConfigMgr configMgr = ConfigMgr.getInstance();// 取出相關項類;
			Map<String, String> correlationsMap = configMgr
					.getAllCorrelations();// 獲取相關項對應的鍵值對;
			if (correlationsMap != null && correlationsMap.size() > 0) {

				request.setAttribute("correlationsMap", correlationsMap);// 把鍵值對存放到request范圍內;
			}
		} catch (Exception e) {
			request.setAttribute(Constants.ERRMSG, Constants.WITHOUTDATA);
			throw new IllegalParameterException(
					"the param you input is illegal");
		}
		return mapping.findForward("toAddTask");// 轉發到添加任務活動的頁面;
	}

	/**
	 * 新建事件
	 * 
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return
	 * @throws ApplicationException
	 *             2008-11-07 by 張明強 copied liu's
	 */
	public ActionForward createNewEvent(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws ApplicationException {
		String customerId = request.getParameter("customerId");
		logger.error("參數為。。。" + customerId);
		if (!StringTool.isNotBlank(customerId)) {
			logger.debug("the param you input is illegal");
			request.setAttribute(Constants.ERRMSG, Constants.INPUTBANK);
			throw new IllegalParameterException(
					"the param you input is illegal");
		}
		try {
			Customer customer = customerMgr.getCustomerById(Integer
					.parseInt(customerId));
			logger.error("有到這里嗎。。。" + customer);
			request.setAttribute("CorrelationVo", new CorrelationVo(customer
					.getId(), customer.getCustomerName()));

			// 保存客戶相關項編碼
			request.setAttribute("customerRelation",
					CorrelationConstant.CUSTOMERRELATION);

			ConfigMgr configMgr = ConfigMgr.getInstance();// 取出相關項類;
			Map<String, String> correlationsMap = configMgr
					.getAllCorrelations();// 獲取相關項對應的鍵值對;
			if (correlationsMap != null && correlationsMap.size() > 0) {
				request.setAttribute("correlationsMap", correlationsMap);// 把鍵值對存放到request范圍內;
			}
		} catch (Exception e) {
			request.setAttribute(Constants.ERRMSG, Constants.WITHOUTDATA);
			throw new IllegalParameterException(
					"the param you input is illegal");
		}
		return mapping.findForward("toAddEvent");// 轉發到添加任務活動的頁面;
	}

	/**
	 * 新建業務機會
	 * 
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return
	 * @throws ApplicationException
	 */
	public ActionForward newBusiOpport(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws ApplicationException {
		String customerId = request.getParameter("customerId");
		logger.error("參數為。。。" + customerId);
		if (!StringTool.isNotBlank(customerId)) {
			logger.debug("the param you input is illegal");
			request.setAttribute(Constants.ERRMSG, Constants.INPUTBANK);
			throw new IllegalParameterException(
					"the param you input is illegal");
		}
		try {
			Customer customer = customerMgr.getCustomerById(Integer
					.parseInt(customerId));
			logger.error("有到這里嗎。。。" + customer);
			request.setAttribute("customerVo", new CustomerVo(customer.getId(),
					customer.getCustomerName()));
		} catch (Exception e) {
			request.setAttribute(Constants.ERRMSG, Constants.WITHOUTDATA);
			throw new IllegalParameterException(
					"the param you input is illegal");
		}
		return new ActionForward("/busiOpport/newBusiOpport.jsp");// 防止重定向
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久国产综合精品| 在线精品国精品国产尤物884a| 免费视频最近日韩| 成人免费毛片片v| 欧美日韩综合色| 亚洲黄色av一区| 欧美一区二区三区免费大片 | 亚洲一区电影777| 综合久久国产九一剧情麻豆| 1000部国产精品成人观看| 国产精品久久久久久久久图文区 | 国产精品你懂的| 蜜臀av一区二区在线免费观看| 99re8在线精品视频免费播放| 26uuu国产电影一区二区| 亚洲国产一区二区三区| 99精品欧美一区二区三区综合在线| 欧美一级精品在线| 亚洲成av人片在线观看无码| aa级大片欧美| 国产精品久久久久毛片软件| 国产一区二区久久| 日韩欧美中文一区二区| 性做久久久久久免费观看| 在线免费观看日韩欧美| 亚洲色图制服诱惑| 97久久人人超碰| 亚洲欧美自拍偷拍色图| 99精品在线免费| 亚洲情趣在线观看| 91蜜桃免费观看视频| 最新国产成人在线观看| 99久久免费视频.com| 国产精品国产三级国产aⅴ无密码| 国产在线不卡一区| 久久久99久久| 懂色av一区二区三区蜜臀| 国产日产欧产精品推荐色| 国产精品一二三区在线| 国产视频一区在线观看| 成人伦理片在线| 亚洲色图在线播放| 欧美吻胸吃奶大尺度电影 | 91福利精品第一导航| 亚洲天堂免费在线观看视频| www..com久久爱| 亚洲男人天堂av网| 色噜噜狠狠一区二区三区果冻| 伊人性伊人情综合网| 欧美日韩国产高清一区| 免费日韩伦理电影| 国产偷国产偷亚洲高清人白洁| 国产黄人亚洲片| 亚洲免费观看在线观看| 欧美三区在线视频| 麻豆成人久久精品二区三区红| 精品少妇一区二区三区视频免付费| 在线观看亚洲精品视频| 亚洲国产精品一区二区www| 制服视频三区第一页精品| 蜜桃一区二区三区在线| 亚洲免费电影在线| 国产剧情一区二区三区| 欧美成人bangbros| 日本不卡高清视频| 色哟哟精品一区| 国产精品初高中害羞小美女文| 国产精品国模大尺度视频| 成人av电影在线| 日韩精品一区第一页| 久久久噜噜噜久久人人看| 在线亚洲高清视频| 黑人精品欧美一区二区蜜桃| 亚洲精品日产精品乱码不卡| 日韩视频在线一区二区| 色综合久久天天| 精品一区二区三区影院在线午夜| 国产精品色哟哟网站| 日韩一级黄色片| 99re8在线精品视频免费播放| 美女视频第一区二区三区免费观看网站| 国产欧美日产一区| 欧美高清激情brazzers| 成人av动漫网站| 国产一区二区三区| 亚洲成人综合网站| 国产精品成人一区二区艾草| 日韩三级精品电影久久久| 91小视频免费观看| 国产精品18久久久久久久久| 日本va欧美va欧美va精品| 亚洲欧美精品午睡沙发| 国产人妖乱国产精品人妖| 欧美一级一级性生活免费录像| 91丝袜高跟美女视频| 国产91精品一区二区| 久久99精品久久久久久国产越南| 亚洲伊人伊色伊影伊综合网 | 日韩女优视频免费观看| 在线亚洲+欧美+日本专区| 国产激情91久久精品导航| 日本少妇一区二区| 五月天亚洲婷婷| 亚洲午夜成aⅴ人片| 国产精品福利一区二区| 国产日韩精品一区二区浪潮av| 欧美大胆一级视频| 日韩一区二区三区四区| 7777精品伊人久久久大香线蕉超级流畅 | 亚洲色图20p| 欧美国产亚洲另类动漫| 久久久精品免费网站| 精品国产麻豆免费人成网站| 91精品麻豆日日躁夜夜躁| 制服丝袜国产精品| 欧美一区二区啪啪| 精品国产一区久久| 欧美精品一区二区精品网| 欧美不卡一二三| 亚洲视频一二三| 亚洲免费在线电影| 亚洲另类春色国产| 亚洲国产一二三| 日韩激情av在线| 一本一道久久a久久精品 | 日韩精品专区在线| 色综合久久久网| 丁香婷婷综合五月| 久久成人免费网| 一区二区国产视频| 97久久精品人人做人人爽| 色综合天天性综合| 欧美日韩精品高清| 日韩欧美三级在线| 中文字幕免费不卡| 亚洲精品水蜜桃| 日本在线播放一区二区三区| 老司机午夜精品99久久| 国产成a人亚洲| 色哟哟国产精品| 日韩无一区二区| 中文天堂在线一区| 亚洲永久精品国产| 黄色小说综合网站| 91免费在线视频观看| 欧美卡1卡2卡| 日本一区二区三区四区 | 国产欧美一区二区三区鸳鸯浴| 中文字幕日韩av资源站| 午夜欧美2019年伦理| 裸体歌舞表演一区二区| 成人午夜私人影院| 欧美三级乱人伦电影| 欧美xxxxx牲另类人与| 日韩毛片精品高清免费| 视频一区欧美精品| av成人动漫在线观看| 日韩一级片在线播放| 日韩码欧中文字| 免费成人在线观看视频| 91免费国产视频网站| 久久综合九色综合97_久久久| 国产精品国产三级国产aⅴ无密码| 婷婷激情综合网| 99这里只有久久精品视频| 欧美成人激情免费网| 一区二区三区在线高清| 粉嫩av一区二区三区| 欧美一级片在线观看| 又紧又大又爽精品一区二区| 国模冰冰炮一区二区| 精品视频在线免费看| 欧美国产成人精品| 久久疯狂做爰流白浆xx| 在线免费观看日韩欧美| 欧美激情在线观看视频免费| 老司机精品视频在线| 欧美影院精品一区| 亚洲欧美成aⅴ人在线观看| 国产裸体歌舞团一区二区| 欧美一区永久视频免费观看| 亚洲精品免费一二三区| 国产91丝袜在线18| 欧美va亚洲va在线观看蝴蝶网| 午夜国产精品一区| 在线国产亚洲欧美| 伊人婷婷欧美激情| 91原创在线视频| 中文字幕在线不卡国产视频| 国产在线精品一区二区三区不卡| 日韩一区二区三区视频| 亚洲一区二区四区蜜桃| 欧美电视剧免费全集观看| 日本视频免费一区| 911精品国产一区二区在线| 亚洲国产色一区| 欧美性色黄大片手机版| 欧美猛男男办公室激情| 欧美一区二区三区四区久久| 国产精品久久久久久久午夜片|