123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- Guid finalExaminationID = new Guid(Request["finalExaminationID"]);
- Guid scoreFormulaID = new Guid(Request["scoreFormulaID"]);
- Guid creditFormulaID = new Guid(Request["creditFormulaID"]);
- Guid gradePointFormulaID = new Guid(Request["gradePointFormulaID"]);
- string errorFile = Request["errorFile"];
- ViewBag.Title = "Import";
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Html.BeginForm("GTImport", "Score", new { MNU = Request["MNU"], WindowID = Request["WindowID"] }, FormMethod.Post, new { enctype = "multipart/form-data" }))
- {
- @Html.Hidden("hid_FinalExaminationID", finalExaminationID)
- @Html.Hidden("hid_ScoreFormulaID", scoreFormulaID)
- @Html.Hidden("hid_CreditFormulaID", creditFormulaID)
- @Html.Hidden("hid_GradePointFormulaID", gradePointFormulaID)
- @Html.Hidden("hid_State", 1)
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 学生成绩导入</div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("GTImport")</div>
- </div>
- <div class="search_list">
- <table cellpadding="0" cellspacing="1">
- <tr>
- <td>
- <label>
- 导入文件:</label>
- </td>
- <td>
- <input type="file" name="file" id="file" accept="*.xls" value=" " />
- </td>
- </tr>
- <tr>
- <td colspan="2" style="text-align: center;">
- @if (!string.IsNullOrEmpty(errorFile))
- {
- <span id="error"> <a href="@errorFile" target="_blank" style=" color:Red;">错误数据下载</a></span>
- }
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
- <script type="text/javascript">
- function Score_ExcelImport() {
- var obj = $("#file").val();
- $("#hid_State").val("2");
- if (obj == "") {
- $.messager.alert("系统提示", "请选择您要导入的文件。");
- return;
- }
- $(document.forms[0]).submit();
- }
- function Score_ExcelExport() {
- $("#hid_State").val("1");
- var finalExaminationID = $("#hid_FinalExaminationID").val();
- $(document.forms[0]).submit();
- }
- $(function () {
- var errorFile = '@ViewBag.ErrorFile';
- if (errorFile != '') {
- $('#error').show();
- }
- });
- </script>
|