Esempio n. 1
0
        public ActionResult LinearMotorsWorksheet(LinearMotorsWorksheet vm)
        {
            if (ModelState.IsValid)
            {
                string st = "<strong>Positioning Stage</strong><br><br>";
                st += "From: " + vm.FullName + "<br>";
                st += "Company: " + vm.Company + "<br>";
                st += "Phone: " + vm.Phone + "<br>";
                st += "Email: " + vm.Email + "<br><br>";
                st += "What force is required?  " + vm.Quest1 + " " + vm.Quest1ddl + "<br>";
                st += "What is the weight of your payload? " + vm.Quest2 + " " + vm.Quest2ddl + "<br>";
                st += "What is the required acceleration? " + vm.Quest3 + "[g's]<br>";
                st += "What is the time required to complete the travel? " + vm.Quest4 + "[sec]<br>";
                st += "What is the total required travel? " + vm.Quest5 + " " + vm.Quest5ddl + "<br>";
                st += "What is the duty cycle for force or acceleration required? " + vm.Quest6 + "[%]<br>";
                st += "What is the required velocity? " + vm.Quest7 + " " + vm.Quest7ddl + "<br>";
                st += "Open or closed loop operation? " + vm.Quest8 + "<br>";
                st += "Horizontal or vertical orientation? " + vm.Quest12 + "<br>";
                st += "Does your motor require bearings? " + vm.Quest9 + "<br>";
                st += "What are the ambient conditions of the application? " + vm.Quest10 + "<br>";
                st += "What is the available power source? " + vm.Quest11 + " " + vm.Quest11ddl + "<br>";
                st += "Comments: " + vm.Comments + "<br>";

                Utility.SendFormEmail(st);

                return RedirectToAction("ThankYou");
            }
            else
            {
                return RedirectToAction("Index", "Home");
            }
        }
Esempio n. 2
0
 public ActionResult LinearMotorsWorksheet()
 {
     LinearMotorsWorksheet vm = new LinearMotorsWorksheet();
     return View(vm);
 }