Import.cshtml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. @model EMIS.ViewModel.ExaminationApply.StudentListView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Import";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/ScoreManage/ExaminationScoreImport.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. var nonSelect = "@DropdownList.SELECT_ALL";
  11. </script>
  12. }
  13. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  14. @using (Html.BeginForm("Import", "ExaminationScore", new{ MNU = Request["MNU"], WindowID = Request["WindowID"] }, FormMethod.Post, new { enctype = "multipart/form-data" }))
  15. {
  16. <div class="p_title">
  17. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Import")</div>
  18. </div>
  19. <div class="search_list">
  20. <table cellpadding="0" cellspacing="1">
  21. <tr>
  22. <td>
  23. <label>学年学期:</label>
  24. </td>
  25. <td>
  26. @Html.DropdownList(new DropdownListOptions
  27. {
  28. BindType = DropdownListBindType.SelectAll,
  29. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  30. ID = "ddlSchoolyear",
  31. Name = "ddlSchoolyear",
  32. OnSelect = "schoolyearChange",
  33. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  34. OnLoadSuccess = "schoolyearChange"
  35. },
  36. new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  37. </td>
  38. <td>
  39. <label>考试批次:</label>
  40. </td>
  41. <td>
  42. @Html.DropdownList(new DropdownListOptions
  43. {
  44. BindType = DropdownListBindType.SelectAll,
  45. ID = "ddlExaminationBatch",
  46. Name = "ddlExaminationBatch",
  47. OnSelect = "examinationBatchChange",
  48. OnLoadSuccess = "examinationBatchChange"
  49. },
  50. new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  51. </td>
  52. </tr>
  53. <tr>
  54. <td>
  55. <label>考试类型:</label>
  56. </td>
  57. <td>
  58. @Html.DropdownList(new DropdownListOptions
  59. {
  60. BindType = DropdownListBindType.SelectAll,
  61. ID = "ddlExaminationType",
  62. Name = "ddlExaminationType",
  63. OnSelect = "examinationTypeChange",
  64. OnLoadSuccess = "examinationTypeChange"
  65. },
  66. new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  67. </td>
  68. <td>
  69. <label>项目名称:</label>
  70. </td>
  71. <td>
  72. @Html.DropdownList(new DropdownListOptions
  73. {
  74. BindType = DropdownListBindType.SelectAll,
  75. ID = "ddlExaminationProject",
  76. Name = "ddlExaminationProject",
  77. //OnSelect = "reload",
  78. },
  79. new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  80. </td>
  81. </tr>
  82. <tr>
  83. <td>
  84. <label>
  85. 文件:
  86. </label>
  87. </td>
  88. <td colspan="3">
  89. <input type="file" name="file" accept="*.xls" value="" />
  90. </td>
  91. </tr>
  92. <tr>
  93. <td colspan="4" style="text-align: center;">
  94. <span id="error" style="display: none; color:red">
  95. &nbsp;&nbsp;
  96. <a style="color: Red;" href="@ViewBag.ErrorFile" target="_blank">
  97. @ViewBag.operationTips
  98. </a>
  99. </span>
  100. </td>
  101. </tr>
  102. </table>
  103. </div>
  104. }
  105. </div>