コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack)
            {
                return;
            }

            HtmlGenericControl lblServiceArea = (HtmlGenericControl)FindPatient.FindControl("lblServiceArea");

            lblServiceArea.InnerText = Request.QueryString["srvNm"];

            if (Convert.ToInt32(Session["Paperless"]) != 1)//waiting list is available only in paperless mode
            {
                btnWaitingList.Visible = false;
            }

            Session["HIVPatientStatus"]   = 0;
            Session["PMTCTPatientStatus"] = 0;
            //SetEnrollmentCombo();
            Session["PatientId"]           = 0;
            SessionManager.PatientId       = 0;
            Session["TechnicalAreaName"]   = Request.QueryString["srvNm"];
            Session["TechnicalAreaId"]     = Request.QueryString["mod"];
            base.Session["TechIdentifier"] = null;

            string urlParam = string.Format("../Queue/WaitingListView.aspx?srvNM={0}&mod={1}", Request.QueryString["srvNm"], Request.QueryString["mod"]);

            btnWaitingList.OnClientClick = string.Format("javascript:window.location='{0}'; return false;", urlParam);
        }
コード例 #2
0
 /// <summary>
 /// Handles the Load event of the Page control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         HtmlGenericControl lblServiceArea = (HtmlGenericControl)FindPatient.FindControl("lblServiceArea");
         lblServiceArea.InnerText = "Ward Admission";
         if (!this.CanAdmit)
         {
             Response.Redirect("~/Admission/frmAdmissionHome.aspx", true);
             Response.End();
         }
     }
 }
コード例 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["AppLocation"] == null || Session.Count == 0 || Session["AppUserID"].ToString() == "")
            {
                IQCareMsgBox.Show("SessionExpired", this);
                Response.Redirect("~/frmlogin.aspx", true);
            }
            if (IsPostBack)
            {
                return;
            }

            HtmlGenericControl lblServiceArea = (HtmlGenericControl)FindPatient.FindControl("lblServiceArea");

            lblServiceArea.InnerText = Request.QueryString["srvNm"];


            Session["HIVPatientStatus"]   = 0;
            Session["PMTCTPatientStatus"] = 0;
            //SetEnrollmentCombo();
            Session["PatientId"]         = 0;
            Session["TechnicalAreaName"] = Request.QueryString["srvNm"];
            Session["TechnicalAreaId"]   = Request.QueryString["mod"];
        }
コード例 #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["AppLocation"] == null || Session.Count == 0 || Session["AppUserID"].ToString() == "")
            {
                IQCareMsgBox.Show("SessionExpired", this);
                Response.Redirect("~/frmlogin.aspx", true);
            }
            if (IsPostBack)
            {
                return;
            }

            try
            {
                HtmlGenericControl lblServiceArea = (HtmlGenericControl)FindPatient.FindControl("lblServiceArea");
                lblServiceArea.InnerText = Request.QueryString["srvNm"];

                if (Convert.ToInt32(Session["Paperless"]) != 1)//waiting list is available only in paperless mode
                {
                    btnWaitingList.Visible = false;
                }

                Session["HIVPatientStatus"]   = 0;
                Session["PMTCTPatientStatus"] = 0;
                //SetEnrollmentCombo();
                Session["PatientId"]         = 0;
                Session["TechnicalAreaName"] = Request.QueryString["srvNm"];
                Session["TechnicalAreaId"]   = Request.QueryString["mod"];
                string urlParam = String.Format("openWaitingList('./frmWaitingList.aspx?mod={0}');return false;", Session["TechnicalAreaId"]);

                btnWaitingList.OnClientClick = urlParam;
                if (Request.QueryString["srvNm"] == "Pharmacy Dispense") //&& Request.QueryString["mod"] == "206"
                {
                    ((Button)FindPatient.FindControl("btnAdd")).Enabled = false;
                    (FindPatient.FindControl("ddCareEndedStatus") as DropDownList).Visible        = false;
                    (FindPatient.FindControl("lblCareendedstatus") as HtmlGenericControl).Visible = false;
                    (Master.FindControl("levelTwoNavigationUserControl1").FindControl("UserControl_Alerts1") as UserControl).Visible = false;
                    (Master.FindControl("levelTwoNavigationUserControl1").FindControl("PanelPatiInfo") as Panel).Visible             = false;
                    //(Master.FindControl("patientBanner") as Control).Visible = false;
                    (Master.FindControl("level2Navigation") as Control).Visible = false;
                    //(Master.FindControl("imageFlipLevel2") as Control).Visible = false;
                }
            }
            catch (Exception ex)
            {
                CLogger.WriteLog(ELogLevel.ERROR, ex.ToString());
                if (Session["PatientId"] == null || Convert.ToInt32(Session["PatientId"]) != 0)
                {
                    IQCareMsgBox.NotifyAction("Application has an issue, Please contact Administrator!", "Application Error", true, this, "window.location.href='../frmFindAddCustom.aspx?srvNm=" + Session["TechnicalAreaName"] + "&mod=0'");
                    //Response.Write("<script>alert('Application has an issue, Please contact Administrator!') ; window.location.href='../frmFindAddCustom.aspx?srvNm=" + Session["TechnicalAreaName"] + "&mod=0'</script>");
                }
                else
                {
                    if (Session["TechnicalAreaId"] != null || Convert.ToInt16(Session["TechnicalAreaId"]) != 0)
                    {
                        IQCareMsgBox.NotifyAction("Application has an issue, Please contact Administrator!", "Application Error", true, this, "window.location.href='../frmFacilityHome.aspx';");
                        //Response.Write("<script>alert('Application has an issue, Please contact Administrator!') ; window.location.href='../frmFacilityHome.aspx'</script>");
                    }
                    else
                    {
                        IQCareMsgBox.NotifyAction("Application has an issue, Please contact Administrator!", "Application Error", true, this, "window.location.href='../frmLogin.aspx';");
                        //Response.Write("<script>alert('Application has an issue, Please contact Administrator!') ; window.location.href='../frmLogin.aspx'</script>");
                    }
                }
                ex = null;
            }
        }