Exemple #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     attorney.log.Debug("start Master Page Page_Load()");
     if (base.Application["Error"] != null)
     {
         base.Response.Write(base.Application["Error"].ToString());
     }
     try
     {
         this.objAppSettings = (ApplicationSettings_BO)base.Application["OBJECT_APP_SETTINGS"];
         if (this.objAppSettings == null)
         {
             this.objAppSettings = new ApplicationSettings_BO();
             base.Application["OBJECT_APP_SETTINGS"] = this.objAppSettings;
         }
         string parameterValue = this.objAppSettings.getParameterValue("site_logo").ParameterValue;
         this.ImageButton1.ImageUrl = parameterValue;
         XmlConfigurator.Configure();
         this.c_objUser = new DAO_User();
         string str = "";
         str = (base.Request.RawUrl.IndexOf("?") <= 0 ? base.Request.RawUrl : base.Request.RawUrl.Substring(0, base.Request.RawUrl.IndexOf("?")));
         this.c_objUser.UserID = (str.Substring(str.LastIndexOf("/") + 1, str.LastIndexOf(".aspx") - str.LastIndexOf("/") + 4));
         string   str1      = base.Request.RawUrl.ToString();
         string[] strArrays = str1.Split(new char[] { '?' });
         if ((int)strArrays.Length > 1 && strArrays[1].Equals("Menuflag=true"))
         {
             if (!strArrays[0].Contains("/AJAX Pages/Bill_Sys_OutScheduleReport.aspx"))
             {
                 this.c_objUser.UserID = "Bill_Sys_VerificationSent_PrintPOM.aspx";
             }
             else
             {
                 this.c_objUser.UserID = "Bill_Sys_OutScheduleReport.aspx?Menuflag=true";
             }
         }
         if (this.c_objUser.UserID == "Bill_Sys_ReferralBillTransaction.aspx")
         {
             this.c_objUser.UserID = "Bill_Sys_BillTransaction.aspx";
         }
         if (this.c_objUser.UserID == "Bill_Sys_ReferringDoctor.aspx")
         {
             this.c_objUser.UserID = "Bill_Sys_Doctor.aspx";
         }
         if (this.c_objUser.UserID == "Bill_Sys_ChangePasswordMaster.aspx")
         {
             this.c_objUser.UserID = "Bill_Sys_UserMaster.aspx";
         }
         if (this.c_objUser.UserID == "Bill_Sys_BillSearch.aspx" && base.Request.QueryString["fromCase"] != null)
         {
             this.c_objUser.UserID = "atnotes.aspx";
         }
         if (this.c_objUser.UserID == "Bill_Sys_BillTransaction.aspx")
         {
             this.c_objUser.UserID = "atnotes.aspx";
         }
         if (this.c_objUser.UserID == "Bill_Sys_NewPaymentReport.aspx" && base.Request.QueryString["fromCase"] != null)
         {
             this.c_objUser.UserID = "atnotes.aspx";
         }
         if (this.c_objUser.UserID == "Bill_Sys_PaymentTransactions.aspx")
         {
             this.c_objUser.UserID = "atnotes.aspx";
         }
         if (this.c_objUser.UserID.Contains("Bill_Sys_IM_"))
         {
             this.c_objUser.UserID = "Bill_Sys_IM_HistoryOfPresentIillness.aspx";
         }
         if (this.c_objUser.UserID.Contains("Bill_Sys_FUIM_"))
         {
             this.c_objUser.UserID = "Bill_Sys_FUIM_StartExamination.aspx";
         }
         if (this.c_objUser.UserID.Contains("Bill_Sys_AC_"))
         {
             this.c_objUser.UserID = "Bill_Sys_AC_AccuReEval.aspx";
         }
         if (this.c_objUser.UserID == "Bill_Sys_MiscPaymentReport.aspx" && base.Request.QueryString["fromCase"] != null)
         {
             this.c_objUser.UserID = "atnotes.aspx";
         }
         if (this.c_objUser.UserID == "Bill_Sys_Misc_Payment.aspx")
         {
             this.c_objUser.UserID = "atnotes.aspx";
         }
         if (this.c_objUser.UserID == "Bill_Sys_Invoice.aspx")
         {
             this.c_objUser.UserID = "atnotes.aspx";
         }
         if (this.c_objUser.UserID == "Bill_Sys_PatientBillingSummary.aspx")
         {
             this.c_objUser.UserID = "atnotes.aspx";
         }
         if (this.c_objUser.UserID == "Bill_Sys_Invoice_Report.aspx")
         {
             if (base.Request.QueryString["fromCase"] == "False")
             {
                 this.c_objUser.UserID = "Bill_Sys_BillSearch.aspx";
             }
             else
             {
                 this.c_objUser.UserID = "atnotes.aspx";
             }
         }
         if (this.c_objUser.UserID == "TemplateManager.aspx")
         {
             if (base.Request.QueryString["fromCase"] != "true")
             {
                 this.c_objUser.UserID = "atnotes.aspx";
             }
             else
             {
                 this.c_objUser.UserID = "Bill_Sys_CheckOut.aspx";
             }
         }
         //--Add comment--//
         if (this.c_objUser.UserID == "atcasedetails.aspx")
         {
             this.c_objUser.UserID = "Bill_Sys_CaseDetails.aspx";
         }
         //---end---//
         if (this.c_objUser.UserID == "Bill_Sys_PatientSearch.aspx")
         {
             this.c_objUser.UserID = "Bill_Sys_CheckOut.aspx";
         }
         SpecialityPDFDAO specialityPDFDAO = new SpecialityPDFDAO();
         if (base.Session["SPECIALITY_PDF_OBJECT"] == null)
         {
             specialityPDFDAO = null;
         }
         else
         {
             specialityPDFDAO = (SpecialityPDFDAO)base.Session["SPECIALITY_PDF_OBJECT"];
         }
         this.c_objUser.UserRoleID = (((Bill_Sys_UserObject)base.Session["USER_OBJECT"]).SZ_USER_ROLE);
         ArrayList arrayLists = new ArrayList();
         arrayLists.Add(str);
         OptionMenu optionMenu = new OptionMenu(this.c_objUser);
         optionMenu.Initialize(this.problue, (Bill_Sys_BillingCompanyObject)base.Session["BILLING_COMPANY_OBJECT"], (Bill_Sys_UserObject)base.Session["USER_OBJECT"], (Bill_Sys_SystemObject)base.Session["SYSTEM_OBJECT"], this.c_objUser, specialityPDFDAO, arrayLists);
         this.problue.AllExpanded  = true;
         this.problue.AutoPostBack = false;
         if (!((Bill_Sys_BillingCompanyObject)base.Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY)
         {
             // this.lnkScheduleReport.HRef = "Bill_Sys_ScheduleEvent.aspx?TOp=true";
         }
         else
         {
             // this.lnkScheduleReport.HRef = "AJAX Pages/Bill_Sys_AppointPatientEntry.aspx";
         }
         this.ShowAssignedLinks(this.c_objUser.UserRoleID);
         attorney.log.Debug("End Master Page_Load()");
         DataSet dataSet = new DataSet();
         Bill_Sys_ProcedureCode_BO billSysProcedureCodeBO = new Bill_Sys_ProcedureCode_BO();
         dataSet = billSysProcedureCodeBO.Get_Sys_Key("SS00040", ((Bill_Sys_BillingCompanyObject)base.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
         if (dataSet.Tables.Count > 0 && dataSet.Tables[0].Rows.Count > 0 && dataSet.Tables[0].Rows[0][0].ToString() == "0")
         {
             this.lnkshedulevisits.Visible = false;
         }
         if (((Bill_Sys_BillingCompanyObject)base.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID == "CO000000000000000114")
         {
             // this.lnkScheduleReport.Visible = false;
             this.lnkQuickSearch.Visible = false;
             this.A2.Visible             = false;
         }
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         attorney.log.Debug(string.Concat("attorney. Method - Page_Load : ", exception.Message.ToString()));
         attorney.log.Debug(string.Concat("attorney. Method - Page_Load : ", exception.StackTrace.ToString()));
         if (exception.InnerException != null)
         {
             attorney.log.Debug(string.Concat("attorney. Method - Page_Load : ", exception.InnerException.Message.ToString()));
             attorney.log.Debug(string.Concat("attorney. Method - Page_Load : ", exception.InnerException.StackTrace.ToString()));
         }
     }
 }
Exemple #2
0
    protected void Page_Load(object sender, EventArgs e)
    {//Logging Start
        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());
        }


        log.Debug("start Master Page Page_Load()");
        if (Application["Error"] != null)
        {
            Response.Write(Application["Error"].ToString());
        }
        try
        {
            objAppSettings = (mbs.ApplicationSettings.ApplicationSettings_BO)Application["OBJECT_APP_SETTINGS"];
            if (objAppSettings == null)
            {
                objAppSettings = new mbs.ApplicationSettings.ApplicationSettings_BO();
                Application["OBJECT_APP_SETTINGS"] = objAppSettings;
            }
            string sitePath = ((mbs.ApplicationSettings.ApplicationSettings_DO)objAppSettings.getParameterValue(mbs.ApplicationSettings.ApplicationSettings_BO.KEY_SITE_PATH)).ParameterValue;
            ImageButton1.ImageUrl = sitePath;
            log4net.Config.XmlConfigurator.Configure();
            //if (!IsPostBack)
            //{
            c_objUser = new DAO_User();
            string _url = "";
            if (Request.RawUrl.IndexOf("?") > 0)
            {
                _url = Request.RawUrl.Substring(0, Request.RawUrl.IndexOf("?"));
            }
            else
            {
                _url = Request.RawUrl;
            }
            c_objUser.UserID = _url.Substring(_url.LastIndexOf("/") + 1, (_url.LastIndexOf(".aspx") - _url.LastIndexOf("/")) + 4);
            //if (c_objUser.UserID == "Bill_Sys_BillingDoctor.aspx")
            //{
            //    c_objUser.UserID = "Bill_Sys_Doctor.aspx";
            //}

            //if (_url.Contains("AJAX Pages")) { A1.Attributes.Add("onclick", "javascript:OpenAjaxTicket();"); } else A1.Attributes.Add("onclick", "javascript:OpenTicket();");

            string   outschedule    = Request.RawUrl.ToString();
            string[] arroutschedule = outschedule.Split('?');

            if (arroutschedule.Length > 1)
            {
                if (arroutschedule[1].Equals("Menuflag=true"))
                {
                    //TUSHAR:-There Are Two I_PARENT_ID FOR Bill_Sys_OutScheduleReport.aspx So I Have To Check it With Menu Link.
                    if (arroutschedule[0].Contains("/AJAX Pages/Bill_Sys_OutScheduleReport.aspx"))
                    {
                        c_objUser.UserID = "Bill_Sys_OutScheduleReport.aspx?Menuflag=true";
                    }
                    else
                    {
                        c_objUser.UserID = "Bill_Sys_VerificationSent_PrintPOM.aspx";
                    }
                    //End Code
                }
            }
            if (c_objUser.UserID == "Bill_Sys_ReferralBillTransaction.aspx")
            {
                c_objUser.UserID = "Bill_Sys_BillTransaction.aspx";
            }
            if (c_objUser.UserID == "Bill_Sys_ReferringDoctor.aspx")
            {
                c_objUser.UserID = "Bill_Sys_Doctor.aspx";
            }
            if (c_objUser.UserID == "Bill_Sys_ChangePasswordMaster.aspx")
            {
                c_objUser.UserID = "Bill_Sys_UserMaster.aspx";
            }
            if (c_objUser.UserID == "Bill_Sys_BillSearch.aspx")
            {
                if (Request.QueryString["fromCase"] != null)
                {
                    c_objUser.UserID = "Bill_Sys_Notes.aspx";
                }
            }
            if (c_objUser.UserID == "Bill_Sys_BillTransaction.aspx")
            {
                c_objUser.UserID = "Bill_Sys_Notes.aspx";
            }

            if (c_objUser.UserID == "Bill_Sys_NewPaymentReport.aspx")
            {
                if (Request.QueryString["fromCase"] != null)
                {
                    c_objUser.UserID = "Bill_Sys_Notes.aspx";
                }
            }
            if (c_objUser.UserID == "Bill_Sys_PaymentTransactions.aspx")
            {
                c_objUser.UserID = "Bill_Sys_Notes.aspx";
            }

            if (c_objUser.UserID.Contains("Bill_Sys_IM_"))
            {
                c_objUser.UserID = "Bill_Sys_IM_HistoryOfPresentIillness.aspx";
            }

            if (c_objUser.UserID.Contains("Bill_Sys_FUIM_"))
            {
                c_objUser.UserID = "Bill_Sys_FUIM_StartExamination.aspx";
            }

            if (c_objUser.UserID.Contains("Bill_Sys_AC_"))
            {
                c_objUser.UserID = "Bill_Sys_AC_AccuReEval.aspx";
            }

            if (c_objUser.UserID == "Bill_Sys_MiscPaymentReport.aspx")
            {
                if (Request.QueryString["fromCase"] != null)
                {
                    c_objUser.UserID = "Bill_Sys_Notes.aspx";
                }
            }
            if (c_objUser.UserID == "Bill_Sys_Misc_Payment.aspx")
            {
                c_objUser.UserID = "Bill_Sys_Notes.aspx";
            }

            if (c_objUser.UserID == "Bill_Sys_Invoice.aspx")
            {
                c_objUser.UserID = "Bill_Sys_Notes.aspx";
            }
            if (c_objUser.UserID == "Bill_Sys_PatientBillingSummary.aspx")
            {
                c_objUser.UserID = "Bill_Sys_Notes.aspx";
            }
            if (c_objUser.UserID == "Bill_Sys_Invoice_Report.aspx")
            {
                if (Request.QueryString["fromCase"] != "False")
                {
                    c_objUser.UserID = "Bill_Sys_Notes.aspx";
                }
                else
                {
                    c_objUser.UserID = "Bill_Sys_BillSearch.aspx";
                }
            }
            if (c_objUser.UserID == "TemplateManager.aspx")
            {
                if (Request.QueryString["fromCase"] == "true")
                {
                    c_objUser.UserID = "Bill_Sys_CheckOut.aspx";
                }
                else
                {
                    c_objUser.UserID = "Bill_Sys_Notes.aspx";
                }
            }
            if (c_objUser.UserID == "Bill_Sys_PatientSearch.aspx")
            {
                c_objUser.UserID = "Bill_Sys_CheckOut.aspx";
            }


            SpecialityPDFDAO _objSpecialityDAO = new SpecialityPDFDAO();
            if (Session["SPECIALITY_PDF_OBJECT"] != null)
            {
                _objSpecialityDAO = (SpecialityPDFDAO)Session["SPECIALITY_PDF_OBJECT"];
            }
            else
            {
                _objSpecialityDAO = null;
            }

            c_objUser.UserRoleID = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE;

            // Pass new parameter to objMenu.Initialize as ArrayList which will be useful while display left
            // hand side menu.

            ArrayList objHelper = new ArrayList();
            objHelper.Add(_url); // url of page

            OptionMenu objMenu = new OptionMenu(c_objUser);
            objMenu.Initialize(problue, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]), ((Bill_Sys_UserObject)Session["USER_OBJECT"]), ((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]), c_objUser, _objSpecialityDAO, objHelper);
            problue.AllExpanded  = true;
            problue.AutoPostBack = false;



            //if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true)
            //{
            //    if (((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE_NAME.ToLower() == "agent")
            //        lnkScheduleReport.HRef = "Bill_Sys_AppointPatientEntry_Agent.aspx";//"Agent/Bill_Sys_AppointPatientEntry_Agent.aspx";
            //    else
            //        lnkScheduleReport.HRef = "AJAX Pages/Bill_Sys_AppointPatientEntry.aspx";
            //}
            //else
            //{
            //    lnkScheduleReport.HRef = "Bill_Sys_ScheduleEvent.aspx?TOp=true";
            //}

            ShowAssignedLinks(c_objUser.UserRoleID);
            log.Debug("End Master Page_Load()");
            DataSet dsBit = new System.Data.DataSet();
            Bill_Sys_ProcedureCode_BO objPBO = new Bill_Sys_ProcedureCode_BO();
            dsBit = objPBO.Get_Sys_Key("SS00040", ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            if (dsBit.Tables.Count > 0 && dsBit.Tables[0].Rows.Count > 0)
            {
                string szBitVal = dsBit.Tables[0].Rows[0][0].ToString();
                if (szBitVal == "0")
                {
                    //lnkshedulevisits.Visible = false;
                }
            }
        }
        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 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());
        }
        log.Debug("start Master Page Page_Load()");
        if (base.Application["Error"] != null)
        {
            base.Response.Write(base.Application["Error"].ToString());
        }
        try
        {
            this.objAppSettings = (ApplicationSettings_BO)base.Application["OBJECT_APP_SETTINGS"];
            if (this.objAppSettings == null)
            {
                this.objAppSettings = new ApplicationSettings_BO();
                base.Application["OBJECT_APP_SETTINGS"] = this.objAppSettings;
            }
            string str = this.objAppSettings.getParameterValue("site_logo").ParameterValue;
            this.ImageButton1.ImageUrl = str;
            XmlConfigurator.Configure();
            this.c_objUser = new DAO_User();
            string rawUrl = "";
            if (base.Request.RawUrl.IndexOf("?") > 0)
            {
                rawUrl = base.Request.RawUrl.Substring(0, base.Request.RawUrl.IndexOf("?"));
            }
            else
            {
                rawUrl = base.Request.RawUrl;
            }
            //  this.c_objUser.UserID=rawUrl.Substring(rawUrl.LastIndexOf("/") + 1, (rawUrl.LastIndexOf(".aspx") - rawUrl.LastIndexOf("/")) + 4);
            this.c_objUser.UserID = rawUrl.Substring(rawUrl.LastIndexOf("/") + 1, (rawUrl.LastIndexOf(".aspx") - rawUrl.LastIndexOf("/")) + 4);
            string[] strArray = base.Request.RawUrl.ToString().Split(new char[] { '?' });
            if ((strArray.Length > 1) && strArray[1].Equals("Menuflag=true"))
            {
                if (strArray[0].Contains("/AJAX Pages/Bill_Sys_OutScheduleReport.aspx"))
                {
                    this.c_objUser.UserID = "Bill_Sys_OutScheduleReport.aspx?Menuflag=true";
                }
                else
                {
                    this.c_objUser.UserID = "Bill_Sys_VerificationSent_PrintPOM.aspx";
                }
            }
            if (this.c_objUser.UserID == "Bill_Sys_ReferralBillTransaction.aspx")
            {
                this.c_objUser.UserID = "Bill_Sys_BillTransaction.aspx";
            }
            if (this.c_objUser.UserID == "Bill_Sys_ReferringDoctor.aspx")
            {
                this.c_objUser.UserID = "Bill_Sys_Doctor.aspx";
            }
            if (this.c_objUser.UserID == "Bill_Sys_ChangePasswordMaster.aspx")
            {
                this.c_objUser.UserID = "Bill_Sys_UserMaster.aspx";
            }
            if ((this.c_objUser.UserID == "Bill_Sys_BillSearch.aspx") && (base.Request.QueryString["fromCase"] != null))
            {
                this.c_objUser.UserID = "Bill_Sys_Notes.aspx";
            }
            if (this.c_objUser.UserID == "Bill_Sys_BillTransaction.aspx")
            {
                this.c_objUser.UserID = "Bill_Sys_Notes.aspx";
            }
            if ((this.c_objUser.UserID == "Bill_Sys_NewPaymentReport.aspx") && (base.Request.QueryString["fromCase"] != null))
            {
                this.c_objUser.UserID = "Bill_Sys_Notes.aspx";
            }
            if (this.c_objUser.UserID == "Bill_Sys_PaymentTransactions.aspx")
            {
                this.c_objUser.UserID = "Bill_Sys_Notes.aspx";
            }
            if (this.c_objUser.UserID.Contains("Bill_Sys_IM_"))
            {
                this.c_objUser.UserID = "Bill_Sys_IM_HistoryOfPresentIillness.aspx";
            }
            if (this.c_objUser.UserID.Contains("Bill_Sys_FUIM_"))
            {
                this.c_objUser.UserID = "Bill_Sys_FUIM_StartExamination.aspx";
            }
            if (this.c_objUser.UserID.Contains("Bill_Sys_AC_"))
            {
                this.c_objUser.UserID = "Bill_Sys_AC_AccuReEval.aspx";
            }
            if ((this.c_objUser.UserID == "Bill_Sys_MiscPaymentReport.aspx") && (base.Request.QueryString["fromCase"] != null))
            {
                this.c_objUser.UserID = "Bill_Sys_Notes.aspx";
            }
            if (this.c_objUser.UserID == "Bill_Sys_Misc_Payment.aspx")
            {
                this.c_objUser.UserID = "Bill_Sys_Notes.aspx";
            }
            if (this.c_objUser.UserID == "Bill_Sys_Invoice.aspx")
            {
                this.c_objUser.UserID = "Bill_Sys_Notes.aspx";
            }
            if (this.c_objUser.UserID == "Bill_Sys_PatientBillingSummary.aspx")
            {
                this.c_objUser.UserID = "Bill_Sys_Notes.aspx";
            }
            if (this.c_objUser.UserID == "Bill_Sys_Invoice_Report.aspx")
            {
                if (base.Request.QueryString["fromCase"] != "False")
                {
                    this.c_objUser.UserID = "Bill_Sys_Notes.aspx";
                }
                else
                {
                    this.c_objUser.UserID = "Bill_Sys_BillSearch.aspx";
                }
            }
            if (this.c_objUser.UserID == "TemplateManager.aspx")
            {
                if (base.Request.QueryString["fromCase"] == "true")
                {
                    this.c_objUser.UserID = "Bill_Sys_CheckOut.aspx";
                }
                else
                {
                    this.c_objUser.UserID = "Bill_Sys_Notes.aspx";
                }
            }
            if (this.c_objUser.UserID == "Bill_Sys_PatientSearch.aspx")
            {
                this.c_objUser.UserID = "Bill_Sys_CheckOut.aspx";
            }
            SpecialityPDFDAO ypdfdao = new SpecialityPDFDAO();
            if (base.Session["SPECIALITY_PDF_OBJECT"] != null)
            {
                ypdfdao = (SpecialityPDFDAO)base.Session["SPECIALITY_PDF_OBJECT"];
            }
            else
            {
                ypdfdao = null;
            }
            this.c_objUser.UserRoleID = ((Bill_Sys_UserObject)base.Session["USER_OBJECT"]).SZ_USER_ROLE;
            ArrayList list = new ArrayList();
            list.Add(rawUrl);
            new OptionMenu(this.c_objUser).Initialize(this.problue, (Bill_Sys_BillingCompanyObject)base.Session["BILLING_COMPANY_OBJECT"], (Bill_Sys_UserObject)base.Session["USER_OBJECT"], (Bill_Sys_SystemObject)base.Session["SYSTEM_OBJECT"], this.c_objUser, ypdfdao, list);
            this.problue.AllExpanded  = true;
            this.problue.AutoPostBack = false;
            if (((Bill_Sys_BillingCompanyObject)base.Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY)
            {
                //this.lnkCalendar.HRef = "AJAX Pages/Bill_Sys_AppointPatientEntry.aspx";
            }
            else
            {
                //this.lnkCalendar.HRef = "Bill_Sys_ScheduleEvent.aspx?TOp=true";
            }
            this.ShowAssignedLinks(this.c_objUser.UserRoleID);
            log.Debug("End Master Page_Load()");
            DataSet set = new DataSet();
            set = new Bill_Sys_ProcedureCode_BO().Get_Sys_Key("SS00040", ((Bill_Sys_BillingCompanyObject)base.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            if (((set.Tables.Count > 0) && (set.Tables[0].Rows.Count > 0)) && (set.Tables[0].Rows[0][0].ToString() == "0"))
            {
                this.lnkshedulevisits.Visible = false;
            }
        }
        catch (Exception exception)
        {
            log.Debug("Shared_MasterPage. Method - Page_Load : " + exception.Message.ToString());
            log.Debug("Shared_MasterPage. Method - Page_Load : " + exception.StackTrace.ToString());
            if (exception.InnerException != null)
            {
                log.Debug("Shared_MasterPage. Method - Page_Load : " + exception.InnerException.Message.ToString());
                log.Debug("Shared_MasterPage. Method - Page_Load : " + exception.InnerException.StackTrace.ToString());
            }
            Elmah.ErrorSignal.FromCurrentContext().Raise(exception);
            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());
        }
    }