zhuguifei
2026-03-10 58402bd5e762361363a0f7d7907153c77dbb819f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
package com.shlanbao.tzsc.pms.md.eqp.service;
 
import java.util.List;
import java.util.Map;
 
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
 
import com.shlanbao.tzsc.base.mapping.MdAppendEquipment;
import com.shlanbao.tzsc.base.mapping.MdEquipment;
import com.shlanbao.tzsc.base.model.Combobox;
import com.shlanbao.tzsc.base.model.DataGrid;
import com.shlanbao.tzsc.base.model.PageParams;
import com.shlanbao.tzsc.pms.md.eqp.beans.EquipmentsBean;
import com.shlanbao.tzsc.pms.md.matparam.beans.MatParamBean;
 
/**
 * 设备主数据业务类
 * @author liuligong
 * @Time 2014/11/5 10:46
 */
public interface EquipmentsServiceI {
    /**
     * 设备主数据新增
     * @param equBean 设备主数据Bean对象
     * @throws Exception
     */
    public void addEqu(MdEquipment equBean) throws Exception;
 
    /**
     * 查询设备主数据
     * @param equBean  设备主数据Bean对象
     * @param pageParams 查询参数
     * @return
     */
    public DataGrid queryEqu(EquipmentsBean equBean,PageParams pageParams) throws Exception;
 
    /**
     * 查询当前选中行数据
     * @param id 当前选中行ID
     * @return 当前选中行bean
     */
    public EquipmentsBean getEquById(String id) throws Exception;
 
    /**
     * 删除设备主数据信息
     */
    public void deleteEqu(String id) throws Exception;
 
    /**
     * 获取所有设备型号
     * @param id
     * @return
     * @throws Exception
     */
    public List<Combobox> getAllEqpType(String id) throws Exception;
 
    /**
     * 获取所有设备主数据
     * @return
     * @throws Exception
     */
    public List<EquipmentsBean> queryAllEquipments() throws Exception;
    /**
     *
     * @author Leejean
     * @create 2014年12月25日下午4:52:22
     * @return
     */
    public List<EquipmentsBean> queryAllEqpsForComboBox() throws Exception;
    /**
     *  查询所有单位 combobox
     * @author luther.zhang
     * @create 2015.01.06
     * @return
     */
    public List<EquipmentsBean> queryAllPackersForComboBox(int eType) throws Exception;
 
    public List<MatParamBean> getAllMdMatParamData();
 
 
    /**
     * excel导出
     * 2015.9.9--张璐
     * @param baoCJBean
     * @return
     * @throws Exception
     */
    public HSSFWorkbook ExportExcelJBPP2(EquipmentsBean baoCJBean) throws Exception;
    /**
     * 批量导入设备主数据excel
     * @param list
     */
    public void inputExeclAndReadWrite(List<MdEquipment> list);
 
    /**
     * 根据设备属性查询设备Mappingbean
     * @param eqp
     * @return
     */
    public MdEquipment getEqpByMESCodeOrWorkCenter(String mesCode,String workcenter,boolean flag);
 
    public MdAppendEquipment getAppdependEqpByMESCodeOrWorkCenter(String mesCode);
 
 
    public void batchAddEqp(List<MdEquipment> eqps);
 
    public void saveOrUpdateEqp(MdEquipment eqps);
 
    void saveOrUpdateAppendEqp(MdAppendEquipment eqps);
 
    MdEquipment getEqpByEqpCode(String eqpCode);
 
    /**
     * 批量删除
     * @param ids
     */
    void batchDeleteEqu(String ids);
}