Exemple #1
0
    private void Visiblecontrol()
    {
        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
        {
            strCaseType = _associateDiagnosisCodeBO.GetCaseType(txtCaseID.Text);
            switch (_associateDiagnosisCodeBO.GetDoctorType(extddlDoctor.Text))
            {
            case 0:

                tblDiagnosisCode.Visible      = false;
                tblDiagnosisCodeFirst.Visible = true;

                break;

            case 1:
                if (strCaseType == "WC")
                {
                    tblDiagnosisCode.Visible      = true;
                    tblDiagnosisCodeFirst.Visible = false;
                }
                else
                {
                    tblDiagnosisCode.Visible      = false;
                    tblDiagnosisCodeFirst.Visible = true;
                }
                break;
            }
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        _associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();
        try
        {
            if (Request.QueryString["Flag"] == "SYN")
            {
                btnTemplateManager.Text = "Synaptic Notes";
            }

            _obj_CheckOutBO = new Bill_Sys_CheckoutBO();
            DataSet dsDoctorId   = new DataSet();
            DataSet dsSpeciality = new DataSet();
            txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            txtUserId.Text    = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID;
            dsDoctorId        = _obj_CheckOutBO.GetDoctorUserID(txtUserId.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            txtDoctorId.Text  = dsDoctorId.Tables[0].Rows[0][0].ToString();

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

            txtDiagonosisCode.Attributes.Add("onkeydown", "if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {document.getElementById('_ctl0_ContentPlaceHolder1_tabcontainerDiagnosisCode_tabpnlAssociate_btnSeacrh').click(); return false;}} else {alert('Other');return true;}; ");
            if (!IsPostBack)
            {
                Session["DiagnosysList"] = "";

                extddlDiagnosisType.Flag_ID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                extddlSpeciality.Flag_ID    = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                if (Request.QueryString["CaseId"] != null)
                {
                    Session["CASE_OBJECT"] = null;
                    txtCaseID.Text         = Request.QueryString["CaseId"].ToString();

                    GetPatientDeskList();
                }
                else if (Session["CASE_OBJECT"] != null)
                {
                    txtCaseID.Text = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_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 = 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;
                    GetPatientDeskList();
                    //
                    ///////////////////
                }

                else
                {
                    Response.Redirect("Bill_Sys_SearchCase.aspx", false);
                }

                strCaseType = _associateDiagnosisCodeBO.GetCaseType(txtCaseID.Text);
                if (Request.QueryString["DoctorID"] != null)
                {
                    //   GetDiagnosisCode(txtCaseID.Text, txtCompanyID.Text, "", "GET_DIAGNOSIS_CODE");
                }
                if (Request.QueryString["SetId"] != null)
                {
                    txtDiagnosisSetID.Text = Request.QueryString["SetId"].ToString();
                    _ds = _associateDiagnosisCodeBO.GetCaseAssociateDiagnosisDetails(txtDiagnosisSetID.Text);
                    GetDiagnosisCode(txtCaseID.Text, txtCompanyID.Text, "", "GET_DIAGNOSIS_CODE");
                    //GetPTDiagnosisCode(extddlDoctor.Text, Request.QueryString["SetId"].ToString(), "GET_PT_DIAGNOSIS_CODE");
                    //GetEvaluationDiagnosisCode(extddlDoctor.Text, Request.QueryString["SetId"].ToString(), "GET_EVALUATION_DIAGNOSIS_CODE");
                    Visiblecontrol();
                    //BindControl();
                }
                else
                {
                    txtDiagnosisSetID.Text = _associateDiagnosisCodeBO.GetDiagnosisSetID();
                }

                //if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true)
                //{
                GetDiagnosisCode(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
                GetAssignedDiagnosisCode(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
                grdNormalDgCode.DataSource = null;
                grdNormalDgCode.DataBind();
                //}
                extddlSpeciality.Visible = false;
                lblSpeciality.Visible    = false;

                if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true)
                {
                    tabcontainerDiagnosisCode.ActiveTabIndex = 1;
                }
                else
                {
                    tabcontainerDiagnosisCode.ActiveTabIndex = 0;
                }
            }
            lblMsg.Text = "";
        }
        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_AssociateDignosisCodeCase.aspx");
        }
        #endregion
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Exemple #3
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());
        }
        _associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();
        try
        {
            btnAssign.Attributes.Add("onclick", "return formValidator('frmAssociateDignosisCode','extddlDoctor');");
            txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;

            extddlDoctor.Flag_ID   = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            extddlAPDoctor.Flag_ID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;

            if (!IsPostBack)
            {
                if (Request.QueryString["CaseId"] != null)
                {
                    Session["CASE_OBJECT"] = null;
                    txtCaseID.Text         = Request.QueryString["CaseId"].ToString();
                    GetPatientDeskList();
                }
                else if (Session["CASE_OBJECT"] != null)
                {
                    txtCaseID.Text = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_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 = 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;
                    GetPatientDeskList();
                    //
                    ///////////////////
                }

                else
                {
                    Response.Redirect("Bill_Sys_SearchCase.aspx", false);
                }

                strCaseType = _associateDiagnosisCodeBO.GetCaseType(txtCaseID.Text);
                if (Request.QueryString["DoctorID"] != null)
                {
                    extddlDoctor.Text    = Request.QueryString["DoctorID"].ToString();
                    extddlDoctor.Enabled = false;
                    GetDiagnosisCode(txtCaseID.Text, txtCompanyID.Text, extddlDoctor.Text, "GET_DIAGNOSIS_CODE");
                }
                if (Request.QueryString["SetId"] != null)
                {
                    txtDiagnosisSetID.Text = Request.QueryString["SetId"].ToString();
                    _ds = _associateDiagnosisCodeBO.GetCaseAssociateDiagnosisDetails(txtDiagnosisSetID.Text);
                    extddlDoctor.Text = _ds.Tables[0].Rows[0].ItemArray.GetValue(3).ToString();
                    GetDiagnosisCode(txtCaseID.Text, txtCompanyID.Text, extddlDoctor.Text, "GET_DIAGNOSIS_CODE");
                    //GetPTDiagnosisCode(extddlDoctor.Text, Request.QueryString["SetId"].ToString(), "GET_PT_DIAGNOSIS_CODE");
                    //GetEvaluationDiagnosisCode(extddlDoctor.Text, Request.QueryString["SetId"].ToString(), "GET_EVALUATION_DIAGNOSIS_CODE");
                    Visiblecontrol();
                    //BindControl();
                }
                else
                {
                    txtDiagnosisSetID.Text = _associateDiagnosisCodeBO.GetDiagnosisSetID();
                }

                if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true)
                {
                    extddlAPDoctor.Visible = false;
                    extddlDoctor.Visible   = false;
                    lblDoctor.Visible      = false;
                    lblDeDoctor.Visible    = false;
                    GetDiagnosisCode(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
                    GetAssignedDiagnosisCode(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
                }
            }
            lblMsg.Text = "";
        }
        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_AssociateDignosisCode.aspx");
        }
        #endregion
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }