protected void btnUploadFile_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()); } Bill_Sys_NF3_Template objNF3Template = new Bill_Sys_NF3_Template(); _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO(); string strLinkPath = ""; try { if (!fuUploadReport.HasFile) { Page.RegisterStartupScript("ss", "<script language='javascript'> alert('please select file from upload Report !');showUploadFilePopup();</script>"); return; } String szDefaultPath = objNF3Template.getPhysicalPath(); int ImageId = 0; String szDestinationDir = ""; szDestinationDir = objNF3Template.GetCompanyName(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); _obj = new Bill_Sys_BillTransaction_BO(); Bill_Sys_RequiredDocumentBO bo = new Bill_Sys_RequiredDocumentBO(); String NodeId = _obj.GetNodeIDMST_Nodes(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "NFPAY"); string szNodePath = bo.GetNodePath(NodeId, ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); szNodePath = szNodePath.Replace("\\", "/"); strLinkPath = szNodePath + "/" + fuUploadReport.FileName; if (!Directory.Exists(szDefaultPath + szNodePath + "/")) { Directory.CreateDirectory(szDefaultPath + szNodePath + "/"); } //if (!File.Exists(szDefaultPath + szDestinationDir + fuUploadReport.FileName)) //{ fuUploadReport.SaveAs(szDefaultPath + szNodePath + "/" + fuUploadReport.FileName); // Start : Save report under document manager. //String NodeId = _obj.GetNodeID(txtCompanyID.Text, ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID.ToString(), "NFPAY"); ArrayList objAL = new ArrayList(); objAL.Add(((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID); objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); objAL.Add(fuUploadReport.FileName); objAL.Add(szNodePath + "/"); objAL.Add(NodeId); objAL.Add(""); objNF3Template.UpdateDocMgr(objAL); // End : Save report under document manager. //} // Code To get Image Id Of Saved Record ArrayList objALImage = new ArrayList(); objALImage.Add(((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID); objALImage.Add(""); objALImage.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); objALImage.Add(fuUploadReport.FileName); objALImage.Add(szNodePath + "/"); objALImage.Add(((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME.ToString()); objALImage.Add(NodeId); string ImgId = objNF3Template.SaveDocumentData(objALImage); // End of Code //Function To Save Entry In Txn_Bil_Payment_Images Table ArrayList objarrtxnbill = new ArrayList(); objarrtxnbill.Add(txtBillNo.Text); objarrtxnbill.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); objarrtxnbill.Add(ImgId); objarrtxnbill.Add(((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID); objarrtxnbill.Add(Session["payment_No"].ToString()); _bill_Sys_BillingCompanyDetails_BO.InsertBillPaymentImages(objarrtxnbill); //End Of Function BindGrid(); usrMessage.PutMessage("File Upload Successfully"); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); usrMessage.Show(); //lblMsg.Text = "File Upload Successfully"; //lblMsg.Visible = true; } //Page.RegisterStartupScript("ss", "<script language = 'javascript'>alert('Report received successfully.');</script>"); 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()); } }
protected void btnDelete_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()); } _caseDetailsBO = new CaseDetailsBO(); Bill_Sys_NF3_Template objNF3Template = new Bill_Sys_NF3_Template(); try { bool flagdelete = false; foreach (DataGridItem grdItem in grdCaseMaster.Items) { CheckBox chkDelete = (CheckBox)grdItem.FindControl("chkHardDelete"); if (chkDelete.Checked) { LinkButton lnk = (LinkButton)grdItem.FindControl("lnkSelectCase"); _caseDetailsBO.HardDelete(lnk.CommandArgument.ToString(), txtCompanyID.Text); flagdelete = true; String szDefaultPath = objNF3Template.getPhysicalPath(); String szDestinationDir = ""; if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true && ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID == (((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID)) { szDestinationDir = objNF3Template.GetCompanyName(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); } else { szDestinationDir = objNF3Template.GetCompanyName(grdItem.Cells[31].Text); } szDestinationDir = szDestinationDir + "/" + lnk.CommandArgument.ToString(); if (Directory.Exists(szDefaultPath + szDestinationDir)) { string[] files = Directory.GetFiles(szDefaultPath + szDestinationDir, "*.*", SearchOption.AllDirectories); foreach (string file in files) { System.IO.File.Delete(file); } Directory.Delete(szDefaultPath + szDestinationDir, true); } this._DAO_NOTES_EO = new DAO_NOTES_EO(); this._DAO_NOTES_EO.SZ_MESSAGE_TITLE = "CASE_DELETED"; this._DAO_NOTES_EO.SZ_ACTIVITY_DESC = "Case Id " + lnk.CommandArgument.ToString() + "deleted."; this._DAO_NOTES_BO = new DAO_NOTES_BO(); this._DAO_NOTES_EO.SZ_USER_ID = (((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_ID); this._DAO_NOTES_EO.SZ_CASE_ID = (((Bill_Sys_CaseObject)this.Session["CASE_OBJECT"]).SZ_CASE_ID); this._DAO_NOTES_EO.SZ_COMPANY_ID = this.txtCompanyID.Text; this._DAO_NOTES_BO.SaveActivityNotes(this._DAO_NOTES_EO); } } if (flagdelete == true) { Page.ClientScript.RegisterStartupScript(this.GetType(), "mm", "<script language='javascript'>alert('Case deleted successfully');</script>"); } BindGrid(); } catch (Exception ex) { log.Debug("Shared_MasterPage. Method - Page_Load : " + ex.Message.ToString()); log.Debug("Shared_MasterPage. Method - Page_Load : " + ex.StackTrace.ToString()); log.Debug("Shared_MasterPage. Method - Page_Load : " + ex.InnerException.Message.ToString()); log.Debug("Shared_MasterPage. Method - Page_Load : " + ex.InnerException.StackTrace.ToString()); 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()); } }
protected void btnUploadFile_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()); } objNF3Template = new Bill_Sys_NF3_Template(); try { if (!fuUploadReport.HasFile) { Page.RegisterStartupScript("ss", "<script language='javascript'> alert('please select file from upload Report !');showUploadFilePopup();</script>"); return; } string extension = ""; string result = ""; extension = Path.GetExtension(fuUploadReport.FileName); result = Path.GetFileNameWithoutExtension(fuUploadReport.FileName); string FileName = result + "_" + DateTime.Now.ToString("MMddyyyysstt") + extension; String szDefaultPath = objNF3Template.getPhysicalPath(); int ImageId = 0; foreach (DataGridItem drg in grdProcesureCode.Items) { CheckBox drp = (CheckBox)drg.Cells[0].FindControl("chkSelect"); if (drp.Checked == true) { String szDestinationDir = ""; if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true && ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID == (((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID)) { szDestinationDir = objNF3Template.GetCompanyName(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); } else { szDestinationDir = objNF3Template.GetCompanyName(((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID); } szDestinationDir = szDestinationDir + "/" + ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID + "/No Fault File/Medicals/" + drg.Cells[12].Text + "/"; strLinkPath = szDestinationDir + FileName; if (!Directory.Exists(szDefaultPath + szDestinationDir)) { Directory.CreateDirectory(szDefaultPath + szDestinationDir); } //if (!File.Exists(szDefaultPath + szDestinationDir + fuUploadReport.FileName)) //{ fuUploadReport.SaveAs(szDefaultPath + szDestinationDir + FileName); // Start : Save report under document manager. ArrayList objAL = new ArrayList(); if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true && ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID == (((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID)) { objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); } else { objAL.Add(((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID); } objAL.Add(((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID); objAL.Add(FileName); objAL.Add(szDestinationDir); objAL.Add(((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME); objAL.Add(drg.Cells[12].Text); ImageId = objNF3Template.saveReportInDocumentManager(objAL); // End : Save report under document manager. //} } } Bill_Sys_ReferalEvent _bill_Sys_ReferalEvent; ArrayList arrOBJ; foreach (DataGridItem drg in grdProcesureCode.Items) { CheckBox drp = (CheckBox)drg.Cells[0].FindControl("chkSelect"); if (drp.Checked == true) { _bill_Sys_ProcedureCode_BO = new Bill_Sys_ProcedureCode_BO(); _bill_Sys_ProcedureCode_BO.UpdateReportProcedureCodeList(Convert.ToInt32(drg.Cells[1].Text), strLinkPath, ImageId); } } GetProcedureList(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); lblMsg.Text = "Report Received Successfully"; lblMsg.Visible = true; //Page.RegisterStartupScript("ss", "<script language = 'javascript'>alert('Report received successfully.');</script>"); } 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()); } }
protected void Page_Load(object sender, EventArgs e) { String Sign = Request.QueryString["Sign"].ToString(); if (Request.QueryString["Sign"].ToString() == "Physician")//Patient And Doctor Sign Is Saperated For AC Doctor Screen { Sign = "Physician"; SignType = "Physician"; } else if (Request.QueryString["Sign"].ToString() == "NotaryPublic") { Sign = "NotaryPublic"; SignType = "NotaryPublic"; } else { Sign = "Others"; SignType = "Others"; } if (!Page.IsPostBack) { billNo = Session["BillNumber"].ToString(); sz_CaseID = Session["HPJ1_Case"].ToString(); sz_signDt = Session["SignDt"].ToString(); _objcheckOut = new Bill_Sys_CheckoutBO(); DigitalSign signobj = new DigitalSign(); objNF3Template = new Bill_Sys_NF3_Template(); sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; int flag = 0; bool SignSaved = false; try { String szDefaultPath = (objNF3Template.getPhysicalPath()) + sz_CompanyName + "/" + sz_CaseID + "/HPJ1/"; String szLogicaleDefaultPath = sz_CompanyName + "/" + sz_CaseID + "/HPJ1/"; if (!Directory.Exists(szDefaultPath)) { Directory.CreateDirectory(szDefaultPath); } szDefaultPath = szDefaultPath + DateTime.Now.ToString("MMddyyyyhhmmssffff"); if (Sign == "Physician") { string PhysicianImagePath = szDefaultPath + "_Physician.jpg"; string LogicalImagePath = PhysicianImagePath.Replace(objNF3Template.getPhysicalPath(), "");// szLogicaleDefaultPath + DateTime.Now.ToString("MMddyyyyhhmmssffff") + "_HealthProvider1.jpg"; SignSaved = signobj.SignSave(Request.Form["hidden"], PhysicianImagePath); if (!SignSaved) { Label1.Text = "Sign is corrupted. Please re-sign."; Label1.Visible = true; //ScriptManager.RegisterStartupScript(this, GetType(), "kk11", "ShowPatientSignaturePopup();", true); //Response.Redirect("Bill_Sys_CO_CHNotesUPDATE.aspx?EID=" + sz_EventID + "&CaseID=" + Session["ChkOutCaseID"].ToString() + "&cmp=" + sz_CompanyID, false); } //SaveSignPath = SaveSignPath + "_HealthProvider1.jpg"; //Hp1DAL objHp1 = new Hp1DAL(); //objHp1.SaveProviderSignPath(sz_CompanyID, sz_CaseID, billNo, LogicalProviderImagePath); //UPDATE SIGN IN HPJ1 else { Session["HPJ1_Physician_HPJ1_Sign_Path"] = LogicalImagePath; Session["HPJ1_Physician_HPJ1_Sign_Success"] = "1"; //SaveSign(sz_CompanyID, sz_CaseID, billNo, LogicalImagePath, sz_signDt); } } else if (Sign == "NotaryPublic") { string NotaryPublicImagePath = szDefaultPath + "_NotaryPublic.jpg"; string LogicalImagePath = NotaryPublicImagePath.Replace(objNF3Template.getPhysicalPath(), "");// szLogicaleDefaultPath + DateTime.Now.ToString("MMddyyyyhhmmssffff") + "_HealthProvider1.jpg"; SignSaved = signobj.SignSave(Request.Form["hidden"], NotaryPublicImagePath); if (!SignSaved) { Label1.Text = "Sign is corrupted. Please re-sign."; Label1.Visible = true; //ScriptManager.RegisterStartupScript(this, GetType(), "kk11", "ShowPatientSignaturePopup();", true); //Response.Redirect("Bill_Sys_CO_CHNotesUPDATE.aspx?EID=" + sz_EventID + "&CaseID=" + Session["ChkOutCaseID"].ToString() + "&cmp=" + sz_CompanyID, false); } //SaveSignPath = SaveSignPath + "_HealthProvider1.jpg"; //Hp1DAL objHp1 = new Hp1DAL(); //objHp1.SaveProviderSignPath(sz_CompanyID, sz_CaseID, billNo, LogicalProviderImagePath); //UPDATE SIGN IN HPJ1 else { Session["HPJ1_Notary_HPJ1_Sign_Path"] = LogicalImagePath; Session["HPJ1_Notary_HPJ1_Sign_Success"] = "1"; //SaveSign(sz_CompanyID, sz_CaseID, billNo, LogicalImagePath, sz_signDt); } } else { string OtherImagePath = szDefaultPath + "_Other.jpg"; string LogicalImagePath = OtherImagePath.Replace(objNF3Template.getPhysicalPath(), "");// szLogicaleDefaultPath + DateTime.Now.ToString("MMddyyyyhhmmssffff") + "_HealthProvider2.jpg"; SignSaved = signobj.SignSave(Request.Form["hidden"], OtherImagePath); if (!SignSaved) { Label1.Text = "Sign is corrupted. Please re-sign."; Label1.Visible = true; //ScriptManager.RegisterStartupScript(this, GetType(), "kk11", "ShowPatientSignaturePopup();", true); //Response.Redirect("Bill_Sys_CO_CHNotesUPDATE.aspx?EID=" + sz_EventID + "&CaseID=" + Session["ChkOutCaseID"].ToString() + "&cmp=" + sz_CompanyID, false); } //SaveSignPath = SaveSignPath + "_HealthProvider2.jpg"; //Hp1DAL objHp1 = new Hp1DAL(); //objHp1.SaveProviderSignPath2(sz_CompanyID, sz_CaseID, billNo, LogicalPhysicianImagePath2); //UPDATE HPJ1 else { Session["HPJ1_Other_HPJ1_Sign_Path"] = LogicalImagePath; Session["HPJ1_Other_HPJ1_Sign_Success"] = "1"; //SaveSign(sz_CompanyID, sz_CaseID, billNo, LogicalImagePath, sz_signDt); } } //Page.RegisterStartupScript("mm", "<script type='text/javascript'>window.close()</script>"); } catch (Exception ex) { Label1.Text = "Page Laod :" + ex.ToString(); // throw ex; } if (SignSaved) { ScriptManager.RegisterStartupScript(this, GetType(), "kk11", "ClosePopup();", true); } } }
protected void btnDelete_Click(object sender, EventArgs e) {//Logging Start 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()); } ArrayList objarr = new ArrayList(); Bill_Sys_BillTransaction_BO obj = new Bill_Sys_BillTransaction_BO(); Bill_Sys_Verification_Desc _obj1; ArrayList _objAL = new ArrayList(); try { for (int i = 0; i < grdVerificationReq.Items.Count; i++) { if (((CheckBox)grdVerificationReq.Items[i].Cells[7].FindControl("chkDelete")).Checked == true) { string sz_status_code = grdVerificationReq.Items[i].Cells[8].Text.ToString(); if (hfconfirm.Value == "delete" || hfconfirm.Value == "no") { Bill_sys_Verification_Pop objpopup = new Bill_sys_Verification_Pop(); objpopup.sz_bill_no = txtViewBillNumber.Text; objpopup.i_verification_id = grdVerificationReq.Items[i].Cells[5].Text.ToString(); objpopup.sz_company_id = txtCompanyID.Text; objpopup.sz_bill_Status = sz_status_code; objpopup.sz_flag = "DEL"; objarr.Add(objpopup); _obj1 = new Bill_Sys_Verification_Desc(); _obj1.sz_bill_no = txtViewBillNumber.Text; _obj1.sz_verification_id = grdVerificationReq.Items[i].Cells[5].Text.ToString(); _obj1.sz_company_id = txtCompanyID.Text; _objAL.Add(_obj1); } else if (hfconfirm.Value == "yes") { Bill_sys_Verification_Pop objpopup = new Bill_sys_Verification_Pop(); objpopup.sz_bill_no = txtViewBillNumber.Text; objpopup.i_verification_id = grdVerificationReq.Items[i].Cells[5].Text.ToString(); objpopup.sz_company_id = txtCompanyID.Text; objpopup.sz_bill_Status = sz_status_code; if (hfverificationId.Value != grdVerificationReq.Items[i].Cells[5].Text.ToString()) { objpopup.sz_flag = "DEL"; } else { objpopup.sz_flag = "CONFIRM"; } objarr.Add(objpopup); } } } //if (_objAL != null && _objAL.Count > 0) //{ // try // { // Bill_Sys_BillTransaction_BO obj2 = new Bill_Sys_BillTransaction_BO(); // obj2.DeleteVerificationAns(_objAL); // } // 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); // } //} ArrayList FilePath = obj.DeleteVerificationNotes(objarr); Bill_Sys_NF3_Template objpath = new Bill_Sys_NF3_Template(); string PhysicalPath = objpath.getPhysicalPath(); { for (int i = 0; i < FilePath.Count; i++) { string file_path = FilePath[i].ToString(); if (File.Exists(PhysicalPath + file_path)) { if (!File.Exists(PhysicalPath + file_path + ".delete")) { File.Move(PhysicalPath + file_path, PhysicalPath + file_path + ".delete"); } } } } BindGridforVerification(); ClearControls(); usrMessage.PutMessage("Delete Successfully ...!"); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); usrMessage.Show(); } 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()); } }
protected void Page_Load(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()); } _objcheckOut = new Bill_Sys_CheckoutBO(); DigitalSign signobj = new DigitalSign(); objNF3Template = new Bill_Sys_NF3_Template(); // DataSet dsObj = _objcheckOut.PatientName(Session["IMEventID"].ToString()); // Session["PhysicalCaseID"] = dsObj.Tables[0].Rows[0][1].ToString(); sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; sz_EventID = Session["IMEventID"].ToString(); int flag = 0; try { String szDefaultPath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["PhysicalCaseID"].ToString() + "/Signs/"; if (!Directory.Exists(szDefaultPath)) { Directory.CreateDirectory(szDefaultPath); } szDefaultPath = szDefaultPath + sz_EventID; signobj.SignSave(Request.Form["hiddenpatient"], szDefaultPath + "_PatientSign.jpg"); _objcheckOut.UpdatePatientPhyscalTherapySign(sz_EventID, szDefaultPath + "_PatientSign.jpg"); DoctorImagePath = szDefaultPath + "_DoctorSign.jpg"; signobj.SignSave(Request.Form["hidden"], DoctorImagePath); #region " "Barcode functionality DataSet dset = new DataSet(); dset = _objcheckOut.GetNodeID(sz_CompanyID, sz_EventID); string sz_NodeId = dset.Tables[0].Rows[0][1].ToString(); string sz_CaseId = dset.Tables[0].Rows[0][0].ToString(); string barcodeValue = sz_CompanyID + "@" + sz_CaseId + "@" + sz_NodeId; String sz_BarcodeImagePath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["PhysicalCaseID"].ToString() + "/Signs/"; SpecialityPDFBO pdfbo = new SpecialityPDFBO(); CaseBarcodePath = pdfbo.GetBarCodePath(sz_CompanyID, sz_CaseId, sz_NodeId, sz_BarcodeImagePath); #endregion _objcheckOut.UpdatePhysicaltherapySignPath(sz_EventID, DoctorImagePath, CaseBarcodePath); FillPDFValue(sz_EventID, sz_CompanyID, sz_CompanyName); } catch (Exception ex) { Label1.Text = "Page Laod :" + ex.ToString(); 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); } #region "check version readonly or not" string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString(); if (app_status.Equals("True")) { Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page); cv.MakeReadOnlyPage("Bill_Sys_Image_Save.aspx"); } #endregion //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnSavePrint_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()); } Bill_Sys_CheckoutBO _objcheckOut = new Bill_Sys_CheckoutBO(); objNF3Template = new Bill_Sys_NF3_Template(); string sz_CompanyID = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID; string sz_EventID = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID; try { SaveOperation _objsave = new SaveOperation(); _objsave.WebPage = this.Page; _objsave.Xml_File = "Test_Facility_Intake.xml"; _objsave.SaveMethod(); #region " "Barcode functionality DataSet dset = new DataSet(); dset = _objcheckOut.GetNodeID(sz_CompanyID, sz_EventID); string sz_NodeId = dset.Tables[0].Rows[0][1].ToString(); string sz_CaseId = dset.Tables[0].Rows[0][0].ToString(); string barcodeValue = sz_CompanyID + "@" + sz_CaseId + "@" + sz_NodeId; String sz_BarcodeImagePath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID + "/Signs/"; string sz_BarcodeImagePathLogical = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID + "/Signs/"; sz_BarcodeImagePathLogical = sz_BarcodeImagePathLogical + "BarcodeImg.jpg"; if (!Directory.Exists(sz_BarcodeImagePath)) { Directory.CreateDirectory(sz_BarcodeImagePath); } SpecialityPDFBO pdfbo = new SpecialityPDFBO(); CaseBarcodePath = pdfbo.GetBarCodePath(sz_CompanyID, sz_CaseId, sz_NodeId, sz_BarcodeImagePath); #endregion //_objcheckOut.LienPatientPath(sz_EventID, "", CaseBarcodePath, "", ""); //_objcheckOut.TestIntakeMri(sz_EventID, CaseBarcodePath, "", "", "", ""); _objcheckOut.TestIntakeMri(sz_EventID, sz_BarcodeImagePathLogical, "", "", "", ""); PrintPatientIntakeFillPDFValue(sz_EventID, sz_CompanyID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME); } 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()); } }
protected void Page_Load(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()); } _objcheckOut = new Bill_Sys_CheckoutBO(); DigitalSign signobj = new DigitalSign(); objNF3Template = new Bill_Sys_NF3_Template(); DataSet dsObj = _objcheckOut.PatientName(Session["AC_EventID"].ToString()); Session["AC_CaseID"] = dsObj.Tables[0].Rows[0][1].ToString(); sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; sz_EventID = Session["AC_EventID"].ToString(); int flag = 0; try { String szDefaultPath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["AC_CaseID"].ToString() + "/Signs/"; //Added By-Sunil string SaveSignPathlogical = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["AC_CaseID"].ToString() + "/Signs/"; //end if (!Directory.Exists(szDefaultPath)) { Directory.CreateDirectory(szDefaultPath); } szDefaultPath = szDefaultPath + sz_EventID; //Added By-Sunil SaveSignPathlogical = SaveSignPathlogical + sz_EventID; //end DoctorImagePath = szDefaultPath + "_DoctorSign.jpg"; DoctorImagePathlogical = SaveSignPathlogical + "_DoctorSign.jpg"; signobj.SignSave(Request.Form["hidden"], DoctorImagePath); #region " "Barcode functionality DataSet dset = new DataSet(); dset = _objcheckOut.GetNodeID(sz_CompanyID, sz_EventID); string sz_NodeId = dset.Tables[0].Rows[0][1].ToString(); string sz_CaseId = dset.Tables[0].Rows[0][0].ToString(); string barcodeValue = sz_CompanyID + "@" + sz_CaseId + "@" + sz_NodeId; String sz_BarcodeImagePath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["AC_CaseID"].ToString() + "/Signs/"; //Added By-Sunil string sz_BarcodeImagePathlogical = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["AC_CaseID"].ToString() + "/Signs/"; //end SpecialityPDFBO pdfbo = new SpecialityPDFBO(); CaseBarcodePath = pdfbo.GetBarCodePath(sz_CompanyID, sz_CaseId, sz_NodeId, sz_BarcodeImagePath); //Added By-Sunil string CaseBarcodePathlogical = sz_BarcodeImagePathlogical + "BarcodeImg.jpg"; //end #endregion //_objcheckOut.UpdateIMSignPathACCU_REEVAL(sz_EventID, DoctorImagePath, CaseBarcodePath); _objcheckOut.UpdateIMSignPathACCU_REEVAL(sz_EventID, DoctorImagePathlogical, CaseBarcodePathlogical); SpecialityPDFFill spf = new SpecialityPDFFill(); ArrayList obj = new ArrayList(); spf.sz_EventID = Session["AC_EventID"].ToString(); spf.sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; spf.sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; spf.sz_XMLPath = "AC_REEVAL_XML_Path"; spf.sz_PDFPath = "AC_REEVAL_PDF_Path"; spf.sz_Session_Id = Session["AC_CaseID"].ToString(); spf.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; spf.SZ_SPECIALITY_NAME = "AC"; obj = spf.FillPDFValue(spf); Response.Redirect(obj[1].ToString(), false); //Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + obj[1] + "'); ", true); //Response.Write("<script>window.open('" + obj[1] + "')</script>"); spf.sz_Session_Id = Session["AC_CaseID"].ToString();; spf.sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; spf.sz_EventID = Session["AC_EventID"].ToString(); spf.SZ_PT_FILE_NAME = obj[0].ToString(); spf.SZ_PT_FILE_PATH = obj[2].ToString(); spf.SZ_SPECIALITY_CODE = "AC"; spf.SZ_SPECIALITY_NAME = "NFMAC"; spf.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; spf.savePDFForminDocMang(spf); } catch (Exception ex) { Label1.Text = "Page Laod :" + ex.ToString(); 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); } #region "check version readonly or not" string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString(); if (app_status.Equals("True")) { Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page); cv.MakeReadOnlyPage("Bill_Sys_Image_Save.aspx"); } #endregion //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnFileUpload_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 { this._saveOperation = new SaveOperation(); this._editOperation = new EditOperation(); this._nf3Template = new Bill_Sys_NF3_Template(); string physicalPath = this._nf3Template.getPhysicalPath(); for (int i = 0; i < this.grdDocumentGrid.Items.Count; i++) { System.Web.UI.WebControls.FileUpload fileUpload = (System.Web.UI.WebControls.FileUpload) this.grdDocumentGrid.Items[i].FindControl("fileuploadDocument"); string str = ""; if (fileUpload.FileName != "") { Bill_Sys_RequiredDocumentBO billSysRequiredDocumentBO = new Bill_Sys_RequiredDocumentBO(); string nodePath = billSysRequiredDocumentBO.GetNodePath(this.grdDocumentGrid.Items[i].Cells[this.COL_I_NODE_TYPE_ID].Text, this.txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); nodePath = nodePath.Replace("\\", "/"); str = string.Concat(physicalPath, nodePath); if (!Directory.Exists(str)) { Directory.CreateDirectory(str); } fileUpload.SaveAs(string.Concat(str, "/", fileUpload.FileName)); ArrayList arrayLists = new ArrayList(); arrayLists.Add(this.txtCaseID.Text); arrayLists.Add(this.grdDocumentGrid.Items[i].Cells[18].Text.Replace("/", "")); arrayLists.Add(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); arrayLists.Add(fileUpload.FileName); arrayLists.Add(string.Concat(nodePath, "/")); arrayLists.Add(((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_NAME); arrayLists.Add(this.grdDocumentGrid.Items[i].Cells[this.COL_I_NODE_TYPE_ID].Text.ToString()); string str1 = this._nf3Template.SaveDocumentData(arrayLists); if (!(this.grdDocumentGrid.Items[i].Cells[1].Text != "") || !(this.grdDocumentGrid.Items[i].Cells[1].Text != " ")) { this.txtDocID.Text = this.grdDocumentGrid.Items[i].Cells[this.COL_I_DOCUMENT_TYPE_ID].Text; if (!(this.grdDocumentGrid.Items[i].Cells[8].Text != "") || !(this.grdDocumentGrid.Items[i].Cells[8].Text != " ")) { this.txtAssignOn.Text = ""; } else { this.txtAssignOn.Text = this.grdDocumentGrid.Items[i].Cells[8].Text; } ExtendedDropDownList.ExtendedDropDownList extendedDropDownList = (ExtendedDropDownList.ExtendedDropDownList) this.grdDocumentGrid.Items[i].FindControl("extddlAssignTo"); if (!(extendedDropDownList.Text != "NA") || !(extendedDropDownList.Text != "")) { this.txtAssignTo.Text = ""; } else { this.txtAssignTo.Text = extendedDropDownList.Text; } TextBox textBox = (TextBox)this.grdDocumentGrid.Items[i].FindControl("txtNotes"); if (textBox.Text == "") { this.txtNotes.Text = ""; } else { this.txtNotes.Text = textBox.Text; } this.txtRecieved.Text = "1"; this.txtImageId.Text = str1; this._saveOperation.WebPage = this.Page; this._saveOperation.Xml_File = "CaseTypeDocumentXML.xml"; this._saveOperation.SaveMethod(); } else { this.txtDocID.Text = this.grdDocumentGrid.Items[i].Cells[1].Text; if (!(this.grdDocumentGrid.Items[i].Cells[8].Text != "") || !(this.grdDocumentGrid.Items[i].Cells[8].Text != " ")) { this.txtAssignOn.Text = ""; } else { this.txtAssignOn.Text = this.grdDocumentGrid.Items[i].Cells[8].Text; } ExtendedDropDownList.ExtendedDropDownList extendedDropDownList1 = (ExtendedDropDownList.ExtendedDropDownList) this.grdDocumentGrid.Items[i].FindControl("extddlAssignTo"); if (!(extendedDropDownList1.Text != "NA") || !(extendedDropDownList1.Text != "")) { this.txtAssignTo.Text = ""; } else { this.txtAssignTo.Text = extendedDropDownList1.Text; } TextBox textBox1 = (TextBox)this.grdDocumentGrid.Items[i].FindControl("txtNotes"); if (textBox1.Text == "") { this.txtNotes.Text = ""; } else { this.txtNotes.Text = textBox1.Text; } this.txtRecieved.Text = "1"; this.txtImageId.Text = str1; this._editOperation.WebPage = this.Page; this._editOperation.Xml_File = "CaseTypeDocumentXML.xml"; this._editOperation.Primary_Value = this.grdDocumentGrid.Items[i].Cells[1].Text; this._editOperation.UpdateMethod(); } } } this.BindCaseDocumentGrid(); this.usrMessage.PutMessage("Changes to the server were made successfully"); this.usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); this.usrMessage.Show(); } 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()); } }
protected void Page_Load(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 { _objcheckOut = new Bill_Sys_CheckoutBO(); DigitalSign signobj = new DigitalSign(); objNF3Template = new Bill_Sys_NF3_Template(); if (Session["AC_SYNAPTIC_EVENT_ID"] != "" && Session["AC_SYNAPTIC_EVENT_ID"] != null) { DataSet dsObj = new DataSet(); dsObj = _objcheckOut.PatientName(Session["AC_SYNAPTIC_EVENT_ID"].ToString()); Session["AC_Followup_CaseID"] = dsObj.Tables[0].Rows[0][1].ToString(); sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; sz_EventID = Session["AC_SYNAPTIC_EVENT_ID"].ToString(); int flag = 0; String szDefaultPath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["AC_Followup_CaseID"].ToString() + "/Signs/"; //Added By-Sunil string SaveSignPath = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["AC_Followup_CaseID"].ToString() + "/Signs/"; //end if (!Directory.Exists(szDefaultPath)) { Directory.CreateDirectory(szDefaultPath); } szDefaultPath = szDefaultPath + sz_EventID; //Added By-Sunil SaveSignPath = SaveSignPath + sz_EventID; //end signobj.SignSave(Request.Form["hiddenPatient"], szDefaultPath + "_PatientSign.jpg"); //_objcheckOut.updateSYNFollowupPatientPath(sz_EventID, szDefaultPath + "_PatientSign.jpg"); _objcheckOut.updateSYNFollowupPatientPath(sz_EventID, SaveSignPath + "_PatientSign.jpg"); //TUSHAR:- No Doctor Sign Is required For SYN Doctor Screen //DoctorImagePath = szDefaultPath + "_DoctorSign.jpg"; //signobj.SignSave(Request.Form["hidden"], DoctorImagePath); //End #region " "Barcode functionality DataSet dset = new DataSet(); dset = _objcheckOut.GetNodeID(sz_CompanyID, sz_EventID); string sz_NodeId = dset.Tables[0].Rows[0][1].ToString(); string sz_CaseId = dset.Tables[0].Rows[0][0].ToString(); string barcodeValue = sz_CompanyID + "@" + sz_CaseId + "@" + sz_NodeId; String sz_BarcodeImagePath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["AC_Followup_CaseID"].ToString() + "/Signs/"; SpecialityPDFBO pdfbo = new SpecialityPDFBO(); CaseBarcodePath = pdfbo.GetBarCodePath(sz_CompanyID, sz_CaseId, sz_NodeId, sz_BarcodeImagePath); #endregion //TUSHAR:- No Doctor Sign Is required For SYN Doctor Screen //_objcheckOut.updateSYNFollowupProviderPath(sz_EventID, DoctorImagePath, CaseBarcodePath); //End } else { DataSet dsObj = new DataSet(); dsObj = _objcheckOut.PatientName(Session["AC_FOLLOWUP_EVENT_ID"].ToString()); Session["AC_Followup_CaseID"] = dsObj.Tables[0].Rows[0][1].ToString(); sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; sz_EventID = Session["AC_FOLLOWUP_EVENT_ID"].ToString(); int flag = 0; String szDefaultPath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["AC_Followup_CaseID"].ToString() + "/Signs/"; //Added By-Sunil string SaveSignPathlogical = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["AC_Followup_CaseID"].ToString() + "/Signs/"; //end if (!Directory.Exists(szDefaultPath)) { Directory.CreateDirectory(szDefaultPath); } szDefaultPath = szDefaultPath + sz_EventID; //Added By-Sunil SaveSignPathlogical = SaveSignPathlogical + sz_EventID; //end signobj.SignSave(Request.Form["hiddenPatient"], szDefaultPath + "_PatientSign.jpg"); // _objcheckOut.updateAccFollowupPatientPath(sz_EventID, szDefaultPath + "_PatientSign.jpg"); _objcheckOut.updateAccFollowupPatientPath(sz_EventID, SaveSignPathlogical + "_PatientSign.jpg"); DoctorImagePath = szDefaultPath + "_DoctorSign.jpg"; string DoctorImagePathlogical = SaveSignPathlogical + "_DoctorSign.jpg"; signobj.SignSave(Request.Form["hidden"], DoctorImagePath); #region " "Barcode functionality DataSet dset = new DataSet(); dset = _objcheckOut.GetNodeID(sz_CompanyID, sz_EventID); string sz_NodeId = dset.Tables[0].Rows[0][1].ToString(); string sz_CaseId = dset.Tables[0].Rows[0][0].ToString(); string barcodeValue = sz_CompanyID + "@" + sz_CaseId + "@" + sz_NodeId; String sz_BarcodeImagePath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["AC_Followup_CaseID"].ToString() + "/Signs/"; //Added By-Sunil string sz_BarcodeImagePathlogical = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["AC_Followup_CaseID"].ToString() + "/Signs/"; //end SpecialityPDFBO pdfbo = new SpecialityPDFBO(); CaseBarcodePath = pdfbo.GetBarCodePath(sz_CompanyID, sz_CaseId, sz_NodeId, sz_BarcodeImagePath); #endregion //Added By-Sunil string CaseBarcodePathlogical = sz_BarcodeImagePathlogical + "BarcodeImg.jpg"; //end // _objcheckOut.updateAccFollowupProviderPath(sz_EventID, DoctorImagePath, CaseBarcodePath); _objcheckOut.updateAccFollowupProviderPath(sz_EventID, DoctorImagePathlogical, CaseBarcodePathlogical); } } catch (Exception ex) { Label1.Text = "Page Laod :" + ex.ToString(); 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); } #region "check version readonly or not" string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString(); if (app_status.Equals("True")) { Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page); cv.MakeReadOnlyPage("Bill_Sys_Image_Save.aspx"); } #endregion Page.RegisterStartupScript("mm", "<script type='text/javascript'>window.close()</script>"); //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
//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()); } }
protected void Page_Load(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()); } _objcheckOut = new Bill_Sys_CheckoutBO(); DigitalSign signobj = new DigitalSign(); SIGPLUSLib.SigPlus sigObj_Patient1 = new SIGPLUSLib.SigPlus(); objNF3Template = new Bill_Sys_NF3_Template(); // DataSet dsObj = _objcheckOut.PatientName(Session["IMEventID"].ToString()); //Session["ChkCaseID"] = ((SpecialityPDFDAO)Session["SPECIALITY_PDF_OBJECT"]).CaseID; if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true && ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID != ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID) { sz_CompanyID = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID; Bill_Sys_NF3_Template obj1 = new Bill_Sys_NF3_Template(); sz_CompanyName = obj1.GetCompanyName(sz_CompanyID); } else { sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; } sz_EventID = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID; try { String szDefaultPath = (objNF3Template.getPhysicalPath()) + sz_CompanyName + "/" + ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID + "/Signs/"; //Added By-Sunil string SaveSignPathlogical = sz_CompanyName + "/" + ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID + "/Signs/"; //end if (!Directory.Exists(szDefaultPath)) { Directory.CreateDirectory(szDefaultPath); } szDefaultPath = szDefaultPath + sz_EventID; //Added By-Sunil SaveSignPathlogical = SaveSignPathlogical + sz_EventID; //end DoctorImagePath = szDefaultPath + "_DoctorSign.jpg"; DoctorImagePathlogical = SaveSignPathlogical + "_DoctorSign.jpg"; string sz_Patient_path = szDefaultPath + "_Patient.jpg"; string sz_Patient_path_logical = SaveSignPathlogical + "_Patient.jpg"; string sz_Attorney_Path = szDefaultPath + "_Attoreny.jpg"; string sz_Attorney_Path_logical = SaveSignPathlogical + "_Attoreny.jpg"; string sz_ParentOfMinorPatient_path = szDefaultPath + "_ParentOfMinorPatient.jpg"; string sz_ParentOfMinorPatient_path_logical = SaveSignPathlogical + "_ParentOfMinorPatient.jpg"; string sz_Gardian_Path = szDefaultPath + "_Gardian.jpg"; string sz_Gardian_Path_logical = SaveSignPathlogical + "_Gardian.jpg"; signobj.SignSave(Request.Form["hiddenPatient"], sz_Patient_path); signobj.SignSave(Request.Form["hidden"], sz_Attorney_Path); string RepresebtiveSign = Request.Form["hiddenParentOfMinorPatient"].ToString(); string RepresebtiveSign1 = Request.Form["hiddenGardian"].ToString(); if (!RepresebtiveSign.Equals("FFFFFFFFF58841040500000004000000CF35D06FEE8E6C74CF35D06FEE8E6C74CF35D06FEE8E6C74CF35D06FEE8E6C74CF35D06FEE8E6C74")) { signobj.SignSave(Request.Form["hiddenParentOfMinorPatient"], sz_ParentOfMinorPatient_path); } else { signobj.SignSave(Request.Form["hiddenPatient"], sz_ParentOfMinorPatient_path); } if (!RepresebtiveSign1.Equals("FFFFFFFFF58841040500000004000000CF35D06FEE8E6C74CF35D06FEE8E6C74CF35D06FEE8E6C74CF35D06FEE8E6C74CF35D06FEE8E6C74")) { signobj.SignSave(Request.Form["hiddenGardian"], sz_Gardian_Path); } #region " "Barcode functionality DataSet dset = new DataSet(); dset = _objcheckOut.GetNodeID(sz_CompanyID, sz_EventID); string sz_NodeId = dset.Tables[0].Rows[0][1].ToString(); string sz_CaseId = dset.Tables[0].Rows[0][0].ToString(); string barcodeValue = sz_CompanyID + "@" + sz_CaseId + "@" + sz_NodeId; String sz_BarcodeImagePath = (objNF3Template.getPhysicalPath()) + sz_CompanyName + "/" + ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID + "/Signs/"; string sz_BarcodeImagePath_logical = sz_CompanyName + "/" + ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID + "/Signs/"; SpecialityPDFBO pdfbo = new SpecialityPDFBO(); CaseBarcodePath = pdfbo.GetBarCodePath(sz_CompanyID, sz_CaseId, sz_NodeId, sz_BarcodeImagePath); sz_BarcodeImagePath_logical = sz_BarcodeImagePath_logical + "BarcodeImg.jpg"; #endregion //_objcheckOut.TestIntakeMri(sz_EventID, CaseBarcodePath, sz_Patient_path, sz_Attorney_Path, sz_ParentOfMinorPatient_path, sz_Gardian_Path); _objcheckOut.TestIntakeMri(sz_EventID, sz_BarcodeImagePath_logical, sz_Patient_path_logical, sz_Attorney_Path_logical, sz_ParentOfMinorPatient_path_logical, sz_Gardian_Path_logical); SpecialityPDFFill spf = new SpecialityPDFFill(); ArrayList obj = new ArrayList(); spf.sz_EventID = ""; spf.sz_CompanyID = sz_CompanyID;//spf.sz_CompanyID = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID; spf.sz_CompanyName = sz_CompanyName; spf.sz_XMLPath = "MRI_INTAKE_XML_Path"; spf.sz_PDFPath = "MRI_INTAKE_PDF_Path"; spf.sz_Session_Id = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID; spf.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; spf.SZ_SPECIALITY_NAME = "MRI"; obj = FillPDFValue(spf); Response.Redirect(obj[1].ToString(), false); Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + obj[1] + "'); ", true); Response.Write("<script>window.open('" + obj[1] + "')</script>"); spf.sz_Session_Id = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID;; spf.sz_CompanyID = sz_CompanyID; spf.sz_EventID = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID; spf.SZ_PT_FILE_NAME = obj[0].ToString(); spf.SZ_PT_FILE_PATH = obj[2].ToString(); spf.SZ_SPECIALITY_CODE = "ININT"; spf.SZ_SPECIALITY_NAME = "Intake Sheet"; spf.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; spf.savePDFForminDocMang(spf); } 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()); } }
protected void btnDelete_Click(object sender, EventArgs e) { ArrayList objarr = new ArrayList(); Bill_Sys_BillTransaction_BO obj = new Bill_Sys_BillTransaction_BO(); Bill_Sys_Verification_Desc _obj1; ArrayList _objAL = new ArrayList(); try { for (int i = 0; i < grdVerificationReq.Items.Count; i++) { if (((CheckBox)grdVerificationReq.Items[i].Cells[12].FindControl("chkDelete")).Checked == true) { string sz_status_code = grdVerificationReq.Items[i].Cells[9].Text.ToString(); if (hfconfirm.Value == "delete" || hfconfirm.Value == "no") { Bill_sys_Verification_Pop objpopup = new Bill_sys_Verification_Pop(); objpopup.sz_bill_no = grdVerificationReq.Items[i].Cells[0].Text.ToString(); objpopup.i_verification_id = grdVerificationReq.Items[i].Cells[5].Text.ToString(); objpopup.sz_company_id = txtCompanyID.Text; objpopup.sz_bill_Status = sz_status_code; objpopup.sz_flag = "DEL"; objarr.Add(objpopup); _obj1 = new Bill_Sys_Verification_Desc(); _obj1.sz_bill_no = grdVerificationReq.Items[i].Cells[0].Text.ToString(); _obj1.sz_verification_id = grdVerificationReq.Items[i].Cells[5].Text.ToString(); _obj1.sz_company_id = txtCompanyID.Text; _obj1.sz_answer_id = grdVerificationReq.Items[i].Cells[12].Text.ToString(); _objAL.Add(_obj1); } else if (hfconfirm.Value == "yes") { Bill_sys_Verification_Pop objpopup = new Bill_sys_Verification_Pop(); objpopup.sz_bill_no = grdVerificationReq.Items[i].Cells[0].Text.ToString(); objpopup.i_verification_id = grdVerificationReq.Items[i].Cells[5].Text.ToString(); objpopup.sz_company_id = txtCompanyID.Text; objpopup.sz_bill_Status = sz_status_code; if (hfverificationId.Value != grdVerificationReq.Items[i].Cells[5].Text.ToString()) { objpopup.sz_flag = "DEL"; } else { objpopup.sz_flag = "CONFIRM"; } objarr.Add(objpopup); } } } if (_objAL != null && _objAL.Count > 0) { try { Bill_Sys_BillTransaction_BO obj2 = new Bill_Sys_BillTransaction_BO(); obj2.DeleteVerificationAns(_objAL); } catch (Exception ex) { lblMessage.Visible = false; lblErrorMessage.Text = ""; lblErrorMessage.Visible = true; lblErrorMessage.Text = ex.Message.ToString(); } } ArrayList FilePath = obj.DeleteVerificationNotes(objarr); Bill_Sys_NF3_Template objpath = new Bill_Sys_NF3_Template(); string PhysicalPath = objpath.getPhysicalPath(); { for (int i = 0; i < FilePath.Count; i++) { string file_path = FilePath[i].ToString(); if (File.Exists(PhysicalPath + file_path)) { if (!File.Exists(PhysicalPath + file_path + ".delete")) { File.Move(PhysicalPath + file_path, PhysicalPath + file_path + ".delete"); } } } } BindGrid(); lblErrorMessage.Visible = true; lblScan.Visible = false; lblMessage.Visible = true; lblMessage.Text = "Record deleted successfully"; } catch (Exception ex) { lblMessage.Visible = false; lblScan.Visible = false; lblErrorMessage.Text = ""; lblErrorMessage.Visible = true; lblErrorMessage.Text = ex.Message.ToString(); } }
public string FillPDFValue(string EventID, string sz_CompanyID, string sz_CompanyName) { 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()); } string sz_CaseID = Session["PATIENT_INTEK_CASE_ID"].ToString(); PDFValueReplacement.PDFValueReplacement objValueReplacement = new PDFValueReplacement.PDFValueReplacement(); string strGenFileName = ""; try { Bill_Sys_NF3_Template objNF3Template = new Bill_Sys_NF3_Template(); string xmlpath = ConfigurationManager.AppSettings["PatientIntake_XML_Path"].ToString(); string pdfpath = ConfigurationManager.AppSettings["PatientIntake_PDF_Path"].ToString(); string CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; String szDefaultPath = CompanyName + "/" + sz_CaseID + "/Packet Document/"; String szDestinationDir = CompanyName + "/" + sz_CaseID + "/Intake Sheet/"; strGenFileName = objValueReplacement.ReplacePDFvalues(xmlpath, pdfpath, sz_CaseID, CompanyName, sz_CaseID); if (File.Exists(objNF3Template.getPhysicalPath() + szDefaultPath + strGenFileName)) { if (!Directory.Exists(objNF3Template.getPhysicalPath() + szDestinationDir)) { Directory.CreateDirectory(objNF3Template.getPhysicalPath() + szDestinationDir); } File.Copy(objNF3Template.getPhysicalPath() + szDefaultPath + strGenFileName, objNF3Template.getPhysicalPath() + szDestinationDir + strGenFileName); } Bill_Sys_CheckoutBO objCheckoutBO = new Bill_Sys_CheckoutBO(); ArrayList objAL = new ArrayList(); objAL.Add(sz_CaseID); objAL.Add(strGenFileName); objAL.Add(szDestinationDir); objAL.Add(((Bill_Sys_UserObject)Session["USER_OBJECT"]) + sz_CaseID); objAL.Add(sz_CompanyID); objAL.Add(EventID); SpecialityPDFFill spf = new SpecialityPDFFill(); spf.sz_Session_Id = Session["PATIENT_INTEK_CASE_ID"].ToString(); spf.sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; //spf.sz_EventID = Session["AOB_EVENT_ID"].ToString(); spf.SZ_PT_FILE_NAME = strGenFileName; spf.SZ_PT_FILE_PATH = szDestinationDir; spf.SZ_SPECIALITY_CODE = "ININT"; spf.SZ_SPECIALITY_NAME = "Intek Sheet"; spf.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; spf.savePDFForminDocMang(spf); spf.SZ_SPECIALITY_CODE = "ININT"; spf.SZ_SPECIALITY_NAME = "Intek Sheet"; // objCheckoutBO.savePDFForminDocMang(objAL); // Open file String szOpenFilePath = ""; szOpenFilePath = ConfigurationSettings.AppSettings["DocumentManagerURL"].ToString() + szDestinationDir + strGenFileName; // Response.Redirect(szOpenFilePath, false); Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + szOpenFilePath + "'); ", 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); } return(strGenFileName); //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnSumbit_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()); } Bill_Sys_CheckoutBO _objcheckOut = new Bill_Sys_CheckoutBO(); Bill_Sys_NF3_Template objNF3Template = new Bill_Sys_NF3_Template(); string sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; string sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; string sz_EventID = Session["CM_Event_ID"].ToString(); int flag = 0; string DoctorImagePath = ""; //string PatientImagePath = Session["PatientImagePath"].ToString(); string CaseBarcodePath = ""; try { String szDefaultPath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["CM_ALL_CaseID"].ToString() + "/Signs/"; if (!Directory.Exists(szDefaultPath)) { Directory.CreateDirectory(szDefaultPath); } szDefaultPath = szDefaultPath + sz_EventID; if (WebSignature2.ExportToStreamOnly()) { System.IO.MemoryStream imgstream2 = (System.IO.MemoryStream)(WebSignature2.ImageMemoryStream); { if (imgstream2 != null) { byte[] imageContent2 = new Byte[imgstream2.Length]; imgstream2.Position = 0; imgstream2.Read(imageContent2, 0, (int)imgstream2.Length); Response.ContentType = "image/jpeg"; Response.BinaryWrite(imageContent2); Bitmap bmp = new Bitmap(imgstream2); double size = 0.15; ResizeImage((System.Drawing.Image)bmp, size); DoctorImagePath = szDefaultPath + "_DoctorSign.jpg"; Img.Save(DoctorImagePath); DataSet dset = new DataSet(); dset = _objcheckOut.GetNodeID(sz_CompanyID, sz_EventID); string sz_NodeId = dset.Tables[0].Rows[0][1].ToString(); string sz_CaseId = dset.Tables[0].Rows[0][0].ToString(); string barcodeValue = sz_CompanyID + "@" + sz_CaseId + "@" + sz_NodeId; GenerateBarcode(barcodeValue); String sz_BarcodeImagePath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["CM_ALL_CaseID"].ToString() + "/Signs/"; CaseBarcodePath = sz_BarcodeImagePath + "BarcodeImg.jpg"; Img.Save(CaseBarcodePath); //System.IO.File.WriteAllBytes("C://LawAllies//MBSUpload//docsign.jpg", imageContent2); //string sz_case_id = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID.ToString(); //DataSet dset = new DataSet(); //dset = _objcheckOut.GetNodeID(sz_CompanyID, sz_EventID); //string sz_NodeId = dset.Tables[0].Rows[0][1].ToString(); //string sz_CaseId = dset.Tables[0].Rows[0][0].ToString(); //string barcodeValue = sz_CompanyID + "@" + sz_CaseId + "@" + sz_NodeId; //GenerateBarcode(barcodeValue); //String sz_BarcodeImagePath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["ChkOutCaseID"].ToString() + "/Signs/"; //CaseBarcodePath = sz_BarcodeImagePath + "BarcodeImg.jpg"; //Img.Save(CaseBarcodePath); //flag = 0; } else { flag = 2; } } } _objcheckOut.SaveCMALLSignPath(sz_EventID, DoctorImagePath, CaseBarcodePath); //FillPDFValue(sz_EventID, sz_CompanyID, sz_CompanyName); } 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); } Response.Redirect("Bill_Sys_CM_ALL_Questionaire_DoctorSign.aspx"); //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnPrintEnvelop_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()); } Bill_Sys_NF3_Template _objTemp = new Bill_Sys_NF3_Template(); try { String szPDFPhysicalpath = ConfigurationManager.AppSettings["NF2_ENVELOPE_PDF_FILE"]; // String szXMLPhysicalpath = ConfigurationManager.AppSettings["NF2_ENVELOPE_XML_FILE"]; String szXMLPhysicalpath = ConfigurationManager.AppSettings["PROVIDERNAME"]; String szBasePhysicalPath = _objTemp.getPhysicalPath(); String szSourceFile1 = ""; String szSourceFile1_FullPath = ""; String szSourceFile2 = ""; String szSourceFile2_FullPath = ""; String szOpenFilePath = ""; for (int i = 0; i < grdUnsentNF2.Items.Count; i++) { String szCaseID = grdUnsentNF2.Items[i].Cells[10].Text; CheckBox chkDelete1 = (CheckBox)grdUnsentNF2.Items[i].FindControl("ChkSent"); if (chkDelete1.Checked) { string InsCompanyName = ((TextBox)grdUnsentNF2.Items[i].FindControl("txtInsDetails")).Text; string Insdescription = ((TextBox)grdUnsentNF2.Items[i].FindControl("txtInsAddress")).Text; string InsDetials = ((TextBox)grdUnsentNF2.Items[i].FindControl("txtInsState")).Text; String szDefaultPath = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + szCaseID + "/Packet Document/"; // PDFValueReplacement.PDFValueReplacement objPDFReplacement = new PDFValueReplacement.PDFValueReplacement(); ReplacePdfValues objReplacePdf = new ReplacePdfValues(); //string szGeneratedPDFName = objPDFReplacement.ReplacePDFvalues(szXMLPhysicalpath, szPDFPhysicalpath, szCaseID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME, szCaseID); // string szGeneratedPDFName = objPDFReplacement.ReplacePDFvalues(szXMLPhysicalpath, szPDFPhysicalpath, extddlOffice.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME, szCaseID); // Use Function string szGeneratedPDFName = objReplacePdf.PrintEnvelope(szXMLPhysicalpath, szPDFPhysicalpath, extddlOffice.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME, szCaseID); string szGeneratedPDFName = objReplacePdf.PrintEnvelope1(szXMLPhysicalpath, szPDFPhysicalpath, extddlOffice.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME, szCaseID, InsCompanyName, Insdescription, InsDetials); if (szSourceFile1 == "") { szSourceFile1 = szGeneratedPDFName; szSourceFile1_FullPath = szBasePhysicalPath + szDefaultPath + szSourceFile1; szOpenFilePath = szDefaultPath + szSourceFile1; } else { szSourceFile2 = szGeneratedPDFName; szSourceFile2_FullPath = szBasePhysicalPath + szDefaultPath + szSourceFile2; MergePDF.MergePDFFiles(szSourceFile1_FullPath, szSourceFile2_FullPath, szBasePhysicalPath + szDefaultPath + "_" + szSourceFile1); szSourceFile1 = "_" + szSourceFile1; szSourceFile1_FullPath = szBasePhysicalPath + szDefaultPath + szSourceFile1; szOpenFilePath = szDefaultPath + szSourceFile1; } } } szOpenFilePath = ApplicationSettings.GetParameterValue("DocumentManagerURL") + szOpenFilePath; Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + szOpenFilePath.ToString() + "'); ", 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()); } }
protected void btnUploadFile_Click(object sender, EventArgs e) {//Logging Start 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()); } Bill_Sys_NF3_Template objNF3Template = new Bill_Sys_NF3_Template(); Boolean flag = false; Boolean updateflag = false; string ImgId = ""; try { if (rdbpombills.SelectedValue == "0") { if (!fuUploadReport.HasFile) { Page.RegisterStartupScript("ss", "<script language='javascript'> alert('please select file from upload Report !');showUploadFilePopup();</script>"); return; } String szDefaultPath = objNF3Template.getPhysicalPath(); int ImageId = 0; String szDestinationDir = ""; // szDestinationDir = objNF3Template.GetCompanyName(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); DataSet ds = objNF3Template.GetPomCaseId(Session["UPLOADPOMID"].ToString(), ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { String sz_Case_Id = ds.Tables[0].Rows[i]["SZ_CASE_ID"].ToString(); string szSpecID = ds.Tables[0].Rows[i]["sz_speciality_id"].ToString(); _obj = new Bill_Sys_BillTransaction_BO(); string szNodeType = _obj.GetNodeType(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, szSpecID, sz_Case_Id); string NodeId = _obj.GetNodeIDMST_Nodes(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, szNodeType); RequiredDocuments.Bill_Sys_RequiredDocumentBO bo = new RequiredDocuments.Bill_Sys_RequiredDocumentBO(); // string szNodePath = bo.GetNodePath(NodeId, sz_Case_Id, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); szDestinationDir = ""; szDestinationDir = objNF3Template.GetCompanyName(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); szDestinationDir = szDestinationDir + "\\POM receive\\" + Session["UPLOADPOMID"].ToString() + "\\"; szDestinationDir = szDestinationDir.Replace("\\", "/"); strLinkPath = szDestinationDir + fuUploadReport.FileName; if (!updateflag) { if (!Directory.Exists(szDefaultPath + szDestinationDir)) { Directory.CreateDirectory(szDefaultPath + szDestinationDir); } fuUploadReport.SaveAs(szDefaultPath + szDestinationDir + fuUploadReport.FileName); updateflag = true; } // Start : Save report under document manager. ArrayList objAL = new ArrayList(); objAL.Add(sz_Case_Id); objAL.Add(""); objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); objAL.Add(fuUploadReport.FileName); objAL.Add(szDestinationDir); objAL.Add(((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME.ToString()); objAL.Add(NodeId); ImgId = objNF3Template.SaveDocumentData(objAL); // End : Save report under document manager. if (!flag) { if (Session["POMSTATUS"].ToString().Equals("1")) { objNF3Template.UpdateReportPomPath(fuUploadReport.FileName, szDestinationDir, ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID, Session["UPLOADPOMID"].ToString(), ImgId, "VPOMR"); } else { objNF3Template.UpdateReportPomPath(fuUploadReport.FileName, szDestinationDir, ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID, Session["UPLOADPOMID"].ToString(), ImgId, "POM"); } flag = true; } } // End : Save report under document manager. usrMessage.PutMessage("File Upload Successfully"); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); usrMessage.Show(); //fillControl(); fillControl(); this.con.SourceGrid = grdPomReport; this.txtSearchBox.SourceGrid = grdPomReport; this.grdPomReport.Page = this.Page; this.grdPomReport.PageNumberList = this.con; grdPomReport.XGridKey = "Report_pom"; grdPomReport.XGridBindSearch(); } else { _objReport = new Bill_Sys_ReportBO(); if (!fuUploadReport.HasFile) { Page.RegisterStartupScript("ss", "<script language='javascript'> alert('please select file from upload Report !');showUploadFilePopup();</script>"); return; } String szDefaultPath = objNF3Template.getPhysicalPath(); int ImageId = 0; String szDestinationDir = ""; DataSet dspomother = new DataSet(); // szDestinationDir = objNF3Template.GetCompanyName(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); dspomother = _objReport.GetPomotherCaseId(Session["UPLOADPOMID"].ToString(), ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); for (int i = 0; i < dspomother.Tables[0].Rows.Count; i++) { String sz_Case_Id = dspomother.Tables[0].Rows[i]["SZ_CASE_ID"].ToString(); string szSpecID = dspomother.Tables[0].Rows[i]["sz_speciality_id"].ToString(); _obj = new Bill_Sys_BillTransaction_BO(); string szNodeType = _obj.GetNodeType(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, szSpecID, sz_Case_Id); string NodeId = _obj.GetNodeIDMST_Nodes(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, szNodeType); RequiredDocuments.Bill_Sys_RequiredDocumentBO bo = new RequiredDocuments.Bill_Sys_RequiredDocumentBO(); // string szNodePath = bo.GetNodePath(NodeId, sz_Case_Id, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); szDestinationDir = ""; szDestinationDir = objNF3Template.GetCompanyName(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); szDestinationDir = szDestinationDir + "\\POM receive\\" + Session["UPLOADPOMID"].ToString() + "\\"; szDestinationDir = szDestinationDir.Replace("\\", "/"); strLinkPath = szDestinationDir + fuUploadReport.FileName; if (!updateflag) { if (!Directory.Exists(szDefaultPath + szDestinationDir)) { Directory.CreateDirectory(szDefaultPath + szDestinationDir); } fuUploadReport.SaveAs(szDefaultPath + szDestinationDir + fuUploadReport.FileName); updateflag = true; } // Start : Save report under document manager. ArrayList objAL = new ArrayList(); objAL.Add(sz_Case_Id); objAL.Add(""); objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); objAL.Add(fuUploadReport.FileName); objAL.Add(szDestinationDir); objAL.Add(((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME.ToString()); objAL.Add(NodeId); ImgId = objNF3Template.SaveDocumentData(objAL); // End : Save report under document manager. if (!flag) { if (Session["POMSTATUS"].ToString().Equals("1")) { _objReport.UpdateReportPomOtherPath(fuUploadReport.FileName, szDestinationDir, ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID, Session["UPLOADPOMID"].ToString(), ImgId, "VPOMR"); } else { _objReport.UpdateReportPomOtherPath(fuUploadReport.FileName, szDestinationDir, ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID, Session["UPLOADPOMID"].ToString(), ImgId, "POM"); } flag = true; } } // End : Save report under document manager. usrMessage.PutMessage("File Upload Successfully"); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); usrMessage.Show(); fillControl(); this.con.SourceGrid = grdPomReport; this.txtSearchBox.SourceGrid = grdPomReport; this.grdPomReport.Page = this.Page; this.grdPomReport.PageNumberList = this.con; grdPomReport.XGridKey = "Report_Pom_Other"; grdPomReport.XGridBindSearch(); } } 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()); } }
private void creatPDF() { 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()); } String szSourceFile1 = ""; String szSourceFile1_FullPath = ""; String szSourceFile2 = ""; String szSourceFile2_FullPath = ""; String szOpenFilePath = ""; string pdffilename = ""; string genhtmlNF = ""; string genhtmlWC = ""; string billIDWC = ""; string billIDNF = ""; string providerNameWC = ""; string providerNameNF = ""; int i = 0; int printi = 0; int printiWC = 0; int iPageCount = 1; string billidWC = ""; string billidNF = ""; int i_pom_id = 0; string NodeIdPath = ""; Bill_Sys_NF3_Template _objTemp = new Bill_Sys_NF3_Template(); StringBuilder sbFinalHTML = new StringBuilder(); sbFinalHTML.AppendLine(""); int iRecordOnpageNF = Convert.ToInt32(ConfigurationManager.AppSettings["POM_RECORD_PER_PAGE"]); int iRecordOnpageWC = Convert.ToInt32(ConfigurationManager.AppSettings["POM_RECORD_PER_PAGE"]); try { String szBasePhysicalPath = _objTemp.getPhysicalPath(); string szDefaultPath = ApplicationSettings.GetParameterValue("FETCHEXCEL_SHEET"); int iFlag = 0; DataSet ds = CreateGroupData(); int iRecordsPerPageNF = 0; int iRecordsPerPageWC = 0; string strProvider = null; string strProviderNF = null; string strCasetype = null; bool iWCCount = false; genhtmlNF = "<table border='1' width='100%'> <tr> <td style='font-size:9px' width='3%'>Line</td> <td style='font-size:9px' width='5%'>Article Number</td> <td style='font-size:9px' width='25%'>Name of Addressee, Street, and Post Office Address</td> <td style='font-size:9px' width='5%'>Postage</td> <td style='font-size:9px' width='5%'>Fee</td> <td style='font-size:9px' width='5%'>Handling Charge</td> <td style='font-size:9px' width='5%'>Act. Value (if regis.)</td> <td style='font-size:9px' width='5%'>Insured Value</td> <td style='font-size:9px' width='5%'>Due Sender if COD</td> <td style='font-size:9px' width='5%'>R.R. fee</td> <td style='font-size:9px' width='5%'>S.D. fee</td> <td style='font-size:9px' width='5%'>S.H. fee</td> <td style='font-size:9px' width='5%'>Rest Del fee <br/> Remarks</td> </tr>"; //</td><td><b>Patient Name</b></td><td><b>Insurance Company</b></td><td><b>Insurance Address</b></td><td><b>Claim No</b></td><td><b>Date Of Accident</b></td></tr>"; genhtmlWC = "<table border='1' width='100%'> <tr> <td style='font-size:9px' width='3%'>Line</td> <td style='font-size:9px' width='5%'>Article Number</td> <td style='font-size:9px' width='25%'>Name of Addressee, Street, and Post Office Address</td> <td style='font-size:9px' width='5%'>Postage</td> <td style='font-size:9px' width='5%'>Fee</td> <td style='font-size:9px' width='5%'>Handling Charge</td> <td style='font-size:9px' width='5%'>Act. Value (if regis.)</td> <td style='font-size:9px' width='5%'>Insured Value</td> <td style='font-size:9px' width='5%'>Due Sender if COD</td> <td style='font-size:9px' width='5%'>R.R. fee</td> <td style='font-size:9px' width='5%'>S.D. fee</td> <td style='font-size:9px' width='5%'>S.H. fee</td> <td style='font-size:9px' width='5%'>Rest Del fee <br/> Remarks</td> </tr>"; //</td><td><b>Patient Name</b></td><td><b>Insurance Company</b></td><td><b>Insurance Address</b></td><td><b>Claim No</b></td><td><b>Date Of Accident</b></td></tr>"; // create html and pdf for groupwise provider . print per page in pdf for provider int _iCountWC = 0; int _iCountNF = 0; for (int j = 0; j < ds.Tables[0].Rows.Count; j++) { strCasetype = ds.Tables[0].Rows[j]["CaseType"].ToString(); if (strCasetype != "WC000000000000000001") { // ONLY NF PROVIDER iRecordsPerPageNF = _iCountNF; sbFinalHTML.AppendLine(""); if (iFlag == 0) { strProvider = ds.Tables[0].Rows[j]["Provider"].ToString(); iFlag = 1; billidNF = ""; iRecordsPerPageNF = 0; } if (strProvider.Equals(ds.Tables[0].Rows[j]["Provider"].ToString())) { ++printi; //int i = 0; if (iRecordsPerPageNF == iRecordOnpageNF) { sbFinalHTML.Append(ReplaceHeaderAndFooter(genhtmlNF, "", i_pom_id)); sbFinalHTML.AppendLine("<span style='page-break-after:always'></span>"); genhtmlNF = "<table border='1' width='100%'> <tr> <td style='font-size:9px' width='3%'>Line</td> <td style='font-size:9px' width='5%'>Article Number</td> <td style='font-size:9px' width='25%'>Name of Addressee, Street, and Post Office Address</td> <td style='font-size:9px' width='5%'>Postage</td> <td style='font-size:9px' width='5%'>Fee</td> <td style='font-size:9px' width='5%'>Handling Charge</td> <td style='font-size:9px' width='5%'>Act. Value (if regis.)</td> <td style='font-size:9px' width='5%'>Insured Value</td> <td style='font-size:9px' width='5%'>Due Sender if COD</td> <td style='font-size:9px' width='5%'>R.R. fee</td> <td style='font-size:9px' width='5%'>S.D. fee</td> <td style='font-size:9px' width='5%'>S.H. fee</td> <td style='font-size:9px' width='5%'>Rest Del fee <br/> Remarks</td> </tr>"; iRecordsPerPageNF = 0; _iCountNF = 0; } if (ds.Tables[0].Rows[j]["InsDescription"] != "") { //genhtmlNF += "<tr><td style='font-size:9px'>" + (printi).ToString() + "</td><td style='font-size:9px'>" + ds.Tables[0].Rows[j]["Claim Number"] + "</td><td style='font-size:9px'><b>" + ds.Tables[0].Rows[j]["Insurance Company"] + "</b><br/>" + ds.Tables[0].Rows[j]["Insurance Address"] + "</td><td style='font-size:9px' colspan=6></td><td style='font-size:9px'></td><td style='font-size:9px'></td><td style='font-size:9px'>" + ds.Tables[0].Rows[j]["Patient Name"] + ' ' + ds.Tables[0].Rows[j]["Case #"] + "</td></tr>"; genhtmlNF += "<tr><td style='font-size:9px'>" + (printi).ToString() + "</td><td style='font-size:9px'>" + ds.Tables[0].Rows[j]["Claim Number"] + "</td><td style='font-size:9px'><b>" + ds.Tables[0].Rows[j]["Insurance Company"] + "</b><br/>" + ds.Tables[0].Rows[j]["Insurance Address"] + "</b></td><td style='font-size:9px;' colspan=6> " + ds.Tables[0].Rows[j]["InsDescription"] + "</td><td style='font-size:9px'>" + ds.Tables[0].Rows[j]["Case #"] + "</td><td style='font-size:9px'></td><td style='font-size:9px'></td><td style='font-size:9px'>" + ds.Tables[0].Rows[j]["Patient Name"] + ' ' + ds.Tables[0].Rows[j]["Case #"] + "</td><div style=top:100px;left:25px;> </div></tr>"; _iCountNF++; iRecordsPerPageNF++; } else { genhtmlNF += "<tr><td style='font-size:9px'>" + (printi).ToString() + "</td><td style='font-size:9px'>" + ds.Tables[0].Rows[j]["Claim Number"] + "</td><td style='font-size:9px'><b>" + ds.Tables[0].Rows[j]["Insurance Company"] + "</b><br/>" + ds.Tables[0].Rows[j]["Insurance Address"] + "</td><td style='font-size:9px'></td><td style='font-size:9px'></td><td style='font-size:9px'></td><td style='font-size:9px'></td><td style='font-size:9px'></td><td style='font-size:9px'></td><td style='font-size:9px'>" + ds.Tables[0].Rows[j]["Case #"] + "</td><td style='font-size:9px'></td><td style='font-size:9px'></td><td style='font-size:9px'>" + ds.Tables[0].Rows[j]["Patient Name"] + ' ' + ds.Tables[0].Rows[j]["Case #"] + "</td></tr>"; _iCountNF++; iRecordsPerPageNF++; } //i = i + 1; Session["VL_COUNT"] = ds.Tables[0].Rows.Count; } } } string genHtml = ""; if (iWCCount == false && _iCountWC > 0) { genhtmlWC += "</table>"; sbFinalHTML.AppendLine(ReplaceHeaderAndFooter(genhtmlWC, billidWC, i_pom_id)); sbFinalHTML.AppendLine("<span style='page-break-after:always'></span>"); } if (_iCountNF > 0) { genhtmlNF += "</table>"; genHtml = genhtmlNF; sbFinalHTML.AppendLine(ReplaceHeaderAndFooter(genHtml, billidNF, i_pom_id)); } if (_iCountWC > 0) { // sbFinalHTML.AppendLine("<span style='page-break-after:always'></span>"); //genHtml = genhtmlWC; //sbFinalHTML.Append(ReplaceHeaderAndFooter(genHtml, billidWC )); } string strHtml = sbFinalHTML.ToString(); SautinSoft.PdfMetamorphosis objHTMToPDF = new SautinSoft.PdfMetamorphosis(); objHTMToPDF.Serial = "10007706603"; string htmfilename = getFileName("P") + ".htm"; pdffilename = getFileName("P") + ".pdf"; string file_Path = ApplicationSettings.GetParameterValue("EXCEL_SHEET") + pdffilename; StreamWriter sw = new StreamWriter(ApplicationSettings.GetParameterValue("EXCEL_SHEET") + htmfilename); sw.Write(strHtml); sw.Close(); Int32 iTemp; iTemp = objHTMToPDF.HtmlToPdfConvertFile(ApplicationSettings.GetParameterValue("EXCEL_SHEET") + htmfilename, ApplicationSettings.GetParameterValue("EXCEL_SHEET") + pdffilename); string szPDFName = ""; szPDFName = szDefaultPath + pdffilename; if (szSourceFile1 == "") { szSourceFile1 = pdffilename; szSourceFile1_FullPath = szDefaultPath + szSourceFile1; szOpenFilePath = szDefaultPath + szSourceFile1; } else { szSourceFile2 = pdffilename; szSourceFile2_FullPath = szDefaultPath + szSourceFile2; } szOpenFilePath = szDefaultPath + szSourceFile1; // Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + szOpenFilePath.ToString() + "'); ", true); ScriptManager.RegisterClientScriptBlock(this, GetType(), "Msg", "window.open('" + szOpenFilePath.ToString() + "'); ", 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()); } }
public ArrayList FillPDFValue(SpecialityPDFFill p_objSepcialityPDF) { 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()); } string sz_CompanyID = ""; string sz_ComapanyName = ""; if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true && ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID != ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID) { sz_CompanyID = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID; Bill_Sys_NF3_Template obj = new Bill_Sys_NF3_Template(); sz_ComapanyName = obj.GetCompanyName(sz_CompanyID); } else { sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; sz_ComapanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; } string sz_CaseID = p_objSepcialityPDF.sz_Session_Id; PDFValueReplacement.PDFValueReplacement objValueReplacement = new PDFValueReplacement.PDFValueReplacement(); string pdffilepath; string strGenFileName = ""; String szOpenFilePath = ""; String szDestinationDir = ""; try { Bill_Sys_NF3_Template objNF3Template = new Bill_Sys_NF3_Template(); string xmlpath = ConfigurationManager.AppSettings[p_objSepcialityPDF.sz_XMLPath].ToString(); string pdfpath = ConfigurationManager.AppSettings[p_objSepcialityPDF.sz_PDFPath].ToString(); String szDefaultPath = p_objSepcialityPDF.sz_CompanyName + "/" + sz_CaseID + "/Packet Document/"; szDestinationDir = p_objSepcialityPDF.sz_CompanyName + "/" + sz_CaseID + "/MRI/"; strGenFileName = objValueReplacement.ReplacePDFvalues(xmlpath, pdfpath, txtId.Text, p_objSepcialityPDF.sz_CompanyName, sz_CaseID); if (File.Exists(objNF3Template.getPhysicalPath() + szDefaultPath + strGenFileName)) { if (!Directory.Exists(objNF3Template.getPhysicalPath() + szDestinationDir)) { Directory.CreateDirectory(objNF3Template.getPhysicalPath() + szDestinationDir); } File.Copy(objNF3Template.getPhysicalPath() + szDefaultPath + strGenFileName, objNF3Template.getPhysicalPath() + szDestinationDir + strGenFileName); } Bill_Sys_CheckoutBO objCheckoutBO = new Bill_Sys_CheckoutBO(); ArrayList objAL = new ArrayList(); objAL.Add(sz_CaseID); objAL.Add(strGenFileName); objAL.Add(szDestinationDir); objAL.Add(p_objSepcialityPDF.SZ_USER_NAME); objAL.Add(sz_CompanyID); objAL.Add(txtId.Text); szOpenFilePath = ConfigurationSettings.AppSettings["DocumentManagerURL"].ToString() + szDestinationDir + strGenFileName; ArrayList al = new ArrayList(); al.Add(strGenFileName); al.Add(szOpenFilePath); al.Add(szDestinationDir); return(al); } 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); } return(null); //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
public string FillPDFValue(string EventID, string sz_CompanyID, string sz_CompanyName) { 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()); } Bill_Sys_CheckoutBO _obj = new Bill_Sys_CheckoutBO(); DataSet dsObj = _obj.PatientName(txtEventID.Text); //Session["CH_CaseID"] = dsObj.Tables[0].Rows[0][1].ToString(); // Session["CH_CaseID"] = "6"; string sz_CaseID = ((SpecialityPDFDAO)Session["SPECIALITY_PDF_OBJECT"]).CaseID; PDFValueReplacement.PDFValueReplacement objValueReplacement = new PDFValueReplacement.PDFValueReplacement(); string pdffilepath; string strGenFileName = ""; try { Bill_Sys_NF3_Template objNF3Template = new Bill_Sys_NF3_Template(); string xmlpath = ConfigurationManager.AppSettings["MST_CHIRO_CA_XML_Path"].ToString(); string pdfpath = ConfigurationManager.AppSettings["MST_CHIRO_CA_PDF_Path"].ToString(); String szDefaultPath = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + sz_CaseID + "/Packet Document/"; String szDestinationDir = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + sz_CaseID + "/No Fault File/Medicals/CH/"; strGenFileName = objValueReplacement.ReplacePDFvalues(xmlpath, pdfpath, EventID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME, sz_CaseID); if (File.Exists(objNF3Template.getPhysicalPath() + szDefaultPath + strGenFileName)) { if (!Directory.Exists(objNF3Template.getPhysicalPath() + szDestinationDir)) { Directory.CreateDirectory(objNF3Template.getPhysicalPath() + szDestinationDir); } File.Copy(objNF3Template.getPhysicalPath() + szDefaultPath + strGenFileName, objNF3Template.getPhysicalPath() + szDestinationDir + strGenFileName); } Bill_Sys_CheckoutBO objCheckoutBO = new Bill_Sys_CheckoutBO(); ArrayList objAL = new ArrayList(); objAL.Add(sz_CaseID); objAL.Add(strGenFileName); objAL.Add(szDestinationDir); objAL.Add(((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME); objAL.Add(sz_CompanyID); objAL.Add(EventID); objCheckoutBO.save_CHIRO_DocMang(objAL); // Open file String szOpenFilePath = ""; szOpenFilePath = ConfigurationSettings.AppSettings["DocumentManagerURL"].ToString() + szDestinationDir + strGenFileName; Response.Redirect(szOpenFilePath, false); Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + szOpenFilePath + "'); ", true); //Bill_Sys_CheckoutBO obj = new Bill_Sys_CheckoutBO(); //if (obj.CheckImgPath(Convert.ToInt32(Session["IMEventID"].ToString()))) //{ // string sz_eventID = (string)Session["IMEventID"].ToString(); // FillPDFValue(sz_eventID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME); //} //else //{ // Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('Bill_Sys_IM_DoctorSign_AccuReEval.aspx','Sign','toolbar=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=no,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); } return(strGenFileName); //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnSave_Click(object sender, EventArgs e) { if (rdoPregnant.SelectedValue.ToString().Equals("")) { txtPregnant.Text = "-1"; } else { txtPregnant.Text = rdoPregnant.SelectedValue; } if (rdoIvContrast.SelectedValue.ToString().Equals("")) { txtIvContrast.Text = "-1"; } else { txtIvContrast.Text = rdoIvContrast.SelectedValue; } _saveOperation = new SaveOperation(); _saveOperation.WebPage = this.Page; _saveOperation.Xml_File = "Test_Facility_Intake.xml"; _saveOperation.SaveMethod(); Bill_Sys_CheckoutBO _objCheckoutBO = new Bill_Sys_CheckoutBO(); if (_objCheckoutBO.ChekIntakeMriPath(Convert.ToInt32(txtId.Text))) { if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true && ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID != ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID) { sz_CompanyID = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID; Bill_Sys_NF3_Template obj1 = new Bill_Sys_NF3_Template(); sz_ComapanyName = obj1.GetCompanyName(sz_CompanyID); } else { sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; sz_ComapanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; } SpecialityPDFFill spf = new SpecialityPDFFill(); ArrayList obj = new ArrayList(); spf.sz_EventID = ""; spf.sz_CompanyID = sz_CompanyID; spf.sz_CompanyName = sz_ComapanyName; spf.sz_XMLPath = "MRI_INTAKE_XML_Path"; spf.sz_PDFPath = "MRI_INTAKE_PDF_Path"; spf.sz_Session_Id = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID; spf.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; spf.SZ_SPECIALITY_NAME = "MRI"; obj = FillPDFValue(spf); //Response.Redirect(obj[1].ToString(), false); //Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + obj[1] + "'); ", true); ////Response.Write("<script>window.open('" + obj[1] + "')</script>"); //Response.Redirect(obj[1].ToString(), false); //Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + obj[1] + "'); ", true); //Response.Write("<script>window.open('" + obj[1] + "')</script>"); Response.Write("<script>window.open('" + obj[1] + "')</script>"); spf.sz_Session_Id = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID; spf.sz_CompanyID = sz_CompanyID; spf.sz_EventID = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID; spf.SZ_PT_FILE_NAME = obj[0].ToString(); spf.SZ_PT_FILE_PATH = obj[2].ToString(); spf.SZ_SPECIALITY_CODE = "ININT"; spf.SZ_SPECIALITY_NAME = "Intake Sheet"; spf.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; spf.savePDFForminDocMang(spf); } else { // Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('Bill_Sys_AC_Accu_Initial_Doctor_sign.aspx','Sign','toolbar=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=no,width=700,height=575'); ", true); Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('MRISignature.aspx','Sign','toolbar=no,directories=no,menubar=no,scrollbars=yes,status=no,resizable=yes,width=1400,height=750'); ", true); } //Response.Redirect("Bill_Sys_Test_Facility_Intake_Signature.aspx"); }
protected void Page_Load(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()); } _objcheckOut = new Bill_Sys_CheckoutBO(); DigitalSign signobj = new DigitalSign(); objNF3Template = new Bill_Sys_NF3_Template(); // DataSet dsObj = _objcheckOut.PatientName(Session["IMEventID"].ToString()); Session["ChkCaseID"] = ((SpecialityPDFDAO)Session["SPECIALITY_PDF_OBJECT"]).CaseID; sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; sz_EventID = ((SpecialityPDFDAO)Session["SPECIALITY_PDF_OBJECT"]).EventID; int flag = 0; try { String szDefaultPath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["ChkCaseID"].ToString() + "/Signs/"; //Added By-Sunil string SaveSignPath = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["ChkCaseID"].ToString() + "/Signs/"; //end if (!Directory.Exists(szDefaultPath)) { Directory.CreateDirectory(szDefaultPath); } szDefaultPath = szDefaultPath + sz_EventID; //Added By-Sunil SaveSignPath = SaveSignPath + sz_EventID; DoctorImagePathlogical = SaveSignPath + "_DoctorSign.jpg"; //end DoctorImagePath = szDefaultPath + "_DoctorSign.jpg"; signobj.SignSave(Request.Form["hiddenPatient"], szDefaultPath + "_Patient.jpg"); //_objcheckOut.UpdatePatientChairoSign(sz_EventID, szDefaultPath + "_Patient.jpg"); _objcheckOut.UpdatePatientChairoSign(sz_EventID, SaveSignPath + "_Patient.jpg"); signobj.SignSave(Request.Form["hidden"], DoctorImagePath); #region " "Barcode functionality DataSet dset = new DataSet(); dset = _objcheckOut.GetNodeID(sz_CompanyID, sz_EventID); string sz_NodeId = dset.Tables[0].Rows[0][1].ToString(); string sz_CaseId = dset.Tables[0].Rows[0][0].ToString(); string barcodeValue = sz_CompanyID + "@" + sz_CaseId + "@" + sz_NodeId; String sz_BarcodeImagePath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["ChkCaseID"].ToString() + "/Signs/"; //Added By-Sunil string sz_BarcodeImagePathlogical = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["ChkCaseID"].ToString() + "/Signs/"; //end SpecialityPDFBO pdfbo = new SpecialityPDFBO(); CaseBarcodePath = pdfbo.GetBarCodePath(sz_CompanyID, sz_CaseId, sz_NodeId, sz_BarcodeImagePath); //Added By-Sunil string CaseBarcodePathlogical = sz_BarcodeImagePathlogical + "BarcodeImg.jpg"; //end #endregion // _objcheckOut.UpdateChairoSign(sz_EventID, DoctorImagePath, CaseBarcodePath); _objcheckOut.UpdateChairoSign(sz_EventID, DoctorImagePathlogical, CaseBarcodePathlogical); FillPDFValue(sz_EventID, sz_CompanyID, sz_CompanyName); #region //string sz_CaseID = ((SpecialityPDFDAO)Session["SPECIALITY_PDF_OBJECT"]).CaseID; //PDFValueReplacement.PDFValueReplacement objValueReplacement = new PDFValueReplacement.PDFValueReplacement(); //string pdffilepath; //string strGenFileName = ""; //try //{ // // Bill_Sys_NF3_Template objNF3Template = new Bill_Sys_NF3_Template(); // string xmlpath = ConfigurationManager.AppSettings["MST_CHIRO_CA_XML_Path"].ToString(); // string pdfpath = ConfigurationManager.AppSettings["MST_CHIRO_CA_PDF_Path"].ToString(); // szDefaultPath = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + sz_CaseID + "/Packet Document/"; // String szDestinationDir = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + sz_CaseID + "/No Fault File/Medicals/CH/"; // strGenFileName = objValueReplacement.ReplacePDFvalues(xmlpath, pdfpath, sz_EventID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME, sz_CaseID); // if (File.Exists(objNF3Template.getPhysicalPath() + szDefaultPath + strGenFileName)) // { // if (!Directory.Exists(objNF3Template.getPhysicalPath() + szDestinationDir)) // { // Directory.CreateDirectory(objNF3Template.getPhysicalPath() + szDestinationDir); // } // File.Copy(objNF3Template.getPhysicalPath() + szDefaultPath + strGenFileName, objNF3Template.getPhysicalPath() + szDestinationDir + strGenFileName); // } // Bill_Sys_CheckoutBO objCheckoutBO = new Bill_Sys_CheckoutBO(); // ArrayList objAL = new ArrayList(); // objAL.Add(sz_CaseID); // objAL.Add(strGenFileName); // objAL.Add(szDestinationDir); // objAL.Add(((Bill_Sys_UserObject)Session["USER_OBJECT"]) + sz_CaseID); // objAL.Add(sz_CompanyID); // objAL.Add(sz_EventID); // objCheckoutBO.save_CHIRO_DocMang(objAL); // // Open file // String szOpenFilePath = ""; // szOpenFilePath = ConfigurationSettings.AppSettings["DocumentManagerURL"].ToString() + szDestinationDir + strGenFileName; // Response.Redirect(szOpenFilePath, false); // //Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + szOpenFilePath + "'); ", true); //} //catch (Exception _ex) //{ // Elmah.ErrorSignal.FromCurrentContext().Raise(ex); //} #endregion } catch (Exception ex) { Label1.Text = "Page Laod :" + ex.ToString(); 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); } #region "check version readonly or not" string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString(); if (app_status.Equals("True")) { Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page); cv.MakeReadOnlyPage("Bill_Sys_Image_Save.aspx"); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } #endregion }
protected void btnUPdate_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()); } bool docSelected = true; try { bool chkDocCategory = true; if (extddlSpecialty.Visible && extddlSpecialty.Text == "NA") { ScriptManager.RegisterClientScriptBlock(this, GetType(), "ds42d", "alert('Please Select Specialty.');", true); return; } for (int i = 0; i < grdViewDocuments.Items.Count; i++) { if (((CheckBox)(grdViewDocuments.Items[i].Cells[0].FindControl("chkView"))).Checked == true) { docSelected = true; if (((DropDownList)(grdViewDocuments.Items[i].Cells[4].FindControl("ddlreport"))).SelectedValue == "8") { chkDocCategory = false; } } } if (chkDocCategory == false) { ScriptManager.RegisterClientScriptBlock(this, GetType(), "ds42d", "alert('Please Select Document Category.');", true); return; } // ScriptManager.RegisterClientScriptBlock(this, GetType(), "ds4", "alert('Doctor assign successfully.');", true); if (docSelected == true) { objNF3Template = new Bill_Sys_NF3_Template(); String szDefaultPath = objNF3Template.getPhysicalPath(); int ImageId = 0; string PathNotFound = ""; foreach (DataGridItem drg in grdViewDocuments.Items) { CheckBox drp = (CheckBox)drg.Cells[0].FindControl("chkView"); DropDownList drpReport = (DropDownList)drg.Cells[0].FindControl("ddlreport"); if (drp.Checked == true) { String szDestinationDir = ""; //if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true) if (objSessionBillingCompany.BT_REFERRING_FACILITY == true) { //szDestinationDir = objNF3Template.GetCompanyName(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); szDestinationDir = objNF3Template.GetCompanyName(objSessionBillingCompany.SZ_COMPANY_ID); } else { //szDestinationDir = objNF3Template.GetCompanyName(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); szDestinationDir = objNF3Template.GetCompanyName(objSessionBillingCompany.SZ_COMPANY_ID); } // szDestinationDir = szDestinationDir + "/" + txtCaseId.Text + "/No Fault File/Medicals/" + txtSpecility.Text + "/"; if (drpReport.SelectedValue == "0") { szDestinationDir = szDestinationDir + "/" + txtCaseID.Text + "/No Fault File/Medicals/" + hdnmdltxtSpeciality.Text + "/"; } else if (drpReport.SelectedValue == "1") { szDestinationDir = szDestinationDir + "/" + txtCaseID.Text + "/No Fault File/Medicals/" + hdnmdltxtSpeciality.Text + "/Referral/"; } else if (drpReport.SelectedValue == "2") { szDestinationDir = szDestinationDir + "/" + txtCaseID.Text + "/No Fault File/AOB/"; } else if (drpReport.SelectedValue == "3") { szDestinationDir = szDestinationDir + "/" + txtCaseID.Text + "/No Fault File/Comp Authorization/"; } else if (drpReport.SelectedValue == "4") { szDestinationDir = szDestinationDir + "/" + txtCaseID.Text + "/No Fault File/HIPPA Consent/"; } else if (drpReport.SelectedValue == "5") { szDestinationDir = szDestinationDir + "/" + txtCaseID.Text + "/No Fault File/Lien Form/"; } else if (drpReport.SelectedValue == "6") { szDestinationDir = szDestinationDir + "/" + txtCaseID.Text + "/No Fault File/MISC/"; } else if (drpReport.SelectedValue == "7") { szDestinationDir = szDestinationDir + "/" + txtCaseID.Text + "/No Fault File/MISC/"; } strLinkPath = drg.Cells[2].Text + drg.Cells[3].Text; if (!Directory.Exists(szDefaultPath + szDestinationDir)) { Directory.CreateDirectory(szDefaultPath + szDestinationDir); } Bill_Sys_FileType_Settings _Bill_Sys_FileType_Settings = new Bill_Sys_FileType_Settings(); DataSet dscode = new DataSet(); dscode = _Bill_Sys_FileType_Settings.GET_IMAGE_ID(txtEventProcID.Text, drg.Cells[3].Text, txtCompanyID.Text); if (dscode.Tables[0].Rows.Count > 0) { for (int i = 0; i < dscode.Tables[0].Rows.Count; i++) { ArrayList arr = new ArrayList(); arr.Add(dscode.Tables[0].Rows[i]["I_ID"].ToString()); arr.Add(txtEventProcID.Text); _Bill_Sys_FileType_Settings.LhrDeleteDocuments(arr); } for (int i = 0; i < dscode.Tables[0].Rows.Count; i++) { // Bill_Sys_FileType_Settings _Bill_Sys_FileType_Settings = new Bill_Sys_FileType_Settings(); DataSet dsimageid = new DataSet(); dsimageid = _Bill_Sys_FileType_Settings.GET_IMAGE_ID_LHR(dscode.Tables[0].Rows[i]["I_IMAGE_ID"].ToString()); string sz_path = ConfigurationManager.AppSettings["BASEPATH"].ToString() + dscode.Tables[0].Rows[0]["SZ_FILE_PATH"].ToString() + dscode.Tables[0].Rows[0]["SZ_FILE_NAME"].ToString(); string szFinal = sz_path.Replace("/", "\\"); if (dsimageid.Tables[0].Rows.Count > 0) { } else { ArrayList arr = new ArrayList(); arr.Add(dscode.Tables[0].Rows[i]["I_IMAGE_ID"].ToString()); arr.Add(drg.Cells[3].Text); _Bill_Sys_FileType_Settings.Deletelhrdocuments(arr); string FinalPath = ""; //szDefaultPath; try { System.IO.File.Move(@szFinal, @szFinal + ".deleted"); } 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); } } } } if (File.Exists(szDefaultPath + strLinkPath)) { File.Copy(szDefaultPath + strLinkPath, szDefaultPath + szDestinationDir + drg.Cells[3].Text, true); ArrayList objAL = new ArrayList(); //if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true) if (objSessionBillingCompany.BT_REFERRING_FACILITY == true) { objAL.Add(objSessionBillingCompany.SZ_COMPANY_ID); } else { //objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); objAL.Add(objSessionBillingCompany.SZ_COMPANY_ID); } objAL.Add(txtCaseID.Text); objAL.Add(drg.Cells[3].Text); objAL.Add(szDestinationDir); //objAL.Add(((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME); objAL.Add(objSessionUser.SZ_USER_NAME); objAL.Add(hdnmdltxtSpeciality.Text); // ImageId = objNF3Template.saveReportInDocumentManager(objAL); if (drpReport.SelectedValue == "0") { ImageId = objNF3Template.saveReportInDocumentManager(objAL); } else if (drpReport.SelectedValue == "1") { ImageId = objNF3Template.saveReportInDocumentManager_Referral(objAL); } else if (drpReport.SelectedValue == "2") { ImageId = objNF3Template.saveReportInDocumentManager_AOB(objAL); } else if (drpReport.SelectedValue == "3") { ImageId = objNF3Template.saveReportInDocumentManager_NFCA(objAL); } else if (drpReport.SelectedValue == "4") { ImageId = objNF3Template.saveReportInDocumentManager_NFHC(objAL); } else if (drpReport.SelectedValue == "5") { ImageId = objNF3Template.saveReportInDocumentManager_NFLF(objAL); } else if (drpReport.SelectedValue == "6") { ImageId = saveReportInDocumentManager_NFMIS(objAL); } else if (drpReport.SelectedValue == "7") { if (File.Exists(szDefaultPath + strLinkPath)) { string szImgID = ""; string szDestinationDir2 = ""; szDestinationDir2 = drg.Cells[2].Text.Replace("/", "\\"); szImgID = objNF3Template.GetImageID(drg.Cells[3].Text, drg.Cells[2].Text, szDestinationDir2); ImageId = Convert.ToInt32(szImgID); } } if ((ImageId.ToString().Trim() != "0") && (ImageId.ToString().Trim() != "")) { _bill_Sys_ProcedureCode_BO = new Bill_Sys_ProcedureCode_BO(); _bill_Sys_ProcedureCode_BO.assignLHRDocument(objAL, ImageId, drpReport.SelectedValue, Convert.ToInt32(txtEventProcID.Text)); } // End : Save report under document manager. //} if (drpReport.SelectedValue == "0") { Bill_Sys_ReferalEvent _bill_Sys_ReferalEvent; ArrayList arrOBJ; _bill_Sys_ProcedureCode_BO = new Bill_Sys_ProcedureCode_BO(); _bill_Sys_ProcedureCode_BO.UpdateReportProcedureCodeList(Convert.ToInt32(txtEventProcID.Text), strLinkPath, ImageId); } //ScriptManager.RegisterClientScriptBlock(this, GetType(), "ds7", "alert('Document Received successfully.');", true); } else { if (PathNotFound == "") { PathNotFound = szDefaultPath + strLinkPath + ",\n"; } else { PathNotFound = PathNotFound + szDefaultPath + strLinkPath + ",\n"; } } } } if (PathNotFound != "") { usrMessage.PutMessage("These file are not available."); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_ErrorMessage); usrMessage.Show(); // ScriptManager.RegisterClientScriptBlock(this, GetType(), "ds10", "alert('These file are not available');", true); return; } } string notAdded = ""; if (notAdded == "") { usrMessage.PutMessage(" Document Saved successfully."); } usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); usrMessage.Show(); //ScriptManager.RegisterClientScriptBlock(this, GetType(), "ds28", "alert('Saved successfully.');", 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()); } }
protected void btnSumbit_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()); } Bill_Sys_CheckoutBO _objcheckOut = new Bill_Sys_CheckoutBO(); Bill_Sys_NF3_Template objNF3Template = new Bill_Sys_NF3_Template(); string sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; string sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; string sz_EventID = Session["IM_FW_EVENT_ID"].ToString(); int flag = 0; string DoctorImagePath = ""; //string PatientImagePath = Session["PatientImagePath"].ToString(); string CaseBarcodePath = ""; try { String szDefaultPath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["IM_FOLLOWUP_CaseID"].ToString() + "/Signs/"; //Added By-Sunil string SaveSignPath = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["IM_FOLLOWUP_CaseID"].ToString() + "/Signs/"; //end if (!Directory.Exists(szDefaultPath)) { Directory.CreateDirectory(szDefaultPath); } szDefaultPath = szDefaultPath + sz_EventID; //Added By-Sunil SaveSignPath = SaveSignPath + sz_EventID; //end if (WebSignature2.ExportToStreamOnly()) { System.IO.MemoryStream imgstream2 = (System.IO.MemoryStream)(WebSignature2.ImageMemoryStream); { if (imgstream2 != null) { byte[] imageContent2 = new Byte[imgstream2.Length]; imgstream2.Position = 0; imgstream2.Read(imageContent2, 0, (int)imgstream2.Length); Response.ContentType = "image/jpeg"; Response.BinaryWrite(imageContent2); Bitmap bmp = new Bitmap(imgstream2); double size = 0.15; ResizeImage((System.Drawing.Image)bmp, size); DoctorImagePath = szDefaultPath + "_DoctorSign.jpg"; Img.Save(DoctorImagePath); DataSet dset = new DataSet(); dset = _objcheckOut.GetNodeID(sz_CompanyID, sz_EventID); string sz_NodeId = dset.Tables[0].Rows[0][1].ToString(); string sz_CaseId = dset.Tables[0].Rows[0][0].ToString(); String sz_BarcodeImagePath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["IM_FOLLOWUP_CaseID"].ToString() + "/Signs/"; SpecialityPDFBO pdfbo = new SpecialityPDFBO(); CaseBarcodePath = pdfbo.GetBarCodePath(sz_CompanyID, sz_CaseId, sz_NodeId, sz_BarcodeImagePath); } else { flag = 2; } } } string DoctorImagePathlogical = SaveSignPath + "_DoctorSign.jpg"; //Added By-Sunil string sz_BarcodeImagePathlogical = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["AC_Followup_CaseID"].ToString() + "/Signs/"; //end //Added By-Sunil string CaseBarcodePathlogical = sz_BarcodeImagePathlogical + "BarcodeImg.jpg"; //end // _objcheckOut.SaveIMFollowupSignPath(sz_EventID, DoctorImagePath, CaseBarcodePath); _objcheckOut.SaveIMFollowupSignPath(sz_EventID, DoctorImagePathlogical, CaseBarcodePathlogical); SpecialityPDFFill spf = new SpecialityPDFFill(); ArrayList obj = new ArrayList(); spf.sz_EventID = Session["IM_FW_EVENT_ID"].ToString(); spf.sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; spf.sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; spf.sz_XMLPath = "IM_FOLLOWUP_XML_Path"; spf.sz_PDFPath = "IM_FOLLOWUP_PDF_Path"; spf.sz_Session_Id = Session["IM_FOLLOWUP_CaseID"].ToString(); spf.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; spf.SZ_SPECIALITY_NAME = "IM"; obj = spf.FillPDFValue(spf); // Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + obj[1] + "'); ", true); Response.Redirect(obj[1].ToString(), false); spf.sz_Session_Id = Session["IM_FOLLOWUP_CaseID"].ToString();; spf.sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; spf.sz_EventID = Session["IM_FW_EVENT_ID"].ToString(); spf.SZ_PT_FILE_NAME = obj[0].ToString(); spf.SZ_PT_FILE_PATH = obj[2].ToString(); spf.SZ_SPECIALITY_CODE = "NFMIM"; spf.SZ_SPECIALITY_NAME = "IM"; spf.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; spf.savePDFForminDocMang(spf); //Code To generate pdf according to check box value and Visit Status Bill_Sys_CheckoutBO ChkBo = new Bill_Sys_CheckoutBO(); if (ChkBo.ChekVisitStaus(Convert.ToInt32(Session["IM_FW_EVENT_ID"].ToString()), ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID) == "2") { ArrayList ObjalGetVal = new ArrayList(); ArrayList objal1 = new ArrayList(); SpecialityPDFFill SPDFF = new SpecialityPDFFill(); ObjalGetVal = ChkBo.ChekCheckBoxStaus(Convert.ToInt32(Session["IM_FW_EVENT_ID"].ToString())); //CHK_REFERRALS_CHIROPRACTOR if (ObjalGetVal[0].ToString().Equals("True")) { SPDFF.sz_EventID = Session["IM_FW_EVENT_ID"].ToString(); SPDFF.sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; SPDFF.sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; SPDFF.SZ_SPECIALITY_NAME = "CH"; SPDFF.SZ_SPECIALITY_CODE = "NFMCH"; SPDFF.sz_XMLPath = "Refferal_IM_FOLLOWUP_XML_Path"; SPDFF.sz_PDFPath = "CO_Refferal_PDF_Path"; SPDFF.sz_Session_Id = Session["IM_FOLLOWUP_CaseID"].ToString(); SPDFF.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; objal1 = SPDFF.FillPDFValue(SPDFF); SPDFF.sz_Session_Id = Session["IM_FOLLOWUP_CaseID"].ToString(); SPDFF.sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; SPDFF.sz_EventID = Session["IM_FW_EVENT_ID"].ToString(); SPDFF.SZ_PT_FILE_NAME = objal1[0].ToString(); SPDFF.SZ_PT_FILE_PATH = objal1[2].ToString(); SPDFF.SZ_SPECIALITY_CODE = "NFMCH"; SPDFF.SZ_SPECIALITY_NAME = "CH"; SPDFF.IMG_ID_COLUMN_CODE = "CH_FU_REFERRAL"; SPDFF.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; SPDFF.savePDFForminDocMang(SPDFF); } //CHK_REFERRALS_PHYSICAL_THERAPIST if (ObjalGetVal[1].ToString().Equals("True")) { SPDFF.sz_EventID = Session["IM_FW_EVENT_ID"].ToString(); SPDFF.sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; SPDFF.sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; SPDFF.SZ_SPECIALITY_NAME = "PT"; SPDFF.SZ_SPECIALITY_CODE = "NFMPT"; SPDFF.sz_XMLPath = "Refferal_IM_FOLLOWUP_XML_Path"; SPDFF.sz_PDFPath = "CO_Refferal_PDF_Path"; SPDFF.sz_Session_Id = Session["IM_FOLLOWUP_CaseID"].ToString(); SPDFF.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; objal1 = SPDFF.FillPDFValue(SPDFF); SPDFF.sz_Session_Id = Session["IM_FOLLOWUP_CaseID"].ToString(); SPDFF.sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; SPDFF.sz_EventID = Session["IM_FW_EVENT_ID"].ToString(); SPDFF.SZ_PT_FILE_NAME = objal1[0].ToString(); SPDFF.SZ_PT_FILE_PATH = objal1[2].ToString(); SPDFF.SZ_SPECIALITY_CODE = "NFMPT"; SPDFF.SZ_SPECIALITY_NAME = "PT"; SPDFF.IMG_ID_COLUMN_CODE = "PT_FU_REFERRAL"; SPDFF.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; SPDFF.savePDFForminDocMang(SPDFF); } //CHK_REFERRALS_OCCUPATIONAL_THERAPIST if (ObjalGetVal[14].ToString().Equals("True")) { SPDFF.sz_EventID = Session["IM_FW_EVENT_ID"].ToString(); SPDFF.sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; SPDFF.sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; SPDFF.SZ_SPECIALITY_NAME = "OT"; SPDFF.SZ_SPECIALITY_CODE = "NFMOT"; SPDFF.sz_XMLPath = "Refferal_IM_FOLLOWUP_XML_Path"; SPDFF.sz_PDFPath = "CO_Refferal_PDF_Path"; SPDFF.sz_Session_Id = Session["IM_FOLLOWUP_CaseID"].ToString(); SPDFF.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; objal1 = SPDFF.FillPDFValue(SPDFF); SPDFF.sz_Session_Id = Session["IM_FOLLOWUP_CaseID"].ToString(); SPDFF.sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; SPDFF.sz_EventID = Session["IM_FW_EVENT_ID"].ToString(); SPDFF.SZ_PT_FILE_NAME = objal1[0].ToString(); SPDFF.SZ_PT_FILE_PATH = objal1[2].ToString(); SPDFF.SZ_SPECIALITY_CODE = "NFMOT"; SPDFF.SZ_SPECIALITY_NAME = "OT"; SPDFF.IMG_ID_COLUMN_CODE = "OT_FU_REFERRAL"; SPDFF.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; SPDFF.savePDFForminDocMang(SPDFF); } //CHK_TEST_EMG_NCV if (ObjalGetVal[15].ToString().Equals("True")) { SPDFF.sz_EventID = Session["IM_FW_EVENT_ID"].ToString(); SPDFF.sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; SPDFF.sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; SPDFF.SZ_SPECIALITY_NAME = "EMG"; SPDFF.SZ_SPECIALITY_CODE = "NFMEMG"; SPDFF.sz_XMLPath = "MST_ECG_IM_FOLLOWUP_XML_Path"; SPDFF.sz_PDFPath = "MST_ECG_PDF_Path"; SPDFF.sz_Session_Id = Session["IM_FOLLOWUP_CaseID"].ToString(); SPDFF.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; objal1 = SPDFF.FillPDFValue(SPDFF); SPDFF.sz_Session_Id = Session["IM_FOLLOWUP_CaseID"].ToString(); SPDFF.sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; SPDFF.sz_EventID = Session["IM_FW_EVENT_ID"].ToString(); SPDFF.SZ_PT_FILE_NAME = objal1[0].ToString(); SPDFF.SZ_PT_FILE_PATH = objal1[2].ToString(); SPDFF.SZ_SPECIALITY_CODE = "NFMEMG"; SPDFF.SZ_SPECIALITY_NAME = "EMG"; SPDFF.IMG_ID_COLUMN_CODE = "VSNCT_FU_REFERRAL"; SPDFF.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; SPDFF.savePDFForminDocMang(SPDFF); } //CHK_SUPPLIES_EMS_UNIT TO CHK_SUPPLIES_BIOFEEDBACK_TRAINING_SESSIONS if (ObjalGetVal[2].ToString().Equals("True") || ObjalGetVal[3].ToString().Equals("True") || ObjalGetVal[4].ToString().Equals("True") || ObjalGetVal[5].ToString().Equals("True") || ObjalGetVal[6].ToString().Equals("True") || ObjalGetVal[7].ToString().Equals("True") || ObjalGetVal[8].ToString().Equals("True") || ObjalGetVal[9].ToString().Equals("True") || ObjalGetVal[10].ToString().Equals("True") || ObjalGetVal[11].ToString().Equals("True") || ObjalGetVal[12].ToString().Equals("True") || ObjalGetVal[13].ToString().Equals("True")) { SPDFF.sz_EventID = Session["IM_FW_EVENT_ID"].ToString(); SPDFF.sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; SPDFF.sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; SPDFF.SZ_SPECIALITY_NAME = "SP"; SPDFF.SZ_SPECIALITY_CODE = "NFMSP"; SPDFF.sz_XMLPath = "Supplies_XML_Path"; SPDFF.sz_PDFPath = "Supplies_PDF_Path"; SPDFF.sz_Session_Id = Session["IM_FOLLOWUP_CaseID"].ToString(); SPDFF.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; objal1 = SPDFF.FillPDFValue(SPDFF); SPDFF.sz_Session_Id = Session["IM_FOLLOWUP_CaseID"].ToString(); SPDFF.sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; SPDFF.sz_EventID = Session["IM_FW_EVENT_ID"].ToString(); SPDFF.SZ_PT_FILE_NAME = objal1[0].ToString(); SPDFF.SZ_PT_FILE_PATH = objal1[2].ToString(); SPDFF.SZ_SPECIALITY_CODE = "NFMSP"; SPDFF.SZ_SPECIALITY_NAME = "SP"; SPDFF.IMG_ID_COLUMN_CODE = "SUPPLIES_FU_REFERRAL"; SPDFF.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; SPDFF.savePDFForminDocMang(SPDFF); } } //End Code } 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()); } }
protected void btnSumbit_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()); } //Bill_Sys_CheckoutBO _objcheckOut = new Bill_Sys_CheckoutBO(); //Bill_Sys_NF3_Template objNF3Template = new Bill_Sys_NF3_Template(); //string sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; //string sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; //string sz_EventID = "5";// Session["AC_INITIAL_EVENT_ID"].ToString(); ////DataSet dsObj = _objcheckOut.PatientName(sz_EventID); //Session["AC_Initial_CaseID"] = "5";//dsObj.Tables[0].Rows[0][1].ToString(); // Session["ChkOutCaseID"] = "5"; //int flag = 0; //string DoctorImagePath = ""; ////string PatientImagePath = Session["PatientImagePath"].ToString(); //string CaseBarcodePath = ""; Bill_Sys_CheckoutBO _objcheckOut = new Bill_Sys_CheckoutBO(); Bill_Sys_NF3_Template objNF3Template = new Bill_Sys_NF3_Template(); string sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; string sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; Bill_Sys_CheckoutBO _obj = new Bill_Sys_CheckoutBO(); DataSet dsObj = _obj.PatientName(Session["AC_INITIAL_EVENT_ID"].ToString()); Session["AC_Initial_CaseID"] = dsObj.Tables[0].Rows[0][1].ToString(); string sz_EventID = Session["AC_INITIAL_EVENT_ID"].ToString(); int flag = 0; string DoctorImagePath = ""; //string PatientImagePath = Session["PatientImagePath"].ToString(); string CaseBarcodePath = ""; string sz_BarcodeImagePathlogical = ""; string CaseBarcodePathlogical = ""; try { String szDefaultPath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["AC_Initial_CaseID"].ToString() + "/Signs/"; //Added By-Sunil string SaveSignPath = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["AC_Initial_CaseID"].ToString() + "/Signs/"; //end if (!Directory.Exists(szDefaultPath)) { Directory.CreateDirectory(szDefaultPath); } szDefaultPath = szDefaultPath + sz_EventID; //Added by --Sunil SaveSignPath = SaveSignPath + sz_EventID; //end if (WebSignature2.ExportToStreamOnly()) { System.IO.MemoryStream imgstream2 = (System.IO.MemoryStream)(WebSignature2.ImageMemoryStream); { if (imgstream2 != null) { byte[] imageContent2 = new Byte[imgstream2.Length]; imgstream2.Position = 0; imgstream2.Read(imageContent2, 0, (int)imgstream2.Length); Response.ContentType = "image/jpeg"; Response.BinaryWrite(imageContent2); Bitmap bmp = new Bitmap(imgstream2); double size = 0.15; ResizeImage((System.Drawing.Image)bmp, size); DoctorImagePath = szDefaultPath + "_DoctorSign.jpg"; //DoctorImagePathlogical = SaveSignPath + "_DoctorSign.jpg"; Img.Save(DoctorImagePath); // System.IO.File.WriteAllBytes("C://LawAllies//MBSUpload//docsign.jpg", imageContent2); string sz_case_id = Session["AC_Initial_CaseID"].ToString(); DataSet dset = new DataSet(); dset = _objcheckOut.GetNodeID(sz_CompanyID, sz_EventID); string sz_NodeId = dset.Tables[0].Rows[0][1].ToString(); string sz_CaseId = dset.Tables[0].Rows[0][0].ToString(); // string barcodeValue = sz_CompanyID + "@" + sz_CaseId + "@" + sz_NodeId; //GenerateBarcode(barcodeValue); String sz_BarcodeImagePath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + sz_case_id + "/Signs/"; //Added By-Sunil sz_BarcodeImagePathlogical = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + sz_case_id + "/Signs/"; //end SpecialityPDFBO pdfbo = new SpecialityPDFBO(); CaseBarcodePath = pdfbo.GetBarCodePath(sz_CompanyID, sz_CaseId, sz_NodeId, sz_BarcodeImagePath); //Added By-Sunil CaseBarcodePathlogical = sz_BarcodeImagePathlogical + "BarcodeImg.jpg"; //end //CaseBarcodePath = sz_BarcodeImagePath + "BarcodeImg.jpg"; //Img.Save(CaseBarcodePath); //flag = 0; } else { flag = 2; } } } _objcheckOut.updateAccInitialDoctorPath(sz_EventID, DoctorImagePath, CaseBarcodePath); //_objcheckOut.updateAccInitialDoctorPath(sz_EventID, DoctorImagePathlogical, CaseBarcodePathlogical); //FillPDFValue(sz_EventID, sz_CompanyID, sz_CompanyName); SpecialityPDFFill spf = new SpecialityPDFFill(); ArrayList obj = new ArrayList(); spf.sz_EventID = Session["AC_INITIAL_EVENT_ID"].ToString(); spf.sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; spf.sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; spf.sz_XMLPath = "Accu_Initial_XML_Path"; spf.sz_PDFPath = "Accu_Initial_PDF_Path"; spf.sz_Session_Id = Session["AC_Initial_CaseID"].ToString(); spf.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; spf.SZ_SPECIALITY_NAME = "AC"; obj = spf.FillPDFValue(spf); Response.Redirect(obj[1].ToString(), false); //Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + obj[1] + "'); ", true); //Response.Write("<script>window.open('" + obj[1] + "')</script>"); spf.sz_Session_Id = Session["AC_Initial_CaseID"].ToString();; spf.sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; spf.sz_EventID = Session["AC_INITIAL_EVENT_ID"].ToString(); spf.SZ_PT_FILE_NAME = obj[0].ToString(); spf.SZ_PT_FILE_PATH = obj[2].ToString(); spf.SZ_SPECIALITY_CODE = "NFMAC"; spf.SZ_SPECIALITY_NAME = "AC"; spf.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; spf.savePDFForminDocMang(spf); } 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()); } }
protected void drpSelectBill_SelectedIndexChanged(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()); } _bill_Sys_NF3_Template = new Bill_Sys_NF3_Template(); try { String szURLDocumentManager = ""; szURLDocumentManager = ConfigurationSettings.AppSettings["DocumentManagerURL"].ToString(); String szDefaultPhysicalPath = _bill_Sys_NF3_Template.getPhysicalPath() + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["TM_SZ_CASE_ID"].ToString() + "/Packet Document/"; if (drpSelectBill.SelectedValue == "01") { string strGenFileName = ""; PDFValueReplacement.PDFValueReplacement _pDFValueReplacement = new PDFValueReplacement.PDFValueReplacement(); string xmlFilePath = ConfigurationManager.AppSettings["PDF_FILE_PATH_C4"].ToString();//"http://localhost/BILLINGSYSTEM/c4.2.pdf"; strGenFileName = _pDFValueReplacement.ReplacePDFvalues(ConfigurationManager.AppSettings["TEMPLATE_VARIABLES_FILE_FOR_C4"].ToString(), xmlFilePath, Session["TM_SZ_BILL_ID"].ToString(), ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME, Session["TM_SZ_CASE_ID"].ToString()); strGenFileName = lfnMergeDiagCodePage(szDefaultPhysicalPath, strGenFileName, 4); ArrayList objAL = new ArrayList(); objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["TM_SZ_CASE_ID"].ToString() + "/Packet Document/" + strGenFileName); objAL.Add(Session["TM_SZ_BILL_ID"].ToString()); objAL.Add(Session["TM_SZ_CASE_ID"].ToString()); objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); _bill_Sys_NF3_Template.saveGeneratedNF3File(objAL); Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + szURLDocumentManager + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["TM_SZ_CASE_ID"].ToString() + "/Packet Document/" + strGenFileName + "'); ", true); } if (drpSelectBill.SelectedValue == "02") { string strGenFileName = ""; PDFValueReplacement.PDFValueReplacement _pDFValueReplacement = new PDFValueReplacement.PDFValueReplacement(); string xmlFilePath = ConfigurationManager.AppSettings["PDF_FILE_PATH_C42"].ToString();//"http://localhost/BILLINGSYSTEM/c4.2.pdf"; strGenFileName = _pDFValueReplacement.ReplacePDFvalues(ConfigurationManager.AppSettings["TEMPLATE_VARIABLES_FILE_FOR_C42"].ToString(), xmlFilePath, Session["TM_SZ_BILL_ID"].ToString(), ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME, Session["TM_SZ_CASE_ID"].ToString()); strGenFileName = lfnMergeDiagCodePage(szDefaultPhysicalPath, strGenFileName, 4); ArrayList objAL = new ArrayList(); objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["TM_SZ_CASE_ID"].ToString() + "/Packet Document/" + strGenFileName); objAL.Add(Session["TM_SZ_BILL_ID"].ToString()); objAL.Add(Session["TM_SZ_CASE_ID"].ToString()); objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); _bill_Sys_NF3_Template.saveGeneratedNF3File(objAL); Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + szURLDocumentManager + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["TM_SZ_CASE_ID"].ToString() + "/Packet Document/" + strGenFileName + "'); ", true); } if (drpSelectBill.SelectedValue == "03") { string strGenFileName = ""; PDFValueReplacement.PDFValueReplacement _pDFValueReplacement = new PDFValueReplacement.PDFValueReplacement(); string xmlFilePath = ConfigurationManager.AppSettings["PDF_FILE_PATH_C43"].ToString();//"http://localhost/BILLINGSYSTEM/c4.2.pdf"; strGenFileName = _pDFValueReplacement.ReplacePDFvalues(ConfigurationManager.AppSettings["TEMPLATE_VARIABLES_FILE_FOR_C43"].ToString(), xmlFilePath, Session["TM_SZ_BILL_ID"].ToString(), ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME, Session["TM_SZ_CASE_ID"].ToString()); strGenFileName = lfnMergeDiagCodePageForC43(szDefaultPhysicalPath, strGenFileName, 2); ArrayList objAL = new ArrayList(); objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["TM_SZ_CASE_ID"].ToString() + "/Packet Document/" + strGenFileName); objAL.Add(Session["TM_SZ_BILL_ID"].ToString()); objAL.Add(Session["TM_SZ_CASE_ID"].ToString()); objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); _bill_Sys_NF3_Template.saveGeneratedNF3File(objAL); Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + szURLDocumentManager + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["TM_SZ_CASE_ID"].ToString() + "/Packet Document/" + strGenFileName + "'); ", 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()); } }
public ArrayList UploadFile(Bill_Sys_UploadFile arr) { log.Debug("In upload file "); ArrayList arrNodeType = new ArrayList(); ArrayList arrNodePath = new ArrayList(); ArrayList arrNodeId = new ArrayList(); ArrayList arrCaseId = new ArrayList(); ArrayList arrSpec = new ArrayList(); Hashtable htData = new Hashtable(); Bill_Sys_UploadFile obj = new Bill_Sys_UploadFile(); Bill_Sys_NF3_Template objNF3Template = new Bill_Sys_NF3_Template(); string szPath = ""; string szPathFlag = ""; int flag = 0; string szBasePath = ApplicationSettings.GetParameterValue("PhysicalBasePath"); log.Debug("szBasePath" + szBasePath); arrCaseId = arr.sz_case_id; arrSpec = arr.sz_speciality_id; log.Debug("arrCaseId" + arrCaseId); log.Debug("arrCaseId" + arrSpec); if (arrCaseId.Count > 1) { for (int i = 1; i < arrCaseId.Count; i++) { string arr1 = arrCaseId[i].ToString(); string arr2 = arrCaseId[i - 1].ToString(); if (arr1 != arr2) { flag = 1; szPathFlag = "Common Folder" + "\\" + "POM" + "\\"; break; } } } if (flag != 1) { for (int i = 1; i < arrSpec.Count; i++) { string arr1 = arrSpec[i].ToString(); string arr2 = arrSpec[i - 1].ToString(); if (arr1 != arr2) { flag = 1; szPathFlag = "Common Folder" + "\\" + arrCaseId[0] + "\\" + ConfigurationManager.AppSettings[arr.sz_flag].ToString() + "\\"; break; } } } arr.sz_PathFlag = szPathFlag; log.Debug("szPathFlag" + szPathFlag); htData = GetData(arr); string path = ""; string Imgid = ""; ArrayList arrImgId = new ArrayList(); foreach (DictionaryEntry var in htData) { path = var.Value.ToString(); path = szBasePath + path; Imgid = var.Key.ToString(); arrImgId.Add(Imgid); } log.Debug("path" + path); //string path = arrNodePath[0].ToString(); path = path.Replace("\\", "/"); log.Debug("path" + path); //szPath = szBasePath + path; if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } File.WriteAllBytes(path + "\\" + arr.sz_FileName, arr.sz_File); return(arrImgId); }
protected void btnSubmit_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()); } _saveOperation = new SaveOperation(); try { CheckRadio(); _saveOperation.WebPage = this.Page; _saveOperation.Xml_File = "MRI_Questionary.xml"; _saveOperation.SaveMethod(); Bill_Sys_CheckoutBO _objCheckoutBO = new Bill_Sys_CheckoutBO(); if (_objCheckoutBO.ChekMRIQuestionaire(Convert.ToInt32(TXT_EVENT_ID.Text))) { if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true && ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID != ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID) { sz_CompanyID = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID; Bill_Sys_NF3_Template obj1 = new Bill_Sys_NF3_Template(); sz_ComapanyName = obj1.GetCompanyName(sz_CompanyID); } else { sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; sz_ComapanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; } SpecialityPDFFill spf = new SpecialityPDFFill(); ArrayList obj = new ArrayList(); spf.sz_EventID = ""; spf.sz_CompanyID = sz_CompanyID; spf.sz_CompanyName = sz_ComapanyName; spf.sz_XMLPath = "MRI_QUESTIONAIRE_XML_Path"; spf.sz_PDFPath = "MRI_QUESTIONAIRE_PDF_Path"; spf.sz_Session_Id = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID; spf.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; spf.SZ_SPECIALITY_NAME = "MRI"; obj = FillPDFValue(spf); //Response.Redirect(obj[1].ToString(), false); //Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + obj[1] + "'); ", true); Response.Write("<script>window.open('" + obj[1] + "','pdf','toolbar=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=no,width=700,height=400')</script>"); spf.sz_Session_Id = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID; spf.sz_CompanyID = sz_CompanyID; spf.sz_EventID = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID; spf.SZ_PT_FILE_NAME = obj[0].ToString(); spf.SZ_PT_FILE_PATH = obj[2].ToString(); spf.SZ_SPECIALITY_CODE = "ININT"; spf.SZ_SPECIALITY_NAME = "Intake Sheet"; spf.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; spf.savePDFForminDocMang(spf); } else { // Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('Bill_Sys_AC_Accu_Initial_Doctor_sign.aspx','Sign','toolbar=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=no,width=700,height=575'); ", true); Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('Bill_Sys_MRI_Signature.aspx','Sign','toolbar=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=no,width=700,height=400'); ", true); } //ClearControl(); //BindGrid(); lblMsg.Visible = true; //lblMsg.Text = "Case Status Saved Successfully ...!"; lblMsg.Text = "MRI-QUESTIONARY report is saved successfully...."; //Response.Write("<script>window.opener.location.replace('Bill_Sys_CaseMaster.aspx')</script>"); } 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()); } }
public string FillPDFValue(string EventID, string sz_CompanyID, string sz_CompanyName) { 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()); } string sz_CaseID = Session["PhysicalCaseID"].ToString(); PDFValueReplacement.PDFValueReplacement objValueReplacement = new PDFValueReplacement.PDFValueReplacement(); string pdffilepath; string strGenFileName = ""; try { Bill_Sys_NF3_Template objNF3Template = new Bill_Sys_NF3_Template(); string xmlpath = ConfigurationManager.AppSettings["Physical_Therapy_XML_Path"].ToString(); string pdfpath = ConfigurationManager.AppSettings["Physical_Therapy_PDF_Path"].ToString(); String szDefaultPath = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + sz_CaseID + "/Packet Document/"; String szDestinationDir = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + sz_CaseID + "/No Fault File/Medicals/TP/"; strGenFileName = objValueReplacement.ReplacePDFvalues(xmlpath, pdfpath, EventID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME, sz_CaseID); if (File.Exists(objNF3Template.getPhysicalPath() + szDefaultPath + strGenFileName)) { if (!Directory.Exists(objNF3Template.getPhysicalPath() + szDestinationDir)) { Directory.CreateDirectory(objNF3Template.getPhysicalPath() + szDestinationDir); } File.Copy(objNF3Template.getPhysicalPath() + szDefaultPath + strGenFileName, objNF3Template.getPhysicalPath() + szDestinationDir + strGenFileName); } Bill_Sys_CheckoutBO objCheckoutBO = new Bill_Sys_CheckoutBO(); ArrayList objAL = new ArrayList(); objAL.Add(sz_CaseID); objAL.Add(strGenFileName); objAL.Add(szDestinationDir); objAL.Add(((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME); objAL.Add(sz_CompanyID); objAL.Add(EventID); objCheckoutBO.save_IM_DocMang(objAL); // Open file String szOpenFilePath = ""; szOpenFilePath = ConfigurationSettings.AppSettings["DocumentManagerURL"].ToString() + szDestinationDir + strGenFileName; Response.Redirect(szOpenFilePath, false); //Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + szOpenFilePath + "'); ", 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); } return(strGenFileName); //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
public string GeneratePVTBill(bool isReferingFacility, string szCompanyId, string szCaseId, string szSpecility, string szCompanyName, string szBillId, string szUserName, string szUserId, ServerConnection conn) { string szDefaultPath = ""; string szReturnPath = ""; try { log.Debug("in GeneratePVTBill"); objNF3Template = new Bill_Sys_NF3_Template(); _bill_Sys_BillTransaction = new Bill_Sys_BillTransaction_BO(); #region Generate Bill For Private cases String szLastPDFFileName = ""; String szDestinationDir = ""; //changes for Doc manager for new Bill path -- pravin objVerification_Desc = new Bill_Sys_Verification_Desc(); log.Debug("create Bill_Sys_Verification_Desc object"); objVerification_Desc.sz_bill_no = szBillId; objVerification_Desc.sz_company_id = szCompanyId; objVerification_Desc.sz_flag = "BILL"; ArrayList arrNf_Para = new ArrayList(); ArrayList arrNf_NodeType = new ArrayList(); objCaseDetailsBO = new CaseDetailsBO(); DataSet ds1500from = new DataSet(); string sz_Type = ""; string bt_1500_Form = ""; arrNf_Para.Add(objVerification_Desc); arrNf_NodeType = _bill_Sys_BillTransaction.Get_Node_Type(arrNf_Para, conn); log.Debug("called _bill_Sys_BillTransaction "); log.Debug("arrNf_NodeType =" + arrNf_NodeType); if (arrNf_NodeType.Contains("NFVER")) { sz_Type = "OLD"; szDestinationDir = szCompanyName + "/" + szCaseId + "/No Fault File/Bills/" + szSpecility + "/"; } else { sz_Type = "NEW"; szDestinationDir = szCompanyName + "/" + szCaseId + "/No Fault File/Medicals/" + szSpecility + "/" + "Bills/"; } //szDestinationDir = szCompanyName + "/" + szCaseId + "/No Fault File/Bills/" + szSpecility + "/"; String szSourceDir = ""; szSourceDir = szCompanyName + "/" + szCaseId + "/Packet Document/"; log.Debug("szSourceDir =" + szSourceDir); //changes for Add only 1500 Form For Insurance Company -- pravin ds1500from = objCaseDetailsBO.Get1500FormBitForInsurance(szCompanyId, szBillId, conn); if (ds1500from.Tables[0].Rows.Count > 0) { for (int i = 0; i < ds1500from.Tables[0].Rows.Count; i++) { bt_1500_Form = ds1500from.Tables[0].Rows[i]["BT_1500_FORM"].ToString(); } } if (bt_1500_Form == "1") { string str_1500 = ""; _MUVGenerateFunction = new MUVGenerateFunction(); //str_1500 = _MUVGenerateFunction.FillPdf(szBillId.ToString()); string szOriginalTemplatePDFFileName = ConfigurationManager.AppSettings["PVT_PDF_FILE"].ToString(); Bill_Sys_PVT_Bill_PDF_Replace objPVTReplace = new Bill_Sys_PVT_Bill_PDF_Replace(); str_1500 = objPVTReplace.ReplacePDFvalues(szOriginalTemplatePDFFileName, szBillId, szCompanyName, szCaseId, szCompanyId, conn); if (File.Exists(objNF3Template.getPhysicalPath() + szSourceDir + str_1500)) { if (!Directory.Exists(objNF3Template.getPhysicalPath() + szDestinationDir)) { Directory.CreateDirectory(objNF3Template.getPhysicalPath() + szDestinationDir); } File.Copy(objNF3Template.getPhysicalPath() + szSourceDir + str_1500, objNF3Template.getPhysicalPath() + szDestinationDir + str_1500); } szReturnPath = ApplicationSettings.GetParameterValue("DocumentManagerURL") + szDestinationDir + str_1500; ArrayList objAL = new ArrayList(); if (sz_Type == "OLD") { objAL.Add(szBillId); objAL.Add(szDestinationDir + str_1500); objAL.Add(szCompanyId); objAL.Add(szCaseId); objAL.Add(str_1500); objAL.Add(szDestinationDir); objAL.Add(szUserName); objAL.Add(szSpecility); //objAL.Add(""); objAL.Add("PVT"); objAL.Add(szCaseId); //objAL.Add(txtCaseNo.Text); objNF3Template.saveGeneratedBillPath(objAL, conn); } else { objAL.Add(szBillId); objAL.Add(szDestinationDir + str_1500); objAL.Add(szCompanyId); objAL.Add(szCaseId); objAL.Add(str_1500); objAL.Add(szDestinationDir); objAL.Add(szUserName); objAL.Add(szSpecility); //objAL.Add(""); objAL.Add("PVT"); objAL.Add(szCaseId); objAL.Add(arrNf_NodeType[0].ToString()); objNF3Template.saveGeneratedBillPath_New(objAL, conn); } // Start : Save Notes for Bill. _DAO_NOTES_EO = new DAO_NOTES_EO(); _DAO_NOTES_EO.SZ_MESSAGE_TITLE = "BILL_GENERATED"; _DAO_NOTES_EO.SZ_ACTIVITY_DESC = str_1500; _DAO_NOTES_BO = new DAO_NOTES_BO(); _DAO_NOTES_EO.SZ_USER_ID = szUserId; _DAO_NOTES_EO.SZ_CASE_ID = szCaseId; _DAO_NOTES_EO.SZ_COMPANY_ID = szCompanyId; _DAO_NOTES_BO.SaveActivityNotes(_DAO_NOTES_EO); } else { String szGenereatedFileName = ""; objPDFReplacement = new PDFValueReplacement.PDFValueReplacement(); string szXMLFileName; string szOriginalPDFFileName; szXMLFileName = ConfigurationManager.AppSettings["HCFA1500_XML_FILE"].ToString(); string path = GetPdfFilePath() + szCompanyId + "/HCFA -1500.pdf"; log.Debug("szXMLFileName =" + szXMLFileName); log.Debug("path =" + path); if (File.Exists(path)) { szOriginalPDFFileName = path; } else { szOriginalPDFFileName = ConfigurationManager.AppSettings["HCFA1500_PDF_FILE"].ToString(); } String szPDFPage = ""; log.Debug("Before PdfValue ReplacePDFvalues"); string szOriginalTemplatePDFFileName = ConfigurationManager.AppSettings["PVT_PDF_FILE"].ToString(); Bill_Sys_PVT_Bill_PDF_Replace objPVTReplace = new Bill_Sys_PVT_Bill_PDF_Replace(); szPDFPage = objPVTReplace.ReplacePDFvalues(szOriginalTemplatePDFFileName, szBillId, szCompanyName, szCaseId, szCompanyId, conn); //szPDFPage = objPDFReplacement.ReplacePDFvalues(szXMLFileName, szOriginalTemplatePDFFileName, szBillId, szCompanyName, szCaseId); log.Debug("after PdfValue ReplacePDFvalues"); log.Debug("szPDFPage" + szPDFPage); #region File saving logic String szOpenFilePath = ""; szGenereatedFileName = szDestinationDir + szPDFPage; log.Debug("szGenereatedFileName" + szGenereatedFileName); szOpenFilePath = ApplicationSettings.GetParameterValue("DocumentManagerURL") + szGenereatedFileName; log.Debug("szOpenFilePath" + szOpenFilePath); string szFileNameWithFullPath = objNF3Template.getPhysicalPath() + "/" + szGenereatedFileName; log.Debug("szFileNameWithFullPath" + szFileNameWithFullPath); string szFileNameForSaving = ""; szReturnPath = szOpenFilePath; log.Debug("szReturnPath" + szReturnPath); // Save Entry in Table if (System.IO.File.Exists(szFileNameWithFullPath) && System.IO.File.Exists(szFileNameWithFullPath.Replace(".pdf", "_New.pdf").ToString())) { szGenereatedFileName = szFileNameWithFullPath.Replace(".pdf", "_New.pdf").ToString(); } log.Debug("szGenereatedFileName" + szGenereatedFileName); // End if (System.IO.File.Exists(szFileNameWithFullPath) && System.IO.File.Exists(szFileNameWithFullPath.Replace(".pdf", "_NewMerge.pdf").ToString())) { szFileNameForSaving = szOpenFilePath.Replace(".pdf", "_NewMerge.pdf").ToString(); //Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + szOpenFilePath.Replace(".pdf", "_NewMerge.pdf").ToString() + "'); ", true); } else { if (System.IO.File.Exists(szFileNameWithFullPath) && System.IO.File.Exists(szFileNameWithFullPath.Replace(".pdf", "_New.pdf").ToString())) { szFileNameForSaving = szOpenFilePath.Replace(".pdf", "_New.pdf").ToString(); //Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + szOpenFilePath.Replace(".pdf", "_New.pdf").ToString() + "'); ", true); } else { szFileNameForSaving = szOpenFilePath.ToString(); //Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + szOpenFilePath.ToString() + "'); ", true); } } log.Debug("szFileNameForSaving" + szFileNameForSaving); String[] szTemp; string szBillName = ""; szTemp = szFileNameForSaving.Split('/'); log.Debug("szTemp" + szTemp); ArrayList objAL = new ArrayList(); szFileNameForSaving = szFileNameForSaving.Remove(0, ApplicationSettings.GetParameterValue("DocumentManagerURL").Length); log.Debug("szFileNameForSaving" + szFileNameForSaving); szBillName = szTemp[szTemp.Length - 1].ToString(); log.Debug("szBillName" + szBillName); string bt_CaseType, bt_include, str_1500; string strComp = szCompanyId.ToString(); _MUVGenerateFunction = new MUVGenerateFunction(); if (System.Configuration.ConfigurationManager.AppSettings["Only_1500_in_PVT_Bill"].ToString() == "true") { str_1500 = _MUVGenerateFunction.FillPdf(szBillId.ToString(), conn); log.Debug("str_1500" + str_1500); if (File.Exists(objNF3Template.getPhysicalPath() + szSourceDir + str_1500)) { if (!Directory.Exists(objNF3Template.getPhysicalPath() + szDestinationDir)) { Directory.CreateDirectory(objNF3Template.getPhysicalPath() + szDestinationDir); } File.Copy(objNF3Template.getPhysicalPath() + szSourceDir + str_1500, objNF3Template.getPhysicalPath() + szDestinationDir + str_1500); } szBillName = str_1500; //szBillName = str_1500.Replace(".pdf", "_MER.pdf"); szReturnPath = ApplicationSettings.GetParameterValue("DocumentManagerURL") + szDestinationDir + szBillName; log.Debug("szReturnPath" + szReturnPath); } else { log.Debug("bjNF3Template.getPhysicalPath() + szSourceDir + szBillName" + objNF3Template.getPhysicalPath() + szSourceDir + szBillName); if (File.Exists(objNF3Template.getPhysicalPath() + szSourceDir + szBillName)) { if (!Directory.Exists(objNF3Template.getPhysicalPath() + szDestinationDir)) { Directory.CreateDirectory(objNF3Template.getPhysicalPath() + szDestinationDir); } File.Copy(objNF3Template.getPhysicalPath() + szSourceDir + szBillName, objNF3Template.getPhysicalPath() + szDestinationDir + szBillName); } //Tushar bt_include = _MUVGenerateFunction.get_bt_include(strComp, szSpecility, "", "Speciality"); log.Debug("bt_include" + bt_include); bt_CaseType = _MUVGenerateFunction.get_bt_include(strComp, "", "WC000000000000000003", "CaseType"); log.Debug("bt_CaseType" + bt_CaseType); if (bt_include == "True" && bt_CaseType == "True") { str_1500 = _MUVGenerateFunction.FillPdf(szBillId.ToString(), conn); MergePDF.MergePDFFiles(objNF3Template.getPhysicalPath() + szDestinationDir + szBillName, objNF3Template.getPhysicalPath() + szSourceDir + str_1500, objNF3Template.getPhysicalPath() + szDestinationDir + str_1500.Replace(".pdf", "_MER.pdf")); szBillName = str_1500.Replace(".pdf", "_MER.pdf"); szReturnPath = ApplicationSettings.GetParameterValue("DocumentManagerURL") + szDestinationDir + szBillName; } log.Debug("szReturnPath" + szReturnPath); } //changes for Doc manager for new Bill path -- pravin if (sz_Type == "OLD") { objAL.Add(szBillId); objAL.Add(szDestinationDir + szBillName); objAL.Add(szCompanyId); objAL.Add(szCaseId); objAL.Add(szBillName); objAL.Add(szDestinationDir); objAL.Add(szUserName); objAL.Add(szSpecility); //objAL.Add(""); objAL.Add("PVT"); objAL.Add(szCaseId); //objAL.Add(txtCaseNo.Text); objNF3Template.saveGeneratedBillPath(objAL, conn); } else { objAL.Add(szBillId); objAL.Add(szDestinationDir + szBillName); objAL.Add(szCompanyId); objAL.Add(szCaseId); objAL.Add(szBillName); objAL.Add(szDestinationDir); objAL.Add(szUserName); objAL.Add(szSpecility); //objAL.Add(""); objAL.Add("PVT"); objAL.Add(szCaseId); objAL.Add(arrNf_NodeType[0].ToString()); objNF3Template.saveGeneratedBillPath_New(objAL, conn); } // Start : Save Notes for Bill. _DAO_NOTES_EO = new DAO_NOTES_EO(); _DAO_NOTES_EO.SZ_MESSAGE_TITLE = "BILL_GENERATED"; _DAO_NOTES_EO.SZ_ACTIVITY_DESC = szBillName; _DAO_NOTES_BO = new DAO_NOTES_BO(); _DAO_NOTES_EO.SZ_USER_ID = szUserId; _DAO_NOTES_EO.SZ_CASE_ID = szCaseId; _DAO_NOTES_EO.SZ_COMPANY_ID = szCompanyId; _DAO_NOTES_BO.SaveActivityNotes(_DAO_NOTES_EO); #endregion //Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + ApplicationSettings.GetParameterValue("DocumentManagerURL") + szPDFPage + "'); ", true); #endregion } } catch (Exception ex) { throw new Exception(ex.Message, ex); } return(szReturnPath); }