Beispiel #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["EID"] != null)
        {
            Session["IM_FW_EVENT_ID"] = Request.QueryString["EID"].ToString();
        }
        Bill_Sys_CheckoutBO _obj  = new Bill_Sys_CheckoutBO();
        DataSet             dsObj = _obj.PatientName(Session["IM_FW_EVENT_ID"].ToString());

        Session["IM_FOLLOWUP_CaseID"] = dsObj.Tables[0].Rows[0][1].ToString();
        //TXT_EVENT_ID.Text = Session["IM_FW_EVENT_ID"].ToString();
        if (!IsPostBack)
        {
            LoadPatientData();
            LoadData();
        }
        TXT_DOS.Text = DateTime.Today.Date.ToString("MM/dd/yyy");
        #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_FUIM_Plan.aspx");
        }
        #endregion
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["EID"] != null)
            {
                txtEventID.Text = (string)Session["IMEventID"].ToString();
                LoadData();
                LoadPatientData();
            }
            else
            {
                txtEventID.Text = (string)Session["IMEventID"].ToString();
                LoadData();
                LoadPatientData();
            }
        }
        Bill_Sys_CheckoutBO _objCheckoutBO = new Bill_Sys_CheckoutBO();

        if (_objCheckoutBO.CheckIMData(Convert.ToInt32(txtEventID.Text)))
        {
            btnSave.Text = "Update&Next";
        }
        txtDOE.Text = DateTime.Now.ToString("MM/dd/yyy");
        #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_IM_MedicalHistory.aspx");
        }
        #endregion
    }
Beispiel #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Bill_Sys_CheckoutBO _obj  = new Bill_Sys_CheckoutBO();
        DataSet             dsObj = _obj.PatientName(Session["IMEventID"].ToString());

        Session["IM_InicialCaseID"] = dsObj.Tables[0].Rows[0][1].ToString();
        if (!IsPostBack)
        {
            if (Request.QueryString["EID"] != null)
            {
                Session["IMEventID"] = Request.QueryString["EID"].ToString();
                txtEventID.Text      = (string)Session["IMEventID"].ToString();

                LoadData();
                LoadPatientData();
            }
            else
            {
                txtEventID.Text = (string)Session["IMEventID"].ToString();
                LoadData();
                LoadPatientData();
            }
        }
        txtDOE.Text = DateTime.Now.ToString("MM/dd/yyy");
        #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_IM_workStatus.aspx");
        }
        #endregion
    }
Beispiel #4
0
    public void SaveValues(string index)
    {
        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
        {
            Bill_Sys_CheckoutBO obj       = new Bill_Sys_CheckoutBO();
            ArrayList           _objArray = new ArrayList();
            _objArray.Add(index);
            _objArray.Add(txtEventID.Text);
            _objArray.Add(txtCompanyID.Text);
            // obj.saveProcedureCodes(_objArray);
            save_Procedure_Codes(_objArray);
        }
        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)
    {
        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();
        if (Request.QueryString["EID"] != null)
        {
            Session["AC_INITIAL_EVENT_ID"] = Request.QueryString["EID"].ToString();
        }
        txtEventID.Text = Session["AC_INITIAL_EVENT_ID"].ToString();

        if (!IsPostBack)
        {
            LoadPatientInformation();
            LoadData();
        }
        #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_AC_Accu_Initial_3.aspx");
        }
        #endregion
    }
    //public string FillPDFValue(string EventID, string sz_CompanyID, string sz_CompanyName)
    //{
    //    string sz_CaseID = "1";
    //    PDFValueReplacement.PDFValueReplacement objValueReplacement = new PDFValueReplacement.PDFValueReplacement();

    //    string strGenFileName = "";
    //    try
    //    {
    //        Bill_Sys_NF3_Template objNF3Template = new Bill_Sys_NF3_Template();
    //        string xmlpath = ConfigurationManager.AppSettings["HIPPA_XML_Path"].ToString();
    //        string pdfpath = ConfigurationManager.AppSettings["HIPPA_PDF_Path"].ToString();

    //        String szDefaultPath = "PROCOMSYS" + "/" + sz_CaseID + "/Packet Document/";
    //        String szDestinationDir = "PROCOMSYS" + "/" + sz_CaseID + "/No Fault File/Medicals/CH/";

    //        strGenFileName = objValueReplacement.ReplacePDFvalues(xmlpath, pdfpath, EventID, "PROCOMSYS", 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);
    //    }
    //   catch (Exception ex)
    //    {
    //        Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
    //    }
    //    return strGenFileName;
    //}


    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 = "HIPPA.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/";
            //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.MRI_Questionary_SaveSignPath(sz_EventID, CaseBarcodePath, "");
            PrintAOBFillPDFValue(sz_EventID, sz_CompanyID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME);
        }
        catch (Exception ex)
        {
            Response.Write("Exp Msg= " + 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());
        }
    }
Beispiel #7
0
    //public ArrayList FillPDFValue(string p_EventID, string p_sz_CompanyID, string p_sz_CompanyName, string p_sz_XMLPath, string p_sz_PDFPath, string p_sz_Session_id, string p_sz_User_Name , string p_SZ_SPECIALITY_NAME)
    public ArrayList FillPDFValue(SpecialityPDFFill p_objSepcialityPDF)
    {
        ArrayList al        = new ArrayList();
        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 + "/No Fault File/Medicals/" + p_objSepcialityPDF.SZ_SPECIALITY_NAME + "/";

            strGenFileName = objValueReplacement.ReplacePDFvalues(xmlpath, pdfpath, sz_EventID, 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(sz_EventID);


            szOpenFilePath = ConfigurationSettings.AppSettings["DocumentManagerURL"].ToString() + szDestinationDir + strGenFileName;

            al.Add(strGenFileName);
            al.Add(szOpenFilePath);
            al.Add(szDestinationDir);
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
        }

        return(al);
    }
    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());
        }
        try
        {
            int iReturn = 0;
            for (int i = 0; i < grdProCode.Items.Count; i++)
            {
                CheckBox chk = (CheckBox)grdProCode.Items[i].FindControl("chkSelectProc");
                if (chk.Checked)
                {
                    Bill_Sys_CheckoutBO objupadteProcedureCodes = new Bill_Sys_CheckoutBO();
                    iReturn = objupadteProcedureCodes.UpdateProc(Session["EVENTPROCID"].ToString(), grdProCode.Items[i].Cells[0].Text);
                }
            }
            if (iReturn > 0)
            {
                usrMessage.PutMessage("Procedure Code  updated successfully.");
                usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
                usrMessage.Show();
                // Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "ss", "<script language='javascript'>parent.document.getElementById('divid1').style.visibility = 'hidden';window.parent.document.location.href='Bill_Sys_PaidBills.aspx?Flag=report&Type=p&popup=done1';</script>");
            }
            else
            {
                usrMessage.PutMessage("Procedure Code not  updated");
                usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_ErrorMessage);
                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());
        }
    }
Beispiel #9
0
    protected void css_btnSave_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
        {
            CheckRadioList();
            _saveOperation          = new SaveOperation();
            _saveOperation.WebPage  = this.Page;
            _saveOperation.Xml_File = "MST_CHIRO_CA.xml";
            _saveOperation.SaveMethod();
        }
        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);
        }

        Bill_Sys_CheckoutBO objChairo = new Bill_Sys_CheckoutBO();

        if (objChairo.CheckImagePath(Convert.ToInt16(txtEventID.Text), "SP_UPDATE_MST_CHIRO_CA"))
        {
            String ch_EventID = txtEventID.Text;
            FillPDFValue(ch_EventID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME);
        }
        else
        {
            #region "prashant for signpad
            // Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('Bill_Sys_Co_DoctorSign_ChiroCaDatail.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_Co_PatientSign_ChiroCaDatail.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_CO_Chiro_Ca_Signature.aspx','Sign','toolbar=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=no,width=700,height=575'); ", true);
            #endregion
            Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('Bill_Sys_CO_Chiro_Ca_Signature.aspx','Sign','toolbar=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=no,width=700,height=575'); ", true);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["EID"] != null)
            {
                Session["AC_EventID"] = Request.QueryString["EID"].ToString();
            }

            if (Session["AC_EventID"] == null)
            {
                Session["AC_EventID"] = Session["SPECIALITY_PDF_OBJECT"].ToString();
            }
            txt_PATIENT_ID.Text   = ((SpecialityPDFDAO)Session["SPECIALITY_PDF_OBJECT"]).EventID;
            Session["AC_EventID"] = ((SpecialityPDFDAO)Session["SPECIALITY_PDF_OBJECT"]).EventID;
            Bill_Sys_CheckoutBO _objcheckOut = new Bill_Sys_CheckoutBO();
            DataSet             dsObj        = _objcheckOut.PatientName(txt_PATIENT_ID.Text);
            Session["AC_CaseID"] = dsObj.Tables[0].Rows[0][1].ToString();
            LoadData();
            LoadPatientData();

            if (!txtDoa.Text.ToString().Equals(""))
            {
                txtDoa.Text = Convert.ToDateTime(txtDoa.Text).ToString("MM/dd/yyyy");
            }
            if (!txtDoe.Text.ToString().Equals(""))
            {
                txtDoe.Text = DateTime.Now.ToString("MM/dd/yyy");
            }

            Bill_Sys_CheckoutBO obj = new Bill_Sys_CheckoutBO();
            if (obj.CheckImgPathAC(Convert.ToInt32(txt_PATIENT_ID.Text)))
            {
                btnSave.Text = "Update";
            }
            else
            {
                btnSave.Text = "Save";
            }
        }
        #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_AccuReEval.aspx");
        }
        #endregion
    }
Beispiel #11
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Bill_Sys_CheckoutBO _obj  = new Bill_Sys_CheckoutBO();
        DataSet             dsObj = _obj.PatientName(Session["CM_Event_ID"].ToString());

        Session["CM_ALL_CaseID"] = dsObj.Tables[0].Rows[0][1].ToString();
        #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_CM_ALL_DoctorSign.aspx");
        }
        #endregion
    }
    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());
        }
        DataSet dset = new DataSet();

        _obj_CheckOutBO = new Bill_Sys_CheckoutBO();
        try
        {
            string sz_UserID      = ((Bill_Sys_UserObject)(Session["USER_OBJECT"])).SZ_USER_ID.ToString();
            string sz_CaseID      = Request.QueryString["CaseID"].ToString();
            string sz_ProcedureID = Request.QueryString["ProcID"].ToString();
            string sz_CompanyID   = Request.QueryString["CompID"].ToString();

            dset = _obj_CheckOutBO.GetCaseDiagnosis(sz_CaseID, sz_CompanyID, sz_ProcedureID, sz_UserID);
            grddiagnosis.DataSource = dset;
            grddiagnosis.DataBind();
        }
        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);
        }

        #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_CO_ViewDeatails.aspx");
        }
        #endregion
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    protected void BtnSave_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());
        }
        TXT_USTED_ERA.Text = RDO_USTED_ERA.SelectedIndex.ToString();
        try
        {
            if (Page.IsValid)
            {
                SaveOperation _objsave = new SaveOperation();
                _objsave.WebPage  = this.Page;
                _objsave.Xml_File = "ECG_Form_Second_Page.xml";
                _objsave.SaveMethod();
            }
            Bill_Sys_CheckoutBO obj = new Bill_Sys_CheckoutBO();
            if (obj.ChekECGDoctorSignPath(Convert.ToInt32(TXT_I_EVENT.Text)))
            {
                string sz_eventID = TXT_I_EVENT.Text;
                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_ECG_DoctorSign.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);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #14
0
    protected void btnSave_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
        {
            if (Page.IsValid)
            {
                _saveOperation.WebPage  = this.Page;                              // Pass Current web form to SaveOperation.
                _saveOperation.Xml_File = "Bill_Sys_CO_Chiro_Treatment_Plan.xml"; // Pass xml file to SaveOperation
                _saveOperation.SaveMethod();                                      // Call  save method of SaveOperation. Will save all information from web form.
            }
            Bill_Sys_CheckoutBO obj = new Bill_Sys_CheckoutBO();
            if (obj.ChekCOChiroSignPath(Convert.ToInt32(TXT_EVENT_ID.Text)))
            {
                string sz_eventID = TXT_EVENT_ID.Text;
                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_CO_Chiro_DoctorSign.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_CO_Chiro_Signature.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);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #15
0
    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
        {
            _associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();
            ds = new DataSet();
            _obj_CheckOutBO             = new Bill_Sys_CheckoutBO();
            txtCompanyID.Text           = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            txtUserId.Text              = ((Bill_Sys_UserObject)(Session["USER_OBJECT"])).SZ_USER_ID.ToString();
            txtCaseID.Text              = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID;
            extddlDiagnosisType.Flag_ID = txtCompanyID.Text;
            txtDiagnosisSetID.Text      = _associateDiagnosisCodeBO.GetDiagnosisSetID();

            ds = _obj_CheckOutBO.GetDoctorUserID(txtUserId.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            txtDoctorId.Text = ds.Tables[0].Rows[0][0].ToString();

            ds = GET_DoctorSpeciality(txtDoctorId.Text, txtCompanyID.Text);
            txtSpeciality.Text = ds.Tables[0].Rows[0][0].ToString();


            GetAssignedDiagnosisCode(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_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 css_btnSave_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
        {
            SaveOperation _objsave = new SaveOperation();
            _objsave.WebPage  = this.Page;
            _objsave.Xml_File = "Patient_Intake4.xml";
            _objsave.SaveMethod();
            // LoadData();
            Bill_Sys_CheckoutBO _objsign = new Bill_Sys_CheckoutBO();
            if (_objsign.PatientIntekSignPath(TXT_I_EVENT.Text.ToString()))
            {
                String ch_EventID = TXT_I_EVENT.Text;
                FillPDFValue(ch_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_Patient_Intek_Signature.aspx','Sign','toolbar=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=yes,width=500,height=350'); ", true);
            }
            //  FillPDFValue(TXT_I_EVENT.Text, "1", "PROCOMSYS");
        }
        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());
        }
    }
Beispiel #17
0
    protected void btnSave_Click(object sender, EventArgs e)
    {
        if (RDO_CAUSE_OF_INJURY.SelectedValue.Equals(""))
        {
            txtRDO_CAUSE_OF_INJURY.Text = "-1";
        }
        else
        {
            txtRDO_CAUSE_OF_INJURY.Text = RDO_CAUSE_OF_INJURY.SelectedValue;
        }


        if (RDO_COMPLAINT_CONSISTENT.SelectedValue.Equals(""))
        {
            txtRDO_COMPLAINT_CONSISTENT.Text = "-1";
        }
        else
        {
            txtRDO_COMPLAINT_CONSISTENT.Text = RDO_COMPLAINT_CONSISTENT.SelectedValue;
        }


        if (RDO_CONSISTENT_OBJ_FIDINGS.SelectedValue.Equals(""))
        {
            txtRDO_CONSISTENT_OBJ_FIDINGS.Text = "-1";
        }
        else
        {
            txtRDO_CONSISTENT_OBJ_FIDINGS.Text = RDO_CONSISTENT_OBJ_FIDINGS.SelectedValue;
        }

        _saveOperation          = new SaveOperation();
        _saveOperation.WebPage  = this.Page;
        _saveOperation.Xml_File = "CM_INITIAL_EVALDiagnosticImpresstion.xml";
        _saveOperation.SaveMethod();

        SaveChekBoxValue();
        Bill_Sys_CheckoutBO obj = new Bill_Sys_CheckoutBO();

        obj.deleteCODigosisCode(txtEventID.Text.ToString());
        obj.SaveCODigosisCode(Convert.ToInt32(txtEventID.Text), AL);
        Response.Redirect("Bill_Sys_CM_PlanOfCare.aspx", false);
    }
    protected void BTN_SAVE_NEXT_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();
        // Create object of SaveOperation. With the help of this object you save information into table.
        try
        {
            if (Page.IsValid)                                             // Check for Validation.
            {
                _saveOperation.WebPage  = this.Page;                      // Pass Current web form to SaveOperation.
                _saveOperation.Xml_File = "Bill_Sys_IM_Test_Results.xml"; // Pass xml file to SaveOperation
                _saveOperation.SaveMethod();                              // Call  save method of SaveOperation. Will save all information from web form.
            }

            SaveDignosisValues();
            Bill_Sys_CheckoutBO obj = new Bill_Sys_CheckoutBO();
            obj.deleteCODigosisCode(TXT_EVENT_ID.Text.ToString());
            obj.SaveCODigosisCode(Convert.ToInt32(TXT_EVENT_ID.Text), 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);
        }

        Response.Redirect("~/Bill_Sys_FUIM_Plan.aspx");
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["EID"] != null)
            {
                Session["IMEventID"] = Request.QueryString["EID"].ToString();
                txtEventID.Text      = (string)Session["IMEventID"].ToString();
                LoadData();
                LoadPatientData();
                LoadProcedureCodes();
            }
            else
            {
                txtEventID.Text = (string)Session["IMEventID"].ToString();
                LoadData();
                LoadPatientData();
                LoadProcedureCodes();
            }
        }

        txtDOE.Text = DateTime.Now.ToString("MM/dd/yyy");
        Bill_Sys_CheckoutBO _objCheckoutBO = new Bill_Sys_CheckoutBO();

        DataSet dsObj          = _objCheckoutBO.PatientName(txtEventID.Text);
        string  sz_PatientName = dsObj.Tables[0].Rows[0][0].ToString();

        Session["ChkOutCaseID"] = dsObj.Tables[0].Rows[0][1].ToString();
        if (_objCheckoutBO.CheckIMData(Convert.ToInt32(txtEventID.Text)))
        {
            btnSave.Text = "Update&Next";
        }
        #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_IM_HistoryOfPresentIillness.aspx");
        }
        #endregion
    }
