Example #1
0
        private void LoadBill() {
            DatasetBill dsBill = new DatasetBill();
            dsBill.EnforceConstraints = false;

            dsBill.Merge(this.PspProxy.Branches);
            DataTable tabOp = this.PspProxy.GetOperator(comboBranch.SelectedValue, 2);
            if (tabOp != null) dsBill.Merge(tabOp);
            DataTable tableBill = this.PspProxy.GetBill(Convert.ToInt32(comboBillNo.SelectedValue), Convert.ToInt32(comboBranch.SelectedValue));

            if (tableBill != null) dsBill.Merge(tableBill);

            PrepaidBill reportBill = new PrepaidBill();
            reportBill.SetParameterValue("BillNo", Convert.ToInt32(comboBillNo.SelectedValue));
            reportBill.SetParameterValue("BillOperator", this.PspProxy.CurrentOperator.uid);
            dsBill.Bill.DefaultView.Sort = "c_order";
            reportBill.SetDataSource(dsBill);

            Session["reportBill"] = reportBill;
        }
Example #2
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     PrepaidBill rpt = new PrepaidBill();
     rpt.Site = this.Site;
     return rpt;
 }