Edit.cshtml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. @model EMIS.ViewModel.ScoreManage.CreditFormulaView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. }
  7. @section scripts{
  8. <script type="text/javascript">
  9. function CreditFormula_Save() {
  10. $(document.forms[0]).submit();
  11. }
  12. </script>
  13. }
  14. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  15. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  16. {
  17. <div class="p_title">
  18. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  19. 成绩公式设置信息</div>
  20. @if (Request["isView"] != "1")
  21. {
  22. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  23. }
  24. </div>
  25. <div class="search_list">
  26. @Html.HiddenFor(x => x.CreditFormulaID)
  27. <table cellpadding="0" cellspacing="0" id="buildingstable">
  28. <tr>
  29. <td><label>学分公式名称:</label></td>
  30. <td>
  31. @Html.TextBoxFor(x => x.Name)
  32. </td>
  33. <td><label>分数:</label></td>
  34. <td>
  35. @Html.TextBoxFor(x => x.Scores)
  36. </td>
  37. </tr>
  38. </table>
  39. </div>
  40. }
  41. </div>