コード例 #1
0
 private void btnPrintbyDate_Click(object sender, EventArgs e)
 {
     try
     {
         ViewReport rv = new ViewReport();
         rv.date1      = FromdateTimePicker.Text;
         rv.date2      = TodateTimePicker.Text;
         rv.ReportType = "ShowReportbyCustomerDate";
         rv.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #2
0
        private void btnprintbyName_Click(object sender, EventArgs e)
        {
            try
            {
                ViewReport rn = new ViewReport();
                rn.custmer = comboNameFilter.Text;

                rn.ReportType = "ShowReportbyCustomerList";
                rn.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
コード例 #3
0
        private void buttonPrint_Click(object sender, EventArgs e)
        {
            try
            {
                ViewReport rc = new ViewReport();
                rc.custmername = comboCustomerName.Text;
                rc.ReportType  = "ShowReportbyCustomerName";
                rc.timetableid = timetableid;
                rc.Show();
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }