📄 ordermgr.java
字号:
package com.yuanchung.sales.service.order;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.dao.DataAccessException;
import com.yuanchung.sales.dao.order.OrderDAO;
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.order.Order;
import com.yuanchung.sales.model.user.User;
import com.yuanchung.sales.vo.CustomerVo;
import com.yuanchung.sales.vo.contact.ContactRoleVo;
import com.yuanchung.sales.vo.contact.ContactVo;
import com.yuanchung.sales.vo.order.CustomerOrderVo;
import com.yuanchung.sales.vo.order.OrderVo;
public interface OrderMgr {
// 1.根据ID查找客户
public Customer getCustomerById(int customerId) throws ApplicationException;
// 2.新增订单
public boolean addOrder(Order order) throws ApplicationException;
// 3.搜索所有的客户
public List<CustomerVo> getCustomerByUser(User user, int flag)
throws ApplicationException;
// 4.根据名称模糊查询客户
public List<CustomerVo> getCustomerByNamelike(String customerName,
HttpServletRequest request) throws ApplicationException;
// 5.根据业务员查询所有的订单
public List<OrderVo> getAllOrder(User user) throws ApplicationException;
//public List<OrderVo> getAllOrder(String userIds, HttpServletRequest request)
// throws ApplicationException;
/*
// 初始化用户自定义选项
public UserDefined initUserDefined(User user, String definedName, int type,
Date inDate) throws ApplicationException;
// 增加用户自定义选项
public void addUserDefined(UserDefined userDefined)
throws ApplicationException;
// 将值转换字段
public String getStringByField(String fieldInt);
// 增加用户过滤选项
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<UserDefined> getOptionsByUserAndType(User user, int type)
throws ApplicationException;
// 根据id搜索客户选项
public UserDefined getUserDefinedById(int optionId)
throws ApplicationException;
// 将客户选项po封装成vo
public BusiOpportDefinedVo transaformBusiOpportDefinedPoToVo(
UserDefined userDefined) throws ApplicationException;
public List<String> filterString(List<String> preField);
// 修改用户选项
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;
*/
// 6.根据客户名称查找订单
public List<CustomerOrderVo> getOrderByCustomerName(String customerName) throws ApplicationException;
/*
// 7.根据ID查找订单VO
public OrderVo getOrderVoById(int orderId) throws ApplicationException;
*/
// 8.编辑订单
public boolean updateOrder(Order order) throws ApplicationException;
//9.删除订单
public boolean deletOrder(Order order) throws ApplicationException;
// 10.查看前几张订单
public List getTopOrder() throws ApplicationException;
// 11查看被删除的订单;
public List getAllOrderByDelete() throws ApplicationException;
public OrderDAO getOrderDao();
// 12.根据ID查找联系人
public CustomerContact getCustomerContactById(int customercontactId) throws DataAccessException ;
// 13.根据订单号查找订单
public Order getOrderById(int orderId) throws DataAccessException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -