package com.nanometer.smartlab.service; import com.nanometer.smartlab.entity.*; import com.nanometer.smartlab.entity.enumtype.ApplyStatus; import com.nanometer.smartlab.exception.BusinessException; import org.primefaces.event.FileUploadEvent; import java.io.IOException; import java.math.BigDecimal; import java.sql.Timestamp; import java.util.List; /** * Created by johnny on 17/12/12. */ public interface OpeApplyService { public List getOpeApplyList(String reagentName, Timestamp startDeadline, Timestamp endDeadline, Integer status, String applyUserId, String approveUserId, String queryCas, Integer first, Integer pageSize,String applyCode,String applyUserName,Byte isShow); public List getOpeApplyListForApproval(String applyUserName,String approvaUserName,String reagentName, Timestamp startDeadline, Timestamp endDeadline, Integer status, String applyUserId, String approveUserId, String queryCas, Integer first, Integer pageSize,String applyCode,String searchApproval); public int getOpeApplyTotalCount(String reagentName, Timestamp startDeadline, Timestamp endDeadline, Integer status, String applyUserId, String approveUserId, String queryCas,String applyCode,String applyUserName,Byte isShow); public int getOpeApplyTotalCountForApproval(String applyUserName,String approvaUserName,String reagentName, Timestamp startDeadline, Timestamp endDeadline, Integer status, String applyUserId, String approveUserId, String queryCas,String applyCode,String searchApproval); public OpeApply getOpeApply(String id); public OpeApply insertOpeApply(OpeApply opeApply); public List insertOpeApplyList(List opeApplyList); public boolean updateOpeApply(OpeApply opeApply); public boolean updateFirst(String id); public boolean updateFirst2(String id); public boolean updateOpeApplyProject(String newObjective,String oldObjective); public boolean updateSelectedOpeApplyStatus(String memo, List applyIds, String adminUserId, List adminApplyIds,List firstUserIds); public boolean updateOpeApplyStatus(ApplyStatus status, String memo, List applyIds); public boolean updateOpeApplyAdminStatus(String memo, List applyIds, String adminUserId,List firstUserIds); public boolean updateOpeApplyAdminStatus2(String memo, List applyIds, String adminUserId,List firstUserIds); public boolean deleteOpeApply(List opeApplyList); public boolean isApplyPendingApproval(OpeApply opeApply); public boolean isApplyApproved(OpeApply opeApply); public boolean isAllowApplyCancel(OpeApply opeApply); OpeApply selectOpeApplyByPrimaryKey(String id); int getOpeApplyReserveTotalCountByName(String id,String reagentName, String personName); List getOpeApplyReserveListByName(String id,String reagentName, String personName, Integer first, Integer pageSize); int getOpeApplyReserveTotalCountByNameFor(String id,String reagentName, String personName,String productSn,String applyCode,Integer status,Integer isAllApply,boolean isExpired); List getOpeApplyReserveListByNameFor(String id,String reagentName, String personName, Integer first, Integer pageSize,String productSn,String applyCode,Integer status,Integer isAllApply,boolean isExpired); public boolean updaetOpeApplyPrice(BigDecimal applyPrice,String id); public boolean updaetOpeApplyStockFlag(int stockFlag,String id); public boolean cancelApply(ApplyStatus status,String id); public List selectByReId(String id); public void updateByReId(String newReId,String oldReId); OpeApplyReserve getOpeApplyDetail(String applyCode); void updateOpeApplyInfo(ApplyStatus storage, String consigneeId, Timestamp arrivalTime, String applyId); void orderInputWarehouse(List opeApplyList,String consigneeId,Timestamp arrivalTime) throws BusinessException,Exception; void btUpdateApplyAndOrder(List opeList); void importApply(FileUploadEvent event, SysUser user) throws IOException; OpeApplyReserve getOpeApplyReserveListByNameForRowData(String rowKey); }