예제 #1
0
        private void toolStripBtnPrintSingle_Click(object sender, EventArgs e)
        {
            int InitQty = 0;

            int.TryParse(dgReceive.CurrentRow.Cells["QTY Processed"].Value.ToString(), out InitQty);

            if ((ProductID != 0) && (InitQty > 0))
            {
                int PackSize = 1;
                int.TryParse(dgReceive.CurrentRow.Cells["PackSize"].Value.ToString(), out PackSize);

                double qtyPrint = 1;
                qtyPrint = Math.Ceiling((double)(InitQty / PackSize));

                FrmStockLabelPrint FStockaLabelPrint = new FrmStockLabelPrint(ProductID);
                FStockaLabelPrint.QtyPrint = (int)qtyPrint;
                FStockaLabelPrint.ShowDialog();
            }
            else
            {
                MessageBox.Show("No line was selected and qty received.");
            }
        }
예제 #2
0
        private void printToolStripButton_Click(object sender, EventArgs e)
        {
            FrmStockLabelPrint FStockaLabelPrint = new FrmStockLabelPrint(Prod.Product_ID);

            FStockaLabelPrint.ShowDialog();
        }