private void btnPrint_Click(object sender, EventArgs e)
        {
            try
            {
                //dt_ShelfTag.Rows.Clear();
                string RCNo = "";
                RCNo = StockControl.dbClss.TSt(dgvData.CurrentRow.Cells["RCNo"].Value);
                PrintPR a = new PrintPR(RCNo, RCNo, "Receive");
                a.ShowDialog();

                //using (DataClasses1DataContext db = new DataClasses1DataContext())
                //{
                //    var g = (from ix in db.sp_R003_ReportReceive(RCNo, DateTime.Now) select ix).ToList();
                //    if (g.Count() > 0)
                //    {

                //        Report.Reportx1.Value = new string[2];
                //        Report.Reportx1.Value[0] = RCNo;
                //        Report.Reportx1.WReport = "ReportReceive";
                //        Report.Reportx1 op = new Report.Reportx1("ReportReceive.rpt");
                //        op.Show();

                //    }
                //    else
                //        MessageBox.Show("not found.");
                //}
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }
        }
Exemple #2
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            try
            {
                string SHNo = "";
                if (dgvData.Rows.Count > 0)
                {
                    SHNo = StockControl.dbClss.TSt(dgvData.CurrentRow.Cells["ShippingNo"].Value);
                }

                if (TypeShip == "ShipFGAccident")
                {
                    PrintPR a = new PrintPR(SHNo, SHNo, "ReportAccidentSlip");
                    a.ShowDialog();
                }
                else
                {
                    Report.Reportx1.Value    = new string[1];
                    Report.Reportx1.Value[0] = SHNo;
                    Report.Reportx1.WReport  = "PickSlip";
                    Report.Reportx1 op = new Report.Reportx1("PickSlip_FG.rpt");
                    op.Show();

                    //PrintPR a = new PrintPR(SHNo, SHNo, "Shipping");
                    //a.ShowDialog();
                }
            }
            catch { }
        }
Exemple #3
0
        private void btn_PrintPR_Click(object sender, EventArgs e)
        {
            try
            {
                //dt_ShelfTag.Rows.Clear();
                string PRNo = "";
                if (radGridView1.Rows.Count > 0)
                {
                    PRNo = StockControl.dbClss.TSt(radGridView1.CurrentRow.Cells["PRNo"].Value);
                }

                PrintPR a = new PrintPR(PRNo, PRNo, "PR");
                a.ShowDialog();

                //using (DataClasses1DataContext db = new DataClasses1DataContext())
                //{
                //    var g = (from ix in db.sp_R002_ReportPR(PRNo, DateTime.Now) select ix).ToList();
                //    if (g.Count() > 0)
                //    {

                //        Report.Reportx1.Value = new string[2];
                //        Report.Reportx1.Value[0] = PRNo;
                //        Report.Reportx1.WReport = "ReportPR";
                //        Report.Reportx1 op = new Report.Reportx1("ReportPR.rpt");
                //        op.Show();

                //    }
                //    else
                //        MessageBox.Show("not found.");
                //}
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }
        }
Exemple #4
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            try
            {
                string AdNo1 = "";
                string AdNo2 = "";

                if (dgvData.Rows.Count > 0)
                {
                    AdNo1 = Convert.ToString(dgvData.CurrentRow.Cells["ADNo"].Value);

                    AdNo2 = Convert.ToString(dgvData.CurrentRow.Cells["ADNo"].Value);
                }
                PrintPR a = new PrintPR(AdNo1, AdNo2, "AdjustStock");
                a.ShowDialog();

                //using (DataClasses1DataContext db = new DataClasses1DataContext())
                //{
                //    var g = (from ix in db.sp_R004_ReportShipping(txtSHNo.Text, DateTime.Now) select ix).ToList();
                //    if (g.Count() > 0)
                //    {

                //        Report.Reportx1.Value = new string[2];
                //        Report.Reportx1.Value[0] = txtSHNo.Text;
                //        Report.Reportx1.WReport = "ReportShipping";
                //        Report.Reportx1 op = new Report.Reportx1("ReportShipping.rpt");
                //        op.Show();

                //    }
                //    else
                //        MessageBox.Show("not found.");
                //}
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }
        }
Exemple #5
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            try
            {
                PrintPR a = new PrintPR(txtPackingNo.Text, txtPackingNo.Text, "Receive");
                a.ShowDialog();

                //using (DataClasses1DataContext db = new DataClasses1DataContext())
                //{
                //    var g = (from ix in db.sp_R003_ReportReceive(txtRCNo.Text, DateTime.Now) select ix).ToList();
                //    if (g.Count() > 0)
                //    {

                //        Report.Reportx1.Value = new string[2];
                //        Report.Reportx1.Value[0] = txtRCNo.Text;
                //        Report.Reportx1.WReport = "ReportReceive";
                //        Report.Reportx1 op = new Report.Reportx1("ReportReceive.rpt");
                //        op.Show();

                //    }
                //    else
                //        MessageBox.Show("not found.");
                //}
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }
        }
        private void btnPrint_Click(object sender, EventArgs e)
        {
            try
            {
                string AdNo1 = "";
                string AdNo2 = "";

                if (dgvData.Rows.Count > 0)
                {
                    AdNo1 = Convert.ToString(dgvData.CurrentRow.Cells["ADNo"].Value);

                    AdNo2 = Convert.ToString(dgvData.CurrentRow.Cells["ADNo"].Value);
                }

                //Report.Reportx1.Value = new string[1];
                //Report.Reportx1.Value[0] = AdNo1;
                //Report.Reportx1.WReport = "ALLReport";
                //Report.Reportx1 op = new Report.Reportx1("ReportReturnRM.rpt");
                //op.Show();

                PrintPR a = new PrintPR(AdNo1, AdNo2, "AdjustStock");
                a.ShowDialog();
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }
        }
