Edit.cshtml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMISOnline.Entities;
  3. @using EMISOnline.Web.Controls;
  4. @model EMISOnline.Entities.ER_ScoreRule
  5. @{
  6. ViewBag.Title = "Edit";
  7. }
  8. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  9. @Html.Position()
  10. <div class="p_SearchTitle">
  11. </div>
  12. <div class="p_title">
  13. <div style="float: left; margin-left: 10px; color: #333; line-height: 35px; font-size: 12px;">
  14. 计分规则</div>
  15. <div style="margin-right: 10px; float: right; line-height: 30px; font-size: 12px;">
  16. @Html.Button(new ButtonOptions() { ID = "btnSave", Text = "保 存" })
  17. </div>
  18. </div>
  19. @using (Ajax.BeginForm(new AjaxOptions
  20. {
  21. OnSuccess = "EMISFunction.FormSuccess",
  22. OnBegin = "EMISFunction.FormSubmit",
  23. OnComplete = "EMISFunction.FormComplete",
  24. }))
  25. {
  26. @Html.HiddenFor(model => model.ScoreRuleID)
  27. <div class="gobal-from">
  28. <table cellpadding="0" cellspacing="0">
  29. <tr>
  30. <th>
  31. 登录最高分:
  32. </th>
  33. <td>
  34. @Html.TextBoxFor(model => model.LoginMax, new TextBoxOptions { IsRequired = true })
  35. </td>
  36. <th>
  37. 每次登录分:
  38. </th>
  39. <td>
  40. @Html.TextBoxFor(model => model.LoginEachTime, new TextBoxOptions { Required = true })
  41. </td>
  42. </tr>
  43. <tr>
  44. <th>
  45. 课件学习最高分:
  46. </th>
  47. <td>
  48. @Html.TextBoxFor(model => model.CoursewareMax, new TextBoxOptions { Required = true })
  49. </td>
  50. <th>
  51. 课件连续学习分钟数:
  52. </th>
  53. <td>
  54. @Html.TextBoxFor(model => model.CoursewareContinueMinite, new TextBoxOptions { Required = true })
  55. </td>
  56. </tr>
  57. <tr>
  58. <th>
  59. 课件连续学习得分:
  60. </th>
  61. <td>
  62. @Html.TextBoxFor(model => model.CoursewareEachTime, new TextBoxOptions { Required = true })
  63. </td>
  64. <th>
  65. 作业最高分:
  66. </th>
  67. <td>
  68. @Html.TextBoxFor(model => model.HomeworkMax, new TextBoxOptions { Required = true })
  69. </td>
  70. </tr>
  71. <tr>
  72. <th>
  73. 教师评分:
  74. </th>
  75. <td colspan="3">
  76. @Html.TextBoxFor(model => model.TeacherScore, new TextBoxOptions { Required = true })
  77. </td>
  78. </tr>
  79. </table>
  80. </div>
  81. }
  82. </div>
  83. <script type="text/javascript">
  84. $(function () {
  85. $('#btnSave').click(function () {
  86. $(document.forms[0]).submit();
  87. })
  88. });
  89. </script>