Пример #1
0
 private void showprintone_Click(object sender, EventArgs e)
 {
     Reports.OneClothRep re = new Reports.OneClothRep();
     re.SetParameterValue("@id", this.dataGridView1.CurrentRow.Cells[0].Value.ToString());
     Reports.ClothesReport myform = new Reports.ClothesReport();
     myform.crystalReportViewer1.ReportSource = re;
     myform.ShowDialog();
 }
Пример #2
0
 private void printOne_Click(object sender, EventArgs e)
 {
     Reports.ClothesReport report     = new Reports.ClothesReport();
     Reports.OneCat        categories = new Reports.OneCat();
     categories.SetParameterValue("@id", Convert.ToInt32(id_cat.Text));
     report.crystalReportViewer1.ReportSource = categories;
     report.ShowDialog();
     report.Refresh();
 }
Пример #3
0
 private void printAll_Click(object sender, EventArgs e)
 {
     Reports.ClothesReport report     = new Reports.ClothesReport();
     Reports.AllCategories categories = new Reports.AllCategories();
     report.Refresh();
     report.crystalReportViewer1.ReportSource = categories;
     report.ShowDialog();
     report.Refresh();
 }
Пример #4
0
        private void showprintone_Click(object sender, EventArgs e)
        {
            int id = Convert.ToInt32(this.dataGridView1.CurrentRow.Cells[0].Value.ToString());

            Reports.ContractReport report = new Reports.ContractReport();
            Reports.ClothesReport  frm    = new Reports.ClothesReport();
            report.SetDataSource(con.GetOrderDetails(id));
            frm.crystalReportViewer1.ReportSource = report;
            frm.ShowDialog();
        }
Пример #5
0
        private void showPrintAll_Click(object sender, EventArgs e)
        {
            // Crystal reports may change but theForms stay one
            Reports.AllClothes myreport = new Reports.AllClothes();

            Reports.ClothesReport myform = new Reports.ClothesReport();
            myform.Refresh();
            myform.crystalReportViewer1.ReportSource = myreport;
            myform.Refresh();
            myform.ShowDialog();
        }
Пример #6
0
        private void Print_Click(object sender, EventArgs e)
        {
            // newSale.Enabled = true;
            int id = Convert.ToInt32(con.GetLastorderIdForPrint().Rows[0][0].ToString());

            Reports.ContractReport report = new Reports.ContractReport();
            Reports.ClothesReport  frm    = new Reports.ClothesReport();
            report.SetDataSource(con.GetOrderDetails(id));
            frm.crystalReportViewer1.ReportSource = report;
            frm.ShowDialog();
        }