private void PrintLabel(string sMAC) { string labfilefullpath = string.Format(@"{0}\{1}\{2}", this.LabDir.IndexOf(":") != -1 ? this.LabDir : this.LabDir + ":", this.tb_wo.Text, LabRoute.Text + ".lab"); if (!File.Exists(labfilefullpath)) { sPrint.SendMsg(PrintDLL.PrintLabel.mLogMsgType.Error, "条码文件不存在:" + labfilefullpath); } else { DataTable dt = new DataTable(); dt.Columns.Add("Colnum", typeof(string)); dt.Columns.Add("DATA", typeof(string)); dt.Rows.Add("MAC", sMAC); sPrint.SendPrintLabel(dt, labfilefullpath, Convert.ToInt32(numprint.Value)); } }
private void PrintLabel(string TrSn, string KP_No, string DC, string VC, string LC, string QTY, string Remark, string STOCK_ID, string LOC_ID) { DataTable PrintDt = new DataTable(); PrintDt.Columns.Add("Colnums", typeof(string)); PrintDt.Columns.Add("DATA", typeof(string)); PrintDt.Rows.Add("TR_SN", TrSn); PrintDt.Rows.Add("PART_NO", KP_No); PrintDt.Rows.Add("DATE_CODE", DC); PrintDt.Rows.Add("UNIT_SIZE", QTY); PrintDt.Rows.Add("VENDER_CODE", VC); PrintDt.Rows.Add("LOT_ID", LC); PrintDt.Rows.Add("EMP_NO", mFrm.UserId); PrintDt.Rows.Add("REMARK", Remark); PrintDt.Rows.Add("STORLOC", string.Format("{0}/{1}", STOCK_ID, LOC_ID)); string FilePatch = Directory.GetCurrentDirectory() + "\\LabelFile\\FEIXUN_LOT.lab"; PL.SendPrintLabel(PrintDt, FilePatch, 1); }
private void PrintLabel(DataTable dt, string FilePatch) { sPL.SendPrintLabel(dt, FilePatch, 1); }