コード例 #1
0
ファイル: Bill_Sys_Tests.aspx.cs プロジェクト: jehan2898/root
    private void Bind_Billed_UnBilled_Count()
    {
        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());
        }
        _treatmentBO = new Bill_Sys_TreatmentBO();
        try
        {
            lblTotalBilledCount.Text   = _treatmentBO.GetTreatmentListCount(txtCompanyID.Text, txtPatientID.Text, "TEST", "BILLEDLISTCOUNT");
            lblTotalUnBilledCount.Text = _treatmentBO.GetTreatmentListCount(txtCompanyID.Text, txtPatientID.Text, "TEST", "UN_BILLEDLISTCOUNT");
        }
        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
ファイル: Bill_Sys_Tests.aspx.cs プロジェクト: jehan2898/root
    private void BindViewTreatmentList()
    {
        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());
        }
        _treatmentBO = new Bill_Sys_TreatmentBO();
        try
        {
            lstTestList.DataSource     = _treatmentBO.GetTreatmentList(txtCompanyID.Text, extddlDoctor.Text, txtPatientID.Text, "TEST");
            lstTestList.DataTextField  = "DESCRIPTION";
            lstTestList.DataValueField = "CODE";
            lstTestList.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 GetDoctorVisitList()
    {
        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());
        }

        _treatmentBO = new Bill_Sys_TreatmentBO();
        _arrayList   = new ArrayList();
        try
        {
            lstViewDoctorVisit.DataSource     = _treatmentBO.GetTreatmentList(txtCompanyID.Text, extddlViewDoctor.Text, txtPatientID.Text, "VISITS");
            lstViewDoctorVisit.DataTextField  = "DESCRIPTION";
            lstViewDoctorVisit.DataValueField = "CODE";
            lstViewDoctorVisit.DataBind();

            _arrayList = _treatmentBO.GetDoctorTreatmentCount(txtCompanyID.Text, extddlViewDoctor.Text, txtPatientID.Text, "VISITS");

            if (_arrayList.Count > 0)
            {
                lblTotalVisits.Text = _arrayList[1].ToString();
                if (_arrayList[0].ToString() != "")
                {
                    lblLastDate.Text = Convert.ToDateTime(_arrayList[0].ToString()).ToShortDateString();
                }
            }
            else
            {
                lblTotalVisits.Text = "";
                lblLastDate.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());
        }
    }
コード例 #4
0
ファイル: Bill_Sys_Tests.aspx.cs プロジェクト: jehan2898/root
    private void GetTotalTreatmentCountAndDate()
    {
        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());
        }
        _treatmentBO = new Bill_Sys_TreatmentBO();
        _arraylist   = new ArrayList();
        try
        {
            _arraylist = _treatmentBO.GetLatestDoctorTreatmentCount(txtCompanyID.Text, txtPatientID.Text, "TEST");
            if (_arraylist.Count > 0)
            {
                lblNoOfTest.Text = _arraylist[1].ToString();


                if (_arraylist[0].ToString() != "")
                {
                    lblLastTest.Text = Convert.ToDateTime(_arraylist[0].ToString()).ToShortDateString();
                }
                else
                {
                    lblLastTest.Text = "";
                }
            }
            else
            {
                lblNoOfTest.Text = "";
                lblLastTest.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());
        }
    }
コード例 #5
0
ファイル: Bill_Sys_Tests.aspx.cs プロジェクト: jehan2898/root
    private void BindLatestTreatmentlist()
    {
        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());
        }
        _treatmentBO = new Bill_Sys_TreatmentBO();
        try
        {
            grdScheduledTests.DataSource = _treatmentBO.GetSceduledTreatmentList(txtCompanyID.Text, txtPatientID.Text, "TEST");;
            grdScheduledTests.DataBind();


            grdLatestTest.DataSource = _treatmentBO.GetLatestTreatmentList(txtCompanyID.Text, txtPatientID.Text, "TEST");
            grdLatestTest.DataBind();

            string strDoctorName = "";
            for (int i = 0; i < grdLatestTest.Items.Count; i++)
            {
                Label lblDoctorName = (Label)grdLatestTest.Items[i].Cells[3].FindControl("lblDoctorName");
                if (strDoctorName != "" && strDoctorName == lblDoctorName.Text)
                {
                    lblDoctorName.Text = "";
                }
                else
                {
                    strDoctorName = lblDoctorName.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());
        }
    }
コード例 #6
0
    protected void grdTreatments_ItemCommand(object source, DataGridCommandEventArgs e)
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        try
        {
            if (e.CommandName == "MakeBillable")
            {
                _bill_Sys_TreatmentBO = new Bill_Sys_TreatmentBO();
                _bill_Sys_TreatmentBO.UpdateBillableNonBillable(true, e.CommandArgument.ToString(), ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                BindGrid();
            }
            else if (e.CommandName == "MakeNonBillable")
            {
                _bill_Sys_TreatmentBO = new Bill_Sys_TreatmentBO();
                _bill_Sys_TreatmentBO.UpdateBillableNonBillable(false, e.CommandArgument.ToString(), ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                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());
        }
    }
コード例 #7
0
ファイル: Bill_Sys_Tests.aspx.cs プロジェクト: jehan2898/root
    protected void btnAddTest_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());
        }
        _treatmentBO = new Bill_Sys_TreatmentBO();
        _arraylist   = new ArrayList();
        try
        {
            for (int i = 0; i < lstTest.Items.Count; i++)
            {
                _arraylist.Clear();
                if (rdoOn.Checked == true)
                {
                    if (lstTest.Items[i].Selected)
                    {
                        _arraylist.Add(txtPatientID.Text);
                        _arraylist.Add(extddlDoctorNameList.Text);
                        _arraylist.Add(txtVisitDateFrom.Text);
                        _arraylist.Add(lstTest.Items[i].Value);
                        _arraylist.Add(txtCompanyID.Text);
                        _treatmentBO.SaveTreatment(_arraylist);
                    }
                }
                else
                {
                    if (lstTest.Items[i].Selected)
                    {
                        DateTime objFromDate = Convert.ToDateTime(txtVisitDateFrom.Text);
                        DateTime objToDate   = Convert.ToDateTime(txtVisitDateTo.Text);

                        while (objFromDate <= objToDate)
                        {
                            _arraylist = new ArrayList();
                            _arraylist.Add(txtPatientID.Text);
                            _arraylist.Add(extddlDoctorNameList.Text);
                            _arraylist.Add(objFromDate);
                            _arraylist.Add(lstTest.Items[i].Value);
                            _arraylist.Add(txtCompanyID.Text);
                            _treatmentBO.SaveTreatment(_arraylist);
                            objFromDate = objFromDate.AddDays(1);
                        }
                    }
                }
            }
            BindLatestTreatmentlist();
            BindSummaryTreatmentList();
            BindBilledTest();
            Bind_Billed_UnBilled_Count();
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
コード例 #8
0
    private void BindPatientList()
    {
        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());
        }
        _treatmentBO = new Bill_Sys_TreatmentBO();
        _arrayList   = new ArrayList();
        try
        {
            grdScheduledVisits.DataSource = _treatmentBO.GetSceduledTreatmentList(txtCompanyID.Text, txtPatientID.Text, "VISITS");;
            grdScheduledVisits.DataBind();

            grdBilledVisits.DataSource = _treatmentBO.GetBilledTreatmentList(txtCompanyID.Text, txtPatientID.Text, "VISITS");
            grdBilledVisits.DataBind();

            grdPatientLatestVisit.DataSource = _treatmentBO.GetLatestTreatmentList(txtCompanyID.Text, txtPatientID.Text, "VISITS");
            grdPatientLatestVisit.DataBind();

            _arrayList = _treatmentBO.GetLatestDoctorTreatmentCount(txtCompanyID.Text, txtPatientID.Text, "VISITS");

            if (_arrayList.Count > 0)
            {
                if (_arrayList[0].ToString() != "")
                {
                    lblPatientLastVisitDate.Text = Convert.ToDateTime(_arrayList[0].ToString()).ToShortDateString();
                }
                lblTotalPatientVisitCount.Text = _arrayList[1].ToString();
            }

            grdPatientVisitList.DataSource = _treatmentBO.GetSummaryTreatmentList(txtCompanyID.Text, txtPatientID.Text, "VISITS");
            grdPatientVisitList.DataBind();

            string strDName = "";
            for (int i = 0; i < grdBilledVisits.Items.Count; i++)
            {
                Label lblDoc = (Label)grdBilledVisits.Items[i].Cells[3].FindControl("lblDName");
                if (strDName != "" && strDName == lblDoc.Text)
                {
                    lblDoc.Text = "";
                }
                else
                {
                    strDName = lblDoc.Text;
                }
            }

            string strDocName = "";
            for (int i = 0; i < grdPatientLatestVisit.Items.Count; i++)
            {
                Label lblDoc = (Label)grdPatientLatestVisit.Items[i].Cells[3].FindControl("lblDoctorName");
                if (strDocName != "" && strDocName == lblDoc.Text)
                {
                    lblDoc.Text = "";
                }
                else
                {
                    strDocName = lblDoc.Text;
                }
            }

            string strDoctorName = "";

            for (int i = 0; i < grdPatientVisitList.Items.Count; i++)
            {
                Label lblDoctor = (Label)grdPatientVisitList.Items[i].Cells[3].FindControl("lblDocName");
                if (strDoctorName != "" && strDoctorName == lblDoctor.Text)
                {
                    LinkButton lnkAdd  = (LinkButton)grdPatientVisitList.Items[i].Cells[3].FindControl("lnkAdd");
                    LinkButton lnkView = (LinkButton)grdPatientVisitList.Items[i].Cells[3].FindControl("lnkView");

                    lnkAdd.Text    = "";
                    lnkView.Text   = "";
                    lblDoctor.Text = "";
                }
                else
                {
                    strDoctorName = lblDoctor.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());
        }
    }