private void biPrint_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { uGridProBoxBarCode.UpdateData(); var dt = new DataUseTableFormat().Bar_ProBox; foreach (var uRow in uGridProBoxBarCode.Rows.GetFilteredInNonGroupByRows()) { if ((bool)uRow.Cells["bSelect"].Value) { var dr = dt.NewBar_ProBoxRow(); dr.cSerialNumber = uRow.Cells["cSerialNumber"].Value.ToString(); dr.cLotNo = uRow.Cells["cLotNo"].Value.ToString(); dr.iQuantity = uRow.Cells["iQuantity"].Value.ToString(); dr.dDate = uRow.Cells["dDate"].Value.ToString(); dr.cInvCode = uRow.Cells["cInvCode"].Value.ToString(); dr.cInvName = uRow.Cells["cInvName"].Value.ToString(); dr.cInvPackStd = uRow.Cells["cInvPackStd"].Value.ToString(); dr.cInvStd = uRow.Cells["cInvStd"].Value.ToString(); dr.cInvPackStyle = uRow.Cells["cInvPackStyle"].Value.ToString(); dr.cDefaultVendor = uRow.Cells["cDefaultVendor"].Value.ToString(); dr.cMassUnit = uRow.Cells["cMassUnit"].Value.ToString(); dr.iMassDate = uRow.Cells["iMassDate"].Value.ToString(); dr.cKeepRequire = uRow.Cells["cKeepRequire"].Value.ToString(); dr.cProperty = uRow.Cells["cProperty"].Value.ToString(); dr.cMemo = uRow.Cells["cMemo"].Value.ToString(); dt.Rows.Add(dr); } } DllWorkPrintLabel.ProBoxPrintCodeSoft(dt, 1, _cTempletFileName, _cPrinter); }
private void PrinterDone() { var strDate = DllWmsMain.GetPrintLog(_cGuid); if (!string.IsNullOrEmpty(strDate)) { MessageBox.Show(@"已经打印过,不允许再打印! 打印时间:" + strDate, @"提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } var dt = GetPrintTable(); if (dt.Rows.Count < 1) { return; } short iCopies = 1; if (beiCopies.EditValue == null) { iCopies = 1; } else if (!short.TryParse(beiCopies.EditValue.ToString(), out iCopies)) { iCopies = 1; } DllWorkPrintLabel.Copies = iCopies; DllWorkPrintLabel.ProBoxPrintCodeSoft(dt, iCopies, _cTempletPath, _cPrinter); }
private bool PrinterDone() { var strUri = DllWorkPrintLabel.GetUri(); if (string.IsNullOrEmpty(strUri)) { MessageBox.Show(@"WMS配置Web端不正确", @"成功", MessageBoxButtons.OK, MessageBoxIcon.Information); return(false); } var dt = GetPrintTable(); try { DllWorkPrintLabel.ProBoxPrintCodeSoft(dt, _cTempletFileName, _cPrinter, strUri); return(true); } catch (Exception) { return(false); } }
private void biPrint_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { uGridProBoxSSBarCode.UpdateData(); var dt = new DataUseTableFormat().Bar_ProBoxSerialRecord; foreach (var uRow in uGridProBoxSSBarCode.Rows.GetFilteredInNonGroupByRows()) { if ((bool)uRow.Cells["bSelect"].Value) { var dr = dt.NewBar_ProBoxSerialRecordRow(); var cBoxNumber = uRow.Cells["cBoxNumber"].Value.ToString(); dr.cBoxNumber = uRow.Cells["cBoxNumber"].Value.ToString(); dr.cMemo = uRow.Cells["cMemo"].Value.ToString(); dt.Rows.Add(dr); UpdatePrintNum(cBoxNumber); } } DllWorkPrintLabel.ProBoxPrintCodeSoft(dt, _cTempletFileName, _cPrinter, DllWorkPrintLabel.GetUri()); }