Пример #1
0
        public void loadSignature()
        {
            switch ((this.Page.Master.FindControl("levelTwoNavigationUserControl1").FindControl("lblformname") as Label).Text)
            {
            case "Express":
                this.UserControlKNH_SignaturePwP.lblSignature.Text = PwPManager.GetSignature("PwP", Convert.ToInt32(Session["PatientVisitId"]));
                break;

            case "Paediatric Initial Evaluation":
                this.UserControlKNH_SignaturePwP.lblSignature.Text = PwPManager.GetSignature("PaediatricIEPwP", Convert.ToInt32(Session["PatientVisitId"]));
                break;

            case "Paediatric Follow Up":
                this.UserControlKNH_SignaturePwP.lblSignature.Text = PwPManager.GetSignature("PaedFUPwP", Convert.ToInt32(Session["PatientVisitId"]));
                break;

            case "Adult Initial Evaluation":
                this.UserControlKNH_SignaturePwP.lblSignature.Text = PwPManager.GetSignature("AdultIEPwP", Convert.ToInt32(Session["PatientVisitId"]));
                break;

            case "Adult Follow Up":
                this.UserControlKNH_SignaturePwP.lblSignature.Text = PwPManager.GetSignature("AdultFUPwP", Convert.ToInt32(Session["PatientVisitId"]));
                break;
            }


            //if ((this.Page.Master.FindControl("levelTwoNavigationUserControl1").FindControl("lblformname") as Label).Text == "Express")
            //    this.UserControlKNH_SignaturePwP.lblSignature.Text = PwPManager.GetSignature("PwP", Convert.ToInt32(Session["PatientVisitId"]));
            //else if ((this.Page.Master.FindControl("levelTwoNavigationUserControl1").FindControl("lblformname") as Label).Text == "Paediatric Initial Evaluation")
            //    this.UserControlKNH_SignaturePwP.lblSignature.Text = PwPManager.GetSignature("PaediatricIEPwP", Convert.ToInt32(Session["PatientVisitId"]));
            //else if ((this.Page.Master.FindControl("levelTwoNavigationUserControl1").FindControl("lblformname") as Label).Text == "Paediatric Follow Up")
            //    this.UserControlKNH_SignaturePwP.lblSignature.Text = PwPManager.GetSignature("PaedFUPwP", Convert.ToInt32(Session["PatientVisitId"]));
            //else if ((this.Page.Master.FindControl("levelTwoNavigationUserControl1").FindControl("lblformname") as Label).Text == "Adult Initial Evaluation")
            //    this.UserControlKNH_SignaturePwP.lblSignature.Text = PwPManager.GetSignature("AdultIEPwP", Convert.ToInt32(Session["PatientVisitId"]));
            //else if ((this.Page.Master.FindControl("levelTwoNavigationUserControl1").FindControl("lblformname") as Label).Text == "Adult Follow Up")
            //    this.UserControlKNH_SignaturePwP.lblSignature.Text = PwPManager.GetSignature("AdultFUPwP", Convert.ToInt32(Session["PatientVisitId"]));
        }