a63fbd0fa6fc668825da195da648c4ffb44a3eb8.svn-base 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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. <!--框架必需start-->
  8. <%@include file="../../../../include.jsp" %>
  9. <!--框架必需end-->
  10. <script type="text/javascript">
  11. var fd_id;
  12. $(function(){
  13. //修改表单信息,获取记录
  14. if((window.location.href).indexOf('?')>-1){
  15. fd_id = (window.location.href).split('?')[1];
  16. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  17. var params = {
  18. classid : '216',
  19. objectID : fd_id
  20. };
  21. $.ajax({
  22. url : url,
  23. type : 'post',
  24. timeout : 60000,
  25. data : params,
  26. dataType : 'json',
  27. success : function(data){
  28. /* for(var i in data){
  29. $('#'+i).html(data[i]);
  30. } */
  31. $('#COMPNAME').html(data.COMPNAME_216);
  32. $('#APPLY_PERSION').html(data.APPLY_PERSION_216_SHOW);
  33. $('#APPLY_COMPNAME').html(data.APPLY_COMPNAME_216);
  34. $('#RESOURCE_NAME').html(data.RESOURCE_NAME_216);
  35. $('#APPLY_CAUSE').html(data.APPLY_CAUSE_216);
  36. $('#START_TIME').html(data.START_TIME_216);
  37. $('#END_TIME').html(data.END_TIME_216);
  38. },
  39. error : function(e){
  40. top.Dialog.alert('系统提示信息', '访问服务失败!', 'error');
  41. }
  42. });
  43. $.ajax({
  44. url : url,
  45. type : 'post',
  46. timeout : 60000,
  47. data : params,
  48. dataType : 'json',
  49. success : function(data){
  50. $('#fillForm1').ajaxWrite({data:data});
  51. $('#fillForm1 input[name="classid"]').val('216');
  52. },
  53. error : function(e){
  54. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  55. }
  56. });
  57. }
  58. });
  59. function agree(){
  60. $("#IS_APPLY_216").val("1");
  61. var formValue = $('#fillForm1').serialize();
  62. var url = $.pathname() + '/ws/crud/CRUDService/update1';
  63. $.ajax({
  64. url : url,
  65. type : 'post',
  66. data : formValue,
  67. dataType : 'text',
  68. timeout : 60000,
  69. success : function(data){
  70. del(fd_id);
  71. /** 代办右上角红色圈里面数字的改变 **/
  72. var url = $.pathname() + '/ws/xianlutingyun/XianlutingyunService/WarningTask';
  73. // var compId = top.com.sinosoft.lz.system.user.LoginInfo.getCompany_id();
  74. var user_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
  75. // var roleid = top.com.sinosoft.lz.system.user.LoginInfo.getRoleids();
  76. var params = {
  77. userId : user_id,//处理人ID(系统登录人)
  78. //netx_id : a//,//下一节点处理人ID
  79. // isRole : ,//
  80. // company_id : compId,//
  81. // role_id : roleid//
  82. };
  83. $.ajax({//代办处理
  84. url : url,
  85. data : params,
  86. type : 'post',
  87. dataType : 'text',
  88. timeout : 15000,
  89. // async : false,
  90. success : function(data){
  91. // top.Dialog.alert('发送成功!', null, null, null, -1);
  92. },error : function (e){
  93. top.Dialog.alert('系统错误!');
  94. }
  95. });
  96. },
  97. error : function(){
  98. $.messager.alert('操作失败');
  99. }
  100. });
  101. }
  102. function noagree(){
  103. $("#IS_APPLY_216").val("2");
  104. var formValue = $('#fillForm1').serialize();
  105. var url = $.pathname() + '/ws/crud/CRUDService/update1';
  106. $.ajax({
  107. url : url,
  108. type : 'post',
  109. data : formValue,
  110. dataType : 'text',
  111. timeout : 60000,
  112. success : function(data){
  113. del(fd_id);
  114. },
  115. error : function(){
  116. $.messager.alert('操作失败');
  117. }
  118. });
  119. }
  120. function del(ids){
  121. // 删除记录
  122. $.post($.pathname() +"/ws/crud/CRUDService/delete/", {
  123. "objectIDs" : ids,
  124. classid : 216
  125. }, function(result) {
  126. if (result.Msg.sucsess == true) {
  127. top.Dialog.alert("操作成功!");
  128. // 刷新表格数据
  129. window.history.back();
  130. } else {
  131. top.Dialog.alert("操作失败!");
  132. }
  133. }, "json");
  134. }
  135. </script>
  136. </head>
  137. <body>
  138. <div style="height: 50px;background: #F8F8F8;" align="center"><a href="javascript:;"></a><font style="font-weight: bold;font-size: 20px;line-height: 45px;">申请信息</font></div>
  139. <table class="tableStyle" >
  140. <tr>
  141. <td width="25%" align="right">申请单位:</td>
  142. <td width="25%"><div type="text" id="COMPNAME" name="COMPNAME" /></td>
  143. <td width="25%" align="right">申请人:</td>
  144. <td width="25%"><div type="text" id="APPLY_PERSION" name="APPLY_PERSION" /></td>
  145. </tr>
  146. <tr>
  147. <td align="right">申请要查看单位名称:</td>
  148. <td colspan="3"><div type="text" id="APPLY_COMPNAME" name="APPLY_COMPNAME" /></td>
  149. </tr>
  150. <tr>
  151. <td align="right">资源名称:</td>
  152. <td colspan="3"><div type="text" id="RESOURCE_NAME" name="RESOURCE_NAME" /></td>
  153. </tr>
  154. <tr>
  155. <td align="right">申请原因:</td>
  156. <td colspan="3"><div type="text" id="APPLY_CAUSE" name="APPLY_CAUSE" /></td>
  157. </tr>
  158. <tr>
  159. <td align="right">开始时间:</td>
  160. <td><div type="text" id="START_TIME" name="START_TIME" /></td>
  161. <td align="right">结束时间:</td>
  162. <td><div type="text" id="END_TIME" name="END_TIME" /></td>
  163. </tr>
  164. <tr><td align="center" colspan="4"><input type="button" value="同意" onclick="agree()"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="不同意" onclick="noagree()"/></td></tr>
  165. </table>
  166. <form id="fillForm1" name="fillForm1" method="post" action="">
  167. <tr style="display: none;">
  168. <td>
  169. <input type="hidden" id="fd_id216" name="FD_OBJECTID216" required="true"/>
  170. <input type="hidden" name="classid" value="216" required="true"/>
  171. <input type="hidden" id="APPLY_PERSION_216" name="APPLY_PERSION_216" required="true"/>
  172. <input type="hidden" id="COMPNAME_216" name="COMPNAME_216" required="true"/>
  173. <input type="hidden" id="APPROVE_PERSION_216" name="APPROVE_PERSION_216" required="true"/>
  174. <input type="hidden" id="RESOURCE_NAME_216" name="RESOURCE_NAME_216" required="true"/>
  175. <input type="hidden" id="APPLY_COMPID_216" name="APPLY_COMPID_216" required="true"/>
  176. <input type="hidden" id="APPLY_COMPNAME_216" name="APPLY_COMPNAME_216" required="true"/>
  177. <input type="hidden" id="START_TIME_216" name="START_TIME_216" required="true"/>
  178. <input type="hidden" id="END_TIME_216" name="END_TIME_216" required="true"/>
  179. <input type="hidden" id="APPLY_CAUSE_216" name="APPLY_CAUSE_216" required="true"/>
  180. <input type="hidden" id="IS_APPLY_216" name="IS_APPLY_216" required="true"/>
  181. <input type="hidden" id="APPLY_TYPE_216" name="APPLY_TYPE_216" value="0" required="true"/>
  182. <input type="hidden" id="DB_TYPE" name="DB_TYPE" value="1" required="true"/>
  183. </td>
  184. </tr>
  185. </form>
  186. </body>
  187. </html>