コード例 #1
0
    private void BindGrid(string typeid, string code, string description)
    {
        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());
        }
        _digosisCodeBO = new Bill_Sys_DigosisCodeBO();
        try
        {
            grdDiagonosisCode.DataSource = _digosisCodeBO.GetDiagnosisCodeReferalList(txtCompanyID.Text, typeid, code, description);
            grdDiagonosisCode.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());
        }
    }
コード例 #2
0
    private void BindGridSpecialty()
    {
        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._digosisCodeBO = new Bill_Sys_DigosisCodeBO();
        try
        {
            this.grdSpeciality.DataSource = this._digosisCodeBO.GetSpecialtyGrid(this.txtCompanyID.Text);
            this.grdSpeciality.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());
        }
    }
コード例 #3
0
 private void BindDiagnosisGrid(string typeid)
 {
     _digosisCodeBO = new Bill_Sys_DigosisCodeBO();
     try
     {
         grdDiagonosisCode.DataSource = _digosisCodeBO.GetDiagnosisCodeReferalList(txtCompanyID.Text, typeid);
         grdDiagonosisCode.DataBind();
     }
     catch (Exception ex)
     {
     }
 }
 private void BindGrid(string typeid, string code, string description)
 {
     _digosisCodeBO = new Bill_Sys_DigosisCodeBO();
     try
     {
         grdNormalDgCode.DataSource = _digosisCodeBO.GetDiagnosisCodeReferalList(txtCompanyID.Text, typeid, code, description);
         grdNormalDgCode.DataBind();
     }
     catch (Exception ex)
     {
         lblErrorMessage.Text = ex.ToString();
     }
 }
コード例 #5
0
    protected void btnSearch_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
        {
            string diagnosisCode = "";
            string description   = "";
            if (txtSearchText.Text != "")
            {
                if (chkDiagnosisCode.Checked == true)
                {
                    diagnosisCode = txtSearchText.Text;
                }
                else if (chkDiagnosisCodeDescription.Checked == true)
                {
                    description = txtSearchText.Text;
                }
            }
            //_bill_Sys_DigosisCodeBO = new Bill_Sys_DigosisCodeBO();
            DataSet ds;// = new DataSet();
            //ds = _bill_Sys_DigosisCodeBO.GeDignosisCode_List(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, diagnosisCode,description);
            //grdDiagnosisCode.DataSource = ds.Tables[0];
            //grdDiagnosisCode.DataBind();
            _bill_Sys_DigosisCodeBO = new Bill_Sys_DigosisCodeBO();
            ds = new DataSet();
            ds = _bill_Sys_DigosisCodeBO.GeProcedureCode_List(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, diagnosisCode, description, Session["DOCTOR_ID"].ToString());
            grdProcedureCode.DataSource = ds.Tables[0];
            grdProcedureCode.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());
        }
    }
コード例 #6
0
    protected void btnUpdatePreferedList_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
        {
            ArrayList arr = new ArrayList();
            for (int i = 0; i < grdDiagonosisCode.Items.Count; i++)
            {
                CheckBox chkDelete = (CheckBox)grdDiagonosisCode.Items[i].FindControl("chkDelete");
                if (chkDelete.Checked)
                {
                    string szDiagonosisCodeID = grdDiagonosisCode.Items[i].Cells[1].Text;
                    arr.Add(szDiagonosisCodeID);
                }
            }
            _bill_Sys_DigosisCodeBO = new Bill_Sys_DigosisCodeBO();
            if (chkAddPrefList.Checked)
            {
                _bill_Sys_DigosisCodeBO.UpdatePreferredListForDiagnosisCode(arr, txtCompanyID.Text, "1");
            }
            else
            {
                _bill_Sys_DigosisCodeBO.UpdatePreferredListForDiagnosisCode(arr, txtCompanyID.Text, "0");
            }

            BindGrid();
            lblMsg.Visible = true;
            lblMsg.Text    = "Diagonosis Code Updated 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());
        }
    }
コード例 #7
0
 private void BindDiagnosisGrid(string typeid, string code, string description)
 {
     _digosisCodeBO = new Bill_Sys_DigosisCodeBO();
     try
     {
         DataSet ds = new DataSet();
         ds = _digosisCodeBO.GetDiagnosisCodeReferalList(txtCompanyID.Text, typeid, code, description);
         grdDiagonosisCode.DataSource = _digosisCodeBO.GetDiagnosisCodeReferalList(txtCompanyID.Text, typeid, code, description);
         grdDiagonosisCode.DataBind();
     }
     catch (Exception ex)
     {
     }
 }
 private void BindGrid(string typeid, string code, string description)
 {
     _digosisCodeBO = new Bill_Sys_DigosisCodeBO();
     try
     {
         grdNormalDgCode.DataSource = _digosisCodeBO.GetDiagnosisCodeReferalList(txtCompanyID.Text, typeid, code, description);
         grdNormalDgCode.DataBind();
     }
     catch (Exception ex)
     {
         string strError = ex.Message.ToString();
         strError = strError.Replace("\n", " ");
         Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + strError);
     }
 }
コード例 #9
0
    private void BindProcedureCodeList()
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        string procedureCode        = "";
        string proceduredescription = "";

        try
        {
            _bill_Sys_DigosisCodeBO = new Bill_Sys_DigosisCodeBO();
            ds = new DataSet();
            if (txtSearchText.Text != "")
            {
                if (chkProcedureCode.Checked)
                {
                    procedureCode = txtSearchText.Text;
                }
                else if (chkProcedureCodeDescription.Checked)
                {
                    proceduredescription = txtSearchText.Text;
                }
            }

            ds = _bill_Sys_DigosisCodeBO.GeProcedureCode_List(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, procedureCode, proceduredescription, extddlDoctor.Text);
            grdProcedureCode.DataSource = ds.Tables[0];
            grdProcedureCode.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());
        }
    }
コード例 #10
0
    protected void btnSearch_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
        {
            string   diagnosisCode            = "";
            string   diagnosisCodeDescription = "";
            String[] diagnosisCodeList;
            diagnosisCodeList = new String[txtSearchText.Text.Split(',').Length];
            Bill_Sys_DigosisCodeBO _bill_Sys_DigosisCodeBO = new Bill_Sys_DigosisCodeBO();
            if (chkDiagnosisCode.Checked == true)
            {
                diagnosisCode = txtSearchText.Text;

                diagnosisCodeList = txtSearchText.Text.Split(',');

                if (diagnosisCodeList.Length > 1)
                {
                    string szListDiagCode = "";
                    for (int ii = 0; ii < diagnosisCodeList.Length; ii++)
                    {
                        szListDiagCode += "'" + diagnosisCodeList[ii].ToString() + "'";
                        if (ii != diagnosisCodeList.Length - 1)
                        {
                            szListDiagCode += ",";
                        }
                    }
                    grdNormalDgCode.DataSource = _bill_Sys_DigosisCodeBO.GeMultipleDignosisCode_List(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, szListDiagCode, diagnosisCodeDescription).Tables[0];
                }
                else
                {
                    grdNormalDgCode.DataSource = _bill_Sys_DigosisCodeBO.GeDignosisCode_List(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, diagnosisCode, diagnosisCodeDescription).Tables[0];
                }
            }
            else if (chkDiagnosisCodeDescription.Checked == true)
            {
                diagnosisCodeDescription   = txtSearchText.Text;
                grdNormalDgCode.DataSource = _bill_Sys_DigosisCodeBO.GeDignosisCode_List(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, diagnosisCode, diagnosisCodeDescription).Tables[0];
            }
            else
            {
                grdNormalDgCode.DataSource = _bill_Sys_DigosisCodeBO.GeDignosisCode_List(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "").Tables[0];
            }

            grdNormalDgCode.DataBind();
            grdNormalDgCode.Visible = true;
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }