示例#1
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
        {
            SaveOperation _objsave = new SaveOperation();
            _objsave.WebPage  = this.Page;
            _objsave.Xml_File = "HIPPA.xml";
            _objsave.SaveMethod();
            LoadData();
            ArrayList         objal = new ArrayList();
            SpecialityPDFFill spf   = new SpecialityPDFFill();
            spf.sz_EventID         = Session["HIPPA_CaseID"].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 = "HIPAA Forms";
            spf.SZ_SPECIALITY_CODE = "INHIP";
            spf.sz_XMLPath         = "HIPPA_XML_Path";
            spf.sz_PDFPath         = "HIPPA_PDF_Path";
            spf.sz_Session_Id      = Session["HIPPA_CaseID"].ToString();
            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);


            spf.sz_Session_Id      = Session["HIPPA_CaseID"].ToString();
            spf.sz_CompanyID       = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            spf.sz_EventID         = "";
            spf.SZ_PT_FILE_NAME    = objal[0].ToString();
            spf.SZ_PT_FILE_PATH    = objal[2].ToString();
            spf.SZ_SPECIALITY_CODE = "INHIP";
            spf.SZ_SPECIALITY_NAME = "HIPAA Forms";
            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());
        }
    }
示例#2
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());
        }
    }
    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 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());
        }
    }
    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());
        }
    }
示例#6
0
    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_Plan.xml"; // Pass xml file to SaveOperation
                _saveOperation.SaveMethod();                      // Call  save method of SaveOperation. Will save all information from web form.
            }

            //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(TXT_EVENT_ID.Text), ((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(TXT_EVENT_ID.Text));

                //CHK_REFERRALS_CHIROPRACTOR
                if (CHK_REFERRALS_CHIROPRACTOR.Checked == 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 (CHK_REFERRALS_PHYSICAL_THERAPIST.Checked == 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 (CHK_REFERRALS_OCCUPATIONAL_THERAPIST.Checked == 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.Checked
                if (CHK_TEST_EMG_NCV.Checked == 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 ((CHK_SUPPLIES_EMS_UNIT.Checked == true) || (CHK_SUPPLIES_RT_LT_WRIST_SUPPORT.Checked == true) || (CHK_SUPPLIES_CERVICAL_PILLOW.Checked == true) || (CHK_SUPPLIES_RT_LT_ELBOW_SUPPORT.Checked == true) || (CHK_SUPPLIES_LUMBOSACRAL_BACK_SUPPORT.Checked == true) || (CHK_SUPPLIES_RT_LT_ANKLE_SUPPORT.Checked == true) || (CHK_SUPPLIES_LUMBAR_CUSHION.Checked == true) || (CHK_SUPPLIES_RT_LT_KNEE_SUPPORT.Checked == true) || (CHK_SUPPLIES_MASSAGER.Checked == true) || (CHK_SUPPLIES_CANE.Checked == true) || (CHK_SUPPLIES_ROM_TESTING.Checked == true) || (CHK_SUPPLIES_BIOFEEDBACK_TRAINING_SESSIONS.Checked == 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);
        }
        Response.Redirect("~/Bill_Sys_FUIM_Doctors_opinion.aspx");
        //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();
        Session["AOB_CaseID"] = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID;
        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["AOB_CaseID"].ToString();
        int flag = 0;

        try
        {
            String szDefaultPath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["AOB_CaseID"].ToString() + "/Signs/";
            //Added By-Sunil
            string SaveSignPath = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["AOB_CaseID"].ToString() + "/Signs/";
            //end
            if (!Directory.Exists(szDefaultPath))
            {
                Directory.CreateDirectory(szDefaultPath);
            }
            szDefaultPath = szDefaultPath + sz_EventID;
            //Added By-Sunil
            SaveSignPath = SaveSignPath + sz_EventID;
            //end
            DoctorImagePath = szDefaultPath + "_DoctorSign.jpg";
            string DoctorImagePathlogical = SaveSignPath + "_DoctorSign.jpg";
            signobj.SignSave(Request.Form["hiddenPatient"], szDefaultPath + "_Patient.jpg");
            //_objcheckOut.UpdatePatientAOBSign(sz_EventID, szDefaultPath + "_Patient.jpg");
            _objcheckOut.UpdatePatientAOBSign(sz_EventID, SaveSignPath + "_Patient.jpg");
            signobj.SignSave(Request.Form["hidden"], DoctorImagePath);

            #region " "Barcode functionality
            DataSet dset = new DataSet();
            dset = _objcheckOut.GetIntakeSheetNodeID(sz_CompanyID, sz_EventID, "NFAOB");
            string          sz_NodeId                  = dset.Tables[0].Rows[0][0].ToString();
            string          sz_CaseId                  = sz_EventID.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["AOB_CaseID"].ToString() + "/Signs/";
            string          sz_BarcodeImagePathlogical = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["AOB_CaseID"].ToString() + "/Signs/";
            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.UpdateAOBSign(sz_EventID, DoctorImagePath, CaseBarcodePath);
            _objcheckOut.UpdateAOBSign(sz_EventID, DoctorImagePathlogical, CaseBarcodePathlogical);


            ArrayList         objal = new ArrayList();
            SpecialityPDFFill spf   = new SpecialityPDFFill();
            spf.sz_EventID         = Session["AOB_CaseID"].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 = "AOB";
            spf.SZ_SPECIALITY_CODE = "NFAOB";
            spf.sz_XMLPath         = "AOB_XML_Path";
            spf.sz_PDFPath         = "AOB_PDF_Path";
            spf.sz_Session_Id      = Session["AOB_CaseID"].ToString();
            spf.SZ_USER_NAME       = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
            objal = spf.FillPDFValue(spf);
            Response.Redirect(objal[1].ToString(), false);

            spf.sz_Session_Id      = Session["AOB_CaseID"].ToString();
            spf.sz_CompanyID       = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            spf.sz_EventID         = "";
            spf.SZ_PT_FILE_NAME    = objal[0].ToString();
            spf.SZ_PT_FILE_PATH    = objal[2].ToString();
            spf.SZ_SPECIALITY_CODE = "NFAOB";
            spf.SZ_SPECIALITY_NAME = "AOB";
            spf.SZ_USER_NAME       = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
            spf.savePDFForminDocMang(spf);
            #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();
            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);
        }
        #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 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());
        }
    }
示例#9
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());
        }
        _objcheckOut = new Bill_Sys_CheckoutBO();
        DigitalSign signobj = new DigitalSign();

        objNF3Template = new Bill_Sys_NF3_Template();
        DataSet dsObj = _objcheckOut.PatientName(Session["IM_FW_EVENT_ID"].ToString());

        Session["IM_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["IM_FW_EVENT_ID"].ToString();
        int flag = 0;

        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
            DoctorImagePath        = szDefaultPath + "_DoctorSign.jpg";
            DoctorImagePathlogical = SaveSignPath + "_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["IM_FOLLOWUP_CaseID"].ToString() + "/Signs/";
            SpecialityPDFBO pdfbo = new SpecialityPDFBO();
            //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
            CaseBarcodePath = pdfbo.GetBarCodePath(sz_CompanyID, sz_CaseId, sz_NodeId, sz_BarcodeImagePath);
            #endregion

            //_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);
            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);
                }
            }
            else
            {
                //signature has not been returned successfully!
            }
        }
        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());
        }
    }
示例#10
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 (rdlMedication_Restriction.SelectedValue.ToString().Equals(""))
            {
                txtrdlMedication_Restriction.Text = "-1";
            }
            else
            {
                txtrdlMedication_Restriction.Text = rdlMedication_Restriction.SelectedValue;
            }


            if (rdlPatient_Need_Diagnostic.SelectedValue.ToString().Equals(""))
            {
                txtrdlPatient_Need_Diagnostic.Text = "-1";
            }
            else
            {
                txtrdlPatient_Need_Diagnostic.Text = rdlPatient_Need_Diagnostic.SelectedValue;
            }


            if (Page.IsValid)
            {
                _saveOperation.WebPage  = this.Page;
                _saveOperation.Xml_File = "IMPlanOfCare.xml";
                _saveOperation.SaveMethod();
            }
            //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(txtEventID.Text), ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID) == "2")
            {
                ArrayList         objal1 = new ArrayList();
                SpecialityPDFFill SPDFF  = new SpecialityPDFFill();


                //chkReferrals_Chiropractor
                if (chkReferrals_Chiropractor.Checked == true)
                {
                    SPDFF.sz_EventID         = "344184";//Session["IMEventID"].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         = "CO_Refferal_IM_XML_Path";
                    SPDFF.sz_PDFPath         = "CO_Refferal_PDF_Path";
                    SPDFF.sz_Session_Id      = Session["IM_InicialCaseID"].ToString();
                    SPDFF.SZ_USER_NAME       = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                    objal1 = SPDFF.FillPDFValue(SPDFF);

                    SPDFF.sz_Session_Id      = Session["IM_InicialCaseID"].ToString();
                    SPDFF.sz_CompanyID       = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                    SPDFF.sz_EventID         = "344184"; //Session["IMEventID"].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_IE_REFERRAL";
                    SPDFF.SZ_USER_NAME       = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                    SPDFF.savePDFForminDocMang(SPDFF);
                }

                //chkReferrals_Physical_Therapist
                if (chkReferrals_Physical_Therapist.Checked == true)
                {
                    SPDFF.sz_EventID         = Session["IMEventID"].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         = "CO_Refferal_IM_XML_Path";
                    SPDFF.sz_PDFPath         = "CO_Refferal_PDF_Path";
                    SPDFF.sz_Session_Id      = Session["IM_InicialCaseID"].ToString();
                    SPDFF.SZ_USER_NAME       = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                    objal1 = SPDFF.FillPDFValue(SPDFF);

                    SPDFF.sz_Session_Id      = Session["IM_InicialCaseID"].ToString();
                    SPDFF.sz_CompanyID       = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                    SPDFF.sz_EventID         = Session["IMEventID"].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_IE_REFERRAL";
                    SPDFF.SZ_USER_NAME       = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                    SPDFF.savePDFForminDocMang(SPDFF);
                }

                //chkReferrals_Occupational_Therapist
                if (chkReferrals_Occupational_Therapist.Checked == true)
                {
                    SPDFF.sz_EventID         = Session["IMEventID"].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         = "CO_Refferal_IM_XML_Path";
                    SPDFF.sz_PDFPath         = "CO_Refferal_PDF_Path";
                    SPDFF.sz_Session_Id      = Session["IM_InicialCaseID"].ToString();
                    SPDFF.SZ_USER_NAME       = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                    objal1 = SPDFF.FillPDFValue(SPDFF);

                    SPDFF.sz_Session_Id      = Session["IM_InicialCaseID"].ToString();
                    SPDFF.sz_CompanyID       = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                    SPDFF.sz_EventID         = Session["IMEventID"].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_IE_REFERRAL";
                    SPDFF.SZ_USER_NAME       = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                    SPDFF.savePDFForminDocMang(SPDFF);
                }

                //chkTest_Emg_Ncv
                if (CHK_VS_NCT.Checked == true)
                {
                    SPDFF.sz_EventID         = Session["IMEventID"].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_XML_Path";
                    SPDFF.sz_PDFPath         = "MST_ECG_PDF_Path";
                    SPDFF.sz_Session_Id      = Session["IM_InicialCaseID"].ToString();
                    SPDFF.SZ_USER_NAME       = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                    objal1 = SPDFF.FillPDFValue(SPDFF);

                    SPDFF.sz_Session_Id      = Session["IM_InicialCaseID"].ToString();
                    SPDFF.sz_CompanyID       = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                    SPDFF.sz_EventID         = Session["IMEventID"].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_IE_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 ((chk_Assistive_Device_EMS_Unit.Checked == true) || (chk_Assistive_Device_Wrist_Support.Checked == true) || (chkAssistive_Device_Cervical_Pillow.Checked == true) || (chk_Assistive_Device_Elbow_Support.Checked == true) || (chk_Assistive_Device_Lumbosacral_Back_Support.Checked == true) || (chk_Assistive_Device_Ankle_Support.Checked == true) || (chk_Assistive_Device_Lumbar_Cushion.Checked == true) || (chk_Assistive_Device_Knee_Support.Checked == true) || (chkAssistive_Device_Massager.Checked == true) || (chk_Assistive_Device_Cane.Checked == true) || (chkAssistive_Device_Other.Checked == true))
                {
                    SPDFF.sz_EventID         = Session["IMEventID"].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_IM_INICIAL_XML_Path";
                    SPDFF.sz_PDFPath         = "Supplies_PDF_Path";
                    SPDFF.sz_Session_Id      = Session["IM_InicialCaseID"].ToString();
                    SPDFF.SZ_USER_NAME       = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                    objal1 = SPDFF.FillPDFValue(SPDFF);

                    SPDFF.sz_Session_Id      = Session["IM_InicialCaseID"].ToString();
                    SPDFF.sz_CompanyID       = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                    SPDFF.sz_EventID         = Session["IMEventID"].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_IE_REFERRAL";
                    SPDFF.SZ_USER_NAME       = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                    SPDFF.savePDFForminDocMang(SPDFF);
                }
            }
            //End Code

            Response.Redirect("Bill_Sys_IM_workStatus.aspx", false);
        }
        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());
        }
    }
