1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "PicImport";
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Html.BeginForm("PicImport", "NewStudentEnter", 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("PicImport")</div>
- </div>
- @Html.Hidden("importPicType")
- <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("PicType", "ExamineeNum", true)<label>考生号</label>
- </td>
- <td style="text-align:left;width:65px;height:35px;">
- @Html.RadioButton("PicType", "IDNumber")<label>证件号码</label>
- </td>
- <td style="text-align:left;width:65px;height:35px;">
- @Html.RadioButton("PicType", "StudentNo")<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.NEWSTUDENT_PICIMPORT_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 NewStudentEnter_PicImportSave() {
- var picTypeValue = $("input[name='PicType']:checked").val();
- if (picTypeValue == null || picTypeValue == "" || picTypeValue == undefined) {
- $.messager.alert("系统提示", "请选择照片命名方式。");
- return;
- }
- var filepath = $("input[name='file']").val();
- if (filepath == "") {
- $.messager.alert("系统提示", "请选择你要上传的照片。");
- return;
- }
- $("#importPicType").val(picTypeValue);
- $(document.forms[0]).submitWithLoading();
- }
- </script>
|