private void ShowButton_Click(object sender, EventArgs e) { DataTable ReportDataTable = new DataTable(); HPS.BLL.Reports.LadBillReportBLL LadBillReportEntity = new HPS.BLL.Reports.LadBillReportBLL(); LadBillReportEntity.CompanyID_nvc = (string)Hepsa.Core.Common.PersentationController.GetEntityValue(CompanyID_intComboBox.SelectedValue, TypeCode.String); LadBillReportEntity.DriverCardNumber_nvc = (string)Hepsa.Core.Common.PersentationController.GetEntityValue(DriverCardNumber_bintNumericTextBox.NumericText, TypeCode.String); LadBillReportEntity.CarCardNumber_nvc = (string)Hepsa.Core.Common.PersentationController.GetEntityValue(CarCardNumber_nvcTextBox.Text, TypeCode.String); LadBillReportEntity.CityID_nvc = (string)Hepsa.Core.Common.PersentationController.GetEntityValue(CityID_intComboBox.SelectedValue, TypeCode.String); LadBillReportEntity.LaderTypeID_nvc = (string)Hepsa.Core.Common.PersentationController.GetEntityValue(LaderTypeID_intComboBox.SelectedValue, TypeCode.String); LadBillReportEntity.BoxingID_nvc = (string)Hepsa.Core.Common.PersentationController.GetEntityValue(BoxingID_intComboBox.SelectedValue, TypeCode.String); LadBillReportEntity.GoodID_nvc = (string)Hepsa.Core.Common.PersentationController.GetEntityValue(GoodID_intComboBox.SelectedValue, TypeCode.String); LadBillReportEntity.TrafficTypeID_nvc = (string)Hepsa.Core.Common.PersentationController.GetEntityValue(TrafficTypeID_intComboBox.SelectedValue, TypeCode.String); LadBillReportEntity.AnnouncementTimeID_nvc = (string)Hepsa.Core.Common.PersentationController.GetEntityValue(AnnouncementTimeID_intComboBox.SelectedValue, TypeCode.String); LadBillReportEntity.FromSerial_nvc = (string)Hepsa.Core.Common.PersentationController.GetEntityValue(FromSerial_nvcTextBox.Text, TypeCode.String); LadBillReportEntity.ToSerial_nvc = (string)Hepsa.Core.Common.PersentationController.GetEntityValue(ToSerial_nvcTextBox.Text, TypeCode.String); LadBillReportEntity.FromLadBillNumber_int = (Int32?)Hepsa.Core.Common.PersentationController.GetEntityValue(FromLadBillNumber_intNumericTextBox.NumericText, TypeCode.Int32); LadBillReportEntity.ToLadBillNumber_int = (Int32?)Hepsa.Core.Common.PersentationController.GetEntityValue(ToLadBillNumber_intNumericTextBox.NumericText, TypeCode.Int32); LadBillReportEntity.PortPlaceID_nvc = (string)Hepsa.Core.Common.PersentationController.GetEntityValue(PortPlaceID_intComboBox.SelectedValue, TypeCode.String); LadBillReportEntity.FromLadingDate_nvc = FromLadingDatePicker.Text; LadBillReportEntity.ToLadingDate_nvc = ToLadingDatePicker.Text; LadBillReportEntity.FromLadingTime_nvc = Hepsa.Core.Common.PersentationController.GetMaskedTextBoxValue(FromLadingTime_nvcTextBox); LadBillReportEntity.FromLadBillDate_nvc = FromLadBillDatePicker.Text; LadBillReportEntity.ToLadBillDate_nvc = ToLadingDatePicker.Text; LadBillReportEntity.FromLadBillTime_nvc = Hepsa.Core.Common.PersentationController.GetMaskedTextBoxValue(FromLadBillTime_nvc); LadBillReportEntity.ToLadBillTime_nvc = Hepsa.Core.Common.PersentationController.GetMaskedTextBoxValue(ToLadBillTime_nvc); HPS.BLL.UsedLadBillBLL.BLLUsedLadBill_TFactory ReportFactory = new HPS.BLL.UsedLadBillBLL.BLLUsedLadBill_TFactory(); ReportFactory.SelectReport(LadBillReportEntity, ref ReportDataTable); ReportGrid.SetDataBinding(ReportDataTable, "ReportDataTable"); this.tabControl1.SelectedTab = this.ReportTabPage; }
public void SelectReport(HPS.BLL.Reports.LadBillReportBLL Fields, ref System.Data.DataTable dataTable) { try { _dataObject.SelectReport(Fields, ref dataTable); } catch (System.Exception ex) { throw Hepsa.Core.Exception.HandleException.ChangeExceptionLanguage(ex, this); } }