12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- @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", "Staff", 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", "StaffCode", true)<label>教职工号</label>
- </td>
- <td style="text-align:left;width:65px;height:35px;">
- @Html.RadioButton("PicType", "IDNumber")<label>证件号码</label>
- </td>
- </tr>
- <tr>
- <td style="text-align:right;width:65px;height:35px;">
- <label>
- 导入文件:
- </label>
- </td>
- <td colspan="2">
- <input type="file" name="file" accept="*.zip;*.rar;" value=" " />
- </td>
- </tr>
- <tr>
- <td colspan="3" style="text-align: center; color: Red;">
- @EMIS.Resources.Strings.STAFF_PICIMPORT_TIPS
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
- <script>
- function Staff_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>
|