private void availableStallsBtn_Click(object sender, EventArgs e)
 {
     try
     {
         stallClass u = new stallClass();
         u.getAvailableStalls();
         crypt.Load(domainName + "stallsCrystalReport.rpt");
         crypt.SetDataSource(u.datasetQuery("stalls_tbl"));
         crypt.SetParameterValue("stall_title", "List of Available stalls");
         reportsCrystalReportViewer.ReportSource = crypt;
         reportsCrystalReportViewer.Refresh();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Beispiel #2
0
 public AllContractsUserControl()
 {
     InitializeComponent();
     _cc = new contractsClass();
     _sc = new stallClass();
 }
Beispiel #3
0
 public StallsUserControl()
 {
     InitializeComponent();
     _sc = new stallClass();
 }
Beispiel #4
0
 public ApplicationMonthlyUserControl()
 {
     InitializeComponent();
     _sc = new stallClass();
 }