CreateEvaluationInventory.cshtml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "CreateEvaluationInventory";
  5. string schoolYear = ViewData["schoolYear"].ToString();
  6. }
  7. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  8. @using (Ajax.BeginForm(new AjaxOptions { Url = "/EvaluationSetting/CreateEvaluationInventory", OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  9. {
  10. <div class="p_title">
  11. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  12. 评价生成
  13. </div>
  14. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  15. </div>
  16. <div class="search_list popupWindowContent">
  17. <table cellpadding="0" cellspacing="0" id="teachersOrdertable">
  18. <tr>
  19. <td>学年学期:
  20. </td>
  21. <td>
  22. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolyearDropdown", Name = "SchoolyearDropdown", SelectedValue = schoolYear })
  23. </td>
  24. </tr>
  25. </table>
  26. </div>
  27. }
  28. </div>
  29. @section scripts{
  30. <script type="text/javascript">
  31. function EvaluationStudent_Save() {
  32. var schoolyearIDStr = $("#SchoolyearDropdown").combobox("getValue");
  33. if (schoolyearIDStr == "-1") {
  34. $.messager.alert("系统提示", "请选择要生成评价设定的学年学期!");
  35. return;
  36. }
  37. $(document.forms[0]).submit(); //提交表单
  38. // $.messager.confirm("系统提示", "您确定要生成评价设定信息?", function (r) {
  39. // if (r) {
  40. //
  41. // }
  42. // });
  43. }
  44. </script>
  45. }