zhuguifei
2026-03-10 2c1fd10c6fbabb8e9f0e9f07fe66fb36c008e883
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
package com.shlanbao.tzsc.pms.sch.stat.service;
 
import java.util.List;
import java.util.Map;
 
import com.shlanbao.tzsc.pms.sch.workorder.beans.WorkOrderBean;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
 
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.unit.beans.UnitBean;
import com.shlanbao.tzsc.pms.sch.manualshift.beans.SchCalendarBean;
import com.shlanbao.tzsc.pms.sch.stat.beans.InputBean;
import com.shlanbao.tzsc.pms.sch.stat.beans.OutputBean;
 
 
/**
 * 工单实绩业务接口
 * @author Leejean
 * @create 2014年11月18日下午3:53:04
 */
public interface StatServiceI {
    /**
     * 查询所有产出数据
     * @author Leejean
     * @create 2014年12月2日下午1:17:24
     * @param outputBean 查询条件
     * @param pageParams 分页参数
     * @return
     */
    public DataGrid getAllOutputs(OutputBean outputBean,PageParams pageParams);
    /**
     * 根据产出ID查询消耗数据
     * @author Leejean
     * @create 2014年12月2日下午1:19:30
     * @param id 产出ID
     * @return
     * @throws Exception
     */
    public DataGrid getAllInputsByOutput(String id) throws Exception;
    /**
     * 新增产出数据
     * @author Leejean
     * @create 2014年12月3日上午9:28:26
     * @param outputBean
     * @param flag 1表示人为手动新增 0表示工单运行时初始化产出数据
     * @return
     * @throws Exception
     */
    public int addOutput(OutputBean outputBean,int flag) throws Exception;
    /**
     * 编辑产出数据
     * @author Leejean
     * @create 2014年12月2日下午1:23:46
     * @param outputBean
     * @return
     */
    public int editOutput(OutputBean outputBean);
    /**
     * 删除产出数据
     * @author Leejean
     * @create 2014年12月2日下午1:23:49
     * @param id
     */
    public void deleteOutput(String id);
 
    /**
     * 批量删除产出数据
     * @param ids
     */
    public void batchDeleteOutput(String ids);
    /**
     * 新增消耗数据
     * @author Leejean
     * @create 2014年12月2日下午1:23:51
     * @param inputBean
     * @return
     * @throws Exception
     */
    public int addInput(InputBean inputBean) throws Exception;
    /**
     * 编辑消耗数据
     * @author Leejean
     * @create 2014年12月2日下午1:23:53
     * @param inputBean
     * @return
     */
    public int editInput(InputBean inputBean);
    /**
     * 删除消耗数据
     * @author Leejean
     * @create 2014年12月2日下午1:23:58
     * @param id
     */
    public void deleteInput(String id);
    /**
     * 根据ID获取产出数据
     * @author Leejean
     * @create 2014年12月2日下午4:39:29
     * @param id
     * @return
     * @throws Exception
     */
    public OutputBean getOutputById(String id);
    /**
     * 根据ID获取消耗数据
     * @author Leejean
     * @create 2014年12月2日下午4:39:35
     * @param id
     * @return
     * @throws Exception
     */
    public InputBean getInputById(String id) throws Exception;
    /**
     * 根据产出ID得到工单,根据工单得到物料清单bom集合,供页面选择辅料新增。
     * @author Leejean
     * @create 2014年12月3日下午1:52:35
     * @param bean
     * @return
     * @throws Exception
     */
    public List<Combobox> getBomsWorkorderId(WorkOrderBean bean) throws Exception;
    /**
     * 根据工单和物料,获取该获取在bom中的单位
     * @author Leejean
     * @create 2014年12月4日上午11:54:50
     * @param bomVersion
     * @param matId
     * @return
     */
    public UnitBean getUnitByMatId(String bomVersion, String matId);
    /**
     * 反馈数据到MES系统
     * @author Leejean
     * @create 2014年12月4日下午3:01:15
     * @param idOrIds
     * @param feedbackUser
     * @return
     */
    public int sendDataToMES(String idOrIds,String feedbackUser);
    /**
     * 工单强制终止时,已存生产实绩应删除
     * @author Leejean
     * @create 2014年12月5日上午9:01:25
     * @param workorder 工单号
     */
    public void deleteOutputByWorkOrder(String workorder);
 
 
    public void saveAllErrorData(List<String[]> list);
    public DataGrid getAllForming(OutputBean outputBean, PageParams pageParams);
    /** 查询包装机设备所有code */
    public Map<String, String> queryByEquiment();
    /** 更新工单dac产量
     * @param bean */
    public void supdateSchStatInputOutById(SchCalendarBean bean, Double tSQty, String eqp_id);
    /**
     * 导出PMS卷包机产量信息
     * TODO
     * @param date
     * @param date2
     * @return
     * TRAVLER
     * 2015年12月2日下午2:48:51
     */
    public HSSFWorkbook exportQtyInfo(String date, String date2,String shift,String team,String eqp,String eqpType);
 
    void saveEquipmentData(OutputBean outputBean);
 
    /**
     * 批量删除消耗数据
     * @param ids
     */
    void batchDeleteInput(String ids);
 
    DataGrid getAllOutputsFb(OutputBean outputBean, PageParams pageParams);
 
    void editOutputFb(OutputBean outputBean);
 
    DataGrid getAllInputsFbByOutput(String id) throws Exception;
 
    void editInputFb(InputBean inputBean);
 
    InputBean getInputFbById(String iid) throws Exception;
 
    OutputBean getOutputFbById(String id);
 
    DataGrid getAllFormingFb(OutputBean outputBean, PageParams pageParams);
}