Browse Source

增加

master
yibo 5 years ago
parent
commit
4998c6dbc3
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      ButcherFactory.Form/SegmentProduction_/SegmentProductionPrint.cs

+ 10
- 1
ButcherFactory.Form/SegmentProduction_/SegmentProductionPrint.cs View File

@ -42,7 +42,16 @@ namespace ButcherFactory.SegmentProduction_
dic.Add("$ImageUrl", imgUrl);
var barImgUrl = string.Format(IMGFILE, id + "_bar");
BwpClientPrint.BwpClientWebPrint.CreateBarCode("69212203" + entity.Goods_Code, barImgUrl, new Size(120, 40));
try
{
BwpClientPrint.BwpClientWebPrint.CreateBarCode("69212203" + entity.Goods_Code, barImgUrl, new Size(120, 40));
}
catch (Exception ex){
if (ex.Message == "Contents do not pass checksum")
{
BwpClientPrint.BwpClientWebPrint.CreateBarCode("69738841" + entity.Goods_Code, barImgUrl, new Size(120, 40));
}
}
dic.Add("$BarImg", barImgUrl);
string unit = entity.MainUnit;
int rate =1;


Loading…
Cancel
Save