Exemple #7
0
        private void btn_PrintPR_Click(object sender, EventArgs e)
        {
            //select Item for Print
            //throw new NotImplementedException();
            var printe = new PrintPR("", "", "PackingList");

            printe.ShowDialog();
        }
Exemple #8
0
        private void btnStockMovement_Click(object sender, EventArgs e)
        {
            string CodeNo = "";

            if (radGridView1.Rows.Count > 0)
            {
                CodeNo = StockControl.dbClss.TSt(radGridView1.CurrentRow.Cells["InternalNo"].Value);
            }

            PrintPR a = new PrintPR(CodeNo, CodeNo, "ReportStockCard");

            a.ShowDialog();
        }
 private void btnPrint_Click(object sender, EventArgs e)
 {
     try
     {
         string SHNo = "";
         if (dgvData.Rows.Count > 0)
         {
             SHNo = StockControl.dbClss.TSt(dgvData.CurrentRow.Cells["ShippingNo"].Value);
         }
         PrintPR a = new PrintPR(SHNo, SHNo, "Shipping");
         a.ShowDialog();
     }
     catch { }
 }
Exemple #10
0
        private void radButtonElement2_Click(object sender, EventArgs e)
        {
            try
            {
                string PRNo = "";
                if (radGridView1.Rows.Count > 0)
                {
                    PRNo = StockControl.dbClss.TSt(radGridView1.CurrentRow.Cells["PRNo"].Value);
                }

                PrintPR a = new PrintPR(PRNo, PRNo, "PR");
                a.ShowDialog();
            }
            catch { }
        }
Exemple #11
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            try
            {
                string JobCard = "";
                if (dgvData.Rows.Count > 0)
                {
                    JobCard = StockControl.dbClss.TSt(dgvData.CurrentRow.Cells["JobCard"].Value);
                }

                PrintPR a = new PrintPR(JobCard, JobCard, "JobCard");
                a.ShowDialog();
            }
            catch { }
        }
Exemple #12
0
        private void btnExportExcel_Click(object sender, EventArgs e)
        {
            string RCNo = "";

            if (dgvData.Rows.Count > 0)
            {
                RCNo = StockControl.dbClss.TSt(dgvData.CurrentRow.Cells["RCNo"].Value);
            }

            //dt_ShelfTag.Rows.Clear();


            PrintPR a = new PrintPR(RCNo, RCNo, "ReceiveMonth");

            a.ShowDialog();
        }
 private void btnPrint_Click(object sender, EventArgs e)
 {
     try
     {
         string CodeNo = "";
         string MM     = "";
         string YYYY   = "";
         if (dgvData.Rows.Count > 0)
         {
             CodeNo = StockControl.dbClss.TSt(dgvData.CurrentRow.Cells["CodeNo"].Value);
             MM     = StockControl.dbClss.TSt(dgvData.CurrentRow.Cells["MM"].Value);
             YYYY   = StockControl.dbClss.TSt(dgvData.CurrentRow.Cells["YYYY"].Value);
         }
         PrintPR a = new PrintPR(CodeNo, CodeNo, "ShippingAVG");
         a.ShowDialog();
     }
     catch { }
 }
        private void btnPrint_Click(object sender, EventArgs e)
        {
            try
            {
                string SHNo = "";
                if (dgvData.Rows.Count > 0)
                {
                    SHNo = StockControl.dbClss.TSt(dgvData.CurrentRow.Cells["ShippingNo"].Value);
                }

                //if (TypeShip == "ShipFGAccident")
                //{
                //    PrintPR a = new PrintPR(SHNo, SHNo, "ReportAccidentSlip");
                //    a.ShowDialog();
                //}
                //else
                {
                    PrintPR a = new PrintPR(SHNo, SHNo, "Shipping");
                    a.ShowDialog();
                }
            }
            catch { }
        }
        private void radButtonElement1_Click(object sender, EventArgs e)
        {
            PrintPR a = new PrintPR("", "", "ShippingToDay");

            a.ShowDialog();
        }
Exemple #16
0
        private void btnExcel_Click(object sender, EventArgs e)
        {
            PrintPR a = new PrintPR(txtPackingNo.Text, txtPackingNo.Text, "ReceiveMonth");

            a.ShowDialog();
        }