yl
2024-09-26 7d1ef31efa71b7514e1d912de43ff2096880ef92
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using VueWebCoreApi.DLL.DAL;
using VueWebCoreApi.Models;
using VueWebCoreApi.Tools;
 
namespace VueWebCoreApi.DLL.BLL
{
    public class DeviceManagerBLL
    {
 
        
 
        #region[设备组查询]
        public static ToMessage DeviceGroupSearch(int startNum, int endNum, string prop, string order)
        {
            return DeviceManagerDAL.DeviceGroupSearch(startNum, endNum, prop, order);
        }
        #endregion
 
        #region[设备组新增]
        public static ToMessage AddUpdateDeviceGroup(List<ObjectDataCont> json, string username)
        {
            return DeviceManagerDAL.AddUpdateDeviceGroup(json, username);
        }
        #endregion
 
        #region[设备组删除]
        public static ToMessage DeleteDeviceGroup(string devicegroupcode)
        {
            return DeviceManagerDAL.DeleteDeviceGroup(devicegroupcode);
        }
        #endregion
 
 
        #region[设备类型查找设备组]
        public static ToMessage DeviceTypeSelectGroup(string eqptypecode)
        {
            return DeviceManagerDAL.DeviceTypeSelectGroup(eqptypecode);
        }
        #endregion
 
        #region[所属车间下拉接口]
        public static ToMessage WorkShopSelect(string stu_torgcode, string description)
        {
            return DeviceManagerDAL.WorkShopSelect(stu_torgcode, description);
        }
        #endregion
 
        #region[所属车间查找所属产线接口]
        public static ToMessage WorkShopSelectLine(string workshopcode)
        {
            return DeviceManagerDAL.WorkShopSelectLine(workshopcode);
        }
        #endregion
 
 
 
 
 
 
 
 
        #region[设备类型查询]
        public static ToMessage DeviceTypeSearch()
        {
            return DeviceManagerDAL.DeviceTypeSearch();
        }
        #endregion
 
        #region[设备类型新增]
        public static ToMessage AddUpdateDeviceType(string OperType, List<ObjectDataCont> json, User us)
        {
            return DeviceManagerDAL.AddUpdateDeviceType(OperType,json, us);
        }
        #endregion
 
        #region[设备类型删除]
        public static ToMessage DeleteDeviceType(string devicetypecode, User us)
        {
            return DeviceManagerDAL.DeleteDeviceType(devicetypecode,us);
        }
        #endregion
 
 
        #region [设备清单查询]
        public static ToMessage DeviceMangerSearch(string devicecode, string devicename, string status, string storgcode, string devicetype, int startNum, int endNum, string prop, string order)
        {
            return DeviceManagerDAL.DeviceMangerSearch(devicecode, devicename, status, storgcode, devicetype, startNum, endNum, prop, order);
        }
        #endregion
 
        #region[设备信息新增编辑]
        public static ToMessage AddUpdateDeviceManger(string devicecode, string devicename, string devicetype, string storgcode, string status, string OperType, User us)
        {
            return DeviceManagerDAL.AddUpdateDeviceManger(devicecode, devicename, devicetype, storgcode, status, OperType, us);
        }
        #endregion
 
        #region[设备信息删除]
        public static ToMessage DeleteDeviceManger(string devicecode,User us)
        {
            return DeviceManagerDAL.DeleteDeviceManger(devicecode,us);
        }
        #endregion
 
        #region[设备信息查看SOP]
        public static ToMessage DeviceSopSearch(string eqptypecode, string eqpcode)
        {
            return DeviceManagerDAL.DeviceSopSearch(eqptypecode,eqpcode);
        }
        #endregion
 
 
        #region[设备点检项列表查询]
        public static ToMessage DeviceCheckItemSearch(string checkitemcode, string checkitemname, string checkdescr, string isqrcode, string cycle, int startNum, int endNum, string prop, string order)
        {
            return DeviceManagerDAL.DeviceCheckItemSearch(checkitemcode, checkitemname, checkdescr, isqrcode, cycle, startNum, endNum, prop, order);
        }
        #endregion
 
        #region[设备点检项新增编辑]
        public static ToMessage AddUpdateDeviceCheckItem(string checkitemid, string checkitemcode, string checkitemname, string checkitemdescr, string cycle, string isqrcode, User us, string operType)
        {
            return DeviceManagerDAL.AddUpdateDeviceCheckItem(checkitemid, checkitemcode, checkitemname, checkitemdescr, cycle, isqrcode, us, operType);
        }
        #endregion
 
        #region[设备点检项删除]
        public static ToMessage DeleteDeviceCheckItem(string checkitemcode)
        {
            return DeviceManagerDAL.DeleteDeviceCheckItem(checkitemcode);
        }
        #endregion
 
 
        #region[设备保养项列表查询]
        public static ToMessage DeviceMaiItemSearch(string maiitemcode, string maiitemname, string maidescr, string isqrcode, int startNum, int endNum, string prop, string order)
        {
            return DeviceManagerDAL.DeviceMaiItemSearch(maiitemcode, maiitemname, maidescr, isqrcode, startNum, endNum, prop, order);
        }
        #endregion
 
        #region[设备保养项新增编辑]
        public static ToMessage AddUpdateDeviceMaiItem(string maiitemid, string maiitemcode, string maiitemname, string maiitemdescr, string isqrcode, User us, string operType)
        {
            return DeviceManagerDAL.AddUpdateDeviceMaiItem(maiitemid, maiitemcode, maiitemname, maiitemdescr, isqrcode, us, operType);
        }
        #endregion
 
        #region[设备保养项删除]
        public static ToMessage DeleteDeviceMaiItem(string maiitemcode)
        {
            return DeviceManagerDAL.DeleteDeviceMaiItem(maiitemcode);
        }
        #endregion
 
 
 
        #region[设备点检标准列表查询]
        public static ToMessage DeviceCheckStandArdSearch(User us, string checkstandcode, string checkstandname, string checkcontr, int startNum, int endNum, string prop, string order)
        {
            return DeviceManagerDAL.DeviceCheckStandArdSearch(us, checkstandcode, checkstandname, checkcontr, startNum, endNum, prop, order);
        }
        #endregion
 
        #region[设备点检标准新增、编辑获取检验项目下拉列表]
        public static ToMessage DeviceCheckItemSelect()
        {
            return DeviceManagerDAL.DeviceCheckItemSelect();
        }
        #endregion
 
        #region[设备点检标准编辑/查看获取数据]
        public static ToMessage ViewDeviceCheckStanedSearch(string checkstand_code)
        {
            return DeviceManagerDAL.ViewDeviceCheckStanedSearch(checkstand_code);
        }
        #endregion
 
        #region[设备点检标准新增编辑]
        public static ToMessage AddUpdateDeviceCheckStandArd(string opertype, RoutEdit json, User us)
        {
            return DeviceManagerDAL.AddUpdateDeviceCheckStandArd(opertype, json, us);
        }
        #endregion
 
        #region[设备点检标准删除]
        public static ToMessage DeleteDeviceCheckStaned(string checkstand_code)
        {
            return DeviceManagerDAL.DeleteDeviceCheckStaned(checkstand_code);
        }
        #endregion
 
        #region[设备点检标准关联工作站查询]
        public static ToMessage DeviceCheckStanedAssociationEqp(User us, string checkstand_code)
        {
            return DeviceManagerDAL.DeviceCheckStanedAssociationEqp(us, checkstand_code);
        }
        #endregion
 
        #region [设备点检标准关联工作站提交]
        public static ToMessage SaveDeviceCheckStanedAssociationEqp(User us, string checkstand_code, List<ObjectData> json)
        {
            return DeviceManagerDAL.SaveDeviceCheckStanedAssociationEqp(us, checkstand_code, json);
        }
        #endregion
 
 
 
        #region[设备保养标准列表查询]
        public static ToMessage DeviceRepairStandArdSearch(User us, string repairstandcode, string repairstandname, string repairstanddescr, int startNum, int endNum, string prop, string order)
        {
            return DeviceManagerDAL.DeviceRepairStandArdSearch(us, repairstandcode, repairstandname, repairstanddescr, startNum, endNum, prop, order);
        }
        #endregion
 
        #region[设备保养标准新增、编辑获取保养项目下拉列表]
        public static ToMessage DeviceRepairItemSelect()
        {
            return DeviceManagerDAL.DeviceRepairItemSelect();
        }
        #endregion
 
        #region[设备保养标准编辑/查看获取数据]
        public static ToMessage ViewDeviceRepairStanedSearch(string repairstand_code)
        {
            return DeviceManagerDAL.ViewDeviceRepairStanedSearch(repairstand_code);
        }
        #endregion
 
        #region[设备保养标准新增编辑]
        public static ToMessage AddUpdateDeviceRepairStandArd(string opertype, EqpRepair json, User us)
        {
            return DeviceManagerDAL.AddUpdateDeviceRepairStandArd(opertype, json, us);
        }
        #endregion
 
        #region[设备保养标准删除]
        public static ToMessage DeleteDeviceRepairStaned(string repairstand_code)
        {
            return DeviceManagerDAL.DeleteDeviceRepairStaned(repairstand_code);
        }
        #endregion
 
        #region[设备保养标准关联工作站查询]
        public static ToMessage DeviceRepairStanedAssociationEqp(User us, string repairstand_code)
        {
            return DeviceManagerDAL.DeviceRepairStanedAssociationEqp(us, repairstand_code);
        }
        #endregion
 
        #region [设备保养标准关联工作站提交]
        public static ToMessage SaveDeviceRepairStanedAssociationEqp(User us, string repairstand_code, List<ObjectData> json)
        {
            return DeviceManagerDAL.SaveDeviceRepairStanedAssociationEqp(us, repairstand_code, json);
        }
        #endregion
 
 
        #region[日常点检,扫描工位/设备二维码]
        public static ToMessage CheckScanDeviceQrCodeData(string eqpcode)
        {
            return DeviceManagerDAL.CheckScanDeviceQrCodeData(eqpcode);
        }
        #endregion
 
        #region[日常点检,扫描工位/设备二维码查找点检标准]
        public static ToMessage CheckScanDeviceTemp(string eqpcode)
        {
            return DeviceManagerDAL.CheckScanDeviceTemp(eqpcode);
        }
        #endregion
 
        #region[日常点检,选择扫码设备列表带出点检项]
        public static ToMessage SelectScanDeviceQrCodeItem(string eqpcode, string checktempcode)
        {
            return DeviceManagerDAL.SelectScanDeviceQrCodeItem(eqpcode, checktempcode);
        }
        #endregion
 
        #region[日常点检、提交保存]
        public static ToMessage AppDeviceCheckSave(User us, AppDevicecCheck json)
        {
            return DeviceManagerDAL.AppDeviceCheckSave(us, json);
        }
        #endregion
 
 
 
        #region[定期保养,扫描工位/设备二维码]
        public static ToMessage RepairScanDeviceQrCodeData(string eqpcode)
        {
            return DeviceManagerDAL.RepairScanDeviceQrCodeData(eqpcode);
        }
        #endregion
 
        #region[定期保养,扫描工位/设备二维码查找保养标准]
        public static ToMessage RepairScanDeviceTemp(string eqpcode)
        {
            return DeviceManagerDAL.RepairScanDeviceTemp(eqpcode);
        }
        #endregion
 
        #region[日常保养,选择扫码设备列表带出保养项]
        public static ToMessage RepairSelectScanDeviceQrCodeItem(string eqpcode, string repartempcode)
        {
            return DeviceManagerDAL.RepairSelectScanDeviceQrCodeItem(eqpcode, repartempcode);
        }
        #endregion
 
        #region[日常保养,提交保存]
        public static ToMessage AppDeviceRepairSave(User us, string maintcyc, AppDevicecCheck json)
        {
            return DeviceManagerDAL.AppDeviceRepairSave(us, maintcyc, json);
        }
        #endregion
 
 
 
        #region[设备维修申请,扫描工位/设备二维码]
        public static ToMessage MaintainScanDeviceApplyQrCodeData(string eqpcode)
        {
            return DeviceManagerDAL.MaintainScanDeviceApplyQrCodeData(eqpcode);
        }
        #endregion
 
        #region[设备维修申请,提交保存]
        public static ToMessage MaintainScanDeviceApplySave(User us, string eqpcode, string wkshpcode, string faultsourcecode, string faultdescr, IFormFileCollection files)
        {
            return DeviceManagerDAL.MaintainScanDeviceApplySave(us, eqpcode, wkshpcode, faultsourcecode, faultdescr, files);
        }
        #endregion
 
 
        #region[设备维修上传图片]
        public static ToMessage UploadImageSave(User us,string type, IFormFileCollection files)
        {
            return DeviceManagerDAL.UploadImageSave(us,type,files);
        }
        #endregion
 
        #region[设备维修删除上传图片]
        public static ToMessage UploadImageDelete(User us, ObjectModel model)
        {
            return DeviceManagerDAL.UploadImageDelete(us, model);
        }
        #endregion
 
        #region[设备维修列表]
        public static ToMessage RepairScanDeviceQrCodeDataList()
        {
            return DeviceManagerDAL.RepairScanDeviceQrCodeDataList();
        }
        #endregion
 
        #region[设备维修提交]
        public static ToMessage RepairScanDeviceSave(User us, DeviceUpdate model)
        {
            return DeviceManagerDAL.RepairScanDeviceSave(us,model);
        }
        #endregion
 
 
        #region[维修验证列表]
        public static ToMessage RepairVerificationScanDeviceData()
        {
            return DeviceManagerDAL.RepairVerificationScanDeviceData();
        }
        #endregion
 
        #region[维修验证详情信息]
        public static ToMessage RepairVerificationScanDeviceDataSub(string repair_code, string eqpcode, string wkshpcode)
        {
            return DeviceManagerDAL.RepairVerificationScanDeviceDataSub(repair_code, eqpcode, wkshpcode);
        }
        #endregion
 
        #region[维修验证提交]
        public static ToMessage RepairVerificationScanDeviceSave(User us, string repairwo, string eqpcode, string wkshpcode, string result)
        {
            return DeviceManagerDAL.RepairVerificationScanDeviceSave(us, repairwo, eqpcode, wkshpcode, result);
        }
        #endregion
 
 
 
        #region[设备点检记录查询]
        public static ToMessage DeviceCheckTakeSearch(User us, string wkshopcode, string eqpcode, string eqpname, string stanedname, string checkuser, string checkopendate, string checkclosedate, int startNum, int endNum, string prop, string order)
        {
            return DeviceManagerDAL.DeviceCheckTakeSearch(us, wkshopcode, eqpcode, eqpname, stanedname, checkuser, checkopendate, checkclosedate, startNum, endNum, prop, order);
        }
        #endregion
 
        #region[设备点检记录明细查询]
        public static ToMessage DeviceCheckSubTakeSearch(string djwo)
        {
            return DeviceManagerDAL.DeviceCheckSubTakeSearch(djwo);
        }
        #endregion
 
        #region[设备点检记录导出]
        public static ToMessage DeviceCheckTakeOutExcel(User us, string wkshopcode, string eqpcode, string eqpname, string stanedname, string checkuser, string checkopendate, string checkclosedate)
        {
            return DeviceManagerDAL.DeviceCheckTakeOutExcel(us, wkshopcode, eqpcode, eqpname, stanedname, checkuser, checkopendate, checkclosedate);
        }
        #endregion
 
 
        #region[设备保养记录查询]
        public static ToMessage DeviceRepairTakeSearch(User us, string wkshopcode, string eqpcode, string eqpname, string stanedname, string repairuser, string repairopendate, string repairclosedate, string repairresult, int startNum, int endNum, string prop, string order)
        {
            return DeviceManagerDAL.DeviceCheckTakeSearch(us, wkshopcode, eqpcode, eqpname, stanedname, repairuser, repairopendate, repairclosedate, repairresult, startNum, endNum, prop, order);
        }
        #endregion
 
        #region[设备保养记录明细查询]
        public static ToMessage DeviceRepairSubTakeSearch(string bywo)
        {
            return DeviceManagerDAL.DeviceRepairSubTakeSearch(bywo);
        }
        #endregion
 
        #region[设备保养记录导出]
        public static ToMessage DeviceRepairTakeOutExcel(User us, string wkshopcode, string eqpcode, string eqpname, string stanedname, string repairuser, string repairopendate, string repairclosedate, string repairresult)
        {
            return DeviceManagerDAL.DeviceRepairTakeOutExcel(us, wkshopcode, eqpcode, eqpname, stanedname, repairuser, repairopendate, repairclosedate, repairresult);
        }
        #endregion
 
 
 
        #region[设备维修记录查询]
        public static ToMessage DeviceUpdateSearch(User us, string wkshopcode, string eqpcode, string eqpname, string reportuser, string repairuser, string vrifcatuser, string reportopendate, string reportclosedate, string repairopendate, string repairclosedate, string vrifcatopendate, string vrifcatclosedate, int startNum, int endNum, string prop, string order)
        {
            return DeviceManagerDAL.DeviceUpdateSearch(us, wkshopcode, eqpcode, eqpname, reportuser, repairuser, vrifcatuser, reportopendate, reportclosedate, repairopendate, repairclosedate, vrifcatopendate, vrifcatclosedate, startNum, endNum, prop, order);
        }
        #endregion
 
        #region[设备维修记录明细查询]
        public static ToMessage DeviceUpdateSubSearch(string repair_code)
        {
            return DeviceManagerDAL.DeviceUpdateSubSearch(repair_code);
        }
        #endregion
 
        #region[设备维修记录导出]
        public static ToMessage DeviceUpdateOutExcel(User us, string wkshopcode, string eqpcode, string eqpname, string reportuser, string repairuser, string vrifcatuser, string reportopendate, string reportclosedate, string repairopendate, string repairclosedate, string vrifcatopendate, string vrifcatclosedate)
        {
            return DeviceManagerDAL.DeviceUpdateOutExcel(us, wkshopcode, eqpcode, eqpname, reportuser, repairuser, vrifcatuser, reportopendate, reportclosedate, repairopendate, repairclosedate, vrifcatopendate, vrifcatclosedate);
        }
        #endregion
 
    }
}