//private void BindGrid() //{ // _reportBO = new Bill_Sys_ReportBO(); // try // { // grdAllReports.DataSource = _reportBO.GetProcedureReports("SP_REPORT_PROCEDURE_REPORT", txtFromDate.Text, txtToDate.Text, extddlOffice.Text, ddlStatus.SelectedValue, txtCompanyID.Text,"", null); // grdAllReports.DataBind(); // grdForReport.DataSource = _reportBO.GetProcedureReports("SP_REPORT_PROCEDURE_REPORT", txtFromDate.Text, txtToDate.Text, extddlOffice.Text, ddlStatus.SelectedValue, txtCompanyID.Text,"", null); // grdForReport.DataBind(); // if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == false) // { // grdAllReports.Columns[5].Visible = false; // grdForReport.Columns[5].Visible = false; // } // } // catch (Exception ex) // { // string strError = ex.Message.ToString(); // strError = strError.Replace("\n", " "); // Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + strError); // } //} protected void btnSearch_Click(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } try { //string str; //str = "Bill_Sys_ShowReport.aspx?StartDate=" + txtFromDate.Text + "&EndDate=" + txtToDate.Text + "&OfficeId=" + extddlOffice.Text + "&DocorId=" + extddlDoctor.Text + "&Status=" + ddlStatus.SelectedValue; //Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + str.ToString() + "','Sign','toolbar=no,directories=no,menubar=yes,scrollbars=yes,status=no,resizable=yes,width=700,height=575'); ", true); if (chkShowReport.Checked == true && chkMissingInfo.Checked == true) { int iFlag = 1; string CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; Bill_Sys_ReportBO _objRPO = new Bill_Sys_ReportBO(); string Showpath = "";// _objRPO.GenrateHtmlForShowReport(CompanyID, txtFromDate.Text, txtToDate.Text, extddlOffice.Text, extddlDoctor.Text, ddlStatus.SelectedValue, iFlag); if (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_EMG_BILL == "True") { Showpath = _objRPO.GenrateHtmlForShowReportEMG(CompanyID, txtFromDate.Text, txtToDate.Text, extddlOffice.Text, extddlDoctor.Text, ddlStatus.SelectedValue, iFlag); } else { Showpath = _objRPO.GenrateHtmlForShowReport(CompanyID, txtFromDate.Text, txtToDate.Text, extddlOffice.Text, extddlDoctor.Text, ddlStatus.SelectedValue, iFlag); } string Missingpath = _objRPO.GenrateHtmlForMissingReport(CompanyID, extddlOffice.Text, iFlag); Bill_Sys_NF3_Template _bill_Sys_NF3_Template = new Bill_Sys_NF3_Template(); string szPhisicalPath = _bill_Sys_NF3_Template.getPhysicalPath() + "Reports/SHOW_MISSINF.pdf"; MergePDF.MergePDFFiles(Showpath, Missingpath, szPhisicalPath); string open_Path = ApplicationSettings.GetParameterValue("DocumentManagerURL") + "Reports/SHOW_MISSINF.pdf"; Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + open_Path + "','Sign','toolbar=no,directories=no,menubar=yes,scrollbars=yes,status=no,resizable=yes,width=700,height=575'); ", true); } else if (chkShowReport.Checked == true) { int iFlag = 0; string CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; Bill_Sys_ReportBO _objRPO = new Bill_Sys_ReportBO(); string path = ""; if (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_EMG_BILL == "True") { path = _objRPO.GenrateHtmlForShowReportEMG(CompanyID, txtFromDate.Text, txtToDate.Text, extddlOffice.Text, extddlDoctor.Text, ddlStatus.SelectedValue, iFlag); } else { path = _objRPO.GenrateHtmlForShowReport(CompanyID, txtFromDate.Text, txtToDate.Text, extddlOffice.Text, extddlDoctor.Text, ddlStatus.SelectedValue, iFlag); } Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + path + "','Sign','toolbar=no,directories=no,menubar=yes,scrollbars=yes,status=no,resizable=yes,width=700,height=575'); ", true); } else if (chkMissingInfo.Checked = true) { int iFlag = 0; string CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; Bill_Sys_ReportBO _objRPO = new Bill_Sys_ReportBO(); string path = _objRPO.GenrateHtmlForMissingReport(CompanyID, extddlOffice.Text, iFlag); Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + path + "','Sign','toolbar=no,directories=no,menubar=yes,scrollbars=yes,status=no,resizable=yes,width=700,height=575'); ", true); } } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }