Exemple #1
0
        public void usePEFUForm()
        {
            DataTable FURuleFormRules = new DataTable();
            IQCareUtils theUtils = new IQCareUtils();
            //KNHStatic = (IKNHStaticForms)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BKNHStaticForms, BusinessProcess.Clinical");
            FURuleFormRules = KNHStatic.GetPatientFeatures(Convert.ToInt32(Session["PatientId"]));
            DataView theCodeDV = new DataView(FURuleFormRules);
            //theCodeDV.RowFilter = "VisitType=25";
            DataTable theDT = (DataTable)theUtils.CreateTableFromDataView(theCodeDV);
            if (theDT.Rows.Count == 0)
            {
                string script = "alert('Adult Follow up Form cannot be saved before Adult Initial Evaluation Form. Please save Initial Evaluation form. Redirecting...');";
                script += "window.location.replace('frmClinical_KNH_AdultIE.aspx');";
                Page.ClientScript.RegisterStartupScript(this.GetType(), "2FirstVisits", script, true);
                return;

            }
        }