Ejemplo n.º 1
0
        protected void BtnBack_Click(object sender, EventArgs e)
        {
            //Response.Redirect("frmLaboratoryTouch.aspx?patientId=" + Request.QueryString["PatientID"].ToString());

            ScriptManager.RegisterStartupScript(Page, Page.GetType(), "loadpharm", "parent.ShowLoading()", true);
            Session["IsFirstLoad"] = "true";
            Page        mp  = (Page)this.Parent.Page;
            PlaceHolder ph  = (PlaceHolder)mp.FindControl("phForms");
            UpdatePanel upt = (UpdatePanel)mp.FindControl("updtForms");

            Session["CurrentFormName"] = "frmLaboratoryTouch";

            Touch.Custom_Forms.frmLaboratoryTouch fr = (frmLaboratoryTouch)mp.LoadControl("~/Touch/Custom Forms/frmLaboratoryTouch.ascx");

            fr.ID = "ID" + Session["CurrentFormName"].ToString();
            frmLaboratoryTouch theFrm = (frmLaboratoryTouch)ph.FindControl("ID" + Session["CurrentFormName"].ToString());

            foreach (Control item in ph.Controls)
            {
                ph.Controls.Remove(item);
                //item.Visible = false;
            }

            if (theFrm != null)
            {
                theFrm.Visible = true;
            }
            else
            {
                ph.Controls.Add(fr);
            }
            ph.DataBind();
            upt.Update();
            mp.ClientScript.RegisterStartupScript(mp.GetType(), "settabschild", "setTabs();");
        }
Ejemplo n.º 2
0
        protected void LabSummaryPage()
        {
            Session["IsFirstLoad"] = "true";
            Page        mp  = (Page)this.Parent.Page;
            PlaceHolder ph  = (PlaceHolder)mp.FindControl("phForms");
            UpdatePanel upt = (UpdatePanel)mp.FindControl("updtForms");

            Session["CurrentFormName"] = "frmLaboratoryTouch";

            Touch.Custom_Forms.frmLaboratoryTouch fr = (frmLaboratoryTouch)mp.LoadControl("~/Touch/Custom Forms/frmLaboratoryTouch.ascx");

            fr.ID = "ID" + Session["CurrentFormName"].ToString();
            frmLaboratoryTouch theFrm = (frmLaboratoryTouch)ph.FindControl("ID" + Session["CurrentFormName"].ToString());

            foreach (Control item in ph.Controls)
            {
                ph.Controls.Remove(item);
                //item.Visible = false;
            }

            if (theFrm != null)
            {
                theFrm.Visible = true;
            }
            else
            {
                ph.Controls.Add(fr);
            }
            ph.DataBind();
            upt.Update();
            mp.ClientScript.RegisterStartupScript(mp.GetType(), "settabschild", "setTabs();");
        }
Ejemplo n.º 3
0
        protected void btnGotoLab_Click(object sender, EventArgs e)
        {
            Session["FormIsLoaded"]    = null;
            Session["CurrentFormName"] = "frmLaboratoryTouch";
            Session["IsFirstLoad"]     = "true";
            //phForms.Controls.Clear();
            //phForms.EnableViewState = true;
            Touch.Custom_Forms.frmLaboratoryTouch fr = (frmLaboratoryTouch)Page.LoadControl("frmLaboratoryTouch.ascx");
            fr.ID = "ID" + Session["CurrentFormName"].ToString();
            foreach (Control item in phForms.Controls)
            {
                phForms.Controls.Remove(item);
                //item.Visible = false;
            }
            frmLaboratoryTouch theFrm = (frmLaboratoryTouch)phForms.FindControl("ID" + Session["CurrentFormName"].ToString());

            if (theFrm != null)
            {
                theFrm.Visible = true;
            }
            else
            {
                phForms.Controls.Add(fr);
            }

            phForms.DataBind();
            updtForms.Update();
            RadScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "settabs", "setTabs();", true);
        }