86 lines
3.2 KiB
C#
86 lines
3.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Epost.BLL
|
|
{
|
|
public class Light
|
|
{
|
|
//#region 900U亮灯
|
|
//public static bool Control900U(int address, string nameinfo, string descriptionInfo, string unitInfo,
|
|
// int dirctionInfo, string skuInfo, int quantities, byte lightflag, byte soundflag, bool allowF1, int gateid)
|
|
//{
|
|
// List<string> NameInfo = new List<string>();
|
|
// NameInfo.Add(nameinfo);
|
|
// List<string> DescriptionInfo = new List<string>();
|
|
// DescriptionInfo.Add(descriptionInfo);
|
|
// List<string> UnitInfo = new List<string>();
|
|
// UnitInfo.Add(unitInfo);
|
|
// List<string> SkuInfo = new List<string>();
|
|
// SkuInfo.Add(skuInfo);
|
|
// List<int> DirctionInfo = new List<int>();
|
|
// DirctionInfo.Add(dirctionInfo);
|
|
// List<int> Quantities = new List<int>();
|
|
// Quantities.Add(quantities);
|
|
// Convert.ToString(ControllCheckBLL.xglist[0].IPAddress);
|
|
|
|
|
|
// bool reslut = ControllCheckBLL.xglist[gateid - 1].Display900U(address, NameInfo, DescriptionInfo, UnitInfo, DirctionInfo, SkuInfo, Quantities, lightflag, soundflag, allowF1);
|
|
// return reslut;
|
|
|
|
//}
|
|
|
|
////800U(球形)亮灯
|
|
////800U球星
|
|
//#endregion
|
|
|
|
//#region 800U球灯
|
|
|
|
////800U球形
|
|
//public static bool Control800U(int address, byte lightfflag, string skuInfo, int quantities, int gateid, bool offen)
|
|
//{
|
|
// List<string> SkuInfo = new List<string>();
|
|
// SkuInfo.Add(skuInfo);
|
|
// List<int> Quantities = new List<int>();
|
|
// Quantities.Add(quantities);
|
|
// Convert.ToString(ControllCheckBLL.xglist[0].IPAddress);
|
|
|
|
// bool reslut = ControllCheckBLL.xglist[gateid - 1].Display900U(address, SkuInfo, Quantities, lightfflag, 0, true);
|
|
// if (offen)
|
|
// {
|
|
|
|
// ControllCheckBLL.xglist[gateid - 1].LockDevice(address);//锁定
|
|
// }
|
|
// else
|
|
// {
|
|
// ControllCheckBLL.xglist[gateid - 1].UnLockDevice(address);
|
|
// }
|
|
// return reslut;
|
|
//}
|
|
|
|
//#endregion
|
|
|
|
//#region 通道灯
|
|
//public static bool Control700U(int address, int lightIndex, byte lightflag, int gateid)
|
|
//{
|
|
// bool reslut = ControllCheckBLL.xglist[gateid - 1].Display700U(address, lightIndex, lightflag);
|
|
// return reslut;
|
|
//}
|
|
//#endregion
|
|
|
|
//#region 数字标签
|
|
//public static bool Control900UP6(int address, string skuInfo, int quantities, byte lightflag, byte soundflag, bool allowF1, int gateid)
|
|
//{
|
|
// List<string> SkuInfo = new List<string>();
|
|
// SkuInfo.Add(skuInfo);
|
|
// List<int> Quantities = new List<int>();
|
|
// Quantities.Add(quantities);
|
|
// bool reslut = ControllCheckBLL.xglist[gateid - 1].Display900U(address, SkuInfo, Quantities, lightflag, soundflag, allowF1);
|
|
// return reslut;
|
|
//}
|
|
//#endregion
|
|
}
|
|
}
|