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 void PrinterDone() { var strDate = DllWmsMain.GetPrintLog(_cGuid); if (!string.IsNullOrEmpty(strDate)) { MessageBox.Show(@"已经打印过,不允许再打印! 打印时间:" + strDate, @"提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } var dt = GetPrintTable(); DllWorkPrintLabel.ProPrintCodeSoft(dt, _cTempletFileName, _cPrinter); }
private void biEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (!string.IsNullOrEmpty(lblTitleMain.lblAutoID.Text)) { var strDate = DllWmsMain.GetPrintLog(_cGuid); if (!string.IsNullOrEmpty(strDate)) { MessageBox.Show(@"已经打印过,不允许修改! 打印时间:" + strDate, @"提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } SetControlEnable();//启用所有输入框和保存按钮 } else { MessageBox.Show(@"未指定单据,请检查后再试!", @"提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }