123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- <%@page language="java" pageEncoding="UTF-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>横向查看列表</title>
- <!--框架必需start-->
- <%@include file="../../../../include.jsp" %>
- <!--框架必需end-->
- <script type="text/javascript">
- var fd_id;
- $(function(){
- //修改表单信息,获取记录
- if((window.location.href).indexOf('?')>-1){
- fd_id = (window.location.href).split('?')[1];
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '216',
- objectID : fd_id
- };
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- data : params,
- dataType : 'json',
- success : function(data){
- /* for(var i in data){
- $('#'+i).html(data[i]);
- } */
- $('#COMPNAME').html(data.COMPNAME_216);
- $('#APPLY_PERSION').html(data.APPLY_PERSION_216_SHOW);
- $('#APPLY_COMPNAME').html(data.APPLY_COMPNAME_216);
- $('#RESOURCE_NAME').html(data.RESOURCE_NAME_216);
- $('#APPLY_CAUSE').html(data.APPLY_CAUSE_216);
- $('#START_TIME').html(data.START_TIME_216);
- $('#END_TIME').html(data.END_TIME_216);
- },
- error : function(e){
- top.Dialog.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- data : params,
- dataType : 'json',
- success : function(data){
- $('#fillForm1').ajaxWrite({data:data});
- $('#fillForm1 input[name="classid"]').val('216');
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
- });
- function agree(){
- $("#IS_APPLY_216").val("1");
- var formValue = $('#fillForm1').serialize();
- var url = $.pathname() + '/ws/crud/CRUDService/update1';
- $.ajax({
- url : url,
- type : 'post',
- data : formValue,
- dataType : 'text',
- timeout : 60000,
- success : function(data){
- del(fd_id);
-
- /** 代办右上角红色圈里面数字的改变 **/
- var url = $.pathname() + '/ws/xianlutingyun/XianlutingyunService/WarningTask';
- // var compId = top.com.sinosoft.lz.system.user.LoginInfo.getCompany_id();
- var user_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
- // var roleid = top.com.sinosoft.lz.system.user.LoginInfo.getRoleids();
- var params = {
- userId : user_id,//处理人ID(系统登录人)
- //netx_id : a//,//下一节点处理人ID
- // isRole : ,//
- // company_id : compId,//
- // role_id : roleid//
- };
- $.ajax({//代办处理
- url : url,
- data : params,
- type : 'post',
- dataType : 'text',
- timeout : 15000,
- // async : false,
- success : function(data){
- // top.Dialog.alert('发送成功!', null, null, null, -1);
- },error : function (e){
- top.Dialog.alert('系统错误!');
- }
- });
-
- },
- error : function(){
- $.messager.alert('操作失败');
- }
- });
-
- }
-
- function noagree(){
- $("#IS_APPLY_216").val("2");
- var formValue = $('#fillForm1').serialize();
- var url = $.pathname() + '/ws/crud/CRUDService/update1';
- $.ajax({
- url : url,
- type : 'post',
- data : formValue,
- dataType : 'text',
- timeout : 60000,
- success : function(data){
- del(fd_id);
- },
- error : function(){
- $.messager.alert('操作失败');
- }
- });
-
- }
-
- function del(ids){
- // 删除记录
- $.post($.pathname() +"/ws/crud/CRUDService/delete/", {
- "objectIDs" : ids,
- classid : 216
- }, function(result) {
- if (result.Msg.sucsess == true) {
- top.Dialog.alert("操作成功!");
- // 刷新表格数据
- window.history.back();
- } else {
- top.Dialog.alert("操作失败!");
- }
- }, "json");
- }
- </script>
- </head>
-
- <body>
- <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>
- <table class="tableStyle" >
- <tr>
- <td width="25%" align="right">申请单位:</td>
- <td width="25%"><div type="text" id="COMPNAME" name="COMPNAME" /></td>
- <td width="25%" align="right">申请人:</td>
- <td width="25%"><div type="text" id="APPLY_PERSION" name="APPLY_PERSION" /></td>
- </tr>
- <tr>
- <td align="right">申请要查看单位名称:</td>
- <td colspan="3"><div type="text" id="APPLY_COMPNAME" name="APPLY_COMPNAME" /></td>
- </tr>
- <tr>
- <td align="right">资源名称:</td>
- <td colspan="3"><div type="text" id="RESOURCE_NAME" name="RESOURCE_NAME" /></td>
- </tr>
- <tr>
- <td align="right">申请原因:</td>
- <td colspan="3"><div type="text" id="APPLY_CAUSE" name="APPLY_CAUSE" /></td>
- </tr>
- <tr>
- <td align="right">开始时间:</td>
- <td><div type="text" id="START_TIME" name="START_TIME" /></td>
- <td align="right">结束时间:</td>
- <td><div type="text" id="END_TIME" name="END_TIME" /></td>
- </tr>
- <tr><td align="center" colspan="4"><input type="button" value="同意" onclick="agree()"/> <input type="button" value="不同意" onclick="noagree()"/></td></tr>
- </table>
- <form id="fillForm1" name="fillForm1" method="post" action="">
- <tr style="display: none;">
- <td>
- <input type="hidden" id="fd_id216" name="FD_OBJECTID216" required="true"/>
- <input type="hidden" name="classid" value="216" required="true"/>
- <input type="hidden" id="APPLY_PERSION_216" name="APPLY_PERSION_216" required="true"/>
- <input type="hidden" id="COMPNAME_216" name="COMPNAME_216" required="true"/>
- <input type="hidden" id="APPROVE_PERSION_216" name="APPROVE_PERSION_216" required="true"/>
- <input type="hidden" id="RESOURCE_NAME_216" name="RESOURCE_NAME_216" required="true"/>
- <input type="hidden" id="APPLY_COMPID_216" name="APPLY_COMPID_216" required="true"/>
- <input type="hidden" id="APPLY_COMPNAME_216" name="APPLY_COMPNAME_216" required="true"/>
- <input type="hidden" id="START_TIME_216" name="START_TIME_216" required="true"/>
- <input type="hidden" id="END_TIME_216" name="END_TIME_216" required="true"/>
- <input type="hidden" id="APPLY_CAUSE_216" name="APPLY_CAUSE_216" required="true"/>
- <input type="hidden" id="IS_APPLY_216" name="IS_APPLY_216" required="true"/>
- <input type="hidden" id="APPLY_TYPE_216" name="APPLY_TYPE_216" value="0" required="true"/>
-
- <input type="hidden" id="DB_TYPE" name="DB_TYPE" value="1" required="true"/>
- </td>
- </tr>
- </form>
- </body>
- </html>
|