|
|
@ -457,6 +457,7 @@ namespace ButcherFactory.SegmentProductionAuto_ |
|
|
entity.Goods_Spec = detail.Goods_Spec; |
|
|
entity.Goods_Spec = detail.Goods_Spec; |
|
|
entity.MainUnit = detail.MainUnit; |
|
|
entity.MainUnit = detail.MainUnit; |
|
|
entity.ShotPrintName = detail.ShotPrintName; |
|
|
entity.ShotPrintName = detail.ShotPrintName; |
|
|
|
|
|
entity.Goods_CustomerDefine = detail.Goods_CustomerDefine; |
|
|
if (rebuild) |
|
|
if (rebuild) |
|
|
{ |
|
|
{ |
|
|
BindflowLayoutPanel(thisPanel, thisTotal); |
|
|
BindflowLayoutPanel(thisPanel, thisTotal); |
|
|
@ -474,18 +475,14 @@ namespace ButcherFactory.SegmentProductionAuto_ |
|
|
if (barPrintCheck.Checked) |
|
|
if (barPrintCheck.Checked) |
|
|
{ |
|
|
{ |
|
|
var template = config.Template; |
|
|
var template = config.Template; |
|
|
string cd = null; |
|
|
|
|
|
if (detail.GoodsType.HasValue) |
|
|
if (detail.GoodsType.HasValue) |
|
|
{ |
|
|
{ |
|
|
if (detail.GoodsType == 0) |
|
|
if (detail.GoodsType == 0) |
|
|
template = "SegmentProductionPrint.html"; |
|
|
template = "SegmentProductionPrint.html"; |
|
|
else |
|
|
else |
|
|
{ |
|
|
|
|
|
cd = detail.Goods_CustomerDefine; |
|
|
|
|
|
template = "SegmentProductionPrint1.html"; |
|
|
template = "SegmentProductionPrint1.html"; |
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
NotAuto.SegmentProductionPrint.Print(entity, batchDate, template, cd); |
|
|
|
|
|
|
|
|
NotAuto.SegmentProductionPrint.Print(entity, batchDate, template); |
|
|
var log = new SegmentLog(entity.BarCode, "打印"); |
|
|
var log = new SegmentLog(entity.BarCode, "打印"); |
|
|
log.Message = string.Format("存货名称:{0} 重量:{1:#0.###}", entity.Goods_Name, entity.Weight); |
|
|
log.Message = string.Format("存货名称:{0} 重量:{1:#0.###}", entity.Goods_Name, entity.Weight); |
|
|
SegmentProductionBL.InsertLog(log); |
|
|
SegmentProductionBL.InsertLog(log); |
|
|
@ -779,18 +776,14 @@ namespace ButcherFactory.SegmentProductionAuto_ |
|
|
item = historyList.First(); |
|
|
item = historyList.First(); |
|
|
var template = config.Template; |
|
|
var template = config.Template; |
|
|
var goodsInfo = SegmentProductionBL.GetGoodsInfo(item.Goods_ID); |
|
|
var goodsInfo = SegmentProductionBL.GetGoodsInfo(item.Goods_ID); |
|
|
string cd = null; |
|
|
|
|
|
if (goodsInfo != null && goodsInfo.Item1.HasValue) |
|
|
if (goodsInfo != null && goodsInfo.Item1.HasValue) |
|
|
{ |
|
|
{ |
|
|
if (goodsInfo.Item1 == 0) |
|
|
if (goodsInfo.Item1 == 0) |
|
|
template = "SegmentProductionPrint.html"; |
|
|
template = "SegmentProductionPrint.html"; |
|
|
else |
|
|
else |
|
|
{ |
|
|
|
|
|
cd = goodsInfo.Item2; |
|
|
|
|
|
template = "SegmentProductionPrint1.html"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
template = "SegmentProductionPrint1.html"; |
|
|
} |
|
|
} |
|
|
NotAuto.SegmentProductionPrint.Print(item, batchDate, template, cd); |
|
|
|
|
|
|
|
|
NotAuto.SegmentProductionPrint.Print(item, batchDate, template); |
|
|
var log = new SegmentLog(item.BarCode, "补打"); |
|
|
var log = new SegmentLog(item.BarCode, "补打"); |
|
|
log.Message = string.Format("存货名称:{0} 重量:{1:#0.###}", item.Goods_Name, item.Weight); |
|
|
log.Message = string.Format("存货名称:{0} 重量:{1:#0.###}", item.Goods_Name, item.Weight); |
|
|
SegmentProductionBL.InsertLog(log); |
|
|
SegmentProductionBL.InsertLog(log); |
|
|
|