IBll.cs 2.78 KB
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);
    }
}