private void PrintPDF() { 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 { sz_CompanyID = txtCompanyID.Text; sz_CaseID = txtCaseID.Text; sz_speciality = txtSpeciality.Text; sz_BillNo = txtBillNo.Text; Hp1DAO objDAO = new Hp1DAO(); //objDAO = BindObject(); Hp1DAL objHp1 = new Hp1DAL(); CmpName = objHp1.GetPDFPath(sz_CompanyID, sz_CaseID, sz_speciality); GenerateHp1Pdf objpdf = new GenerateHp1Pdf(); FileName = "HP1_" + sz_BillNo + "_" + sz_CaseID + "_" + DateTime.Now.ToString("MMddyyyyhhmmssffff"); txtFileName.Text = FileName; //tempPath = objpdf.generateHP1(sz_CompanyID, sz_CaseID, sz_BillNo, CmpName, FileName, objDAO); SaveLogicalPath(); string BillPath = CmpName + "\\" + FileName + ".pdf"; string str = ConfigurationManager.AppSettings["DocumentManagerURL"].ToString(); string newpath = str + "/" + BillPath; newpath = newpath.Replace("\\", "/"); ScriptManager.RegisterClientScriptBlock(this, GetType(), "Done", "window.open('" + newpath + "');", 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); } finally { } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
public void insertRecord() { 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 { Hp1DAO objDAO = new Hp1DAO(); objDAO = BindObject(); Hp1DAL objHp1 = new Hp1DAL(); objHp1.SaveHP1(objDAO); usrMessage.PutMessage("Record Saved 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()); } }
public Hp1DAO BindObject() { Hp1DAL objHp1 = new Hp1DAL(); DataTable dt = objHp1.GetSignPaths(sz_CompanyID, sz_CaseID, sz_BillNo); if (dt.Rows.Count > 0) { txtProviderSign1.Text = dt.Rows[0]["HEALTH_PROVIDER_SIGN1"].ToString(); txtProviderSign2.Text = dt.Rows[0]["HEALTH_PROVIDER_SIGN2"].ToString(); } Bill_Sys_NF3_Template objNF3Template = new Bill_Sys_NF3_Template(); Hp1DAO objDAO = new Hp1DAO(); objDAO.billNo = sz_BillNo; objDAO.CompanyID = sz_CompanyID; objDAO.CaseID = sz_CaseID; objDAO.patientID = PatientID; objDAO.UserID = sz_UserID; if (chkARequestForAdmin.Checked) { objDAO.chkProviderA = "1"; } else { objDAO.chkProviderA = "0"; } if (chkBRequestForArbitration.Checked) { objDAO.chkProviderB = "1"; } else { objDAO.chkProviderB = "0"; } objDAO.noOfBillsAttached = txtNoOfMedicalBills.Text.ToString(); objDAO.feesSubmitted = txtFeeSubmitted.Text.ToString(); objDAO.chkMoNumber = txtCheckMONo.Text.ToString(); if (chkmedical.Checked) { objDAO.chkMedical = "1"; } else { objDAO.chkMedical = "0"; } if (chkoutHos.Checked) { objDAO.chkOutPatHospital = "1"; } else { objDAO.chkOutPatHospital = "0"; } if (chkInpHos.Checked) { objDAO.chkInPatient = "1"; } else { objDAO.chkInPatient = "0"; } if (chkChiropractic.Checked) { objDAO.chkChiropractic = "1"; } else { objDAO.chkChiropractic = "0"; } if (chkPhysicalTherapy.Checked) { objDAO.chkPhysicalTherepy = "1"; } else { objDAO.chkPhysicalTherepy = "0"; } if (chkOccupationalTherapy.Checked) { objDAO.chkOcupational = "1"; } else { objDAO.chkOcupational = "0"; } if (chkPsychology.Checked) { objDAO.chkPsychology = "1"; } else { objDAO.chkPsychology = "0"; } if (chlPodiatry.Checked) { objDAO.chkPodiatry = "1"; } else { objDAO.chkPodiatry = "0"; } if (chkOsteopathic.Checked) { objDAO.chkOstepathic = "1"; } else { objDAO.chkOstepathic = "0"; } objDAO.healthProviderName = txtMHPName.Text.ToString(); objDAO.healthProviderLine = txtMHPLine.Text.ToString(); objDAO.healthProviderAddr = txtMHPAddress.Text.ToString(); objDAO.healthProviderCity = txtMHPCity.Text.ToString(); objDAO.healthProviderState = txtMHPState.Text.ToString(); objDAO.healthProviderZip = txtMHPZipCode.Text.ToString(); objDAO.WCBCaseNumber = txtWCBCaseNo.Text.ToString(); objDAO.WCBAuthorizationNumber = txtWCBAuthoNo.Text.ToString(); objDAO.WCBRatingCode = txtProWCBNo.Text.ToString(); objDAO.providerPhone = txtProTelNo.Text.ToString(); objDAO.healthProviderName2 = txtBHPName.Text.ToString(); objDAO.healthProviderLine2 = txtBHPLine.Text.ToString(); objDAO.healthProviderAddr2 = txtBHPAddress.Text.ToString(); objDAO.healthProviderCity2 = txtBHPCity.Text.ToString(); objDAO.healthProviderState2 = txtBHPState.Text.ToString(); objDAO.healthProviderZip2 = txtBHPZipCode.Text.ToString(); objDAO.carrierCaseNumber = txtCarrierCaseNo.Text.ToString(); objDAO.employerID = txtCarrierEmpId.Text.ToString(); objDAO.accidentDate = txtdataofaccident.Text.ToString(); objDAO.carrier = txtMCName.Text.ToString(); objDAO.carrierLine = txtMCLine.Text.ToString(); objDAO.carrierAddr = txtMCAddress.Text.ToString(); objDAO.carrierCity = txtMCCity.Text.ToString(); objDAO.carrierState = txtCPState.Text.ToString(); objDAO.carrierZip = txtMCZipCode.Text.ToString(); objDAO.serviceCountry = txtCountry.Text.ToString(); objDAO.socialSecurityNumber = txtClaimantSSNo.Text.ToString(); objDAO.claimantName = txtClaimantName.Text.ToString(); objDAO.employerName = txtMEName.Text.ToString(); objDAO.employerAddr = txtMEAddress.Text.ToString(); objDAO.employerLine = txtMELine.Text.ToString(); objDAO.employerCity = txtMECity.Text.ToString(); objDAO.employerState = txtMEState.Text.ToString(); objDAO.employerZip = txtMEZipCode.Text.ToString(); objDAO.healthProviderSignDate = TxtDateofHelthProvider.Text.ToString(); string healthProviderSignPath = ""; if (txtProviderSign1.Text.ToString() != "") { healthProviderSignPath = (objNF3Template.getPhysicalPath()) + txtProviderSign1.Text.ToString(); } objDAO.healthProviderSign = healthProviderSignPath; if (chkSSNSectionA.Checked) { objDAO.chkSSN = "1"; } else { objDAO.chkSSN = "0"; } if (chkEINSectionA.Checked) { objDAO.chkEIN = "1"; } else { objDAO.chkEIN = "0"; } objDAO.federalTaxNumber = txtFedaralTaxIdSectionA.Text.ToString(); objDAO.patientAccountNumber = txtPatientAccNoSectionA.Text.ToString(); objDAO.totalCharge = txtTotalChargeSectionA.Text.ToString(); objDAO.amountPaid = txtAmountPaidSectionA.Text.ToString(); objDAO.amountDispute = txtAmountDisputeSectionA.Text.ToString(); objDAO.federalTaxNumberB = txtFedaralTaxIdSectionB.Text.ToString(); if (chkSSNSectionB.Checked) { objDAO.chkSSNB = "1"; } else { objDAO.chkSSNB = "0"; } if (chkEINSectionB.Checked) { objDAO.chkEINB = "1"; } else { objDAO.chkEINB = "0"; } objDAO.patientAccountNumberB = txtPatientAccNoSectionB.Text.ToString(); objDAO.totalChargeB = txtTotalChargeSectionB.Text.ToString(); objDAO.amountPaidB = txtAmountPaidSectionB.Text.ToString(); objDAO.amountDisputeB = txtAmountDisputeSectionB.Text.ToString(); objDAO.amountOfFeeSubmittedB = txtAmountFreeSubmited.Text.ToString(); objDAO.firstTreatmentDate = txtfirsttreatmentdate.Text.ToString(); objDAO.arbitrationFees = txtArbitrationFees.Text.ToString(); if (chkFirstTreatmentYes.Checked) { objDAO.chkTreatmentRendered = "1"; } else { objDAO.chkTreatmentRendered = "0"; } if (chkFirstTreatmentNo.Checked) { objDAO.chkTreatmentRenderedno = "1"; } else { objDAO.chkTreatmentRenderedno = "0"; } //chkTreatmentRenderedno objDAO.firstTreatmentProvider = txtPFirstTName.Text.ToString(); objDAO.firstTreatmentProviderLine = txtPFirstTLine.Text.ToString(); objDAO.firstTreatmentProviderAddr = txtPFirstTAddress.Text.ToString(); objDAO.firstTreatmentProviderCity = txtPFirstTCity.Text.ToString(); objDAO.firstTreatmentProviderState = txtPFirstTState.Text.ToString(); objDAO.firstTreatmentProviderZip = txtPFirstTZipCode.Text.ToString(); objDAO.firstTreatmentProviderDiagnosis = txtDiagnosisRenderByC.Text.ToString(); objDAO.firstTreatmentProviderTreatment = txtTreatementByC.Text.ToString(); objDAO.lastTreatmentDate = txtdateproviderinitemc.Text.ToString(); objDAO.newDiagnosis = txtYourDiagnosis.Text.ToString(); objDAO.totalTreatmentNos = txtTotalNoofTreatement.Text.ToString(); if (chkAreYouStillReadingYes.Checked) { objDAO.chkTreatingClaimant = "1"; } else { objDAO.chkTreatingClaimant = "0"; } if (chkAreYouStillReadingNo.Checked) { objDAO.chkTreatingClaimantno = "1"; } else { objDAO.chkTreatingClaimantno = "0"; } objDAO.dischargedDate = txt_I_Date.Text.ToString(); objDAO.condition = txtCondition.Text.ToString(); objDAO.totalBillAmount = txtJTotalAmount.Text.ToString(); objDAO.casePaidAmount = txtKAmountPreviously.Text.ToString(); objDAO.disputBillPaidAmount = txtLAmountPreviasly.Text.ToString(); string healthProviderSignBPath = ""; if (txtProviderSign2.Text.ToString() != "") { healthProviderSignBPath = (objNF3Template.getPhysicalPath()) + txtProviderSign2.Text.ToString(); } objDAO.healthProviderSignB = healthProviderSignBPath; objDAO.healthProviderSignDateB = txthelthproviderdate.Text.ToString(); return(objDAO); }