1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "GraPicImport";
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Html.BeginForm("GraPicImport", "Student", new
- {
- MNU = Request["MNU"],
- WindowID = Request["WindowID"]
- }, FormMethod.Post, new { enctype = "multipart/form-data" }))
- {
- <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("GraPicImport")</div>
- </div>
- @Html.Hidden("importGraPicType")
- <div class="search_list">
- <table cellpadding="0" cellspacing="1">
- <tr>
- <td style="text-align:right;width:65px;">
- <label style="color:red;">
- 命名方式:
- </label>
- </td>
- <td style="text-align:left;width:65px;height:35px;">
- @Html.RadioButton("GraPicType", "StudentNo", true)<label>学号</label>
- </td>
- <td style="text-align:left;width:65px;height:35px;">
- @Html.RadioButton("GraPicType", "ExamineeNum")<label>考生号</label>
- </td>
- <td style="text-align:left;width:65px;height:35px;">
- @Html.RadioButton("GraPicType", "IDNumber")<label>证件号码</label>
- </td>
- </tr>
- <tr>
- <td style="text-align:right;width:65px;height:35px;">
- <label>
- 导入文件:
- </label>
- </td>
- <td colspan="3">
- <input type="file" name="file" accept="*.zip;*.rar;" value=" " />
- </td>
- </tr>
- <tr>
- <td colspan="4" style="text-align: center;">
- <span style="color: Red">
- @EMIS.Resources.Strings.STUDENT_GRAPICIMPORT_TIPS
- </span>
- </td>
- </tr>
- <tr>
- <td colspan="4" style="text-align: center;">
- <span id="error" style="display: none;">
- <a style="color: Red;font-weight:bolder;" href="@ViewBag.ErrorFile" target="_blank">
- @ViewBag.operationTips
- </a>
- </span>
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
- <script>
- $(function () {
- var errorFile = '@ViewBag.ErrorFile';
- if (errorFile != '') {
- $('#error').show();
- }
- });
- //导入保存
- function Student_GraPicImportSave() {
- var graPicTypeValue = $("input[name='GraPicType']:checked").val();
- if (graPicTypeValue == null || graPicTypeValue == "" || graPicTypeValue == undefined) {
- $.messager.alert("系统提示", "请选择学历照片命名方式。");
- return;
- }
- var filepath = $("input[name='file']").val();
- if (filepath == "") {
- $.messager.alert("系统提示", "请选择你要上传的学历照片。");
- return;
- }
- $("#importGraPicType").val(graPicTypeValue);
- $(document.forms[0]).submitWithLoading();
- }
- </script>
|