8dc7b6958bcb18bcd61d0d647dcc892227a1d591.svn-base 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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/gpsUserMsgEdit.jsp?fd_id="+fd_id;
  29. }
  30. $(function(){
  31. if(role_id.indexOf("R002105430212")==-1){//非市场营销部
  32. $(".quanxian").hide();
  33. }
  34. $("#FD_TASK_617").val(fd_id);
  35. $("#INPUT_NAME_617").val(realName);
  36. $("#INPUT_TIME_617").val(getDateTime());
  37. $("#INPUT_UNIT_617").val(deptId);
  38. $("#downloadUserModel").bind('click',function(){
  39. window.open("/nwyj/excels/BGDyonghu.xls");
  40. })
  41. })
  42. //获得当前系统时间
  43. function getDateTime(){
  44. var s="";
  45. var d = allGetServerTime();
  46. var vYear = d.getFullYear();
  47. var vMon = d.getMonth() + 1;
  48. var vDay = d.getDate();
  49. var h = d.getHours();
  50. var m = d.getMinutes();
  51. var se = d.getSeconds();
  52. 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);
  53. return s;
  54. }
  55. </script>
  56. <script type="text/javascript" src="<%=path%>/scripts/business/gps/taskManagement/gpsTaskMsg/gpsUserMsgEdit.js"></script>
  57. <script type="text/javascript" src="/nwyj/scripts/business/gps/taskManagement/setIframeHeight.js"></script>
  58. </head>
  59. <body>
  60. <div class="box1" id="formContent" style="border: 1px solid #E4E4E4;background: #F8F8F8;">
  61. <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>
  62. <form id="editForm" method="post" enctype="multipart/form-data">
  63. <input type="hidden" name="classid" value="630" required="true" />
  64. <input type="hidden" name="FD_TASK_617" id="FD_TASK_617" required="true" />
  65. <input type="hidden" name="INPUT_NAME_617" id="INPUT_NAME_617" required="true" />
  66. <input type="hidden" name="INPUT_TIME_617" id="INPUT_TIME_617" required="true" />
  67. <input type="hidden" name="INPUT_UNIT_617" id="INPUT_UNIT_617" required="true" />
  68. <table style="border: none" width="100%">
  69. <tr>
  70. <!-- <td width="20%" style="font-size: 20px;font-weight: bold;color:#41A6D9;">保供电用户信息</td> -->
  71. <td colspan="4" align="right"><input class="quanxian button" value="保存" type="button" id="save" />&nbsp;&nbsp;
  72. <input value="重置" type="button" class="quanxian button" onclick="formReset()"/>&nbsp;&nbsp;&nbsp;&nbsp;
  73. <input value="导出" type="button" id="export_btn"/>&nbsp;&nbsp;&nbsp;&nbsp;</td>
  74. </tr>
  75. <tr class="quanxian">
  76. <td align="right" width="30%">选择导入文件:</td>
  77. <td width="25%"><input name="import_report" fileWidth="300" id="import_report" type="file" contenteditable="false" /></td>
  78. <td width="10%"><div><a href="javascript:;" ><input type="button" value="导入保供电用户" id="import_gpsUser"/></a></div></td>
  79. <td><div><input type="button" value="下载保用户模版" id="downloadUserModel"/></div>
  80. </td>
  81. </tr>
  82. </table>
  83. </form>
  84. <div style="padding:5px 0 0 0;"></div>
  85. <div id="dataGrid"></div>
  86. </div>
  87. </body>