Beispiel #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        sz_UserID    = ((Bill_Sys_UserObject)(Session["USER_OBJECT"])).SZ_USER_ID.ToString();
        sz_CompanyID = ((Bill_Sys_BillingCompanyObject)(Session["BILLING_COMPANY_OBJECT"])).SZ_COMPANY_ID.ToString();

        if (Request.QueryString["caseid"] != null)
        {
            sz_CaseID      = Request.QueryString["caseid"].ToString();
            sz_BillNo      = Request.QueryString["billnumber"].ToString();
            sz_speciality  = Request.QueryString["speciality"].ToString();
            sz_CaseNo      = Request.QueryString["caseno"].ToString();
            txtbillno.Text = sz_BillNo;

            CaseDetailsBO _caseDetailsBO = new CaseDetailsBO();
            PatientID = _caseDetailsBO.GetCasePatientID(Request.QueryString["caseid"].ToString(), "");
        }

        //ddlGuidline.Attributes.Add("onChange", "return SplitString();");
        if (!IsPostBack)
        {
            //ddlGuidline.Items.Add("--Select--");
            //ddlGuidline.Items.Add("K-E7E  ");
            //ddlGuidline.Items.Add("B-D9A  ");
            //ddlGuidline.Items.Add("N-D10D ");
            //ddlGuidline.Items.Add("S-D10EI");


            GetRecord();
            GetPatientDetails();
            getDoctorDefaultList();
        }
    }
Beispiel #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ajAutoIns.ContextKey           = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            extddlInsuranceCompany.Flag_ID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            extddlCaseType.Flag_ID         = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            // txtPatientId.Text = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_PATIENT_ID;

            CaseDetailsBO _caseDetailsBO = new CaseDetailsBO();
            txtPatientId.Text = _caseDetailsBO.GetCasePatientID(txtCaseID.Text, "");

            Bill_Sys_PatientDeskList objGetVisitInfo = new Bill_Sys_PatientDeskList();
            DataSet dsVisitInfo = new DataSet();
            if (txtCaseID.Text.Trim() != "" && txtEventID.Text.Trim() != "")
            {
                dsVisitInfo = objGetVisitInfo.GetVisitInsInfo(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, txtEventID.Text, "EVENT");
            }
            else if (txtCaseID.Text != "" && txtEventID.Text.Trim() == "")
            {
                dsVisitInfo = objGetVisitInfo.GetVisitInsInfo(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, txtEventID.Text, "CASE");
            }
            if (dsVisitInfo.Tables.Count > 0)
            {
                if (dsVisitInfo.Tables[0].Rows.Count > 0)
                {
                    txtPolicyHolder.Text     = dsVisitInfo.Tables[0].Rows[0]["SZ_POLICY_HOLDER"].ToString();
                    txtPolicyNumber.Text     = dsVisitInfo.Tables[0].Rows[0]["SZ_POLICY_NO"].ToString();
                    txtClaimNumber.Text      = dsVisitInfo.Tables[0].Rows[0]["SZ_CLAIM_NUMBER"].ToString();
                    txtdateofaccident.Text   = dsVisitInfo.Tables[0].Rows[0]["SZ_DOA"].ToString();
                    extddlCaseType.Text      = dsVisitInfo.Tables[0].Rows[0]["SZ_CASE_TYPE_ID"].ToString();
                    hdninsurancecode.Value   = dsVisitInfo.Tables[0].Rows[0]["SZ_INS_ID"].ToString();
                    txtInsuranceCompany.Text = dsVisitInfo.Tables[0].Rows[0]["SZ_INSURANCE_NAME"].ToString();

                    Bill_Sys_PatientBO _bill_Sys_PatientBO = new Bill_Sys_PatientBO();
                    //  lstInsuranceCompanyAddress.Items.Clear();
                    //notuse  lstInsuranceCompanyAddress.DataSource = _bill_Sys_PatientBO.GetInsuranceCompanyAddress(extddlInsuranceCompany.Text).Tables[0];
                    lstInsuranceCompanyAddress.DataSource     = _bill_Sys_PatientBO.GetInsuranceCompanyAddress(hdninsurancecode.Value).Tables[0];
                    lstInsuranceCompanyAddress.DataTextField  = "DESCRIPTION";
                    lstInsuranceCompanyAddress.DataValueField = "CODE";
                    lstInsuranceCompanyAddress.DataBind();
                    lstInsuranceCompanyAddress.Text = dsVisitInfo.Tables[0].Rows[0]["SZ_INS_ADD_ID"].ToString();
                    lstInsuranceCompanyAddress_SelectedIndexChanged(sender, e);
                }
            }
        }
    }
    protected void grdUnsentNF_ItemCommand(object source, DataGridCommandEventArgs 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 (e.CommandName.ToString() == "Select")
            {
                CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                _bill_Sys_CaseObject.SZ_PATIENT_ID   = _caseDetailsBO.GetCasePatientID(e.CommandArgument.ToString(), "");
                _bill_Sys_CaseObject.SZ_CASE_ID      = e.CommandArgument.ToString();
                _bill_Sys_CaseObject.SZ_PATIENT_NAME = e.Item.Cells[2].Text;
                _bill_Sys_CaseObject.SZ_CASE_NO      = ((LinkButton)e.Item.FindControl("lnkSelectCase2")).Text;
                Session["CASE_OBJECT"] = _bill_Sys_CaseObject;

                _bill_Sys_Case            = new Bill_Sys_Case();
                _bill_Sys_Case.SZ_CASE_ID = e.CommandArgument.ToString();

                Session["CASEINFO"] = _bill_Sys_Case;
                Response.Redirect("Bill_Sys_CaseDetails.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());
        }
    }
 protected void grdBills_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "Edit")
     {
         int num = Convert.ToInt32(e.CommandArgument.ToString());
         this._bill_Sys_Case            = new Bill_Sys_Case();
         this._bill_Sys_Case.SZ_CASE_ID = this.grdBills.DataKeys[num]["sz_case_id"].ToString();
         CaseDetailsBO       sbo  = new CaseDetailsBO();
         Bill_Sys_CaseObject obj2 = new Bill_Sys_CaseObject();
         obj2.SZ_PATIENT_ID             = sbo.GetCasePatientID(this._bill_Sys_Case.SZ_CASE_ID, "");
         obj2.SZ_CASE_ID                = this._bill_Sys_Case.SZ_CASE_ID;
         obj2.SZ_COMAPNY_ID             = sbo.GetPatientCompanyID(obj2.SZ_PATIENT_ID);
         obj2.SZ_PATIENT_NAME           = sbo.GetPatientName(obj2.SZ_PATIENT_ID);
         obj2.SZ_CASE_NO                = this.grdBills.DataKeys[num]["sz_case_no"].ToString();
         this.Session["CASEINFO"]       = this._bill_Sys_Case;
         this.Session["CASE_OBJECT"]    = obj2;
         this.Session["PassedCaseID"]   = this._bill_Sys_Case.SZ_CASE_ID;
         this.Session["SZ_BILL_NUMBER"] = this.grdBills.DataKeys[num]["sz_bill_number"].ToString();
         base.Response.Redirect("Bill_Sys_BillTransaction.aspx?Type=Search", false);
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        sz_UserID    = ((Bill_Sys_UserObject)(Session["USER_OBJECT"])).SZ_USER_ID.ToString();
        sz_CompanyID = ((Bill_Sys_BillingCompanyObject)(Session["BILLING_COMPANY_OBJECT"])).SZ_COMPANY_ID.ToString();

        if (Request.QueryString["caseid"] != null)
        {
            sz_CaseID           = Request.QueryString["caseid"].ToString();
            Session["HP1_Case"] = Request.QueryString["caseid"].ToString();
            sz_BillNo           = Request.QueryString["billnumber"].ToString();
            sz_speciality       = Request.QueryString["speciality"].ToString();
            sz_CaseNo           = Request.QueryString["caseno"].ToString();
            txtbillno.Text      = sz_BillNo;
            hfbillno.Value      = sz_BillNo;
            CaseDetailsBO _caseDetailsBO = new CaseDetailsBO();
            PatientID = _caseDetailsBO.GetCasePatientID(Request.QueryString["caseid"].ToString(), "");
        }
        if (!IsPostBack)
        {
            GetRecord();
        }
    }
