Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        private void biPrint_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            uGridProBarCode.UpdateData();
            var dt = new DataUseTableFormat().Bar_ProSerialRecord;

            foreach (var uRow in uGridProBarCode.Rows.GetFilteredInNonGroupByRows())
            {
                if ((bool)uRow.Cells["bSelect"].Value)
                {
                    var dr = dt.NewBar_ProSerialRecordRow();
                    dr.cSerialNumber = uRow.Cells["cSerialNumber"].Value.ToString();
                    dr.cInvCode      = uRow.Cells["cInvCode"].Value.ToString();
                    dr.cLotNo        = uRow.Cells["cLotNo"].Value.ToString();
                    dt.Rows.Add(dr);
                }
            }

            DllWorkPrintLabel.ProPrintCodeSoft(dt, _cTempletFileName, _cPrinter);
        }