示例#11
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
        {
            if (Page.IsValid)
            {
                if (RDO_MEDICATION_RESTRICTION.SelectedValue.Equals(""))
                {
                    txtRDO_MEDICATION_RESTRICTION.Text = "-1";
                }
                else
                {
                    txtRDO_MEDICATION_RESTRICTION.Text = RDO_MEDICATION_RESTRICTION.SelectedValue;
                }

                if (RDO_PATIENT_NEED_DIAGNOSTIC.SelectedValue.Equals(""))
                {
                    txtRDO_PATIENT_NEED_DIAGNOSTIC.Text = "-1";
                }
                else
                {
                    txtRDO_PATIENT_NEED_DIAGNOSTIC.Text = RDO_PATIENT_NEED_DIAGNOSTIC.SelectedValue;
                }

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



            //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(txtEventID.Text), ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID) == "2")
            {
                ArrayList         objal1 = new ArrayList();
                SpecialityPDFFill SPDFF  = new SpecialityPDFFill();


                //CHK_REFERRALS_CHIROPRACTOR
                if (CHK_REFERRALS_CHIROPRACTOR.Checked == true)
                {
                    SPDFF.sz_EventID         = Session["CM_HI_EventID"].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         = "CO_Refferal_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["CO_CHIRO_CaseID"].ToString();
                    SPDFF.sz_CompanyID       = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                    SPDFF.sz_EventID         = Session["CM_HI_EventID"].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_IE_REFERRAL";
                    SPDFF.SZ_USER_NAME       = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                    SPDFF.savePDFForminDocMang(SPDFF);
                }

                //CHK_REFERRALS_PHYSICAL_THERAPIST
                if (CHK_REFERRALS_PHYSICAL_THERAPIST.Checked == true)
                {
                    SPDFF.sz_EventID         = Session["CM_HI_EventID"].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         = "CO_Refferal_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["CO_CHIRO_CaseID"].ToString();
                    SPDFF.sz_CompanyID       = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                    SPDFF.sz_EventID         = Session["CM_HI_EventID"].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_IE_REFERRAL";
                    SPDFF.SZ_USER_NAME       = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                    SPDFF.savePDFForminDocMang(SPDFF);
                }

                //CHK_REFERRALS_OCCUPATIONAL_THERAPIST
                if (CHK_REFERRALS_OCCUPATIONAL_THERAPIST.Checked == true)
                {
                    SPDFF.sz_EventID         = Session["CM_HI_EventID"].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         = "CO_Refferal_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["CO_CHIRO_CaseID"].ToString();
                    SPDFF.sz_CompanyID       = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                    SPDFF.sz_EventID         = Session["CM_HI_EventID"].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_IE_REFERRAL";
                    SPDFF.SZ_USER_NAME       = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                    SPDFF.savePDFForminDocMang(SPDFF);
                }

                //CHK_TEST_EMG_NCV.Checked
                if (CHK_TEST_EMG_NCV.Checked == true)
                {
                    SPDFF.sz_EventID         = Session["CM_HI_EventID"].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         = "CO_Refferal_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["CO_CHIRO_CaseID"].ToString();
                    SPDFF.sz_CompanyID       = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                    SPDFF.sz_EventID         = Session["CM_HI_EventID"].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_IE_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 ((CHK_ASSISTIVE_DEVICE_CANE.Checked == true) || (CHK_CRUTCHES.Checked == true) || (CHK_ORTHOTICS.Checked == true) || (CHK_WALKER.Checked == true) || (CHK_WHEEL_CHAIR.Checked == true) || (CHK_ASSISTIVE_DEVICE_OTHER.Checked == true))
                {
                    SPDFF.sz_EventID         = Session["CM_HI_EventID"].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_CM_INICIAL_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["CO_CHIRO_CaseID"].ToString();
                    SPDFF.sz_CompanyID       = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                    SPDFF.sz_EventID         = Session["CM_HI_EventID"].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_IE_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);
        }

        Response.Redirect("Bill_Sys_CM_workStatus.aspx", false);
        //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["CO_Refferal_Event_Id"].ToString();
        string XML_Path;
        string PDF_Path;

        int    flag            = 0;
        string DoctorImagePath = "";
        //string PatientImagePath = Session["PatientImagePath"].ToString();
        string CaseBarcodePath = "";

        try
        {
            string sz_NodeId;
            string sz_CaseId;
            String sz_BarcodeImagePath;
            string sz_Session_Id;
            String szDefaultPath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["CO_Refferal_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 + "_PhysicianSign.jpg";
                        Img.Save(DoctorImagePath);
                        DataSet dset = new DataSet();
                        dset = _objcheckOut.GetNodeID(sz_CompanyID, sz_EventID);

                        sz_NodeId = dset.Tables[0].Rows[0][1].ToString();
                        sz_CaseId = dset.Tables[0].Rows[0][0].ToString();


                        sz_BarcodeImagePath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + Session["CO_Refferal_CaseID"].ToString() + "/Signs/";



                        //code by tushar to centralise barcode generation process
                        SpecialityPDFBO pdfbo = new SpecialityPDFBO();
                        CaseBarcodePath = pdfbo.GetBarCodePath(sz_CompanyID, sz_CaseId, sz_NodeId, sz_BarcodeImagePath);
                        //end of code
                    }
                    else
                    {
                        flag = 2;
                    }
                }
            }


            _objcheckOut.SaveCORefferalSignPath(sz_EventID, DoctorImagePath, CaseBarcodePath);


            // Code by tushar to centralise pdf generation process
            SpecialityPDFFill spf = new SpecialityPDFFill();
            ArrayList         obj = new ArrayList();
            spf.sz_EventID         = sz_EventID;
            spf.sz_CompanyID       = sz_CompanyID;
            spf.sz_CompanyName     = sz_CompanyName;
            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_Event_Id"].ToString();
            spf.sz_Session_Id      = sz_Session_Id.ToString();
            spf.SZ_USER_NAME       = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
            spf.SZ_SPECIALITY_NAME = "CH";
            obj = spf.FillPDFValue(spf);

            Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + obj[1] + "'); ", true);
            Response.Write("<script>window.open('" + obj[1] + "')</script>");
            //end of 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());
        }
    }
示例#13
0
    protected void BTN_SAVE_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_PATIENT_WORKING_YES.Text            = RDO_PATIENT_WORKING_YES.SelectedValue.ToString();
        TXT_PATIENT_WORK_RESTRICT_YES.Text      = RDO_PATIENT_WORK_RESTRICT_YES.SelectedValue.ToString();
        TXT_DISCUSS_LIMIT_PATIENT.Text          = RDO_DISCUSS_LIMIT_PATIENT.SelectedValue.ToString();
        TXT_PATIENT_BENEFIT_REHABILITATION.Text = RDO_PATIENT_BENEFIT_REHABILITATION.SelectedValue.ToString();



        _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_Return_To_Work.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.ChekIMFollowupSignPath(Convert.ToInt32(TXT_EVENT_ID.Text)))
            {
                ArrayList         objal = new ArrayList();
                SpecialityPDFFill spf   = new SpecialityPDFFill();
                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_SPECIALITY_NAME = "IM";
                spf.SZ_SPECIALITY_CODE = "NFMIM";
                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;

                objal = spf.FillPDFValue(spf);
                Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + objal[1] + "'); ", true);


                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    = objal[0].ToString();
                spf.SZ_PT_FILE_PATH    = objal[2].ToString();
                spf.SZ_SPECIALITY_CODE = "IM";
                spf.SZ_SPECIALITY_NAME = "NFMIM";
                spf.SZ_USER_NAME       = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                spf.savePDFForminDocMang(spf);

                //Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('Bill_Sys_IM_Followup_DoctorSign.aspx','Sign','toolbar=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=no,width=700,height=575'); ", true);
            }
            else
            {
                //Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('Bill_Sys_IM_Followup_DoctorSign.aspx','Sign','toolbar=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=no,width=700,height=575'); ", true);  comment for  signature pad
                Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('Bill_Sys_IM_FUIM_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());
        }
    }