Example #1
0
        private void generateToolStripMenuItem_Click(object sender, EventArgs e)
        {
            deliveryDate = dateTimePicker1.Value;
            if (deliveryDate == dateTime)
            {
                MessageBox.Show("Please set Delivery Date!");
            }
            else
            {
                if (gClient.DataBaseName != "producers_history")
                {
                    proc.Process2(orderList, this, int.Parse(txtDrNumber.Text), int.Parse(txtPackNumber.Text));
                }
                else
                {
                    proc.Process(orderList, this, int.Parse(txtDrNumber.Text), int.Parse(txtPackNumber.Text));
                }

                proc.GetDRDetails(orderList[0].Batch, tempDr);
                proc.GetStickerDetails(tempSticker, orderList[0].Batch);

                MessageBox.Show("Data has been process!!!");
                ViewReports vp = new ViewReports();
                // vp.MdiParent = this;
                vp.Show();
                reportsToolStripMenuItem.Enabled = true;
            }
        }
Example #2
0
        private void packingToolStripMenuItem_Click(object sender, EventArgs e)
        {
            report = "Packing";
            ViewReports vp = new ViewReports();

            vp.Show();
        }
Example #3
0
        private void stickerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            report = "STICKER";
            ViewReports vp = new ViewReports();

            vp.Show();
        }
Example #4
0
        private void deliveryReceiptToolStripMenuItem_Click(object sender, EventArgs e)
        {
            report = "DR";
            ViewReports vp = new ViewReports();

            vp.Show();
        }
Example #5
0
        private void documentStampToolStripMenuItem_Click(object sender, EventArgs e)
        {
            report = "DOC";
            ViewReports vp = new ViewReports();

            vp.Show();
        }
Example #6
0
        private void salesInvoiceToolStripMenuItem_Click(object sender, EventArgs e)
        {
            report = "SalesInvoice";
            ViewReports vp = new ViewReports();

            vp.Show();
        }