📄 contactmgr.java
字号:
package com.yuanchung.sales.service.customer;
import java.util.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.dao.DataAccessException;
import com.yuanchung.sales.dao.customer.ContactDAO;
import com.yuanchung.sales.dao.customer.CustomerDAO;
import com.yuanchung.sales.exception.ApplicationException;
import com.yuanchung.sales.exception.ApplicationException;
import com.yuanchung.sales.model.customer.Customer;
import com.yuanchung.sales.model.customer.CustomerContact;
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.vo.*;
import com.yuanchung.sales.vo.contact.ContactDefinedVo;
import com.yuanchung.sales.vo.contact.ContactVo;
public interface ContactMgr {
public boolean addContact(CustomerContact contact) throws ApplicationException;
//为联系人搜索客户
public List<CustomerVo> getCustomerByUser(User user, int flag) throws ApplicationException;
//根据名称模糊查询客户
public List<CustomerVo> getCustomerByNamelike(String customerName, HttpServletRequest request) throws ApplicationException;
//根据名称查找客户
public Customer getCustomerByName(String name) throws ApplicationException;
//根据用户查找所有的联系人
public List<ContactVo> getContactByUser(User user) throws ApplicationException;
public List<ContactVo> getContactByUser(String userIds,HttpServletRequest request)throws ApplicationException;
//根据用户查找所有的联系人
public List<ContactVo> getContact() throws ApplicationException;
//增加用户自定义选项
public void addUserDefined(UserDefined userDefined) throws ApplicationException;
//初始化用户自定义
public UserDefined initUserDefined(User user, String definedName, int type, Date inDate)throws ApplicationException;
//增加用户过滤选项
public UserFilter initUserFilter(UserDefined userDefined, String filterName,
String operatorName, String operator, String filterValue, String filter)throws ApplicationException;
//增加用户过滤
public void addUserFilter(UserFilter userFilter) throws ApplicationException;
//初始化用户显示字段
public UserField initUserFiled(UserDefined userDefined, String optionFields) throws ApplicationException;
//增加用户显示字段
public void addUserFiled(UserField userField) throws ApplicationException;
//根据选项查找联系人
public List<ContactVo> getContactByOptionId(String optionId,int currentPage, HttpSession session) throws ApplicationException;
//根据用户和类型查找选项
public List<UserDefined> getOptionsByUserAndType(User user, int type) throws ApplicationException;
//获得分页显示类
public PageController getPageController(int currentPage, HttpSession session) throws ApplicationException;
public String getStringByField(String fieldInt);
//根据id搜索客户选项
public UserDefined getUserDefinedById(int optionId) throws ApplicationException;
//将客户选项po封装成vo
public ContactDefinedVo transaformCustomerDefinedPoToVo(UserDefined userDefined) 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;
//根据id查找联系人
public CustomerContact getContactById(String contactId) throws ApplicationException;
//更新联系人
public boolean updateContact(CustomerContact contact) throws ApplicationException;
//更新用户---联系人
//删除过滤条件
public boolean deleteFilter(UserFilter userFilter) throws ApplicationException;
//根据用户名搜索联系人
public List getContactByName(String nameLike) throws ApplicationException;
//搜索左页面的头几条联系人记录;
public List<CustomerContact> getTopContact() throws ApplicationException;
/**
* 获取删除状态的联系人;
*/
public List<ContactVo> getContactByDelete(User user, int flag) throws ApplicationException;
//获取该根据id获取客户;
public Customer getCustomerById(Integer id) throws ApplicationException;
//修改该联系人以及相关信息状态;
public boolean updateContactByFlag(Integer id,Integer flag) throws ApplicationException;
//彻底删除联系人以及相关的信息;
public boolean deleteCustomerContact(Integer id) throws ApplicationException;
//根据姓名模糊查找联系人
public List<ContactVo> getContactsByNamelike(String name, HttpSession session) throws ApplicationException ;
public ContactDAO getContactDao();
//获得分页显示类
public PageController getPageController2(int currentPage, HttpSession session) throws ApplicationException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -