|
|
@ -20,22 +20,11 @@ namespace QualityAndOrder |
|
|
var y = 50; |
|
|
var y = 50; |
|
|
var cIdx = 1; |
|
|
var cIdx = 1; |
|
|
PrintAPI.B_Prn_Text_TrueType(300, y += 40, 32, "宋体", 1, 600, 0, 0, 0, "C" + (++cIdx), string.Format("磅单号:{0}", entity.B3WeighBill_ID)); |
|
|
PrintAPI.B_Prn_Text_TrueType(300, y += 40, 32, "宋体", 1, 600, 0, 0, 0, "C" + (++cIdx), string.Format("磅单号:{0}", entity.B3WeighBill_ID)); |
|
|
var supplierName = new List<string>(); |
|
|
|
|
|
if (entity.Supplier_Name.Length > 6) |
|
|
|
|
|
{ |
|
|
|
|
|
supplierName.Add(entity.Supplier_Name.Substring(0, 6)); |
|
|
|
|
|
supplierName.Add(entity.Supplier_Name.Substring(6)); |
|
|
|
|
|
if (supplierName[1].Length > 11) |
|
|
|
|
|
supplierName[1] = supplierName[1].Substring(0, 11); |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
supplierName.Add(entity.Supplier_Name); |
|
|
|
|
|
|
|
|
; |
|
|
|
|
|
|
|
|
PrintAPI.B_Prn_Text_TrueType(300, y += 40, 32, "宋体", 1, 600, 0, 0, 0, "C" + (++cIdx), string.Format("供应商:{0}", supplierName[0])); |
|
|
|
|
|
if (supplierName.Count == 2) |
|
|
|
|
|
PrintAPI.B_Prn_Text_TrueType(300, y += 40, 32, "宋体", 1, 600, 0, 0, 0, "C" + (++cIdx), supplierName[1]); |
|
|
|
|
|
|
|
|
PrintAPI.B_Prn_Text_TrueType(300, y += 40, 32, "宋体", 1, 600, 0, 0, 0, "C" + (++cIdx), string.Format("总头数:{0}", entity.TotalNumber)); |
|
|
|
|
|
|
|
|
PrintAPI.B_Prn_Text_TrueType(300, y += 40, 32, "宋体", 1, 600, 0, 0, 0, "C" + (++cIdx), string.Format("头 数:{0}", entity.HurryNumber)); |
|
|
|
|
|
|
|
|
PrintAPI.B_Prn_Text_TrueType(300, y += 40, 32, "宋体", 1, 600, 0, 0, 0, "C" + (++cIdx), string.Format("急宰头数:{0}", entity.HurryNumber)); |
|
|
|
|
|
|
|
|
var names = GetHouseNames(entity.LiveColonyHouse_Name); |
|
|
var names = GetHouseNames(entity.LiveColonyHouse_Name); |
|
|
PrintAPI.B_Prn_Text_TrueType(300, y += 40, 32, "宋体", 1, 600, 0, 0, 0, "C" + (++cIdx), string.Format("圈 舍:{0}", names.Any() ? names[0] : string.Empty)); |
|
|
PrintAPI.B_Prn_Text_TrueType(300, y += 40, 32, "宋体", 1, 600, 0, 0, 0, "C" + (++cIdx), string.Format("圈 舍:{0}", names.Any() ? names[0] : string.Empty)); |
|
|
|