46 lines
		
	
	
		
			1016 B
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			46 lines
		
	
	
		
			1016 B
		
	
	
	
		
			C#
		
	
	
	
|  | using System; | |||
|  | using System.Collections.Generic; | |||
|  | using System.Linq; | |||
|  | using System.Text; | |||
|  | using System.Data; | |||
|  | //using DeiNiu.wms.Logical; | |||
|  | using DeiNiu.Utils; | |||
|  | using Microsoft.Reporting.WinForms; | |||
|  | using DeiNiu.wms.Data.Model; | |||
|  | namespace DeiNiu.wms.win.utils.print | |||
|  | { | |||
|  |    public class printIn | |||
|  |     { | |||
|  | 
 | |||
|  |        public static void printDeskBarcodes(DataTable dt) | |||
|  |        { | |||
|  |            if (dt.Rows.Count == 0) | |||
|  |            { | |||
|  |                return; | |||
|  |            } | |||
|  | 
 | |||
|  |            //  dt.Columns.Add(new DataColumn("id128")); | |||
|  | 
 | |||
|  | 
 | |||
|  |            foreach (DataRow dr in dt.Rows) | |||
|  |            { | |||
|  |                if (!string.IsNullOrEmpty(dr["barcode128"].ToString())) | |||
|  |                { | |||
|  |                    continue; | |||
|  |                } | |||
|  |                dr.BeginEdit(); | |||
|  |                dr["barcode128"] = Util.getCode128(dr["barcode"].ToString()); | |||
|  |                dr.EndEdit(); | |||
|  |            } | |||
|  | 
 | |||
|  |              | |||
|  |                string reportName = "ItemSumByDesk.rdlc"; | |||
|  |                BillPrint.Run(dt, reportName, PrinterType.code); | |||
|  | 
 | |||
|  |             | |||
|  |        } | |||
|  |          | |||
|  | 
 | |||
|  |     } | |||
|  | } |