using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using DataLibrary; using CoreSavingLibrary; namespace Saving.CriteriaIReport.Outstanding_receivables { public partial class Outstanding_receivables : PageWebReport, WebReport { protected String app; protected String gid; protected String rid; public void InitJsPostBack() { dsMain.InitDsMain(this); // dsMain.Ddlntype(); dsMain.DdMembgroup(); } public void WebSheetLoadBegin() { //--- Page Arguments try { app = Request["app"].ToString(); } catch { } if (app == null || app == "") { app = state.SsApplication; } try { gid = Request["gid"].ToString(); } catch { } try { rid = Request["rid"].ToString(); } catch { } //Report Name. try { Sta ta = new Sta(state.SsConnectionString); String sql = ""; sql = @"SELECT REPORT_NAME FROM WEBREPORTDETAIL WHERE ( GROUP_ID = '" + gid + @"' ) AND ( REPORT_ID = '" + rid + @"' )"; Sdt dt = ta.Query(sql); ReportName.Text = dt.Rows[0]["REPORT_NAME"].ToString(); ta.Close(); } catch { ReportName.Text = "[" + rid + "]"; } if (!IsPostBack) { dsMain.DdMembgroup(); // dsMain.DdCoopId(); dsMain.DATA[0].coopid = state.SsCoopControl; dsMain.DdMembgroup(); dsMain.Ddlntype(); } // dsMain.Ddlntype(); } public void CheckJsPostBack(string eventArg) { } public void RunReport() { string coop_id = state.SsCoopId; string nummin = dsMain.DATA[0].nummin; string nummax = dsMain.DATA[0].nummax; try { iReportArgument arg = new iReportArgument(); arg.Add("nummin", iReportArgumentType.Integer, Convert.ToInt32(nummin)); arg.Add("nummax", iReportArgumentType.Integer,Convert.ToInt32( nummax)); arg.Add("membgroup_s", iReportArgumentType.String, dsMain.DATA[0].membgroup_start); arg.Add("membgroup_e", iReportArgumentType.String, dsMain.DATA[0].membgroup_end); arg.Add("loantype_s", iReportArgumentType.String, dsMain.DATA[0].start_type); arg.Add("loantype_e", iReportArgumentType.String, dsMain.DATA[0].end_type); iReportBuider report = new iReportBuider(this, arg); report.Retrieve(); } catch (Exception ex) { LtServerMessage.Text = WebUtil.ErrorMessage(ex); } } public void WebSheetLoadEnd() { } } }