PicImport.cshtml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. @using EMIS.Web.Controls;
  2. @using Bowin.Web.Controls.Mvc;
  3. @{
  4. ViewBag.Title = "PicImport";
  5. }
  6. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  7. @using (Html.BeginForm("PicImport", "Staff", new
  8. {
  9. MNU = Request["MNU"],
  10. WindowID = Request["WindowID"]
  11. }, FormMethod.Post, new { enctype = "multipart/form-data" }))
  12. {
  13. <div class="p_title">
  14. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  15. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("PicImport")</div>
  16. </div>
  17. @Html.Hidden("importPicType")
  18. <div class="search_list">
  19. <table cellpadding="0" cellspacing="1">
  20. <tr>
  21. <td style="text-align:right;width:65px;">
  22. <label style="color:red;">
  23. 命名方式:
  24. </label>
  25. </td>
  26. <td style="text-align:left;width:65px;height:35px;">
  27. @Html.RadioButton("PicType", "StaffCode", true)<label>教职工号</label>
  28. </td>
  29. <td style="text-align:left;width:65px;height:35px;">
  30. @Html.RadioButton("PicType", "IDNumber")<label>证件号码</label>
  31. </td>
  32. </tr>
  33. <tr>
  34. <td style="text-align:right;width:65px;height:35px;">
  35. <label>
  36. 导入文件:
  37. </label>
  38. </td>
  39. <td colspan="2">
  40. <input type="file" name="file" accept="*.zip;*.rar;" value=" " />
  41. </td>
  42. </tr>
  43. <tr>
  44. <td colspan="3" style="text-align: center; color: Red;">
  45. @EMIS.Resources.Strings.STAFF_PICIMPORT_TIPS
  46. </td>
  47. </tr>
  48. </table>
  49. </div>
  50. }
  51. </div>
  52. <script>
  53. function Staff_PicImportSave() {
  54. var picTypeValue = $("input[name='PicType']:checked").val();
  55. if (picTypeValue == null || picTypeValue == "" || picTypeValue == undefined) {
  56. $.messager.alert("系统提示", "请选择照片命名方式。");
  57. return;
  58. }
  59. var filepath = $("input[name='file']").val();
  60. if (filepath == "") {
  61. $.messager.alert("系统提示", "请选择你要上传的照片。");
  62. return;
  63. }
  64. $("#importPicType").val(picTypeValue);
  65. $(document.forms[0]).submitWithLoading();
  66. }
  67. </script>