This commit is contained in:
@ -19,13 +19,11 @@ namespace Epost.BLL
|
||||
public class CommandBLL
|
||||
{
|
||||
CommandDAL dal = new CommandDAL();
|
||||
XgateCacheDAL xageDAL = new XgateCacheDAL();
|
||||
|
||||
AddressstorageBLL addrBLL = new AddressstorageBLL();
|
||||
public static DataTable Controls = new DataTable();
|
||||
public static DataTable Labels = new DataTable();
|
||||
JobDownCacheDAL JobCache = new JobDownCacheDAL();
|
||||
OrdersDAL orderDal = new OrdersDAL();
|
||||
ConfigurationOperator txtbll = new ConfigurationOperator();
|
||||
|
||||
string IP = ConfigurationManager.AppSettings["WebAPIUrl"];
|
||||
|
||||
#region 初始化数据
|
||||
@ -151,23 +149,7 @@ namespace Epost.BLL
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取参数中文
|
||||
public string GETDISPLAYJOBPAR_CN(string no,string Lightcolor,string IsTwinkle,string Title,string BigQuantity, string BigUnit,string Quantity, string Unit,string Content,string Rfcode)
|
||||
{
|
||||
string parar = no+"00" + Lightcolor + IsTwinkle+"30CQ" + Title + "\n\n" + BigQuantity + "\n" + BigUnit + "\n" + Quantity + "\n" + Unit + "\n" + Content + "\n00\n\n" + Rfcode + "\n"; ;
|
||||
return parar;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取参数数字
|
||||
public string GETDISPLAYJOBPAR(string no, string Lightcolor, string IsTwinkle, string location, string Quantity, string Rfcode)
|
||||
{
|
||||
string parar = no + Lightcolor + IsTwinkle + "30NQ" + location + "\n" + Quantity + "\n" + Rfcode + "\n";
|
||||
return parar;
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 清除
|
||||
public void clearALL_M()
|
||||
@ -188,10 +170,7 @@ namespace Epost.BLL
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region M系列
|
||||
#endregion
|
||||
|
||||
#region 格式化任务数据
|
||||
public bool FORMATE_JOB_DATA(LabelParamModel model)
|
||||
@ -214,37 +193,6 @@ namespace Epost.BLL
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 进入设置模式
|
||||
public bool ENTER_CONFIG_MODE(LabelParamModel model)
|
||||
{
|
||||
|
||||
|
||||
return dal.ENTER_CONFIG_MODE(model);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 设置地址 (传参地址 内容)
|
||||
public bool SET_ADDRESS(LabelParamModel model)
|
||||
{
|
||||
return dal.SET_ADDRESS(model);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 删除地址 (传参地址 内容)
|
||||
public bool DELETE_ADDRESS(LabelParamModel model)
|
||||
{
|
||||
return dal.DELETE_ADDRESS(model);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 退出设置模式
|
||||
public bool EXIT_CONFIG_MODE(LabelParamModel model)
|
||||
{
|
||||
|
||||
return dal.EXIT_CONFIG_MODE(model);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 任务指令(传参地址)
|
||||
public void DISPLAY_JOB_M(LabelParamModel model, bool clear = false, bool islock = false )
|
||||
{
|
||||
@ -307,7 +255,6 @@ namespace Epost.BLL
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 任务指令(传参地址)
|
||||
public void LED_ON_M(LabelParamModel model, bool islock = false)
|
||||
{
|
||||
@ -353,6 +300,7 @@ namespace Epost.BLL
|
||||
dal.DISPLAY_JOBALL(list);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region LED_OFF(传参地址)
|
||||
public void LED_OFF_M(List<JobModel> list)
|
||||
{
|
||||
@ -371,8 +319,6 @@ namespace Epost.BLL
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region LED_OFF(传参地址)
|
||||
public void LED_OFF_CLEAR(string ip)
|
||||
{
|
||||
@ -385,6 +331,7 @@ namespace Epost.BLL
|
||||
dal.Send(clearModel);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region LED_OFF(传参地址)
|
||||
public void LED_OFF_CLEAR(List<JobModel> offList)
|
||||
{
|
||||
@ -407,7 +354,6 @@ namespace Epost.BLL
|
||||
dal.SendALL(list);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 任务指令(传参地址)
|
||||
public bool DISPLAY_JOB(LabelParamModel model)
|
||||
@ -424,6 +370,7 @@ namespace Epost.BLL
|
||||
dal.DISPLAY_JOBALL(model);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 初始化
|
||||
public ResultModel SendALL_Init(List<LabelParamModel> model)
|
||||
{
|
||||
@ -439,6 +386,7 @@ namespace Epost.BLL
|
||||
return dal.REMOVE_JOB(model);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 通道灯命令
|
||||
public bool DISPLAY_LIGHT(LabelParamModel model)
|
||||
{
|
||||
@ -455,8 +403,6 @@ namespace Epost.BLL
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region 终端解锁指令
|
||||
public bool UNLOCK(LabelParamModel model)
|
||||
{
|
||||
@ -465,30 +411,6 @@ namespace Epost.BLL
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 扫描枪使能
|
||||
public bool SET_SCANDEVICE_ON(LabelParamModel model)
|
||||
{
|
||||
|
||||
return dal.SET_SCANDEVICE_ON(model);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 扫描枪不使能
|
||||
public bool SET_SCANDEVICE_OFF(LabelParamModel model)
|
||||
{
|
||||
|
||||
return dal.SET_SCANDEVICE_OFF(model);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 清除扫描枪
|
||||
public bool SET_SCANDEVICE_CLEAR(LabelParamModel model)
|
||||
{
|
||||
|
||||
return dal.SET_SCANDEVICE_CLEAR(model);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 休眠
|
||||
public bool SLEEP(LabelParamModel model)
|
||||
{
|
||||
@ -612,6 +534,7 @@ namespace Epost.BLL
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 点亮显示标签
|
||||
public void ShowBoxMessage_M(ShowMessageModel_M show)
|
||||
{
|
||||
@ -734,7 +657,7 @@ namespace Epost.BLL
|
||||
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user