示例#1
0
        public ActionResult ProgramEvaluatorStage22(ProgramEvaluator1ViewModel model, FormCollection fc)
        {
            try
            {
                Stage2Service Stage2           = new Stage2Service();
                Data.ProgramEvaluatorStage2 S2 = Stage2.GetByID(model.ID);

                S2.Question4  = model.Question4;
                S2.Question5  = model.Question5;
                S2.Question6  = model.Question6;
                S2.Question7  = model.Question7;
                S2.Question8  = model.Question8;
                S2.Question9  = model.Question9;
                S2.Question10 = model.Question10;
                S2.Question11 = model.Question11;

                Stage2.Save(S2);

                return(RedirectToAction("ProgramEvaluatorStage23", S2));
            }
            catch
            {
                return(View(model));
            }
        }
示例#2
0
        public ActionResult ProgramEvaluatorStage25(ProgramEvaluator1ViewModel model, FormCollection fc)
        {
            try
            {
                Stage2Service Stage2           = new Stage2Service();
                Data.ProgramEvaluatorStage2 S2 = Stage2.GetByID(model.ID);

                S2.Question19 = "%" + model.Question19 + "%";
                S2.Question20 = "Low: " + model.Question20Low + " Moderate: " + model.Question20Moderate + " High: " + model.Question20High;

                Stage2.Save(S2);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View(model));
            }
        }
示例#3
0
        public ActionResult ProgramEvaluatorStage24(ProgramEvaluator1ViewModel model, FormCollection fc)
        {
            try
            {
                Stage2Service Stage2           = new Stage2Service();
                Data.ProgramEvaluatorStage2 S2 = Stage2.GetByID(model.ID);

                S2.Question16 = fc["Question16"];

                int i = 1;
                foreach (AnswerModel item in model.Question17)
                {
                    if (fc.Get("Question17.AnswerCheck" + i) != "false")
                    {
                        S2.Question17 += item.Value + "; ";
                    }
                    i++;
                }
                if (fc["Question17Other"] != null)
                {
                    S2.Question17 += fc["Question17Other"];
                }


                if (fc["Question18"].Contains("Other"))
                {
                    S2.Question18 = "Other: " + fc["Question18Other"];
                }
                else
                {
                    S2.Question18 = fc["Question18"];
                }

                Stage2.Save(S2);

                return(RedirectToAction("ProgramEvaluatorStage25", S2));
            }
            catch
            {
                return(View(model));
            }
        }
示例#4
0
        public ActionResult ProgramEvaluatorStage23(ProgramEvaluator1ViewModel model, FormCollection fc)
        {
            try
            {
                Stage2Service Stage2           = new Stage2Service();
                Data.ProgramEvaluatorStage2 S2 = Stage2.GetByID(model.ID);

                S2.Question12 = fc["Question12"];
                S2.Question13 = fc["Question13"];

                if (fc["Question14"].Contains("Other"))
                {
                    S2.Question14 = "Other: " + fc["Question14Other"];
                }
                else
                {
                    S2.Question14 = fc["Question14"];
                }

                if (fc["Question15"].Contains("Other"))
                {
                    S2.Question15 = "Other: " + fc["Question15Other"];
                }
                else
                {
                    S2.Question15 = fc["Question15"];
                }

                Stage2.Save(S2);

                return(RedirectToAction("ProgramEvaluatorStage24", S2));
            }
            catch
            {
                return(View(model));
            }
        }
示例#5
0
        public ActionResult ProgramEvaluatorStage25(ProgramEvaluator1ViewModel model, FormCollection fc)
        {
            try
            {

                Stage2Service Stage2 = new Stage2Service();
                Data.ProgramEvaluatorStage2 S2 = Stage2.GetByID(model.ID);

                S2.Question19 = "%" + model.Question19 + "%";
                S2.Question20 = "Low: " + model.Question20Low + " Moderate: " + model.Question20Moderate + " High: " + model.Question20High;

                Stage2.Save(S2);

                return RedirectToAction("Index");
            }
            catch
            {
                return View(model);
            }
        }
示例#6
0
        public ActionResult ProgramEvaluatorStage24(ProgramEvaluator1ViewModel model, FormCollection fc)
        {
            try
            {

                Stage2Service Stage2 = new Stage2Service();
                Data.ProgramEvaluatorStage2 S2 = Stage2.GetByID(model.ID);

                S2.Question16 = fc["Question16"];

                int i = 1;
                foreach (AnswerModel item in model.Question17)
                {
                    if (fc.Get("Question17.AnswerCheck" + i) != "false")
                    {
                        S2.Question17 += item.Value + "; ";
                    }
                    i++;
                }
                if (fc["Question17Other"] != null)
                {
                    S2.Question17 += fc["Question17Other"];
                }

                if (fc["Question18"].Contains("Other"))
                    S2.Question18 = "Other: " + fc["Question18Other"];
                else S2.Question18 = fc["Question18"];

                Stage2.Save(S2);

                return RedirectToAction("ProgramEvaluatorStage25", S2);
            }
            catch
            {
                return View(model);
            }
        }
示例#7
0
        public ActionResult ProgramEvaluatorStage23(ProgramEvaluator1ViewModel model, FormCollection fc)
        {
            try
            {
                Stage2Service Stage2 = new Stage2Service();
                Data.ProgramEvaluatorStage2 S2 = Stage2.GetByID(model.ID);

                S2.Question12 = fc["Question12"];
                S2.Question13 = fc["Question13"];

                if (fc["Question14"].Contains("Other"))
                    S2.Question14 = "Other: " + fc["Question14Other"];
                else S2.Question14 = fc["Question14"];

                if (fc["Question15"].Contains("Other"))
                    S2.Question15 = "Other: " + fc["Question15Other"];
                else S2.Question15 = fc["Question15"];

                Stage2.Save(S2);

                return RedirectToAction("ProgramEvaluatorStage24", S2);
            }
            catch
            {
                return View(model);
            }
        }
示例#8
0
        public ActionResult ProgramEvaluatorStage22(ProgramEvaluator1ViewModel model, FormCollection fc)
        {
            try
            {
                Stage2Service Stage2 = new Stage2Service();
                Data.ProgramEvaluatorStage2 S2 = Stage2.GetByID(model.ID);

                S2.Question4 = model.Question4;
                S2.Question5 = model.Question5;
                S2.Question6 = model.Question6;
                S2.Question7 = model.Question7;
                S2.Question8 = model.Question8;
                S2.Question9 = model.Question9;
                S2.Question10 = model.Question10;
                S2.Question11 = model.Question11;

                Stage2.Save(S2);

                return RedirectToAction("ProgramEvaluatorStage23", S2);
            }
            catch
            {
                return View(model);
            }
        }