protected void Btn_Report_Click(object sender, EventArgs e) { string RptName = "", RecFor = ""; EDT = Session["EntryDate"].ToString(); string BKCD = RS.FnBl_GetBANKCode(RS); if (BKCD == "1009") { RptName = "RptPendingRec_1009.rdlc"; } else { RptName = "RptPendingRec.rdlc"; } string redirectURL = "FrmReportViewer.aspx?FL=Report&BRCD=" + ddlBrCode.SelectedValue.ToString() + "&ASONDATE=" + EDT.ToString() + "&UID=" + Session["UserName"].ToString() + "&FMM=" + TxtFMM.Text + "&FYY=" + TxtFYYYY.Text + "&TMM=" + TxtTMM.Text + "&TYY=" + TxtTYYYY.Text + "&rptname=" + RptName + ""; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "popup", "window.open('" + redirectURL + "','_blank')", true); }
protected void GrdSumDetails_SelectedIndexChanging(object sender, GridViewSelectEventArgs e) { try { string RptType = "", BrCode = "", RecDiv = "", RecCode = "", Schoolname = "", RptName = "", RecFor = ""; GridViewRow row = GrdSumDetails.Rows[e.NewSelectedIndex]; Label LRecCode = (Label)row.FindControl("LblRecDept"); Label LRecDiv = (Label)row.FindControl("LblRecDiv"); Label LSchoolName = (Label)row.FindControl("LblName"); RecCode = LRecCode.Text; RecDiv = LRecDiv.Text; Schoolname = LSchoolName.Text; BrCode = Session["BRCD"].ToString(); RptType = "S"; EDT = Session["EntryDate"].ToString(); if (ViewState["BANKCODE"].ToString() == "1009") { RptName = "RptRecoveryStatement_1009.rdlc"; } if (ViewState["BANKCODE"].ToString() == "1010") { RptName = "RptRecoveryStatement_1010.rdlc"; } else { RptName = "RptRecoveryStatement.rdlc"; } RecFor = "Div- " + RecDiv + " ( " + RecCode + " - " + Schoolname + " ) "; string redirectURL = "FrmRecRView.aspx?FL=" + RptType.ToString() + "&BRCD=" + BrCode.ToString() + "&ASONDATE=" + EDT.ToString() + "&RECDIV=" + RecDiv.ToString() + "&RECCODE=" + RecCode.ToString() + "&UID=" + Session["UserName"].ToString() + "&MM=" + TxtMM.Text + "&YY=" + TxtYYYY.Text + "&RECFOR=" + RecFor.ToString() + "&rptname=" + RptName + ""; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "popup", "window.open('" + redirectURL + "','_blank')", true); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void Btn_Report_Click(object sender, EventArgs e) { try { string RptName = "", RecFor = ""; EDT = Session["EntryDate"].ToString(); string BKCD = RS.FnBl_GetBANKCode(RS); if (BKCD == "1009") { RptName = "RptPTRegister_1009.rdlc"; } else { RptName = "RptPTRegister.rdlc"; } string redirectURL = "FrmReportViewer.aspx?FL=Report&BRCD=" + ddlBrCode.SelectedValue.ToString() + "&BANKCD=" + ViewState["BANKCODE"].ToString() + "&ASONDATE=" + EDT.ToString() + "&UID=" + Session["UserName"].ToString() + "&MM=" + TxtMM.Text + "&YY=" + TxtYYYY.Text + "&Div=" + DdlRecDiv.SelectedValue.ToString() + "&Dep=" + DdlRecDept.SelectedValue.ToString() + "&rptname=" + RptName + ""; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "popup", "window.open('" + redirectURL + "','_blank')", true); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void Btn_Report_Click(object sender, EventArgs e) { try { EDT = DateSet(); string RptName = "", RecFor = ""; string BKCD = RS.FnBl_GetBANKCode(RS); if (BKCD == "1009") { RptName = "RptRecoveryStatement_1009.rdlc"; } else if (BKCD == "1010") { RptName = "RptRecoveryStatement_1010.rdlc"; } else { RptName = "RptRecoveryStatement.rdlc"; } RecFor = DdlRecDiv.SelectedItem.Text + " ( " + DdlRecDept.SelectedItem.Text + " ) "; string redirectURL = "FrmRecRView.aspx?FL=" + Rdb_ReportType.SelectedValue.ToString() + "&BRCD=" + ddlBrCode.SelectedValue.ToString() + "&ASONDATE=" + EDT.ToString() + "&RECDIV=" + DdlRecDiv.SelectedValue.ToString() + "&RECCODE=" + DdlRecDept.SelectedValue.ToString() + "&UID=" + Session["UserName"].ToString() + "&MM=" + TxtMM.Text + "&YY=" + TxtYYYY.Text + "&RECFOR=" + RecFor + "&rptname=" + RptName + ""; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "popup", "window.open('" + redirectURL + "','_blank')", true); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }