tiseza_oss_live/PrintReceipt.aspx.cs

45 lines
934 B
C#
Raw Normal View History

2025-11-15 11:14:31 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace OSS
{
public partial class PrintReceipt : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
PreviewReceipt.Report = CreateReport();
}
ReceiptGepg CreateReport()
{
try
{
ReceiptGepg report = new ReceiptGepg();
report.Parameters["InvoiceID"].Value = Convert.ToInt64(Request.QueryString["InvoiceID"]);
report.CreateDocument();
return report;
}
catch
{
long InvoiceID = 0;
ReceiptGepg report = new ReceiptGepg();
report.CreateDocument();
return report;
}
}
}
}