Пример #1
0
 public ActionResult InputDataSave(VWindWave m)
 {
     var d = GetDbModel();
     d.Ug = (double) m.WindSpeed;
     d.Zg = (double)m.ReferenceHeight;
     d.Zhub = (double)m.TurbineHubHeight;
     d.Td = (double)m.TurbineDiameter;
     d.Ef = (double)m.TurbineEfficiency;
     d.Cw = (double)m.WaveSpeed;
     SetDbModel(d);
     if (Request.IsAjaxRequest()) return Json("OK");
     return View(m);
 }
Пример #2
0
 public ActionResult InputData()
 {
     ViewBag.Title = "Input Data | Wind Wave | Offwind";
     var m = new VWindWave();
     var d = GetDbModel();
     m.WindSpeed = (decimal) d.Ug;
     m.ReferenceHeight = (decimal)d.Zg;
     m.TurbineHubHeight = (decimal)d.Zhub;
     m.TurbineDiameter = (decimal)d.Td;
     m.TurbineEfficiency = (decimal)d.Ef;
     m.WaveSpeed = (decimal)d.Cw;
     return View(m);
 }