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

📄 customermgr.java

📁 基于Sturts+Spring+Hibernate的一个高级销售管理系统。内容丰富
💻 JAVA
字号:
package com.yuanchung.sales.service.customer;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.dao.DataAccessException;


import com.yuanchung.sales.dao.customer.CustomerDAO;
import com.yuanchung.sales.exception.ApplicationException;
import com.yuanchung.sales.model.customer.Customer;
import com.yuanchung.sales.model.user.User;
import com.yuanchung.sales.model.userDefined.UserDefined;
import com.yuanchung.sales.model.userDefined.UserField;
import com.yuanchung.sales.model.userDefined.UserFilter;
import com.yuanchung.sales.util.PageController;
import com.yuanchung.sales.util.XPage;
import com.yuanchung.sales.vo.CustomerDefinedVo;
import com.yuanchung.sales.vo.CustomerVo;
import com.yuanchung.sales.vo.contact.ContactVo;

public interface CustomerMgr {
	public List<Customer> getCustomerByUser(User user, int flag) throws ApplicationException; 
	
	public List<Customer> getCustomerByUser(String userIds, int flag);
	
	public boolean addCustomer(Customer customer) throws ApplicationException;
	
	public void addUserDefined(UserDefined userDefined) throws ApplicationException;
	
	public void addUserFilter(UserFilter userFilter) throws ApplicationException;
	
	public void addUserField(UserField userField) throws ApplicationException;
	
	//根据用户和类型查找选项
	public List getOptionsByUserAndType(User user, int type) throws ApplicationException;
	
	public List<CustomerVo> getCustomerByOption(String optionId,int currentPage, HttpSession session) throws ApplicationException;
	
	public List<String> getDefinedField(String optionId, HttpServletRequest request) throws ApplicationException;
	
	public Customer getCustomerById(int customerId) throws ApplicationException;
	
	public CustomerVo transaformCustomerPoToVo(String customerId) throws ApplicationException;
	
	public boolean updateCustomer(Customer customer) throws ApplicationException;
	
	public boolean deleteCustomer(int customerId) throws ApplicationException;
	
	public PageController getPageController(int currentPage, HttpSession session) throws ApplicationException;
	
	//将客户选项po封装成vo
	public CustomerDefinedVo transaformCustomerDefinedPoToVo(UserDefined userDefined) throws ApplicationException;
	//根据id搜索客户选项
	public UserDefined getUserDefinedById(int optionId) throws ApplicationException;
	//修改用户选项
	public boolean updateOption(UserDefined userDefined)throws ApplicationException;	
	//根据id搜索用户过滤条件
	public UserFilter getUserFilterById(String filterId) throws ApplicationException;
	//修改用户选项
	public boolean updateUserFilter(UserFilter userFilter) throws ApplicationException;
	//根据选项搜索显示字段
	public UserField getUserFieldByOption(UserDefined userDefined) throws ApplicationException;
	//修改显示字段
	public boolean updateUserField(UserField userField) throws ApplicationException;
	
	//删除过滤条件
	public boolean deleteFilter(UserFilter userFilter) throws ApplicationException;
	
	//左页面获取最新客户;
	public List<Customer> getTopCustomer() throws ApplicationException;
	
	//根据客户名称搜索客户;
	public List<Customer> getCustomerByName(String nameLike) throws ApplicationException;
	
	//删除对象;
	public boolean clearCustomer(Integer id) throws ApplicationException;
	
	/**
	 * 搜索冻结客户列表;
	 */
	//查找被删除的客户
	public List<CustomerVo> getCustomerByDelete() throws ApplicationException ;
	


	//----------------------------------更新后----------------------------------------------//
	public List<ContactVo> getContactByCustomerId(String customerId)throws ApplicationException ;
	public CustomerDAO getCustomerDao();
}

⌨️ 快捷键说明

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