Beispiel #20
0
    protected void BtnSave_Click(object sender, EventArgs e)
    {
        if (Page.IsValid)
        {
            SaveOperation _objsave = new SaveOperation();
            _objsave.WebPage  = this.Page;
            _objsave.Xml_File = "Cm_All_Second_Page.xml";
            _objsave.SaveMethod();
        }
        Bill_Sys_CheckoutBO obj = new Bill_Sys_CheckoutBO();

        if (obj.ChekCMALLSignPath(Convert.ToInt32(TXT_I_EVENT.Text)))
        {
            string sz_eventID = TXT_I_EVENT.Text;
            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_CM_ALL_DoctorSign.aspx','Sign','toolbar=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=no,width=700,height=575'); ", true);
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Bill_Sys_CheckoutBO _obj  = new Bill_Sys_CheckoutBO();
        DataSet             dsObj = _obj.PatientName(Session["ECG_EVENT_ID"].ToString());

        Session["ECG_CaseID"] = dsObj.Tables[0].Rows[0][1].ToString();
        TXT_I_EVENT.Text      = Session["ECG_EVENT_ID"].ToString();
        if (!IsPostBack)
        {
            LoadData();
            LoadPatientData();
        }
        #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_ECG_Form2.aspx");
        }
        #endregion
    }
    public void LoadDiagnosisCode()
    {
        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 _objCheckoutBO = new Bill_Sys_CheckoutBO();

        try
        {
            DataSet ds = new DataSet();
            ds = _objCheckoutBO.GetCODiagnosis(txtEventID.Text);
            for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
            {
                if (ds.Tables[0].Rows[i]["SZ_TEXT"].ToString() != "")
                {
                    String   chkTempName = "chk" + ds.Tables[0].Rows[i]["SZ_TEXT"].ToString();
                    CheckBox chkTemp     = (CheckBox)tblDiagCode.FindControl(chkTempName);
                    chkTemp.Checked = 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());
        }
    }
Beispiel #23
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Bill_Sys_CheckoutBO _obj  = new Bill_Sys_CheckoutBO();
        DataSet             dsObj = _obj.PatientName(Session["CM_HI_EventID"].ToString());

        Session["CO_CHIRO_CaseID"] = dsObj.Tables[0].Rows[0][1].ToString();

        txtEventID.Text = Session["CM_HI_EventID"].ToString();
        if (!IsPostBack)
        {
            LoadData();
            LoadPatientData();
        }
        TXT_DOE.Text = DateTime.Now.ToString("MM/dd/yyy");
        #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_CM_PlanOfCare.aspx");
        }
        #endregion
    }
