private void PrintBarCode(Costume item) { //弹出选择窗口 PrintBarcodeForm form = new PrintBarcodeForm(item); if (form.ShowDialog(this) == DialogResult.OK) { WebResponseObj <BarCode4CostumeInfo> result = CommonGlobalCache.ServerProxy.GetBarCode4Costume(form.Result); CostumeBarcodePrinter printer = new CostumeBarcodePrinter(); printer.Print(result.Data, form.Result.Times); } }
private void PrintBarcode(PurchaseOrder item) { List <BoundDetail> list = CommonGlobalCache.ServerProxy.GetOutboundDetail(item.InboundOrderID); List <BarCode4Costume> barCode4s = new List <BarCode4Costume>(); foreach (BoundDetail detail in list) { List <BarCode4Costume> codes = CheckDetailBarCodes(detail); barCode4s.AddRange(codes); } WebResponseObj <List <BarCode4CostumeInfo> > response = GlobalCache.ServerProxy.GetBarCode4CostumeInfos(barCode4s); CostumeBarcodePrinter printer = new CostumeBarcodePrinter(); printer.Print(response?.Data, 1); }