예제 #1
0
    private void LoadData()
    {
        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());
        }
        OTPT    _objOTPT  = new OTPT();
        DataSet dsbilling = new DataSet();

        try
        {
            dsbilling = _objOTPT.GET_OCT_Bills_Table(txtBillNumber.Text);
            grdBillingInformation.DataSource = dsbilling;
            grdBillingInformation.DataBind();

            txtDiagnosis.Text       = dsbilling.Tables[0].Rows[0]["SZ_DIGNOSIS"].ToString();
            lblTotalChargeAmt.Text  = dsbilling.Tables[0].Rows[0]["BILL_AMOUNT"].ToString();
            lblTotalPaidAmt.Text    = dsbilling.Tables[0].Rows[0]["PAID_AMOUNT"].ToString();
            lblTotalBalanceAmt.Text = dsbilling.Tables[0].Rows[0]["BALANCE"].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());
        }
    }