dda7d4a16ed7b591d61f3aa831dd4165da9c60b5.svn-base 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title></title>
  7. <%@include file="../../../../include.jsp"%>
  8. <style type="text/css">
  9. input{
  10. cursor: pointer;
  11. }
  12. </style>
  13. <script type="text/javascript">
  14. var fd_id = "<%=request.getParameter("fd_id")%>";
  15. //取得用户真实名字
  16. var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
  17. //部门id
  18. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  19. //返回主页面
  20. function goBack() {
  21. //获取iframe中的元素值
  22. var iframe =parent.parent.document.getElementsByName("frmright")[0];
  23. iframe.src = "/nwyj/page/business/gps/taskManagement/taskManagement.jsp";
  24. }
  25. function formReset(){
  26. window.location.href="/nwyj/page/business/gps/taskManagement/gpsTaskMsg/gpsUserMsgEdit.jsp?fd_id="+fd_id;
  27. }
  28. $(function(){
  29. $("#FD_TASK_612").val(fd_id);
  30. $("#INPUT_NAME_612").val(realName);
  31. $("#INPUT_TIME_612").val(getDateTime());
  32. $("#INPUT_UNIT_612").val(deptId);
  33. $("#downloadUserModel").bind('click',function(){
  34. window.open("/nwyj/excels/BGDyonghu.xls");
  35. })
  36. })
  37. //获得当前系统时间
  38. function getDateTime(){
  39. var s="";
  40. var d = allGetServerTime();
  41. var vYear = d.getFullYear();
  42. var vMon = d.getMonth() + 1;
  43. var vDay = d.getDate();
  44. var h = d.getHours();
  45. var m = d.getMinutes();
  46. var se = d.getSeconds();
  47. s=vYear+"-"+(vMon<10 ? "0" + vMon : vMon)+"-"+(vDay<10 ? "0"+ vDay : vDay)+" "+(h<10 ? "0"+ h : h)+":"+(m<10 ? "0" + m : m)+":"+(se<10 ? "0" +se : se);
  48. return s;
  49. }
  50. </script>
  51. <script type="text/javascript" src="<%=path%>/scripts/business/gps/taskManagement/gpsTaskMsg/gpsUserMsgEdit.js"></script>
  52. <script type="text/javascript" src="/nwyj/scripts/business/gps/taskManagement/setIframeHeight.js"></script>
  53. </head>
  54. <body>
  55. <div class="box1" id="formContent" style="border: 1px solid #E4E4E4;background: #F8F8F8;">
  56. <div style="height: 50px;background: #F8F8F8;" align="center"><a href="javascript:;"><img align="left" alt="返回" src="/nwyj/images/temp/back.png" onclick="goBack();"></img></a><font style="font-weight: bold;font-size: 20px;line-height: 45px;" id="titleShow">保供电用户信息</font></div>
  57. <form id="editForm" method="post" enctype="multipart/form-data">
  58. <input type="hidden" name="classid" value="630" required="true" />
  59. <input type="hidden" name="FD_TASK_612" id="FD_TASK_612" required="true" />
  60. <input type="hidden" name="INPUT_NAME_612" id="INPUT_NAME_612" required="true" />
  61. <input type="hidden" name="INPUT_TIME_612" id="INPUT_TIME_612" required="true" />
  62. <input type="hidden" name="INPUT_UNIT_612" id="INPUT_UNIT_612" required="true" />
  63. <table style="border: none" width="100%">
  64. <tr>
  65. <!-- <td width="20%" style="font-size: 20px;font-weight: bold;color:#41A6D9;">保供电用户信息</td> -->
  66. <td colspan="4" align="right"><input value="保存" type="button" id="save" />&nbsp;&nbsp;
  67. <input value="重置" type="button" onclick="formReset()"/>&nbsp;&nbsp;&nbsp;&nbsp;</td>
  68. </tr>
  69. <tr>
  70. <td align="right" width="30%">选择导入文件:</td>
  71. <td width="25%"><input name="import_report" fileWidth="300" id="import_report" type="file" contenteditable="false" /></td>
  72. <td width="10%"><div><a href="javascript:;" ><input type="button" value="导入保供电用户" id="import_gpsUser"/></a></div></td>
  73. <td><div><input type="button" value="下载保用户模版" id="downloadUserModel"/></div>
  74. </td>
  75. </tr>
  76. </table>
  77. </form>
  78. <div style="padding:5px 0 0 0;"></div>
  79. <div id="dataGrid"></div>
  80. </div>
  81. </body>