This commit is contained in:
@ -166,125 +166,125 @@ namespace Epost.BLL
|
||||
#endregion
|
||||
|
||||
#region 查询波次通道列表
|
||||
public void GetOrderQueue()
|
||||
{
|
||||
DataTable dt = queueBLL.getQueueOrderStateList();
|
||||
if (dt != null && dt.Rows.Count > 0)
|
||||
{
|
||||
foreach (DataRow item in dt.Rows)
|
||||
{
|
||||
if (item["lightcolor"].ToString() == EnumHelper.EMToDescriptionString(LightColor.Color.Blue))
|
||||
{
|
||||
Mes_Echo(item["sku"].ToString(), item["taskblock"].ToString(), item["taskarea"].ToString(), 1, null, "", item["matchid"].ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
showSummaryMes(item["sku"].ToString(), item["taskblock"].ToString(), item["taskarea"].ToString(), 1, null, "", item["matchid"].ToString());
|
||||
}
|
||||
//public void GetOrderQueue()
|
||||
//{
|
||||
// DataTable dt = queueBLL.getQueueOrderStateList();
|
||||
// if (dt != null && dt.Rows.Count > 0)
|
||||
// {
|
||||
// foreach (DataRow item in dt.Rows)
|
||||
// {
|
||||
// if (item["lightcolor"].ToString() == EnumHelper.EMToDescriptionString(LightColor.Color.Blue))
|
||||
// {
|
||||
// Mes_Echo(item["sku"].ToString(), item["taskblock"].ToString(), item["taskarea"].ToString(), 1, null, "", item["matchid"].ToString());
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// showSummaryMes(item["sku"].ToString(), item["taskblock"].ToString(), item["taskarea"].ToString(), 1, null, "", item["matchid"].ToString());
|
||||
// }
|
||||
|
||||
}
|
||||
}
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
//}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 复核显示
|
||||
public void Mes_Echo(string scanStr, string sblock, string sarea, int type, ResultMessageModel data = null, string location = "", string matchid = "", bool islock = true)
|
||||
{
|
||||
//#region 复核显示
|
||||
//public void Mes_Echo(string scanStr, string sblock, string sarea, int type, ResultMessageModel data = null, string location = "", string matchid = "", bool islock = true)
|
||||
//{
|
||||
|
||||
DataTable sudt = orderbll.GetSumList_Echo("", scanStr, sblock);
|
||||
if (type == 2)
|
||||
{
|
||||
sudt = orderbll.GetSumList_Echo("", scanStr, sblock, sarea);
|
||||
}
|
||||
//查询当前区任务队列
|
||||
DataTable qdt = queueBLL.getQueuesOrderbyState(sblock, sarea, "1");
|
||||
if (sudt != null && sudt.Rows.Count > 0)
|
||||
{
|
||||
matchid = sudt.Rows[0]["matchid"].ToString();
|
||||
string sku = string.Empty;
|
||||
string qty = string.Empty;
|
||||
string color = string.Empty;
|
||||
if (qdt != null && qdt.Rows.Count > 0)
|
||||
{
|
||||
sku = qdt.Rows[0]["sku"].ToString();
|
||||
qty = sudt.Rows[0]["SumQuantity"].ToString();
|
||||
color = qdt.Rows[0]["LightColor"].ToString();
|
||||
}
|
||||
// DataTable sudt = orderbll.GetSumList_Echo("", scanStr, sblock);
|
||||
// if (type == 2)
|
||||
// {
|
||||
// sudt = orderbll.GetSumList_Echo("", scanStr, sblock, sarea);
|
||||
// }
|
||||
// //查询当前区任务队列
|
||||
// DataTable qdt = queueBLL.getQueuesOrderbyState(sblock, sarea, "1");
|
||||
// if (sudt != null && sudt.Rows.Count > 0)
|
||||
// {
|
||||
// matchid = sudt.Rows[0]["matchid"].ToString();
|
||||
// string sku = string.Empty;
|
||||
// string qty = string.Empty;
|
||||
// string color = string.Empty;
|
||||
// if (qdt != null && qdt.Rows.Count > 0)
|
||||
// {
|
||||
// sku = qdt.Rows[0]["sku"].ToString();
|
||||
// qty = sudt.Rows[0]["SumQuantity"].ToString();
|
||||
// color = qdt.Rows[0]["LightColor"].ToString();
|
||||
// }
|
||||
|
||||
//规格
|
||||
// int discount = Convert.ToInt32(sudt.Rows[0]["discount"].ToString());
|
||||
//整件总数
|
||||
int SumCkQuantity = 0;// Convert.ToInt32(sudt.Rows[0]["SumCkQuantity"].ToString());
|
||||
//散件总数
|
||||
int SumQuantity = Convert.ToInt32(sudt.Rows[0]["SumQuantity"].ToString());
|
||||
//if (discount != 1)
|
||||
//{
|
||||
// if (SumQuantity >= discount)
|
||||
// {
|
||||
// //规格
|
||||
// // int discount = Convert.ToInt32(sudt.Rows[0]["discount"].ToString());
|
||||
// //整件总数
|
||||
// int SumCkQuantity = 0;// Convert.ToInt32(sudt.Rows[0]["SumCkQuantity"].ToString());
|
||||
// //散件总数
|
||||
// int SumQuantity = Convert.ToInt32(sudt.Rows[0]["SumQuantity"].ToString());
|
||||
// //if (discount != 1)
|
||||
// //{
|
||||
// // if (SumQuantity >= discount)
|
||||
// // {
|
||||
|
||||
// SumCkQuantity = SumQuantity / discount;
|
||||
// SumQuantity = SumQuantity % discount;
|
||||
// }
|
||||
//}
|
||||
// // SumCkQuantity = SumQuantity / discount;
|
||||
// // SumQuantity = SumQuantity % discount;
|
||||
// // }
|
||||
// //}
|
||||
|
||||
|
||||
ShowMessageModel_M show = new ShowMessageModel_M();
|
||||
show.Title = sudt.Rows[0]["goodsname"].ToString();
|
||||
string mes = "复核显示";
|
||||
islock = false;
|
||||
// ShowMessageModel_M show = new ShowMessageModel_M();
|
||||
// show.Title = sudt.Rows[0]["goodsname"].ToString();
|
||||
// string mes = "复核显示";
|
||||
// islock = false;
|
||||
|
||||
if (qdt != null && qdt.Rows.Count > 0)
|
||||
{
|
||||
show.Contents = qdt.Rows[0]["location"].ToString() + "(" + scanStr + ")" + "\r" + mes;
|
||||
}
|
||||
if (data != null)
|
||||
{
|
||||
// if (qdt != null && qdt.Rows.Count > 0)
|
||||
// {
|
||||
// show.Contents = qdt.Rows[0]["location"].ToString() + "(" + scanStr + ")" + "\r" + mes;
|
||||
// }
|
||||
// if (data != null)
|
||||
// {
|
||||
|
||||
show.Contents = data.ScanCode + "(" + scanStr + ")" + "\r"+ mes;
|
||||
sku = data.Parameter;
|
||||
}
|
||||
show.Color = EnumHelper.EMToDescriptionString(LightColor.Color.Blue);
|
||||
show.Qty = SumQuantity.ToString();
|
||||
show.Wholeqty = SumCkQuantity;
|
||||
show.Unit = "件";
|
||||
show.Type = 8;
|
||||
show.Wholeunit = "箱";
|
||||
show.Block = sblock;
|
||||
show.Area = sarea;
|
||||
show.Islock = islock;
|
||||
show.Location = "check";
|
||||
comBLL.ShowBoxMessage_M(show);
|
||||
// show.Contents = data.ScanCode + "(" + scanStr + ")" + "\r"+ mes;
|
||||
// sku = data.Parameter;
|
||||
// }
|
||||
// show.Color = EnumHelper.EMToDescriptionString(LightColor.Color.Blue);
|
||||
// show.Qty = SumQuantity.ToString();
|
||||
// show.Wholeqty = SumCkQuantity;
|
||||
// show.Unit = "件";
|
||||
// show.Type = 8;
|
||||
// show.Wholeunit = "箱";
|
||||
// show.Block = sblock;
|
||||
// show.Area = sarea;
|
||||
// show.Islock = islock;
|
||||
// show.Location = "check";
|
||||
// comBLL.ShowBoxMessage_M(show);
|
||||
|
||||
if (data != null)
|
||||
{
|
||||
// if (data != null)
|
||||
// {
|
||||
|
||||
data.Status = "1";
|
||||
}
|
||||
// data.Status = "1";
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
|
||||
//查询当前区任务队列
|
||||
DataTable finshqdt = queueBLL.getQueuesOrderbyState(sblock, sarea, "3");
|
||||
ShowMessageModel_M show = new ShowMessageModel_M();
|
||||
//根据sku获取商品名称
|
||||
string goodsname = orderbll.GetGoodsname(location);
|
||||
show.Title = goodsname + "分播完成";
|
||||
show.Contents = scanStr + "\r请扫描继续作业";
|
||||
show.Color = EnumHelper.EMToDescriptionString(LightColor.Color.Red);
|
||||
show.Qty = "0";
|
||||
show.Type = 8;
|
||||
show.Block = sblock;
|
||||
show.Area = sarea;
|
||||
show.Islock = true;
|
||||
comBLL.ShowBoxMessage_M(show);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
// //查询当前区任务队列
|
||||
// DataTable finshqdt = queueBLL.getQueuesOrderbyState(sblock, sarea, "3");
|
||||
// ShowMessageModel_M show = new ShowMessageModel_M();
|
||||
// //根据sku获取商品名称
|
||||
// string goodsname = orderbll.GetGoodsname(location);
|
||||
// show.Title = goodsname + "分播完成";
|
||||
// show.Contents = scanStr + "\r请扫描继续作业";
|
||||
// show.Color = EnumHelper.EMToDescriptionString(LightColor.Color.Red);
|
||||
// show.Qty = "0";
|
||||
// show.Type = 8;
|
||||
// show.Block = sblock;
|
||||
// show.Area = sarea;
|
||||
// show.Islock = true;
|
||||
// comBLL.ShowBoxMessage_M(show);
|
||||
// }
|
||||
//}
|
||||
//#endregion
|
||||
|
||||
#region 订单显示器中分提示
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user