Beispiel #24
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Session["IMEventID"] = "12007";

            Bill_Sys_CheckoutBO _obj  = new Bill_Sys_CheckoutBO();
            DataSet             dsObj = _obj.PatientName(Session["IMEventID"].ToString());
            Session["PhysicalCaseID"] = dsObj.Tables[0].Rows[0][1].ToString();

            TXT_I_EVENT.Text = Session["IMEventID"].ToString();
            LoadData();
            LoadPatientData();
            TXT_TREATMENT.Text = DateTime.Now.ToString("MM/dd/yyyy");
        }
        #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_Physical_Theraphy_Aqua.aspx");
        }
        #endregion
    }
Beispiel #25
0
    protected void btnSave_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
        {
            _saveOperation          = new SaveOperation();
            _saveOperation.WebPage  = this.Page;
            _saveOperation.Xml_File = "MST_ACCU_RE_EVAL.xml";
            _saveOperation.SaveMethod();
            LoadData();

            Bill_Sys_CheckoutBO obj = new Bill_Sys_CheckoutBO();
            if (obj.CheckImgPathAC(Convert.ToInt32(txt_PATIENT_ID.Text)))
            {
                ArrayList         objal = new ArrayList();
                SpecialityPDFFill spf   = new SpecialityPDFFill();
                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_SPECIALITY_NAME = "AC";
                spf.SZ_SPECIALITY_CODE = "NFMAC";
                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;
                //objal = spf.FillPDFValue(spf.sz_EventID, spf.sz_CompanyID, spf.sz_CompanyName, spf.sz_XMLPath, spf.sz_PDFPath, spf.sz_Session_Id, spf.SZ_USER_NAME,spf.SZ_SPECIALITY_NAME);
                objal = spf.FillPDFValue(spf);
                Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + objal[1] + "'); ", true);


                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    = objal[0].ToString();
                spf.SZ_PT_FILE_PATH    = objal[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);
                btnSave.Text = "Update";
            }
            else
            {
                btnSave.Text = "Update";
                //  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);
                Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('Bill_Sys_Ac_AccuReval_Signature.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);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #26
0
    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(txt_PATIENT_ID.Text);

        Session["AC_CaseID"] = dsObj.Tables[0].Rows[0][1].ToString();

        string sz_CaseID = Session["AC_CaseID"].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["AC_REEVAL_XML_Path"].ToString();
            string pdfpath = ConfigurationManager.AppSettings["AC_REEVAL_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/AC/";

            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_AC_REEVAL_DM(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());
        }
    }
Beispiel #27
0
    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
        {
            //TUSHAR:- To Show Complaints Of Particular Speciality
            Bill_Sys_CheckoutBO _obj_CheckOutBO = new Bill_Sys_CheckoutBO();
            DataSet             DoctorName      = new DataSet();
            string UserId = ((Bill_Sys_UserObject)(Session["USER_OBJECT"])).SZ_USER_ID.ToString();
            DoctorName       = _obj_CheckOutBO.GetDoctorUserID(UserId, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            txtDoctorId.Text = DoctorName.Tables[0].Rows[0][0].ToString();
            if (txtDoctorId.Text != "" && txtDoctorId.Text != null)
            {
                extddlArea.Flag_ID = txtDoctorId.Text;
            }
            //End Of Code

            if (!IsPostBack)
            {
                Session["Patient_Sign"] = "";
                if (Request.QueryString["Flag"] != "SYN")
                {
                    Session["AC_SYNAPTIC_EVENT_ID"] = "";
                }
                else
                {
                    btnDiagnosysCodes.Enabled = true;
                }
                if ((Bill_Sys_CaseObject)Session["CASE_OBJECT"] != null)
                {
                    Session["company"] = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID;
                }
                else
                {
                    if (Request.QueryString["CaseID"] != null)
                    {
                        if (Request.QueryString["CaseID"].ToString() != "")
                        {
                            CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                            Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                            _bill_Sys_CaseObject.SZ_PATIENT_ID = _caseDetailsBO.GetCasePatientID(Request.QueryString["CaseID"].ToString(), "");
                            _bill_Sys_CaseObject.SZ_CASE_ID    = Request.QueryString["CaseID"].ToString();
                            if (Request.QueryString["cmp"] != null)
                            {
                                _bill_Sys_CaseObject.SZ_CASE_NO = _caseDetailsBO.GetCaseNo(_bill_Sys_CaseObject.SZ_CASE_ID, Request.QueryString["cmp"].ToString());
                                Session["company"] = Request.QueryString["cmp"].ToString();
                            }
                            else
                            {
                                _bill_Sys_CaseObject.SZ_CASE_NO = _caseDetailsBO.GetCaseNo(_bill_Sys_CaseObject.SZ_CASE_ID, Session["company"].ToString());
                            }
                            _bill_Sys_CaseObject.SZ_PATIENT_NAME = _caseDetailsBO.GetPatientName(_bill_Sys_CaseObject.SZ_PATIENT_ID);
                            _bill_Sys_CaseObject.SZ_COMAPNY_ID   = Session["company"].ToString();
                            Session["CASE_OBJECT"] = _bill_Sys_CaseObject;
                        }
                    }
                }
                TXT_PATIENT_FIRST_NAME.Text = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_PATIENT_NAME;
            }


            this.con.SourceGrid              = grdProcedure;
            this.txtSearchBox.SourceGrid     = grdProcedure;
            this.grdProcedure.Page           = this.Page;
            this.grdProcedure.PageNumberList = this.con;
            //change by kunal
            this.con1.SourceGrid = gv_Complaints;
            //this.txtSearchBox.SourceGrid=gv_Complaints;
            this.gv_Complaints.Page           = this.Page;
            this.gv_Complaints.PageNumberList = this.con1;
            //-----
            sz_UserID = ((Bill_Sys_UserObject)(Session["USER_OBJECT"])).SZ_USER_ID.ToString();

            sz_CompanyID = ((Bill_Sys_BillingCompanyObject)(Session["BILLING_COMPANY_OBJECT"])).SZ_COMPANY_ID.ToString();

            txtDoctorId.Text      = GetDoctorUserID(sz_UserID, sz_CompanyID);
            TXT_CURRENT_DATE.Text = DateTime.Now.ToString("MM/dd/yyyy");
            txtCompanyID.Text     = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            sz_CompanyName        = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME;

            if (!IsPostBack)
            {
                grdProcedure.XGridBind();
                gv_Complaints.XGridBindSearch();

                if (TXT_DOA.Text != "")
                {
                    TXT_DOA.Text = Convert.ToDateTime(TXT_DOA.Text).ToString("MM/dd/yyyy");
                }
                TXT_CURRENT_DATE.Text = Convert.ToDateTime(TXT_CURRENT_DATE.Text).ToString("MM/dd/yyyy");

                grdProcedure.Columns[2].Visible = false;
            }
            #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_AC_Acupuncture_Followup.aspx");
            }
            #endregion
        }
        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 css_btnSave_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());
        }
        string sz_EventID, sz_CompanyID, sz_CompanyName, XML_Path, PDF_Path, sz_Session_Id;

        TXT_WEEK.Text = RDO_WEEK.SelectedValue.ToString();
        try
        {
            if (Page.IsValid)
            {
                SaveOperation _saveOperation = new SaveOperation();
                _saveOperation.WebPage  = this.Page;
                _saveOperation.Xml_File = "RefferalXML.xml";
                _saveOperation.SaveMethod();
            }
            Bill_Sys_CheckoutBO obj   = new Bill_Sys_CheckoutBO();
            ArrayList           objal = new ArrayList();
            if (obj.ChekCORefferalSignPath(Convert.ToInt32(TXT_I_EVENT.Text)))
            {
                //    string sz_EventId = TXT_I_EVENT.Text;
                //    FillPDFValue(sz_EventId, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME);
                sz_EventID     = Session["CO_Refferal_Event_Id"].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;
                SpecialityPDFFill spf = new SpecialityPDFFill();
                spf.sz_EventID         = sz_EventID.ToString();
                spf.sz_CompanyID       = sz_CompanyID.ToString();
                spf.sz_CompanyName     = sz_CompanyName.ToString();
                XML_Path               = "CO_Refferal_XML_Path";
                PDF_Path               = "CO_Refferal_PDF_Path";
                spf.sz_XMLPath         = XML_Path.ToString();
                spf.sz_PDFPath         = PDF_Path.ToString();
                sz_Session_Id          = Session["CO_Refferal_CaseID"].ToString();
                spf.sz_Session_Id      = sz_Session_Id.ToString();
                spf.SZ_SPECIALITY_NAME = "IM";
                spf.SZ_USER_NAME       = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                objal = spf.FillPDFValue(spf);
                Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + objal[1] + "'); ", true);
                // Response.Write("<script>window.open('" + objal[1] + "')</script>");
            }
            else
            {
                Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('Bill_Sys_CO_Refferal_PhisicianSign.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);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #29
0
    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["IMEventID"].ToString();
        //String sz_EventID = "7";
        //  Session["PhysicalCaseID"] = "11900";
        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["PhysicalCaseID"].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 + "_Doctor.jpg";
                        Img.Save(DoctorImagePath);
                        System.IO.File.WriteAllBytes("C://LawAllies//MBSUpload//docsign.jpg", imageContent2);

                        string  sz_case_id = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]) + Session["PhysicalCaseID"].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["PhysicalCaseID"].ToString() + "/Signs/";
                        CaseBarcodePath = sz_BarcodeImagePath + "BarcodeImg.jpg";
                        Img.Save(CaseBarcodePath);
                        flag = 0;
                    }
                    else
                    {
                        flag = 2;
                    }
                }
            }

            _objcheckOut.UpdatePhysicaltherapySignPath(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);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #30
0
    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());
        }
    }