Beispiel #6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        try
        {
            //TUSHAR:- To Show Complaints Of Particular Speciality
            Bill_Sys_CheckoutBO _obj_CheckOutBO = new Bill_Sys_CheckoutBO();
            DataSet             DoctorName      = new DataSet();
            string UserId = ((Bill_Sys_UserObject)(Session["USER_OBJECT"])).SZ_USER_ID.ToString();
            DoctorName       = _obj_CheckOutBO.GetDoctorUserID(UserId, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            txtDoctorId.Text = DoctorName.Tables[0].Rows[0][0].ToString();
            if (txtDoctorId.Text != "" && txtDoctorId.Text != null)
            {
                extddlArea.Flag_ID = txtDoctorId.Text;
            }
            //End Of Code

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


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

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

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

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

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

                grdProcedure.Columns[2].Visible = false;
            }
            #region "check version readonly or not"
            string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString();
            if (app_status.Equals("True"))
            {
                Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page);
                cv.MakeReadOnlyPage("Bill_Sys_AC_Acupuncture_Followup.aspx");
            }
            #endregion
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #7
0
    protected void grdCaseMaster_ItemCommand(object source, DataGridCommandEventArgs 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 (e.CommandName.ToString() == "CaseSearch")
            {
                if (txtSearchOrder.Text == e.CommandArgument + " ASC")
                {
                    txtSearchOrder.Text = e.CommandArgument + " DESC";
                }
                else
                {
                    txtSearchOrder.Text = e.CommandArgument + " ASC";
                }
                BindGrid();
            }
            if (e.CommandName.ToString() == "ChartNoSearch")
            {
                if (txtSearchOrder.Text == e.CommandArgument + " ASC")
                {
                    txtSearchOrder.Text = e.CommandArgument + " DESC";
                }
                else
                {
                    txtSearchOrder.Text = e.CommandArgument + " ASC";
                }
                BindGrid();
            }
            if (e.CommandName.ToString() == "PatientSearch")
            {
                if (txtSearchOrder.Text == e.CommandArgument + " ASC")
                {
                    txtSearchOrder.Text = e.CommandArgument + " DESC";
                }
                else
                {
                    txtSearchOrder.Text = e.CommandArgument + " ASC";
                }
                BindGrid();
            }
            if (e.CommandName.ToString() == "DOASearch")
            {
                if (txtSearchOrder.Text == e.CommandArgument + " ASC")
                {
                    txtSearchOrder.Text = e.CommandArgument + " DESC";
                }
                else
                {
                    txtSearchOrder.Text = e.CommandArgument + " ASC";
                }
                BindGrid();
            }
            if (e.CommandName.ToString() == "CASETYPESearch")
            {
                if (txtSearchOrder.Text == e.CommandArgument + " ASC")
                {
                    txtSearchOrder.Text = e.CommandArgument + " DESC";
                }
                else
                {
                    txtSearchOrder.Text = e.CommandArgument + " ASC";
                }
                BindGrid();
            }
            if (e.CommandName.ToString() == "DOOSearch")
            {
                if (txtSearchOrder.Text == e.CommandArgument + " ASC")
                {
                    txtSearchOrder.Text = e.CommandArgument + " DESC";
                }
                else
                {
                    txtSearchOrder.Text = e.CommandArgument + " ASC";
                }
                BindGrid();
            }
            if (e.CommandName.ToString() == "Select")
            {
                CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                _bill_Sys_CaseObject.SZ_PATIENT_ID   = _caseDetailsBO.GetCasePatientID(e.CommandArgument.ToString(), "");
                _bill_Sys_CaseObject.SZ_CASE_ID      = e.CommandArgument.ToString();
                _bill_Sys_CaseObject.SZ_PATIENT_NAME = e.Item.Cells[34].Text;
                _bill_Sys_CaseObject.SZ_COMAPNY_ID   = e.Item.Cells[31].Text;
                Session["CASE_OBJECT"] = _bill_Sys_CaseObject;

                _bill_Sys_Case            = new Bill_Sys_Case();
                _bill_Sys_Case.SZ_CASE_ID = e.CommandArgument.ToString();

                Session["CASEINFO"] = _bill_Sys_Case;
                if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true && ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID != e.Item.Cells[28].Text)
                {
                    Response.Redirect("Bill_Sys_ReCaseDetails.aspx", false);
                }
                else
                {
                    Response.Redirect("Bill_Sys_CaseDetails.aspx", false);
                }
            }

            else if (e.CommandName.ToString() == "Bill Transaction")
            {
                CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                _bill_Sys_CaseObject.SZ_PATIENT_ID   = _caseDetailsBO.GetCasePatientID(e.CommandArgument.ToString(), "");
                _bill_Sys_CaseObject.SZ_CASE_ID      = e.CommandArgument.ToString();
                _bill_Sys_CaseObject.SZ_PATIENT_NAME = e.Item.Cells[34].Text;
                Session["CASE_OBJECT"]    = _bill_Sys_CaseObject;
                _bill_Sys_Case            = new Bill_Sys_Case();
                _bill_Sys_Case.SZ_CASE_ID = e.CommandArgument.ToString();

                Session["CASEINFO"] = _bill_Sys_Case;

                Response.Redirect("Bill_Sys_BillTransaction.aspx", false);
            }
            else if (e.CommandName.ToString() == "View Bills")
            {
                Session["SZ_CASE_ID"] = e.CommandArgument;

                _bill_Sys_Case            = new Bill_Sys_Case();
                _bill_Sys_Case.SZ_CASE_ID = e.CommandArgument.ToString();

                Session["CASEINFO"] = _bill_Sys_Case;

                Response.Redirect("Bill_Sys_BillSearch.aspx", false);
            }
            else if (e.CommandName.ToString() == "Document Manager")
            {
                // Create Session for document Manager
                Session["PassedCaseID"] = e.CommandArgument;
                String szURL    = "";
                String szCaseID = Session["PassedCaseID"].ToString();
                Session["QStrCaseID"]   = szCaseID;
                Session["Case_ID"]      = szCaseID;
                Session["Archived"]     = "0";
                Session["QStrCID"]      = szCaseID;
                Session["SelectedID"]   = szCaseID;
                Session["DM_User_Name"] = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                Session["User_Name"]    = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                Session["SN"]           = "0";
                Session["LastAction"]   = "vb_CaseInformation.aspx";
                szURL = "Document Manager/case/vb_CaseInformation.aspx";
                //    Response.Write("<script language='javascript'>window.open('" + szURL + "', 'AdditionalData', 'width=1200,height=800,left=30,top=30');</script>");
                Response.Write("<script language='javascript'>window.open('" + szURL + "', 'AdditionalData');</script>");
            }
            else if (e.CommandName.ToString() == "Calender Event")
            {
                LinkButton lnkPatient = (LinkButton)e.Item.Cells[0].FindControl("lnkSelectCase");
                Session["SZ_CASE_ID"]   = lnkPatient.CommandArgument;
                Session["PROVIDERNAME"] = e.CommandArgument;

                Response.Redirect("Bill_Sys_ScheduleEvent.aspx", false);
                //Response.Redirect("Bill_Sys_CalendarEvent.aspx", false);
                //    string szTemplateURL="Bill_Sys_TemplateManager.aspx";
                //string szTemplateURL = "TemplateManager/Bill_Sys_GeneratePDF.aspx";
                //Session["PassedCaseID"] = e.CommandArgument;
                //Response.Write("<script language='javascript'>window.open('" + szTemplateURL + "', 'AdditionalData', 'width=1200,height=800,left=30,top=30');</script>");
            }
            else if (e.CommandName.ToString() == "Out Calender Event")
            {
                LinkButton lnkPatient = (LinkButton)e.Item.Cells[0].FindControl("lnkOutScheduleCalendarEvent");
                Session["SZ_CASE_ID"]   = lnkPatient.CommandArgument;
                Session["PROVIDERNAME"] = e.CommandArgument;
                CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                _bill_Sys_CaseObject.SZ_PATIENT_ID = _caseDetailsBO.GetCasePatientID(e.CommandArgument.ToString(), "");
                _bill_Sys_CaseObject.SZ_CASE_ID    = e.CommandArgument.ToString();
                Session["CASE_OBJECT"]             = _bill_Sys_CaseObject;
                Response.Redirect("Bill_Sys_AppointPatientEntry.aspx?Flag=true", false);
                //Response.Redirect("Bill_Sys_CalendarEvent.aspx", false);
                //    string szTemplateURL="Bill_Sys_TemplateManager.aspx";
                //string szTemplateURL = "TemplateManager/Bill_Sys_GeneratePDF.aspx";
                //Session["PassedCaseID"] = e.CommandArgument;
                //Response.Write("<script language='javascript'>window.open('" + szTemplateURL + "', 'AdditionalData', 'width=1200,height=800,left=30,top=30');</script>");
            }

            else if (e.CommandName.ToString() == "Template Manager")
            {
                Session["TM_SZ_CASE_ID"] = e.CommandArgument;
                //       Session["PROVIDERNAME"] = e.Item.Cells[4].Text;
                //       Response.Redirect("TemplateManager/templates.aspx", false);

                String szURL = "";
                szURL = "TemplateManager/templates.aspx";


                //      Response.Write("<script language='javascript'>window.open('" + szURL + "', 'AdditionalData', 'width=1200,height=800,left=30,top=30');</script>");

                Response.Write("<script language='javascript'>window.open('" + szURL + "', 'AdditionalData');</script>");

                //    string szTemplateURL="Bill_Sys_TemplateManager.aspx";
                //string szTemplateURL = "TemplateManager/Bill_Sys_GeneratePDF.aspx";
                //Session["PassedCaseID"] = e.CommandArgument;
                //Response.Write("<script language='javascript'>window.open('" + szTemplateURL + "', 'AdditionalData', 'width=1200,height=800,left=30,top=30');</script>");
            }
            //else if (e.CommandName.ToString() == "PatientHistory")
            //{
            //    String szURL = "";
            //    Session["PassedCaseID"] = e.CommandArgument;
            //    szURL = "PatientHistory.aspx";
            //    Response.Write("<script language='javascript'>window.open('" + szURL + "', 'AdditionalData');</script>");
            //}
        }
        catch (Exception ex)
        {
            log.Debug("Bill_Sys_SearchCase. Method - grdCaseMaster_ItemCommand : " + ex.Message.ToString());
            log.Debug("Bill_Sys_SearchCase. Method - grdCaseMaster_ItemCommand : " + ex.StackTrace.ToString());
            log.Debug("Bill_Sys_SearchCase. Method - grdCaseMaster_ItemCommand : " + ex.InnerException.Message.ToString());
            log.Debug("Bill_Sys_SearchCase. Method - grdCaseMaster_ItemCommand : " + ex.InnerException.StackTrace.ToString());
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        try
        {
            if (Request.QueryString["CaseID"] != null)
            {
                if (Request.QueryString["CaseID"].ToString() != "")
                {
                    CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                    Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                    _bill_Sys_CaseObject.SZ_PATIENT_ID   = _caseDetailsBO.GetCasePatientID(Request.QueryString["CaseID"].ToString(), "");
                    _bill_Sys_CaseObject.SZ_CASE_ID      = Request.QueryString["CaseID"].ToString();
                    _bill_Sys_CaseObject.SZ_PATIENT_NAME = _caseDetailsBO.GetPatientName(_bill_Sys_CaseObject.SZ_PATIENT_ID);
                    Session["CASE_OBJECT"] = _bill_Sys_CaseObject;
                }
            }
            if (Session["CASE_OBJECT"] != null)
            {
            }
            else
            {
                Response.Redirect("Bill_Sys_SearchCase.aspx", false);
            }

            if (!IsPostBack)
            {
                GetPatientDetailList();
                GetTreatmentCountList();
                GetDoctorTreatment();
                GetDoctorTreatmentList();
                GetBillingInformation();
                GetVisitInformation();
                ConfigPatientDesk();
            }
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }

        #region "check version readonly or not"
        string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString();
        if (app_status.Equals("True"))
        {
            Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page);
            cv.MakeReadOnlyPage("Bill_Sys_UpgradePatient.aspx");
        }
        #endregion
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #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());
        }

        this.Page.LoadComplete += new EventHandler(Page_Load_Complete);
        log.Debug("Bill_Sys_Casedetails. Method - Page_Load_Start : " + DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString() + ":" + DateTime.Now.Second.ToString() + ":" + DateTime.Now.Millisecond.ToString());
        //ScriptManager.RegisterClientScriptBlock(this, GetType(), "ss", "plusvisibleimage();", true);

        //string urlleft = Request.Url.GetLeftPart(UriPartial.Path);
        //string url = Request.Url.ToString();

        string Param = Request.QueryString["dt"].ToString();

        string changeParam = WebUtils.DecodeUrlString(Param);

        String strPassPhrase         = "Pas5pr@se";        // can be any string
        String strSaltValue          = "s@1tValue";        // can be any string
        String strHashAlgorithm      = "SHA1";             // can be "MD5"
        int    intPasswordIterations = 2;                  // can be any number
        String strInitVector         = "@1B2c3D4e5F6g7H8"; // must be 16 bytes
        int    intKeySize            = 256;

        string decrupt = Bill_Sys_EncryDecry.Decrypt(changeParam, strPassPhrase, strSaltValue, strHashAlgorithm, intPasswordIterations, strInitVector, intKeySize);

        //string decryptUrl = urlleft+"?" + decrupt;

        string[] spl = decrupt.Split('&');

        string caseid = spl[0].Replace("CaseID=", "");
        string id_    = spl[1].Replace("cmp=", "");

        string compnyid = id_.Replace("'", "");

        try
        {
            if (!IsPostBack)
            {
                if (caseid != null)
                {
                    //caseID = caseid;
                    if (caseid.ToString() != "")
                    {
                        CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                        Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                        _bill_Sys_CaseObject.SZ_PATIENT_ID = _caseDetailsBO.GetCasePatientID(caseid.ToString(), "");
                        _bill_Sys_CaseObject.SZ_CASE_ID    = caseid.ToString();
                        if (compnyid != null)
                        {
                            _bill_Sys_CaseObject.SZ_CASE_NO = _caseDetailsBO.GetCaseNo(_bill_Sys_CaseObject.SZ_CASE_ID, compnyid.ToString());
                            Session["company"] = compnyid.ToString();
                        }
                        else
                        {
                            _bill_Sys_CaseObject.SZ_CASE_NO = _caseDetailsBO.GetCaseNo(_bill_Sys_CaseObject.SZ_CASE_ID, Session["company"].ToString());
                        }

                        _bill_Sys_CaseObject.SZ_PATIENT_NAME = _caseDetailsBO.GetPatientName(_bill_Sys_CaseObject.SZ_PATIENT_ID);
                        _bill_Sys_CaseObject.SZ_COMAPNY_ID   = Session["company"].ToString();
                        Session["CASE_OBJECT"] = _bill_Sys_CaseObject;
                    }
                }
                if (Session["CASE_OBJECT"] != null)
                {
                    txtCaseID.Text     = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID;
                    Session["company"] = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID;
                }
                else
                {
                    Response.Redirect("Bill_Sys_SearchCase.aspx", false);
                }

                LoadNoteGrid();
                caseID = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID;
                ShowPopupNotes(((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID);


                //hlnkAssociate.Visible = true;
                grdAssociatedDiagnosisCode.Visible = false;
                //divAssociatedCode.Visible = true;
                _bill_Sys_ProcedureCode_BO            = new Bill_Sys_ProcedureCode_BO();
                grdAssociatedDiagnosisCode.DataSource = _bill_Sys_ProcedureCode_BO.GetAssociatedDiagnosisCode_List(caseID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID).Tables[0];
                grdAssociatedDiagnosisCode.DataBind();
                //////////////////////
                //CREATE SESSION FOR DOC MANAGER,TEMPLATE MANAGER,Notes,Bills

                Bill_Sys_Case _bill_Sys_Case = new Bill_Sys_Case();
                _bill_Sys_Case.SZ_CASE_ID = txtCaseID.Text;

                Session["CASEINFO"] = _bill_Sys_Case;

                Session["PassedCaseID"] = txtCaseID.Text;
                String szURL    = "";
                String szCaseID = Session["PassedCaseID"].ToString();
                Session["QStrCaseID"]   = szCaseID;
                Session["Case_ID"]      = szCaseID;
                Session["Archived"]     = "0";
                Session["QStrCID"]      = szCaseID;
                Session["SelectedID"]   = szCaseID;
                Session["DM_User_Name"] = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                Session["User_Name"]    = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                Session["SN"]           = "0";
                Session["LastAction"]   = "vb_CaseInformation.aspx";


                Session["SZ_CASE_ID_NOTES"] = txtCaseID.Text;

                Session["TM_SZ_CASE_ID"] = txtCaseID.Text;

                LoadDataOnPage();
                UserPatientInfoControl.GetPatienDeskList(((Bill_Sys_CaseObject)(Session["CASE_OBJECT"])).SZ_CASE_ID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            }


            if (!IsPostBack)
            {
                ReminderBO objReminder = null;
                DataSet    dsReminder  = null;
                string     strUserId   = "";
                string     SzCaseID    = "";
                DateTime   dtCurrent_Date;
                objReminder    = new ReminderBO();
                dsReminder     = new DataSet();
                strUserId      = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID;
                SzCaseID       = txtCaseID.Text;
                dtCurrent_Date = Convert.ToDateTime(System.DateTime.Now.ToShortDateString());
                dsReminder     = objReminder.LoadReminderDetailsForCaseDeatils(strUserId, dtCurrent_Date, SzCaseID);
            }

            log.Debug("Bill_Sys_Casedetails. Method - Page_Load_End : " + DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString() + ":" + DateTime.Now.Second.ToString() + ":" + DateTime.Now.Millisecond.ToString());
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        #region "check version readonly or not"
        string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString();
        if (app_status.Equals("True"))
        {
            Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page);
            cv.MakeReadOnlyPage("Bill_Sys_CaseDetails.aspx");
        }
        #endregion

        //Method End

        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        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
        {
            //txtChequeNumber.Attributes.Add("onblur", "javascript:return FromDateValidation(this);");

            btnSave.Attributes.Add("onclick", "return ooValidate();");

            btnUpdate.Attributes.Add("onclick", "return formValidator('frmPaymentTrans','txtChequeNumber,txtChequeDate,txtChequeAmount,txtPaymentType');");
            txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            btnLitigation.Attributes.Add("onclick", "return AddComment();");
            btnWriteoff.Attributes.Add("onclick", "return AddComment();");
            //billsearch ajax page
            if (Request.QueryString["csid"] != null)
            {
                Bill_Sys_Case _bill_Sys_Case = new Bill_Sys_Case();
                string        szCaseId       = Request.QueryString["csid"];

                string szBollNo = Request.QueryString["bno"];


                string szBalance = Request.QueryString["bal"];

                _bill_Sys_Case.SZ_CASE_ID = szCaseId;
                CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                _bill_Sys_CaseObject.SZ_PATIENT_ID   = _caseDetailsBO.GetCasePatientID(_bill_Sys_Case.SZ_CASE_ID, "");
                _bill_Sys_CaseObject.SZ_CASE_ID      = szCaseId;
                _bill_Sys_CaseObject.SZ_COMAPNY_ID   = _caseDetailsBO.GetPatientCompanyID(_bill_Sys_CaseObject.SZ_PATIENT_ID);
                _bill_Sys_CaseObject.SZ_PATIENT_NAME = _caseDetailsBO.GetPatientName(_bill_Sys_CaseObject.SZ_PATIENT_ID);
                _bill_Sys_CaseObject.SZ_CASE_NO      = _caseDetailsBO.GetCaseNo(_bill_Sys_CaseObject.SZ_CASE_ID, _bill_Sys_CaseObject.SZ_COMAPNY_ID);
                Session["CASE_OBJECT"]    = _bill_Sys_CaseObject;
                Session["CASEINFO"]       = _bill_Sys_Case;
                Session["PassedCaseID"]   = szCaseId;
                Session["SZ_BILL_NUMBER"] = szBollNo;

                Session["PassedBillID"] = szBollNo;
                Session["Balance"]      = szBalance;
            }

            txtUserId.Text = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID;
            txtBillNo.Text = Session["PassedBillID"].ToString();


            if (!IsPostBack)
            {
                lblCaseNo.Text     = txtBillNo.Text;
                txtBalance.Text    = Session["Balance"].ToString();
                lblPosteddate.Text = DateTime.Today.ToShortDateString();
                BindGrid();
                getVisitDate();
                btnUpdate.Enabled = 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);
        }

        #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_PaymentTransactions.aspx");
        }
        #endregion
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #11
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        try
        {
            txtCompanyID.Text            = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            extddlDoctorNameList.Flag_ID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            extddlDoctor.Flag_ID         = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            if (!IsPostBack)
            {
                if (Request.QueryString["PatientID"] != null)
                {
                    if (Request.QueryString["PatientID"].ToString() != "")
                    {
                        CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                        Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                        _bill_Sys_CaseObject.SZ_CASE_ID    = _caseDetailsBO.GetCasePatientID("", Request.QueryString["PatientID"].ToString());
                        _bill_Sys_CaseObject.SZ_PATIENT_ID = Request.QueryString["PatientID"].ToString();
                        _bill_Sys_CaseObject.SZ_COMAPNY_ID = Request.QueryString["companyId"].ToString();
                        Session["CASE_OBJECT"]             = _bill_Sys_CaseObject;
                    }
                }

                if (Session["CASE_OBJECT"] != null)
                {
                    txtPatientID.Text = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_PATIENT_ID;


                    //////////////////////
                    //CREATE SESSION FOR DOC MANAGER,TEMPLATE MANAGER,Notes,Bills

                    Bill_Sys_Case _bill_Sys_Case = new Bill_Sys_Case();
                    _bill_Sys_Case.SZ_CASE_ID = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID;

                    Session["CASEINFO"] = _bill_Sys_Case;

                    Session["PassedCaseID"] = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID;
                    String szURL    = "";
                    String szCaseID = Session["PassedCaseID"].ToString();
                    Session["QStrCaseID"]   = szCaseID;
                    Session["Case_ID"]      = szCaseID;
                    Session["Archived"]     = "0";
                    Session["QStrCID"]      = szCaseID;
                    Session["SelectedID"]   = szCaseID;
                    Session["DM_User_Name"] = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                    Session["User_Name"]    = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                    Session["SN"]           = "0";
                    Session["LastAction"]   = "vb_CaseInformation.aspx";


                    Session["SZ_CASE_ID_NOTES"] = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID;

                    Session["TM_SZ_CASE_ID"] = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID;
                    GetPatientDeskList();
                    //
                    ///////////////////
                }
                else
                {
                    Response.Redirect("Bill_Sys_SearchCase.aspx", false);
                }

                //

                if (Request.QueryString["DoctorID"] != null)
                {
                    tabcontainerPatientTreatment.ActiveTabIndex = 3;
                    extddlDoctorNameList.Text = Request.QueryString["DoctorID"].ToString();
                    txtVisitDateFrom.Text     = Convert.ToDateTime(Request.QueryString["Date"]).ToShortDateString();
                    GetTestList();
                    extddlDoctor.Text = Request.QueryString["DoctorID"].ToString();
                    BindViewTreatmentList();
                    lstTest.SelectedValue = Request.QueryString["TypeCode"].ToString();
                }

                BindLatestTreatmentlist();
                BindSummaryTreatmentList();
                GetTotalTreatmentCountAndDate();
                BindBilledTest();
                Bind_Billed_UnBilled_Count();
            }
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }

        #region "check version readonly or not"
        string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString();
        if (app_status.Equals("True"))
        {
            Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page);
            cv.MakeReadOnlyPage("Bill_Sys_Tests.aspx");
        }
        #endregion
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }