protected void btnPrintCashReport_Click(object sender, EventArgs e) { if (ViewState["CashReportID"] != null) { CashReport cr = CashReport.Get(Convert.ToInt32(ViewState["CashReportID"])); PrintCashReports.PrintCashReport(cr); } }
protected void btnPintCashReport_Click(object sender, EventArgs e) { int id = GXGridView1SelectedValue; if (id > 0) { CashReport cr = CashReport.Get(id); PrintCashReports.PrintCashReport(cr); } }