Exemple #1
0
    protected void btnAssign_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());
        }
        _associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();
        try
        {
            // if (ValidateControl())
            // {
            SaveDiagnosisCode();
            // ClearControl();
            lblMsg.Visible = true;
            lblMsg.Text    = "Case Associate Diagnosis  Saved Successfully ...!";
            // }
        }
        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 extddlAPDoctor_extendDropDown_SelectedIndexChanged(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
        {
            // ClearControl();
            GetAssignedDiagnosisCode(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
            // GetPTDiagnosisCode(extddlDoctor.Text, "", "GET_PT_DIAGNOSIS_CODE");
            // GetEvaluationDiagnosisCode(extddlDoctor.Text, "", "GET_EVALUATION_DIAGNOSIS_CODE");
            Visiblecontrol();
            tabcontainerDiagnosisCode.ActiveTabIndex = 1;
        }
        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());
        }
    }
Exemple #3
0
    protected void btnAssign_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());
        }
        this._associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();

        try
        {
            this.SaveDiagnosisCode();
            this.lblMsg.Visible = true;
            this.BindGrid(this.extddlDiagnosisType.Text, this.txtDiagonosisCode.Text, this.txtDescription.Text);
            BindGridSpecialty();
            this.lblMsg.Text = "Case Associate Diagnosis  Saved Successfully ...!";
        }
        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());
        }
    }
    private void GetDiagnosisCode(string caseID, string companyId, string doctorId, string flag)
    {
        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
        {
            DataSet ds = new DataSet();
            // please check the below function.. it returns all the rows from the database when a doctor is selected
            ds = _associateDiagnosisCodeBO.GetDiagnosisCode(caseID, companyId, doctorId, flag);
            grdDiagnosisCode.DataSource = ds.Tables[0];  //_associateDiagnosisCodeBO.GetDoctorDiagnosisCode(id, flag);
            grdDiagnosisCode.DataBind();
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }

        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    public void SaveProcedureDiagnosisCode()
    {
        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());
        }
        Bil_Sys_Associate_Diagnosis _dianosis_Association = new Bil_Sys_Associate_Diagnosis();

        _dianosis_Association = (Bil_Sys_Associate_Diagnosis)Session["DIAGNOS_ASSOCIATION"];

        Bill_Sys_AssociateDiagnosisCodeBO _associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();
        DataSet   _billDs = new DataSet();
        ArrayList _arrayList;

        try
        {
            string szDiagnosisCode = "";
            for (int i = 0; i < grdDiagnosisCode.VisibleRowCount; i++)
            {
                ASPxGridView       _ASPxGridView = (ASPxGridView)grdid.FindControl("grdDiagnosisCode");
                GridViewDataColumn c             = (GridViewDataColumn)grdDiagnosisCode.Columns[0];
                CheckBox           checkBox      = (CheckBox)grdDiagnosisCode.FindRowCellTemplateControl(i, c, "chkall");
                if (checkBox != null)
                {
                    if (checkBox.Checked)
                    {
                        _arrayList = new ArrayList();
                        _arrayList.Add(txtEventProcID.Text);
                        _arrayList.Add(txtCaseID.Text);
                        _arrayList.Add(txtEventID.Text);
                        szDiagnosisCode = Convert.ToString(grdDiagnosisCode.GetRowValues(i, "SZ_DIAGNOSIS_CODE_ID"));
                        _arrayList.Add(szDiagnosisCode);
                        _arrayList.Add(extddlSpecialityDia.Text);
                        _arrayList.Add(txtCompanyID.Text);
                        _arrayList.Add("");
                        _associateDiagnosisCodeBO.SaveProcedureAssociateDignosisCode(_arrayList);
                    }
                }
            }
            GetAssignedProcedureDiagnosisCode(txtCaseID.Text, txtCompanyID.Text, txtEventProcID.Text, "GET_PROCEDURE_ASSOCIATED_DIAGNOSIS_CODE");
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }

        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    private void GetAssignedProcedureDiagnosisCode(string caseID, string companyId, string szEventProcID, string flag)
    {
        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_AssociateDiagnosisCodeBO _associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();

        try
        {
            DataSet ds = new DataSet();
            ds = _associateDiagnosisCodeBO.GetProcedureDiagnosisCode(caseID, companyId, szEventProcID, flag);
            grdAssociatedDiagCode.DataSource = ds;
            grdAssociatedDiagCode.DataBind();
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }

        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Exemple #7
0
    protected void btnOK_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
        {
            objAL = new ArrayList();
            objAL = (ArrayList)Session["DIAGINFO"];
            _associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();
            for (int i = 0; i < grdDiagonosisCode.Items.Count; i++)
            {
                CheckBox chk = (CheckBox)grdDiagonosisCode.Items[i].FindControl("chkAssociateDiagnosisCode");
                if (chk.Checked)
                {
                    ArrayList _arrayList = new ArrayList();
                    _arrayList.Add("");
                    _arrayList.Add(objAL[0].ToString());
                    if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true)
                    {
                        _arrayList.Add("");
                    }
                    else
                    {
                        _arrayList.Add("");
                    }
                    _arrayList.Add(grdDiagonosisCode.Items[i].Cells[1].Text.ToString());
                    _arrayList.Add(objAL[3].ToString());
                    _arrayList.Add(objAL[2].ToString());
                    _associateDiagnosisCodeBO.SaveCaseAssociateDignosisCode(_arrayList);
                }
            }
            BindGrid();
        }
        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 btnAssign_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());
        }
        _associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();
        try
        {
            SaveDiagnosisCode();
            // ClearControl();
            lblMsg.Visible = true;
            BindGrid(extddlDiagnosisType.Text, txtDiagonosisCode.Text, txtDescription.Text);
            lblMsg.Text = "Case Associate Diagnosis  Saved Successfully ...!";
            // }
            //Session["DiagnosysCode"] = "Diagnosys";
            //if (txtCurrentPage.Text == "CheckOut")
            //{
            //    ScriptManager.RegisterClientScriptBlock(this.Page, typeof(Page), "Msg", "parent.document.getElementById('divid2').style.visibility = 'hidden';window.parent.document.location.href=window.parent.document.location.href;window.self.close();window.top.parent.location='Bill_Sys_IM_CheckOut.aspx';", true);
            //    //  Response.Redirect("Bill_Sys_IM_CheckOut.aspx");
            //}
            //else if (txtCurrentPage.Text == "Notes")
            //{
            //    return;
            //}
            //else
            //{
            //    Response.Redirect("TM/RTFEditter.aspx");
            //}
        }
        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());
        }
    }
Exemple #9
0
    private void GetEvaluationDiagnosisCode(string id, string setId, string flag)
    {
        string Elmahid = string.Format("ElmahId: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(Elmahid, System.Reflection.MethodBase.GetCurrentMethod());
        }
        _associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();
        try
        {
            DataSet ds = new DataSet();
            ds = _associateDiagnosisCodeBO.GetDoctorDiagnosisCode(id, setId, flag);

            grdDoctorEvaluationDgCode.DataSource = _associateDiagnosisCodeBO.GetDoctorDiagnosisCode(id, "", flag);
            grdDoctorEvaluationDgCode.DataBind();

            for (int intLoop = 0; intLoop < ds.Tables[0].Rows.Count; intLoop++)
            {
                foreach (DataGridItem dgiProcedureCode in grdDoctorEvaluationDgCode.Items)
                {
                    if (dgiProcedureCode.ItemIndex == intLoop && ((Boolean)ds.Tables[0].Rows[intLoop]["CHECKED"]) == true)
                    {
                        CheckBox chkEmpty = (CheckBox)dgiProcedureCode.Cells[0].FindControl("chkSelect");
                        chkEmpty.Checked = true;
                    }
                }
            }
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(Elmahid, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + Elmahid + ".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());
        }
    }
Exemple #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
        {
            _associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();
            ds = new DataSet();
            _obj_CheckOutBO             = new Bill_Sys_CheckoutBO();
            txtCompanyID.Text           = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            txtUserId.Text              = ((Bill_Sys_UserObject)(Session["USER_OBJECT"])).SZ_USER_ID.ToString();
            txtCaseID.Text              = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID;
            extddlDiagnosisType.Flag_ID = txtCompanyID.Text;
            txtDiagnosisSetID.Text      = _associateDiagnosisCodeBO.GetDiagnosisSetID();

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

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


            GetAssignedDiagnosisCode(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    protected void btnAssign_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());
        }
        _associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();
        try
        {
            //Put Condition here
            //-----Kunal--------------------------------------------------
            if (objSystemObject.SZ_ASSIGN_DIAGNOSIS_CODE_TO_VISIT == "1")
            {
                SaveProcedureDiagnosisCode();
            }
            else
            {
                SaveDiagnosisCode();
            }
            //------End-----------------------------------------------------
            lblMsg.Visible = true;
            BindGrid(extddlDiagnosisType.Text, txtDiagonosisCode.Text, txtDescription.Text);
            lblMsg.Text = "Case Associate Diagnosis  Saved Successfully ...!";
        }
        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());
        }
    }
Exemple #12
0
    protected void btnOK_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_AssociateDiagnosisCodeBO _associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();

        try
        {
            //for (int i = 0; i < grdDiagonosisCode.Items.Count; i++)
            //{
            //    CheckBox chk = (CheckBox)grdDiagonosisCode.Items[i].FindControl("chkAssociateDiagnosisCode");
            //    if (chk.Checked)
            //    {
            //        _arrayList.Add(DiagnosysList + grdDiagonosisCode.Items[i].Cells[2].Text + ' ' + grdDiagonosisCode.Items[i].Cells[4].Text);
            //    }
            //}
            SaveDiagnosisCode();
        }
        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());
        }
    }
Exemple #13
0
    private void SaveDiagnosisCode()
    {
        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._associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();
        new DataSet();
        try
        {
            this._associateDiagnosisCodeBO.DeleteCaseAssociateDignosisCodeWithProcCode(this.txtCaseID.Text, this.txtCompanyID.Text, "");
            DataSet set = new DataSet();

            string Selected = ((hdnDiagnosis.Value).Replace("--,", "*")).Replace("--", "");

            string[] ArrCodes = Selected.Split('*');

            string[] ArrSpeciality = (hdnSpeciality.Value).Split(',');


            string    str            = this.extddlSpeciality.Text;
            ArrayList checkSpecialty = new ArrayList();

            set = this._associateDiagnosisCodeBO.Get_Associate_Speciality(str, this.txtCompanyID.Text);
            foreach (DataGridItem item in this.grdSelectedDiagnosisCode.Items)
            {
                //string[] arrInsert = ArrCodes[i].Split('~');

                this._arrayList = new ArrayList();
                this._arrayList.Add(this.txtDiagnosisSetID.Text);
                this._arrayList.Add(this.txtCaseID.Text);
                if (oC_Account.BT_REFERRING_FACILITY)
                {
                    this._arrayList.Add("");
                }
                else
                {
                    this._arrayList.Add("");
                }
                this._arrayList.Add(item.Cells[0].Text.ToString());
                this._arrayList.Add(this.txtCompanyID.Text);
                //this._arrayList.Add(checkSpecialty);
                this._arrayList.Add(item.Cells[5].Text.ToString());
                this._associateDiagnosisCodeBO.SaveCaseAssociateDignosisCode(this._arrayList);
            }

            for (int i = 0; i < ArrCodes.Length; i++)
            {
                string[] arrInsert = ArrCodes[i].Split('~');
                //for (int j = 0; j < ArrSpeciality.Length; j++)
                //{
                //    string[] arrInsertS = ArrSpeciality[j].Split('~');

                this._arrayList = new ArrayList();
                this._arrayList.Add(this.txtDiagnosisSetID.Text);
                this._arrayList.Add(this.txtCaseID.Text);
                if (oC_Account.BT_REFERRING_FACILITY)
                {
                    this._arrayList.Add("");
                }
                else
                {
                    this._arrayList.Add("");
                }

                this._arrayList.Add(arrInsert[1]);
                this._arrayList.Add(this.txtCompanyID.Text);
                //checkSpecialty.Add(item4.Cells[2].Text.ToString());
                this._arrayList.Add(arrInsert[0]);
                //this._arrayList.Add(this.extddlSpeciality.Text);
                this._associateDiagnosisCodeBO.SaveCaseAssociateDignosisCode(this._arrayList);
                //}

                if (set != null)
                {
                    for (int k = 0; k < set.Tables[0].Rows.Count; k++)
                    {
                        if (set.Tables[0].Rows[i]["SZ_ASSOCIATE_SPECIALITY"].ToString() != "")
                        {
                            this._arrayList = new ArrayList();
                            this._arrayList.Add(this.txtDiagnosisSetID.Text);
                            this._arrayList.Add(this.txtCaseID.Text);
                            if (oC_Account.BT_REFERRING_FACILITY)
                            {
                                this._arrayList.Add("");
                            }
                            else
                            {
                                this._arrayList.Add("");
                            }
                            this._arrayList.Add(arrInsert[1]);
                            this._arrayList.Add(this.txtCompanyID.Text);
                            this._arrayList.Add(set.Tables[0].Rows[i]["SZ_ASSOCIATE_SPECIALITY"].ToString());
                            this._associateDiagnosisCodeBO.SaveCaseAssociateDignosisCode(this._arrayList);
                        }
                    }
                }
            }

            this.GetAssignedDiagnosisCode(this.txtCaseID.Text, oC_Account.SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
            this.GetDiagnosisCode(this.txtCaseID.Text, oC_Account.SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    private void SaveDiagnosisCode()
    {
        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();
        DataSet   _billDs = new DataSet();
        ArrayList _arrayList;

        try
        {
            string szDiagnosisCode = "";
            _associateDiagnosisCodeBO.DeleteCaseAssociateDignosisCodeWithProcCode(txtCaseID.Text, txtCompanyID.Text, "");//, lstPTDProcCode.Items[j].Value.Substring(0, lstPTDProcCode.Items[j].Value.IndexOf("|")), lstPTDProcCode.Items[j].Value.Substring((lstPTDProcCode.Items[j].Value.IndexOf("|") + 1), ((lstPTDProcCode.Items[j].Value.Length - lstPTDProcCode.Items[j].Value.IndexOf("|")) - 1)));
            txtDiagnosisSetID.Text = _associateDiagnosisCodeBO.GetDiagnosisSetID();
            Bil_Sys_Associate_Diagnosis _dianosis_Association = new Bil_Sys_Associate_Diagnosis();
            _dianosis_Association = (Bil_Sys_Associate_Diagnosis)Session["DIAGNOS_ASSOCIATION"];

            for (int i = 0; i < grdDiagnosisCode.VisibleRowCount; i++)
            {
                ASPxGridView       _ASPxGridView = (ASPxGridView)grdid.FindControl("grdDiagnosisCode");
                GridViewDataColumn c             = (GridViewDataColumn)grdDiagnosisCode.Columns[0];
                CheckBox           checkBox      = (CheckBox)grdDiagnosisCode.FindRowCellTemplateControl(i, c, "chkall");
                if (checkBox != null)
                {
                    if (checkBox.Checked)
                    {
                        _arrayList = new ArrayList();
                        _arrayList.Add(txtDiagnosisSetID.Text);
                        _arrayList.Add(txtCaseID.Text);
                        if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true)
                        {
                            _arrayList.Add("");
                        }
                        else
                        {
                            _arrayList.Add("");
                        }
                        szDiagnosisCode = Convert.ToString(grdDiagnosisCode.GetRowValues(i, "SZ_DIAGNOSIS_CODE_ID"));
                        _arrayList.Add(szDiagnosisCode);
                        _arrayList.Add(txtCompanyID.Text);
                        _arrayList.Add(_dianosis_Association.ProceuderGroupId);
                        _associateDiagnosisCodeBO.SaveCaseAssociateDignosisCode(_arrayList);
                    }
                }
            }


            //Put Condition here
            //---------Commented by Kunal---------------------------------------------------------
            if (objSystemObject.SZ_ASSIGN_DIAGNOSIS_CODE_TO_VISIT == "1")
            {
                GetAssignedProcedureDiagnosisCode(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, _dianosis_Association.EventProcID, "GET_DIAGNOSIS_CODE");
                GetProcedureDiagnosisCode(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, _dianosis_Association.EventProcID, "GET_DIAGNOSIS_CODE");
            }
            else
            {
                GetAssignedDiagnosisCode(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
                GetDiagnosisCode(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
            }
            //--------------End---------------------------------------------------------------------
        }
        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());
        }
    }
Exemple #15
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        try
        {
            // if (!IsPostBack)
            // {
            if (Session["SELECTED_SERVICES"] != null)
            {
                DataTable dt = new DataTable();
                dt = ((DataTable)Session["SELECTED_SERVICES"]);
                grdSelectedServices.DataSource = dt;
                grdSelectedServices.DataBind();
            }
            _associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();
            try
            {
                DataSet ds = new DataSet();
                ds = _associateDiagnosisCodeBO.GetDiagnosisCode(Session["SZ_CASE_ID"].ToString(), ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, Session["DOCTOR_ID"].ToString(), "GET_DOCTOR_DIAGNOSIS_CODE");

                grdDiagnosisCode.DataSource = ds.Tables[0];     //_associateDiagnosisCodeBO.GetDoctorDiagnosisCode(id, flag);
                grdDiagnosisCode.DataBind();
            }
            catch (Exception ex)
            {
                string strError = ex.Message.ToString();
                strError = strError.Replace("\n", " ");
                Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + strError);
            }
            // }
            lblMsg.Text        = "";
            ErrorDiv.InnerText = "";
        }
        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_AssociateProcedureCode.aspx");
        }
        #endregion
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    private void SaveDiagnosisCode()
    {
        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();
        DataSet   _billDs             = new DataSet();
        ArrayList _arrayListDiagnosys = new ArrayList();

        try
        {
            _associateDiagnosisCodeBO.DeleteCaseAssociateDignosisCodeWithProcCode(txtCaseID.Text, txtCompanyID.Text, "");//, lstPTDProcCode.Items[j].Value.Substring(0, lstPTDProcCode.Items[j].Value.IndexOf("|")), lstPTDProcCode.Items[j].Value.Substring((lstPTDProcCode.Items[j].Value.IndexOf("|") + 1), ((lstPTDProcCode.Items[j].Value.Length - lstPTDProcCode.Items[j].Value.IndexOf("|")) - 1)));



            foreach (DataGridItem dgiProcedureCode in grdSelectedDiagnosisCode.Items)
            {
                _arrayList = new ArrayList();
                _arrayList.Add(txtDiagnosisSetID.Text);
                _arrayList.Add(txtCaseID.Text);
                if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true)
                {
                    _arrayList.Add("");
                }
                else
                {
                    _arrayList.Add("");
                }
                _arrayList.Add(dgiProcedureCode.Cells[0].Text.ToString());
                _arrayList.Add(txtCompanyID.Text);
                _arrayList.Add(dgiProcedureCode.Cells[5].Text.ToString());
                _associateDiagnosisCodeBO.SaveCaseAssociateDignosisCode(_arrayList);


                _arrayListDiagnosys.Add(dgiProcedureCode.Cells[2].Text + ' ' + dgiProcedureCode.Cells[4].Text);
            }
            foreach (DataGridItem dgiProcedureCode in grdNormalDgCode.Items)
            {
                CheckBox chkEmpty = (CheckBox)dgiProcedureCode.Cells[1].FindControl("chkSelect");
                if (chkEmpty.Checked == true)
                {
                    _arrayList = new ArrayList();
                    _arrayList.Add(txtDiagnosisSetID.Text);
                    _arrayList.Add(txtCaseID.Text);
                    if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true)
                    {
                        _arrayList.Add("");
                    }
                    else
                    {
                        _arrayList.Add("");
                    }
                    _arrayList.Add(dgiProcedureCode.Cells[1].Text.ToString());
                    _arrayList.Add(txtCompanyID.Text);
                    _arrayList.Add(txtSpeciality.Text);
                    _associateDiagnosisCodeBO.SaveCaseAssociateDignosisCode(_arrayList);

                    _arrayListDiagnosys.Add(dgiProcedureCode.Cells[2].Text + ' ' + dgiProcedureCode.Cells[4].Text);
                }
            }

            Session["DiagnosysList"] = (ArrayList)_arrayListDiagnosys;

            GetAssignedDiagnosisCode(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
            GetDiagnosisCode(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Exemple #17
0
    public void SaveProcedureDiagnosisCode()
    {
        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());
        }
        Bil_Sys_Associate_Diagnosis diagnosis = new Bil_Sys_Associate_Diagnosis();

        diagnosis = (Bil_Sys_Associate_Diagnosis)this.Session["DIAGNOS_ASSOCIATION"];
        this._associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();
        new DataSet();
        try
        {
            ArrayList list;
            this._associateDiagnosisCodeBO.DeleteProcedureAssociateDignosisCode(this.txtCaseID.Text, this.txtCompanyID.Text, diagnosis.EventProcID);
            foreach (DataGridItem item in this.grdSelectedDiagnosisCode.Items)
            {
                list = new ArrayList();
                list.Add(diagnosis.EventProcID);
                list.Add(this.txtCaseID.Text);
                list.Add(this.Session["I_Event_ID"].ToString());
                list.Add(item.Cells[0].Text.ToString());
                list.Add(item.Cells[5].Text.ToString());
                list.Add(this.txtCompanyID.Text);
                list.Add(this.txtDiagnosisSetID.Text);
                this._associateDiagnosisCodeBO.SaveProcedureAssociateDignosisCode(list);
            }
            foreach (DataGridItem item2 in this.grdNormalDgCode.Items)
            {
                CheckBox box = (CheckBox)item2.Cells[1].FindControl("chkSelect");
                if (box.Checked)
                {
                    list = new ArrayList();
                    list.Add(diagnosis.EventProcID);
                    list.Add(this.txtCaseID.Text);
                    list.Add(this.Session["I_Event_ID"].ToString());
                    list.Add(item2.Cells[1].Text.ToString());
                    list.Add(this.extddlSpecialityDia.Text);
                    list.Add(this.txtCompanyID.Text);
                    list.Add(this.txtDiagnosisSetID.Text);
                    this._associateDiagnosisCodeBO.SaveProcedureAssociateDignosisCode(list);
                }
            }
            this.GetAssignedProcedureDiagnosisCode(this.txtCaseID.Text, this.txtCompanyID.Text, diagnosis.EventProcID, "GET_DIAGNOSIS_CODE");
            this.GetProcedureDiagnosisCode(this.txtCaseID.Text, this.txtCompanyID.Text, diagnosis.EventProcID, "GET_DIAGNOSIS_CODE");
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    private void GetAssignedDiagnosisCode(string caseID, string companyId, string doctorId, string flag)
    {
        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());
        }
        Session["DiagnosysList"]  = "";
        _associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();
        ArrayList _arrayListDiagnosys = new ArrayList();

        try
        {
            DataSet ds = new DataSet();
            // please check the below function.. it returns all the rows from the database when a doctor is selected
            ds = _associateDiagnosisCodeBO.GetDiagnosisCode(caseID, companyId, doctorId, flag);
            //    ds = _digosisCodeBO.GetDiagnosisCodeReferalList(txtCompanyID.Text, extddlDiagnosisType.Text, txtDiagonosisCode.Text, txtDescription.Text);
            grdNormalDgCode.DataSource = ds.Tables[0]; //_associateDiagnosisCodeBO.GetDoctorDiagnosisCode(id, flag);
            grdNormalDgCode.DataBind();
            DataTable dt = new DataTable();
            dt.Columns.Add("SZ_DIAGNOSIS_CODE_ID");
            dt.Columns.Add("SZ_DIAGNOSIS_CODE");
            dt.Columns.Add("SZ_DESCRIPTION");
            dt.Columns.Add("SZ_COMPANY_ID");
            dt.Columns.Add("SZ_PROCEDURE_GROUP");
            dt.Columns.Add("SZ_PROCEDURE_GROUP_ID");
            DataRow   dr;
            DataTable dtNew = new DataTable();
            dtNew.Columns.Add("SZ_DIAGNOSIS_CODE_ID");
            dtNew.Columns.Add("SZ_DIAGNOSIS_CODE");
            dtNew.Columns.Add("SZ_DESCRIPTION");
            dtNew.Columns.Add("SZ_COMPANY_ID");
            dtNew.Columns.Add("SZ_PROCEDURE_GROUP");
            dtNew.Columns.Add("SZ_PROCEDURE_GROUP_ID");
            DataRow drNew;
            for (int intLoop = 0; intLoop < ds.Tables[0].Rows.Count; intLoop++)
            {
                foreach (DataGridItem dgiProcedureCode in grdNormalDgCode.Items)
                {
                    if (dgiProcedureCode.ItemIndex == intLoop && ((Boolean)ds.Tables[0].Rows[intLoop]["CHECKED"]) == true)
                    {
                        dr = dt.NewRow();
                        dr["SZ_DIAGNOSIS_CODE_ID"]  = ds.Tables[0].Rows[intLoop]["SZ_DIAGNOSIS_CODE_ID"].ToString();
                        dr["SZ_DIAGNOSIS_CODE"]     = ds.Tables[0].Rows[intLoop]["SZ_DIAGNOSIS_CODE"].ToString();
                        dr["SZ_DESCRIPTION"]        = ds.Tables[0].Rows[intLoop]["SZ_DESCRIPTION"].ToString();
                        dr["SZ_COMPANY_ID"]         = ds.Tables[0].Rows[intLoop]["SZ_COMPANY_ID"].ToString();
                        dr["SZ_PROCEDURE_GROUP"]    = ds.Tables[0].Rows[intLoop]["Speciality"].ToString();
                        dr["SZ_PROCEDURE_GROUP_ID"] = ds.Tables[0].Rows[intLoop]["SZ_PROCEDURE_GROUP_ID"].ToString();
                        dt.Rows.Add(dr);

                        _arrayListDiagnosys.Add(dgiProcedureCode.Cells[2].Text + ' ' + dgiProcedureCode.Cells[4].Text);
                    }
                }
            }
            Session["DiagnosysList"] = (ArrayList)_arrayListDiagnosys;

            grdAssignedDiagnosisCode.DataSource = dt;
            grdAssignedDiagnosisCode.DataBind();

            //BindGrid(extddlDiagnosisType.Text, txtDiagonosisCode.Text, txtDescription.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);
        }
        //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 #20
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._associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();
        try
        {
            this.btnAssign.Attributes.Add("onclick", "return validate();");
            this.txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            this.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 (!base.IsPostBack)
            {
                this.extddlDiagnosisType.Flag_ID = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                this.extddlSpeciality.Flag_ID    = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                if (base.Request.QueryString["CaseId"] != null)
                {
                    this.Session["CASE_OBJECT"] = null;
                    this.txtCaseID.Text         = base.Request.QueryString["CaseId"].ToString();
                    this.GetPatientDeskList();
                }
                else if (this.Session["CASE_OBJECT"] != null)
                {
                    this.txtCaseID.Text = ((Bill_Sys_CaseObject)this.Session["CASE_OBJECT"]).SZ_CASE_ID;
                    Bill_Sys_Case @case = new Bill_Sys_Case();
                    @case.SZ_CASE_ID             = this.txtCaseID.Text;
                    this.Session["CASEINFO"]     = @case;
                    this.Session["PassedCaseID"] = this.txtCaseID.Text;
                    string str = this.Session["PassedCaseID"].ToString();
                    this.Session["QStrCaseID"]       = str;
                    this.Session["Case_ID"]          = str;
                    this.Session["Archived"]         = "0";
                    this.Session["QStrCID"]          = str;
                    this.Session["SelectedID"]       = str;
                    this.Session["DM_User_Name"]     = ((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_NAME;
                    this.Session["User_Name"]        = ((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_NAME;
                    this.Session["SN"]               = "0";
                    this.Session["LastAction"]       = "vb_CaseInformation.aspx";
                    this.Session["SZ_CASE_ID_NOTES"] = this.txtCaseID.Text;
                    this.Session["TM_SZ_CASE_ID"]    = this.txtCaseID.Text;
                    this.GetPatientDeskList();
                }
                else
                {
                    base.Response.Redirect("Bill_Sys_SearchCase.aspx", false);
                }
                this.strCaseType = this._associateDiagnosisCodeBO.GetCaseType(this.txtCaseID.Text);
                string text1 = base.Request.QueryString["DoctorID"];
                if (base.Request.QueryString["SetId"] != null)
                {
                    this.txtDiagnosisSetID.Text = base.Request.QueryString["SetId"].ToString();
                    this._ds = this._associateDiagnosisCodeBO.GetCaseAssociateDiagnosisDetails(this.txtDiagnosisSetID.Text);
                    this.GetDiagnosisCode(this.txtCaseID.Text, this.txtCompanyID.Text, "", "GET_DIAGNOSIS_CODE");
                    this.Visiblecontrol();
                }
                else
                {
                    this.txtDiagnosisSetID.Text = this._associateDiagnosisCodeBO.GetDiagnosisSetID();
                }
                this.GetDiagnosisCode(this.txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
                this.GetAssignedDiagnosisCode(this.txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
                this.grdNormalDgCode.DataSource = null;
                this.grdNormalDgCode.DataBind();
                this.extddlSpeciality.Visible = false;
                this.lblSpeciality.Visible    = false;
                if (((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY)
                {
                    this.tabcontainerDiagnosisCode.ActiveTabIndex = 1;
                }
                else
                {
                    this.tabcontainerDiagnosisCode.ActiveTabIndex = 0;
                }
            }
            this.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);
        }

        if (((Bill_Sys_BillingCompanyObject)this.Session["APPSTATUS"]).SZ_READ_ONLY.ToString().Equals("True"))
        {
            new Bill_Sys_ChangeVersion(this.Page).MakeReadOnlyPage("Bill_Sys_AssociateDignosisCodeCase.aspx");
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Exemple #21
0
    private void SaveDiagnosisCode()
    {
        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._associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();
        new DataSet();
        try
        {
            this._associateDiagnosisCodeBO.DeleteCaseAssociateDignosisCodeWithProcCode(this.txtCaseID.Text, this.txtCompanyID.Text, "");
            DataSet set = new DataSet();
            //ArrayList arr = new ArrayList();
            //foreach (DataGridItem item3 in this.grdSpeciality.Items)
            //{
            //    CheckBox boxCheck = (CheckBox)item3.Cells[1].FindControl("chkSelectspecialty");
            //    if (boxCheck.Checked)
            //    {
            //        arr.Add(item3.Cells[1].Text.ToString());
            //    }
            //}
            string    str            = this.extddlSpeciality.Text;
            ArrayList checkSpecialty = new ArrayList();

            set = this._associateDiagnosisCodeBO.Get_Associate_Speciality(str, this.txtCompanyID.Text);
            foreach (DataGridItem item in this.grdSelectedDiagnosisCode.Items)
            {
                this._arrayList = new ArrayList();
                this._arrayList.Add(this.txtDiagnosisSetID.Text);
                this._arrayList.Add(this.txtCaseID.Text);
                if (((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY)
                {
                    this._arrayList.Add("");
                }
                else
                {
                    this._arrayList.Add("");
                }
                this._arrayList.Add(item.Cells[0].Text.ToString());
                this._arrayList.Add(this.txtCompanyID.Text);
                //this._arrayList.Add(checkSpecialty);
                this._arrayList.Add(item.Cells[5].Text.ToString());
                this._associateDiagnosisCodeBO.SaveCaseAssociateDignosisCode(this._arrayList);
            }
            foreach (DataGridItem item5 in this.grdSpeciality.Items)
            {
                CheckBox boxCheckSpecialityOne = (CheckBox)item5.Cells[1].FindControl("chkSelectspecialty");
                if (boxCheckSpecialityOne.Checked)
                {
                    foreach (DataGridItem item2 in this.grdNormalDgCode.Items)
                    {
                        CheckBox box = (CheckBox)item2.Cells[1].FindControl("chkSelect");
                        if (box.Checked)
                        {
                            foreach (DataGridItem item4 in this.grdSpeciality.Items)
                            {
                                CheckBox boxCheckSpeciality = (CheckBox)item4.Cells[1].FindControl("chkSelectspecialty");
                                if (boxCheckSpeciality.Checked)
                                {
                                    this._arrayList = new ArrayList();
                                    this._arrayList.Add(this.txtDiagnosisSetID.Text);
                                    this._arrayList.Add(this.txtCaseID.Text);
                                    if (((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY)
                                    {
                                        this._arrayList.Add("");
                                    }
                                    else
                                    {
                                        this._arrayList.Add("");
                                    }


                                    this._arrayList.Add(item2.Cells[1].Text.ToString());
                                    this._arrayList.Add(this.txtCompanyID.Text);
                                    //checkSpecialty.Add(item4.Cells[2].Text.ToString());
                                    this._arrayList.Add(item4.Cells[2].Text.ToString());
                                    //this._arrayList.Add(this.extddlSpeciality.Text);
                                    this._associateDiagnosisCodeBO.SaveCaseAssociateDignosisCode(this._arrayList);
                                }
                            }

                            if (set != null)
                            {
                                for (int i = 0; i < set.Tables[0].Rows.Count; i++)
                                {
                                    if (set.Tables[0].Rows[i]["SZ_ASSOCIATE_SPECIALITY"].ToString() != "")
                                    {
                                        this._arrayList = new ArrayList();
                                        this._arrayList.Add(this.txtDiagnosisSetID.Text);
                                        this._arrayList.Add(this.txtCaseID.Text);
                                        if (((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY)
                                        {
                                            this._arrayList.Add("");
                                        }
                                        else
                                        {
                                            this._arrayList.Add("");
                                        }
                                        this._arrayList.Add(item2.Cells[1].Text.ToString());
                                        this._arrayList.Add(this.txtCompanyID.Text);
                                        this._arrayList.Add(set.Tables[0].Rows[i]["SZ_ASSOCIATE_SPECIALITY"].ToString());
                                        this._associateDiagnosisCodeBO.SaveCaseAssociateDignosisCode(this._arrayList);
                                    }
                                }
                            }
                        }
                    }
                }
            }

            this.GetAssignedDiagnosisCode(this.txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
            this.GetDiagnosisCode(this.txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Exemple #22
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());
        }
    }
Exemple #23
0
    private void GetDiagnosisCode(string caseID, string companyId, string doctorId, string flag)
    {
        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._associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();
        try
        {
            DataSet set = new DataSet();
            set = this._associateDiagnosisCodeBO.GetDiagnosisCode(caseID, companyId, doctorId, flag);
            this.grdNormalDgCode.DataSource = set.Tables[0];
            this.grdNormalDgCode.DataBind();
            DataTable table = new DataTable();
            table.Columns.Add("SZ_DIAGNOSIS_CODE_ID");
            table.Columns.Add("SZ_DIAGNOSIS_CODE");
            table.Columns.Add("SZ_DESCRIPTION");
            table.Columns.Add("SZ_COMPANY_ID");
            table.Columns.Add("SZ_PROCEDURE_GROUP");
            table.Columns.Add("SZ_PROCEDURE_GROUP_ID");
            DataTable table2 = new DataTable();
            table2.Columns.Add("SZ_DIAGNOSIS_CODE_ID");
            table2.Columns.Add("SZ_DIAGNOSIS_CODE");
            table2.Columns.Add("SZ_DESCRIPTION");
            table2.Columns.Add("SZ_COMPANY_ID");
            table2.Columns.Add("SZ_PROCEDURE_GROUP");
            table2.Columns.Add("SZ_PROCEDURE_GROUP_ID");
            for (int i = 0; i < set.Tables[0].Rows.Count; i++)
            {
                foreach (DataGridItem item in this.grdNormalDgCode.Items)
                {
                    if ((item.ItemIndex == i) && ((bool)set.Tables[0].Rows[i]["CHECKED"]))
                    {
                        DataRow row = table.NewRow();
                        row["SZ_DIAGNOSIS_CODE_ID"]  = set.Tables[0].Rows[i]["SZ_DIAGNOSIS_CODE_ID"].ToString();
                        row["SZ_DIAGNOSIS_CODE"]     = set.Tables[0].Rows[i]["SZ_DIAGNOSIS_CODE"].ToString();
                        row["SZ_DESCRIPTION"]        = set.Tables[0].Rows[i]["SZ_DESCRIPTION"].ToString();
                        row["SZ_COMPANY_ID"]         = set.Tables[0].Rows[i]["SZ_COMPANY_ID"].ToString();
                        row["SZ_PROCEDURE_GROUP"]    = set.Tables[0].Rows[i]["Speciality"].ToString();
                        row["SZ_PROCEDURE_GROUP_ID"] = set.Tables[0].Rows[i]["SZ_PROCEDURE_GROUP_ID"].ToString();
                        table.Rows.Add(row);
                    }
                }
            }
            this.grdSelectedDiagnosisCode.DataSource = table;
            this.grdSelectedDiagnosisCode.DataBind();
            this.lblDiagnosisCount.Text = table.Rows.Count.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);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Exemple #24
0
    private void GetAssignedDiagnosisCode(string caseID, string companyId, string doctorId, string flag)
    {
        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
        {
            DataSet ds = new DataSet();
            // please check the below function.. it returns all the rows from the database when a doctor is selected
            ds = _associateDiagnosisCodeBO.GetDiagnosisCode(caseID, companyId, doctorId, flag);

            grdNormalDgCode.DataSource = ds.Tables[0]; //_associateDiagnosisCodeBO.GetDoctorDiagnosisCode(id, flag);
            grdNormalDgCode.DataBind();
            DataTable dt = new DataTable();
            dt.Columns.Add("SZ_DIAGNOSIS_CODE_ID");
            dt.Columns.Add("SZ_DIAGNOSIS_CODE");
            dt.Columns.Add("SZ_DESCRIPTION");
            dt.Columns.Add("SZ_COMPANY_ID");
            DataRow   dr;
            DataTable dtNew = new DataTable();
            dtNew.Columns.Add("SZ_DIAGNOSIS_CODE_ID");
            dtNew.Columns.Add("SZ_DIAGNOSIS_CODE");
            dtNew.Columns.Add("SZ_DESCRIPTION");
            dtNew.Columns.Add("SZ_COMPANY_ID");
            DataRow drNew;
            for (int intLoop = 0; intLoop < ds.Tables[0].Rows.Count; intLoop++)
            {
                foreach (DataGridItem dgiProcedureCode in grdNormalDgCode.Items)
                {
                    if (dgiProcedureCode.ItemIndex == intLoop && ((Boolean)ds.Tables[0].Rows[intLoop]["CHECKED"]) == true)
                    {
                        dr = dt.NewRow();
                        dr["SZ_DIAGNOSIS_CODE_ID"] = ds.Tables[0].Rows[intLoop]["SZ_DIAGNOSIS_CODE_ID"].ToString();
                        dr["SZ_DIAGNOSIS_CODE"]    = ds.Tables[0].Rows[intLoop]["SZ_DIAGNOSIS_CODE"].ToString();
                        dr["SZ_DESCRIPTION"]       = ds.Tables[0].Rows[intLoop]["SZ_DESCRIPTION"].ToString();
                        dr["SZ_COMPANY_ID"]        = ds.Tables[0].Rows[intLoop]["SZ_COMPANY_ID"].ToString();
                        dt.Rows.Add(dr);

                        //CheckBox chkEmpty = (CheckBox)dgiProcedureCode.Cells[0].FindControl("chkSelect");
                        //chkEmpty.Checked = true;
                    }
                    //else
                    //{
                    //    drNew = dtNew.NewRow();
                    //    drNew["SZ_DIAGNOSIS_CODE_ID"] = ds.Tables[0].Rows[intLoop]["SZ_DIAGNOSIS_CODE_ID"].ToString();
                    //    drNew["SZ_DIAGNOSIS_CODE"] = ds.Tables[0].Rows[intLoop]["SZ_DIAGNOSIS_CODE"].ToString();
                    //    drNew["SZ_DESCRIPTION"] = ds.Tables[0].Rows[intLoop]["SZ_DESCRIPTION"].ToString();
                    //    drNew["SZ_COMPANY_ID"] = ds.Tables[0].Rows[intLoop]["SZ_COMPANY_ID"].ToString();
                    //    dtNew.Rows.Add(drNew);
                    //}
                }
            }

            grdAssignedDiagnosisCode.DataSource = dt;
            grdAssignedDiagnosisCode.DataBind();



            //grdNormalDgCode.DataSource = null;
            //grdNormalDgCode.DataBind();

            //grdNormalDgCode.DataSource = dtNew;
            //grdNormalDgCode.DataBind();
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    private void SaveDiagnosisCode()
    {
        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();
        DataSet   _billDs             = new DataSet();
        ArrayList _arrayListDiagnosys = new ArrayList();

        try
        {
            _associateDiagnosisCodeBO.DeleteCaseAssociateDignosisCodeWithProcCode(txtCaseID.Text, txtCompanyID.Text, "");//, lstPTDProcCode.Items[j].Value.Substring(0, lstPTDProcCode.Items[j].Value.IndexOf("|")), lstPTDProcCode.Items[j].Value.Substring((lstPTDProcCode.Items[j].Value.IndexOf("|") + 1), ((lstPTDProcCode.Items[j].Value.Length - lstPTDProcCode.Items[j].Value.IndexOf("|")) - 1)));

            dsSelectedDiagnosis = (DataSet)Session["selectedDS"];

            grdSelectedDiagnosisCode.DataSource = dsSelectedDiagnosis;
            grdSelectedDiagnosisCode.DataBind();

            for (int i = 0; i < grdSelectedDiagnosisCode.VisibleRowCount; i++)
            {
                _arrayList = new ArrayList();
                _arrayList.Add(txtDiagnosisSetID.Text);
                _arrayList.Add(txtCaseID.Text);
                if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true)
                {
                    _arrayList.Add("");
                }
                else
                {
                    _arrayList.Add("");
                }
                _arrayList.Add(grdSelectedDiagnosisCode.GetRowValues(i, "SZ_DIAGNOSIS_CODE_ID").ToString());
                _arrayList.Add(txtCompanyID.Text);
                _arrayList.Add(Request.QueryString["ProcGroupID"].ToString());
                _associateDiagnosisCodeBO.SaveCaseAssociateDignosisCode(_arrayList);
                _arrayListDiagnosys.Add(grdSelectedDiagnosisCode.GetRowValues(i, "SZ_DESCRIPTION").ToString() + ' ' + grdSelectedDiagnosisCode.GetRowValues(i, "SZ_DIAGNOSIS_CODE").ToString());
            }
            for (int j = 0; j < grdNormalDgCode.VisibleRowCount && j < 20; j++)
            {
                //CheckBox chkEmpty = (CheckBox)dgiProcedureCode.Cells[1].FindControl("chkSelect");
                CheckBox chkEmpty = (CheckBox)grdNormalDgCode.FindRowCellTemplateControl(j, null, "chkSelect");

                if (chkEmpty.Checked == true)
                {
                    _arrayList = new ArrayList();
                    _arrayList.Add(txtDiagnosisSetID.Text);
                    _arrayList.Add(txtCaseID.Text);
                    if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true)
                    {
                        _arrayList.Add("");
                    }
                    else
                    {
                        _arrayList.Add("");
                    }
                    _arrayList.Add(Request.QueryString["ProcGroupID"].ToString());
                    _arrayList.Add(grdNormalDgCode.GetRowValues(j, "SZ_DIAGNOSIS_CODE_ID"));
                    _arrayList.Add(txtCompanyID.Text);
                    _arrayList.Add(Request.QueryString["ProcCode"]);
                    _arrayList.Add(txtSpeciality.Text);
                    _associateDiagnosisCodeBO.SaveCaseAssociateDignosisCode(_arrayList);

                    //_arrayListDiagnosys.Add(dgiProcedureCode.Cells[2].Text + ' ' + dgiProcedureCode.Cells[4].Text);
                    _arrayListDiagnosys.Add(grdNormalDgCode.GetRowValues(j, "SZ_DIAGNOSIS_CODE").ToString() + ' ' + grdNormalDgCode.GetRowValues(j, "SZ_DESCRIPTION"));
                }
            }

            Session["DiagnosysList"] = (ArrayList)_arrayListDiagnosys;

            GetAssignedDiagnosisCode(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
            GetDiagnosisCode(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Exemple #26
0
    private void SaveDiagnosisCode()
    {
        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._associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();
        new DataSet();
        try
        {
            ArrayList list;
            this._associateDiagnosisCodeBO.DeleteCaseAssociateDignosisCodeWithProcCode(this.txtCaseID.Text, this.txtCompanyID.Text, "");

            //string Selected = ((hdnDiagnosis.Value).Replace("--,", "*")).Replace("--", "");

            string[] ArrCodes = (hdnDiagnosis.Value).Split(',');

            foreach (DataGridItem item in this.grdSelectedDiagnosisCode.Items)
            {
                list = new ArrayList();
                list.Add(this.txtDiagnosisSetID.Text);
                list.Add(this.txtCaseID.Text);
                if (((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY)
                {
                    list.Add("");
                }
                else
                {
                    list.Add("");
                }
                list.Add(item.Cells[0].Text.ToString());
                list.Add(this.txtCompanyID.Text);
                list.Add(item.Cells[5].Text.ToString());
                this._associateDiagnosisCodeBO.SaveCaseAssociateDignosisCode(list);
            }
            for (int i = 0; i < ArrCodes.Length; i++)
            {
                list = new ArrayList();
                list.Add(this.txtDiagnosisSetID.Text);
                list.Add(this.txtCaseID.Text);
                if (((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY)
                {
                    list.Add("");
                }
                else
                {
                    list.Add("");
                }
                list.Add(ArrCodes[i]);
                list.Add(this.txtCompanyID.Text);
                list.Add(((Bil_Sys_Associate_Diagnosis)((ArrayList)this.Session["DIAGNOS_ASSOCIATION_PAID"])[0]).ProceuderGroupId);
                this._associateDiagnosisCodeBO.SaveCaseAssociateDignosisCode(list);
            }
            this.GetAssignedDiagnosisCode(this.txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
            //this.GetDiagnosisCode(this.txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }

        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }