Example #1
0
        //public class MedicalCondition
        //{
        //    public string Code { get; set; }
        //    public string Tilte { get; set; }
        //    public string CategoryCode { get; set; }
        //}

        //private static List<MedicalCondition> MedicalConditionsList;

        //private static List<MedicalCondition> GetList()
        //{
        //    if (MedicalConditionsList == null)
        //    {
        //        MedicalConditionsList = new List<MedicalCondition>();
        //        var list = MedicalConditionsList;



        //    }
        //    return MedicalConditionsList;
        //}


        //private List<MedicalCondition> CreateMedicalConditionsList()
        //{
        //    var list = new List<MedicalCondition>();


        //    //list.Add(new MedicalCondition() { Code = "", Tilte = "", CategoryCode = "" });

        //}


        public static MvcHtmlString MedicalCheckBox(string title, string sectionTitle)
        {
            string id          = FWHtml.CreateSafeIDForTitle(title);
            string modelPrefix = "model.Condition.";

            return(CheckBox(modelPrefix, id, title));
        }
Example #2
0
        public static MvcHtmlString ImmunizationCheckBox(string title, string sectionTitle)
        {
            string id          = FWHtml.CreateSafeIDForTitle(title);
            string modelPrefix = "model.Immunization.";

            return(FWHtml.CheckBox(modelPrefix, id, title));
        }
Example #3
0
        public static MvcHtmlString GetAccordionSectionHeader(string sectionTitle)
        {
            string id = FWHtml.CreateSafeIDForTitle(sectionTitle);

            StringBuilder sb = new StringBuilder();

            sb.Append("<div class=\"panel panel-default\">");
            sb.Append("	<div class=\"panel-heading\">");
            sb.Append("		<h4 class=\"panel-title\">");
            //sb.Append("			<a href=\"javascript:CollapsePanel('" + id + "')\" >");
            sb.Append("				").Append(sectionTitle);
            //sb.Append("			</a>");
            sb.Append("		</h4>");
            sb.Append("	</div>");
            sb.Append("	<div id=\"collapse" + id + "\" class=\"panel-collapse collapse in\">");
            sb.Append("		<div class=\"panel-body\">");
            //sb.Append("<div class=\"form-group\">");


            return(new MvcHtmlString(sb.ToString()));
        }
Example #4
0
        /// <summary>
        /// Gets section header for doctor's review form
        /// </summary>
        /// <param name="modelPrefix">model prefix</param>
        /// <param name="sectionId">section id</param>
        /// <param name="sectionTitle">section title</param>
        /// <returns></returns>
        public static MvcHtmlString GetSectionHeader(string modelPrefix, string sectionId, string sectionTitle)
        {
            string checkedYesText = "Applicable";
            string checkedNoText  = "Not Applicable";

            StringBuilder sb = new StringBuilder();

            sb.Append("<div class=\"row info-panel-heading\">");
            sb.Append("    <div class=\"col-md-8\">");
            sb.Append("        <label>").Append(sectionTitle).Append("</label>");
            sb.Append("    </div>");
            sb.Append("    <div class=\"col-md-4\">");
            sb.Append("        <div class=\"form-group\">");
            sb.Append(FWHtml.YesNoRadios(modelPrefix, sectionId, false, checkedYesText, checkedNoText));
            sb.Append("        </div>");
            sb.Append("    </div>");
            sb.Append("</div>");
            sb.Append("<div>");
            sb.Append("    <div ng-hide=\"(").Append(modelPrefix).Append(sectionId).Append(" === undefined) || (").Append(modelPrefix).Append(sectionId).Append(" === false)\">");

            return(new MvcHtmlString(sb.ToString()));
        }