IBll.cs
2.78 KB
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
using HHWCS.Bll;
using HHWCS.Model;
using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HHWCS.Bll
{
public interface IBll
{
Task<BllResult> Login(string userName, string password);
BllResult EmptyOutHandle(string v, string status, TaskEntity task);
BllResult TaskDoubleInHandle(string flag, String location, int taskId);
BllResult<List<TaskEntity>> GetTasks(string status, string taskNo, string pallet, DateTime? beginTime, DateTime? endTime);
BllResult SendTaskToWCS(int id);
BllResult<TaskEntity> CreatTask(string palletCode, int station, string sourceLocation, string destinationLocation, int status, int type, int priority);
BllResult<TaskEntity> CheckLocationForCreateTaskIn(String code, int warehouseId);
BllResult SetTaskStatus(int taskId, int status);
BllResult<List<TaskDetailEntity>> GetTaskDetailsByTaskId(int taskId);
BllResult<int> UpdateLocationStatus(String locationCode, int warehouseId, String newStatus, MySqlConnection mySqlConnection);
BllResult<int> UpdateLocationStatus(String locationCode, int warehouseId, String newStatus, String mySqlConnection);
BllResult CompleteTask(string taskId);
BllResult DeleteTask(int taskId);
BllResult<TaskEntity> GetTaskUncompleteByPalletCode(string palletCode);
BllResult CreatePalletIn(string palletCode);
BllResult<List<DeviceEntity>> GetAllDevice();
BllResult<List<DeviceAddressEntity>> GetAllDeviceAddress();
BllResult<List<DevicePropEntity>> GetAllDeviceProp();
BllResult<List<DeviceTypeEntity>> GetAllDeviceType();
BllResult SetLocationPallet(string locationCode, string palletCode);
BllResult<List<LocationEntity>> GetAllLocations(String containerCode, string row, string column, string layer, string roadway, string status, string code);
BllResult<List<ContainerEntity>> GetAllContainer(string code, bool isInLocation, bool isPrint);
BllResult CreateContainer(string code, string warehouseCode, int warehouseId, int containerTypeId);
BllResult UpdatePallet(string code, string print, string status);
int IntToBitConverter(int num);
string StringToHexString(string s, Encoding encode, string spanString);
string HexStringToString(string hs, Encoding encode);
string ByteToHexStr(byte[] bytes);
byte[] StrToHexByte(string hexString);
string ASCIIToString(short[] ints);
string Chr(int asciiCode);
byte[] StringToASCII(string str);
short Asc(string character);
BllResult HeartBeat();
BllResult<T> GetDestinationLocation<T>(int id, int height);
}
}