a6e945d2823a917139a051ffc4cfc32f654b9ba0.svn-base 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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.getCorp_ids();
  19. //获取用户角色
  20. var role_id = top.com.sinosoft.lz.system.user.LoginInfo.getRoleids();
  21. //返回主页面
  22. function goBack() {
  23. //获取iframe中的元素值
  24. var iframe =parent.parent.document.getElementsByName("frmright")[0];
  25. iframe.src = "/nwyj/page/business/gps/taskManagement/taskManagement.jsp";
  26. }
  27. function formReset(){
  28. window.location.href="/nwyj/page/business/gps/taskManagement/gpsTaskMsg/gpsEquipmentMsgEdit.jsp?fd_id="+fd_id;
  29. }
  30. $(function(){
  31. /* if(role_id.indexOf("R002105430212")==-1){//非市场营销部
  32. $(".quanxian").hide();
  33. } */
  34. $("#downloadUserModel").bind('click',function(){
  35. window.open("/nwyj/excels/gps_equipment.xls");
  36. })
  37. })
  38. //获得当前系统时间
  39. function getDateTime(){
  40. var s="";
  41. var d = allGetServerTime();
  42. var vYear = d.getFullYear();
  43. var vMon = d.getMonth() + 1;
  44. var vDay = d.getDate();
  45. var h = d.getHours();
  46. var m = d.getMinutes();
  47. var se = d.getSeconds();
  48. 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);
  49. return s;
  50. }
  51. </script>
  52. <script type="text/javascript" src="<%=path%>/scripts/business/gps/taskManagement/gpsTaskMsg/gpsEquipmentMsgEdit.js"></script>
  53. <script type="text/javascript" src="/nwyj/scripts/business/gps/taskManagement/setIframeHeight.js"></script>
  54. </head>
  55. <body>
  56. <div class="box1" id="formContent" style="border: 1px solid #E4E4E4;background: #F8F8F8;">
  57. <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>
  58. <form id="editForm" method="post" enctype="multipart/form-data">
  59. <input type="hidden" name="classid" value="618" required="true" />
  60. <input type="hidden" name="TASK_FDID_618" id="TASK_FDID_618" required="true" />
  61. <table style="border: none" width="100%">
  62. <tr>
  63. <td colspan="4" align="right"><input class="quanxian button" value="保存" type="button" id="save" />&nbsp;&nbsp;
  64. <input value="重置" type="button" class="quanxian button" onclick="formReset()"/>&nbsp;&nbsp;&nbsp;&nbsp;
  65. <input value="导出" type="button" id="export_btn"/>&nbsp;&nbsp;&nbsp;&nbsp;</td>
  66. </tr>
  67. <tr class="quanxian">
  68. <td align="right" width="30%">选择导入文件:</td>
  69. <td width="25%"><input name="import_report" fileWidth="300" id="import_report" type="file" contenteditable="false" /></td>
  70. <td width="10%"><div><a href="javascript:;" ><input type="button" value="导入保供电设备" id="import_gpsUser"/></a></div></td>
  71. <td><div><input type="button" value="下载保供电设备模版" id="downloadUserModel"/></div>
  72. </td>
  73. </tr>
  74. </table>
  75. </form>
  76. <div style="padding:5px 0 0 0;"></div>
  77. <div id="dataGrid"></div>
  78. </div>
  79. </body>