actTaskTodoList.jsp 23.2 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>待办任务</title>
	<meta name="decorator" content="default"/>
	 <script src="${ctxStatic}/gis/js/init.js" type="text/javascript"></script>
    <script src="${ctxStatic}/gis/lib/OpenLayers.js" type="text/javascript"></script>
    <script src="${ctxStatic}/gis/lib/zdclient.js" type="text/javascript"></script>
    <script src="${ctxStatic}/gis/lib/jquery.orbit-1.2.3.js" type="text/javascript"></script>    
    <script src="${ctxStatic}/gis/js/global.js" type="text/javascript"></script>
    <script src="${ctxStatic}/gis/js/config.js" type="text/javascript"></script>
    <script src="${ctxStatic}/gis/js/taskBatchProcess.js" type="text/javascript"></script>
  <link href="${ctxStatic}/gis/lib/layer.css" type="text/css" rel="stylesheet" />
	<script src="${ctxStatic}/gis/lib/layer.js" type="text/javascript"></script>
	<script type="text/javascript">
	    var temptuceng;
	    var tempselectdata;
	    var chid;
	    var _context = '${ctx}';
		$(document).ready(function() {
		});
		
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
		/**
		 * 签收任务
		 */
		function claim(taskId) {
			var n = $("#pageNo").val();
			var s = $("#pageSize").val();
			$.get('${ctx}/act/task/claim' ,{taskId: taskId,tracePoint:true}, function(data) {
				if (data == 'true'){
		        	top.$.jBox.tip('签收完成');
		            location = '${ctx}/act/task/todo/?n='+n+'&s='+s;
				}else{
		        	top.$.jBox.tip('签收失败');
				}
		    });
		}
		function selectTuCeng(ListTucengNO)
        {
        	var tucengValue="";
        	switch(ListTucengNO)
        	{
        	 case "A":
        		  tucengValue=actualSvrcfg.SYQZDGDBP;
        		  break;
        	  case "B":
        		  tucengValue=actualSvrcfg.SHYQZD_DB;
        		  break;
        	  case "S":
        		  tucengValue=actualSvrcfg.SHYQZD_DS;
        		  break;
        	  case "X":
        		  tucengValue=actualSvrcfg.SHYQZD_DX;
        		  break;
        	  case "C":
        		  tucengValue=actualSvrcfg.ZJDGDBP;
        		  break;
        	  case "D":
        		  tucengValue=actualSvrcfg.CBJYQZD_GD;
        		  break;
        	  case "E":
        		  tucengValue=actualSvrcfg.CBJYQZD_LD;
        		  break;
        	  case "F":
        		  tucengValue=actualSvrcfg.CBJYQZD_CD;
        		  break;
        	  case "I":
        		  break;
        	  case "J":
        		  break;
        	  default:break;
        	}
        	return tucengValue;
        }		
		function deleteliucheng(id,tit,ywh,sqr,obj)
		{
			if(confirm("确定要删除此项任务【"+tit+" · "+ywh+" · "+sqr+"】?")){
				var url ="${ctx}/act/task/deleteProcInsByTaskList1?procInsId="+id+"&ywh="+ywh;
				$.ajax({ 
		  			type:"POST", //请求方式 
		  			url:url, //请求路径 
		  			cache: true,   //(默认: true,dataType为script和jsonp时默认为false) jQuery 1.2 新功能,设置为 false 将不缓存此页面。 
		  			data:"reason="+tit+"·"+ywh+"·"+sqr,//chrymctext 
		  			async:false,
		  	        //dataType: "html",   //返回值类型 
		  			success:function(modelmap){
		  				 if((modelmap.djxl=="201")||(modelmap.djxl=="202")||(modelmap.djxl=="203")||(modelmap.djxl=="204")){
		  					if(modelmap.chid[0]!="")
		  					{
		  						 //---------------------根据id查询到宗地 更新对应宗地信息 
				  				var queryStruct=new Zondy.Service.QueryFeatureStruct();
				  				queryStruct.IncludeGeometry=true;
				  			    temptuceng=selectTuCeng(modelmap.chxx.zdtzm);
		                        var str="CHID='"+modelmap.chid+"'";
		                      
				  				var queryParam=new Zondy.Service.QueryByLayerParameter(temptuceng,{ 
				  	                   // geometry: line,
				  	                   resultFormat: "json",
				  	                   struct:queryStruct,
				  	                   where :  str
				  	                   });
				  				queryParam.recordNumber=1000;
				  				var queryService=new Zondy.Service.QueryLayerFeature(queryParam,
				  						{
				  					ip: actualSvrcfg.ip,        //IP地址 
				  					port: actualSvrcfg.port ,   //端口号 
				  					requestType:"POST"
				  					});
				  				//queryService.query(queryUpdatedataSuccess);
				  				//------------------------------------	 
				  				tempselectdata = modelmap.chxx;
				  				chid=modelmap.chid;
				  				queryService.query(queryUpdatedataSuccess);
		  					}
		  					else
		  					{
		  						 url =  "${ctx}/reg/bus/uploadExamPic/delphodir?ywh="+ ywh;
		  					     window.location=url;
		  					}
		  				}	
		  				else
		  				{
		  					 url = "${ctx}/reg/bus/uploadExamPic/delphodir?ywh="+ ywh;
		  				     window.location=url;
		  				}
		  				
		  			}
		  			
		  		});
			}
		}

		function queryUpdatedataSuccess(data){
			Updatedata(data,temptuceng);
			}
		function Updatedata(data,tuceng)
		{
			var pointObj = new Array(); 
			var qupointObj = new Array();
			var lengthzb;
			var r = /\[(.+?)\]/g;
			var temp;
		    var gArc,gAnyLine,gRegion,fGeom;
			//设置区要素的图形参数信息
			var cRegionInfo = new Zondy.Object.CRegionInfo({ EndColor: 2, FillColor:2, FillMode: 0, OutPenWidth: 1, OverMethod: 0, PatAngle: 1, PatColor: 1, PatHeight: 1, PatID: 0, PatWidth: 1 }); //区形状图形参数信息
			var graphicInfo = new Zondy.Object.WebGraphicsInfo({ InfoType: 3, RegInfo: cRegionInfo }); //要素图形参数信
		    var featureSet = new Zondy.Object.FeatureSet();
            var fldNumber = 30;
            var fldType = ["long",    "double", "double",     "string","string","string","string","string","double","string","string","string","double","string","string","string","float","float","float","string","string","string","string","string","string","string","string","string","string","string"];
            var fldName = ["mpLayer", "mpArea", "mpPerimeter", "ZDDM",  "BDCDYH","YSDM",  "ZDTZM","ZL","ZDMJ","MJDW", "YT","DJ",    "JG",    "QLLX"  ,"QLXZ",  "QLSDFS",  "RJL", "JZMD","JZXG", "ZDSZD", "ZDSZN", "ZDSZX", "ZDSZB",  "ZDT",    "TFH", "DJH","ZT","QLRXM","CHID","islogout"];
            var cAttValue = new Zondy.Object.CAttStruct({ FldNumber: fldNumber, FldType: fldType, FldName: fldName });
            	
            	for(var j=0;j<data.TotalCount;j++)
    			{
            		if(chid==data.SFEleArray[j].AttValue[28])
            		{
            			lengthzb="";
            			lengthzb=tempselectdata.jzdzb;         				
            			lengthzb=lengthzb.replace( /^\s+|\s+$/g, "" );            			
        				pointObj=lengthzb.match(r);
        				console.log(pointObj);
        				for(var i=0;i<pointObj.length;i++)
        				{
        					temp= pointObj[i].substring(1,pointObj[i].length-1);
        					temp=temp.replace( /^\s+|\s+$/g, "" );
        					lengthzb=temp.split(",");
        					if(lengthzb.length==2)
        					{
        						qupointObj[i] = new Zondy.Object.Point2D(parseFloat(lengthzb[1]), parseFloat(lengthzb[0]));
        					}
        					else
        					{alert("该宗地坐标有误!");return false;}
        			    }
        			     console.log(qupointObj);
        			     gArc = new Zondy.Object.Arc(qupointObj);              //构成区要素的弧段
        			     gAnyLine = new Zondy.Object.AnyLine([gArc]);        //构成区要素折线
        				 gRegion = new Zondy.Object.GRegion([gAnyLine]);     //构成区要素
        				 fGeom = new Zondy.Object.FeatureGeometry({ RegGeom: [gRegion] }); //构成区要素的几何信息
        		    
        				//设置区要素的图形参数信息
        				// cRegionInfo = new Zondy.Object.CRegionInfo({ EndColor: 31, FillColor:31, FillMode: 1, OutPenWidth: 1, OverMethod: 0, PatAngle: 1, PatColor: 1, PatHeight: 1, PatID: 0, PatWidth: 1 }); //区形状图形参数信息
        				//var graphicInfo = new Zondy.Object.WebGraphicsInfo({ InfoType: 3, RegInfo: cRegionInfo }); //要素图形参数信
        		          //设置区要素的属性信息
                        var attValue = [0,,,,,,tempselectdata.zdtzm,tempselectdata.zl,tempselectdata.zdmj,,,,,,,,,,,tempselectdata.zdszd,tempselectdata.zdszn,tempselectdata.zdszx,tempselectdata.zdszb,tempselectdata.zdt,tempselectdata.tfh,,,tempselectdata.qlrmc,chid,"0"];//$("#textnewyaosu").val()];
        		         //创建一个新的区要素
        		         var newFeature = new Zondy.Object.Feature({ AttValue: attValue, fGeom: fGeom, GraphicInfo: graphicInfo });
        		         newFeature.setFType(3);
        		         console.log(data.SFEleArray[j].FID)
        	             newFeature.setFID(data.SFEleArray[j].FID);
        	             //创建一个要素数据集
        	            // var featureSet = new Zondy.Object.FeatureSet();
        	            // var fldNumber = 30;
        	            // var fldType = ["long",    "double", "double",     "string","string","string","string","string","double","string","string","string","double","string","string","string","float","float","float","string","string","string","string","string","string","string","string","string","string","string"];
        	            // var fldName = ["mpLayer", "mpArea", "mpPerimeter", "ZDDM",  "BDCDYH","YSDM",  "ZDTZM","ZL",    "ZDMJ",   "MJDW", "YT",    "DJ",    "JG",    "QLLX"  ,"QLXZ",  "QLSDFS",  "RJL", "JZMD","JZXG", "ZDSZD", "ZDSZN", "ZDSZX", "ZDSZB",  "ZDT",    "TFH", "DJH","ZT","QLRXM","CHID","islogout"];
        	             featureSet.AttStruct = cAttValue;
        	             featureSet.addFeature(newFeature);
        	             console.log(featureSet);
            		}  				
    			
            }//--------------------------       

           //创建一个要素编辑服务对象          
    	  var editDocFeature = new Zondy.Service.EditLayerFeature(tuceng, { ip: actualSvrcfg.ip,  port: actualSvrcfg.port });
          editDocFeature.update(featureSet, updateSuccess);	 
           //--------------------------------
		}
		
	   /*  function queryUpdatedataSuccess(data)
		{
			 if(data.TotalCount>0)
			 {
				 var editDocFeature = new Zondy.Service.EditLayerFeature(TempTUceng, { ip: actualSvrcfg.ip,  port: actualSvrcfg.port });			   
				 editDocFeature.update(data.SFEleArray[0].FID, deleteonSuccess);			 
			 }
		} */

		function updateSuccess(data)
		{ 
			console.log(data);
			if (data == true) {
	         alert("删除成功!")
	         	var url =  "${ctx}/act/task/todo/";
	            window.location = url;
	         }
	        else {
	         alert("删除失败,请检查参数是否填写完整!")
	        }	 
		}
	   /*  function deleteonSuccess(data)
		{ 
			if (data == true) {
	         alert("已删除!");
	          }
	        else {
	         alert("删除失败,请检查参数是否填写完整!");
	       
	        }	
		 url = "${ctx}/act/task/todo/";
	     window.location=url;
		} */
		function changeYWXL(){
			var djlx = $("#djlx").val();
			if((djlx!="")&&(djlx!=null)){
				$.ajax({
					type:"POST",
					url:"${ctx}/act/task/changeYWXL", //请求路径
					cache: false,   //(默认: true,dataType为script和jsonp时默认为false) jQuery 1.2 新功能,设置为 false 将不缓存此页面。 
					data:{"djlx":djlx}, //传参 			  	  
					  	 async:false,
						 success:function(data){
							  var title = data.ywxl;
							  $("#title").empty();
							  if(title.length>0)
							   {
						   	     for (var i=0;i<title.length;i++){
						   			$("#title").append("<option value="+title[i].value+">"+title[i].label+"</option>");
						   	     }
						   	    // $("#title").data('select2').val("${fns:getDictLabel(aliBaseKsgl.kdfabm,'reg_bus_djxl','')}");  
							   } 
						   }
					   });
				}			
		}
		
		function orderList(){
			var index = layer.open({
            type: 2,
            content: "${ctx}/wechat/wxOrder/list",
           area: ['800px', '450px'],
				closeBtn: 1
          // maxmin: true
    });
			
		}
		
		function feedbackList(){
			var index = layer.open({
            type: 2,
            content: "${ctx}/wechat/wxFeedback/list",
           area: ['800px', '450px'],
				closeBtn: 1
          // maxmin: true
    });
			
		}
	</script>
</head>
<body>
	<div id="mask" class="mask" style="display:none">
		<div class="maskloading"></div>
	</div> 
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/act/task/todo/">待办任务</a></li>
		<li><a href="${ctx}/act/task/historic/">已办任务</a></li>
		<c:if test="${not empty orderbj}">
		<shiro:hasPermission name="wechat:wxOrder:view"><input style="float:right" id="btnOrder" class="btn btn-primary"  type="button"  onclick="orderList();"  value="预约办理"/></shiro:hasPermission>
		</c:if>
		<c:if test="${not empty feedbackbj}">
		<input style="float:right" id="btnOrder" class="btn btn-primary"  type="button"  onclick="feedbackList();"  value="反馈意见"/>
		</c:if>
	</ul>
	<form:form id="searchForm" modelAttribute="act" action="${ctx}/act/task/todo/" method="get" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
		<div>
			<!-- 
			<label>流程类型:&nbsp;</label>
			<form:select path="procDefKey" class="input-medium">
				<form:option value="" label="全部流程"/>
				<form:options items="${fns:getDictList('act_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
			</form:select>
			 -->
			<label>业务编号:</label>
			<input id="ywh" name="ywh" value="${act.ywh}" maxlength="20" type="text" class="input-medium"/>
			<label>申请人:</label>
			<input id="sqr" name="sqr" value="${act.sqr}" maxlength="20" type="text" class="input-medium"/>
			<label>登记类型:</label>
			<form:select path="djlx" id="djlx" class="input-small"   onchange="changeYWXL();">
				<form:option value="" label=""/>
				<form:options items="${fns:getDictList('reg_bus_djlx')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
			</form:select>
			<label>业务细类:</label>
			<form:select path="title" id="title" class="input-xlarge">
				<form:option value="" label=""/>
				<form:options items="${fns:getDictList('reg_bus_djxl')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
			</form:select><br/>
			<%-- <label style="margin-top:10px;">项目编号:</label>
			<input id="proid" name="proid" value="${act.proid}" maxlength="20" type="text" class="input-medium"/> --%>
			<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询" style="margin-left: 10px;"/>
			<input type="button" id="doBatchProcess" class="btn btn-primary  batchProcessClass" value="批量审核"/>
		</div>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<%--
				<th>当前环节</th>
				<th>任务内容</th>
				<th>流程名称</th>
				<th>流程版本</th> --%>
				<th width="10px" class="batchProcessClass"><input type="checkbox" name="checkAll" id="checkAll">全选</th>
				<th>业务编号</th>
				<th>业务细类</th>
				<th>申请人</th>
				<th>登记类型</th>
				<th class="sort-column createTime">创建时间</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.list}" var="act">
				<c:set var="task" value="${act.task}" />
				<c:set var="vars" value="${act.vars}" />
				<c:set var="procDef" value="${act.procDef}" /><%--
				<c:set var="procExecUrl" value="${act.procExecUrl}" /> --%>
				<c:set var="status" value="${act.status}" />
				<tr>
					<%--
					<td>
						<a target="_blank" href="${pageContext.request.contextPath}/act/rest/diagram-viewer?processDefinitionId=${task.processDefinitionId}&processInstanceId=${task.processInstanceId}">${task.name}</a>
					</td>
					<td>${task.description}</td>
					<td>${procDef.name}</td>
					<td><b title='流程版本号'>V: ${procDef.version}</b></td> --%>
					<c:if test="${qxdm eq '610702'}">
					<td class="batchProcessClass"><input type="checkbox" name="taskItemID" value="${task.id}" <c:if test="${task.taskDefinitionKey ne 'reg_audit' and task.taskDefinitionKey ne 'reg_audit3'}">disabled</c:if>/></td>
					</c:if>
					<td>${vars.map.ywh}</td>
					<td>
						<c:if test="${empty task.assignee}">
							<a href="javascript:claim('${task.id}');" title="签收任务">
								<c:if test="${task.taskDefinitionKey eq 'reg_audit4' or task.taskDefinitionKey eq 'reg_audit5'}">
							    <c:if test="${fn:contains(vars.map.title, '预告') or fn:contains(vars.map.title, '抵押')}" >
							    	<span ><font color="FF0000">
							    </c:if>
							    </c:if>
									${fns:abbr(not empty act.vars.map.title ? act.vars.map.title : task.id, 60)}
								<c:if test="${task.taskDefinitionKey eq 'reg_audit4' or task.taskDefinitionKey eq 'reg_audit5'}">
								<c:if test="${fn:contains(vars.map.title, '预告') or fn:contains(vars.map.title, '抵押')}" >
							    	</font></span>
							    </c:if>
							    </c:if>
							</a>
							
						</c:if>
						<c:if test="${not empty task.assignee}">
							<a href="${ctx}/act/task/form?taskId=${task.id}&taskName=${fns:urlEncode(task.name)}&taskDefKey=${task.taskDefinitionKey}&procInsId=${task.processInstanceId}&procDefId=${task.processDefinitionId}&status=${status}" onclick="updateYwpj('${vars.map.ywh}')">
								<c:if test="${task.taskDefinitionKey eq 'reg_audit4' or task.taskDefinitionKey eq 'reg_audit5'}">
							    <c:if test="${fn:contains(vars.map.title, '预告') or fn:contains(vars.map.title, '抵押')}" >
							    	<span ><font color="FF0000">
							    </c:if>
							    </c:if>
								${fns:abbr(not empty vars.map.title ? vars.map.title : task.id, 60)}
								<c:if test="${task.taskDefinitionKey eq 'reg_audit4' or task.taskDefinitionKey eq 'reg_audit5'}">
								<c:if test="${fn:contains(vars.map.title, '预告') or fn:contains(vars.map.title, '抵押')}" >
							    	</font></span>
							    </c:if>
							    </c:if>
							</a>
						</c:if>
					</td>
					<td>${vars.map.sqr}</td>
					<td>${fns:getDictLabel(vars.map.djlx, 'reg_bus_djlx', '')}</td>
					<td><fmt:formatDate value="${task.createTime}" type="both"/></td>
					<td>
						<c:if test="${empty task.assignee}">
<%-- 							<c:if test="${task.taskDefinitionKey ne 'reg_audit2' and task.taskDefinitionKey ne 'reg_audit3'}"> --%>
								<a href="javascript:claim('${task.id}');">签收任务</a>
<%-- 							</c:if> --%>
<%-- 							<c:if test="${task.taskDefinitionKey eq 'reg_audit2'}"> --%>
<%-- 								<a href="${ctx}/act/task/listsubmit?taskId=${task.id}&taskName=${fns:urlEncode(task.name)}&taskDefKey=${task.taskDefinitionKey}&procInsId=${task.processInstanceId}&procDefId=${task.processDefinitionId}&status=${status}&isclaim=1&listsubmit=12">任务签收·办理·提交</a> --%>
<%-- 							</c:if> --%>
<%-- 							<c:if test="${task.taskDefinitionKey eq 'reg_audit3'}"> --%>
<%-- 								<a href="${ctx}/act/task/listsubmit?taskId=${task.id}&taskName=${fns:urlEncode(task.name)}&taskDefKey=${task.taskDefinitionKey}&procInsId=${task.processInstanceId}&procDefId=${task.processDefinitionId}&status=${status}&isclaim=1&listsubmit=13">任务签收·办理·提交</a> --%>
<%-- 							</c:if> --%>
						</c:if>
						
						<c:if test="${not empty task.assignee}">
							<a href="${ctx}/act/task/form?taskId=${task.id}&taskName=${fns:urlEncode(task.name)}&taskDefKey=${task.taskDefinitionKey}&procInsId=${task.processInstanceId}&procDefId=${task.processDefinitionId}&status=${status}" onclick="updateYwpj('${vars.map.ywh}')">任务办理</a>
<%-- 							<c:if test="${task.taskDefinitionKey eq 'reg_audit'}"> --%>
<%-- 								&nbsp;&nbsp;&nbsp;&nbsp;<a href="${ctx}/act/task/listsubmit?taskId=${task.id}&taskName=${fns:urlEncode(task.name)}&taskDefKey=${task.taskDefinitionKey}&procInsId=${task.processInstanceId}&procDefId=${task.processDefinitionId}&status=${status}&listsubmit=11">提  交</a> --%>
<%-- 							</c:if> --%>
<%-- 							<c:if test="${task.taskDefinitionKey eq 'reg_audit2'}"> --%>
<%-- 								&nbsp;&nbsp;&nbsp;&nbsp;<a href="${ctx}/act/task/listsubmit?taskId=${task.id}&taskName=${fns:urlEncode(task.name)}&taskDefKey=${task.taskDefinitionKey}&procInsId=${task.processInstanceId}&procDefId=${task.processDefinitionId}&status=${status}&listsubmit=12">提  交</a> --%>
<%-- 							</c:if> --%>
<%-- 							<c:if test="${task.taskDefinitionKey eq 'reg_audit3'}"> --%>
<%-- 								&nbsp;&nbsp;&nbsp;&nbsp;<a href="${ctx}/act/task/listsubmit?taskId=${task.id}&taskName=${fns:urlEncode(task.name)}&taskDefKey=${task.taskDefinitionKey}&procInsId=${task.processInstanceId}&procDefId=${task.processDefinitionId}&status=${status}&listsubmit=13">提  交</a> --%>
<%-- 							</c:if> --%>
<%-- 							<c:if test="${task.taskDefinitionKey eq 'reg_audit4'}"> --%>
<%-- 								&nbsp;&nbsp;&nbsp;&nbsp;<a href="${ctx}/act/task/listsubmit?taskId=${task.id}&taskName=${fns:urlEncode(task.name)}&taskDefKey=${task.taskDefinitionKey}&procInsId=${task.processInstanceId}&procDefId=${task.processDefinitionId}&status=${status}&listsubmit=2">登  簙</a> --%>
<%-- 							</c:if> --%>
						</c:if>
						<%--
						<c:if test="${task.taskDefinitionKey eq 'reg_start'}">
							<a href="${ctx}/act/task/deleteProcInsByTaskList1?procInsId=${act.procInsId}&ywh=${vars.map.ywh}&reason=" 
								onclick="return promptx('删除正在运行中的流程任务','请再次确认要删除【${vars.map.title} · ${vars.map.ywh} · ${vars.map.sqr}】项任务;<br><br>删除原因',this.href);">删除任务</a>
						</c:if>
						--%>
						<c:if test="${task.taskDefinitionKey eq 'reg_start'}">
							 <a href="javascript:void(0);" onclick="deleteliucheng('${act.procInsId}','${vars.map.title}','${vars.map.ywh}','${vars.map.sqr}',this)">删除任务</a>					
						</c:if>
						 
						<%-- 
						<shiro:hasPermission name="act:process:edit">
							<c:if test="${empty task.executionId}">
							
								<a href="${ctx}/act/task/deleteTask?taskId=${task.id}&reason=" onclick="return promptx('删除任务','删除原因',this.href);">删除任务</a>
							</c:if>
						</shiro:hasPermission>
						<a target="_blank" href="${pageContext.request.contextPath}/act/rest/diagram-viewer?processDefinitionId=${task.processDefinitionId}&processInstanceId=${task.processInstanceId}">跟踪1</a>
						<a target="_blank" href="${ctx}/act/task/trace/photo/${task.processDefinitionId}/${task.executionId}">跟踪2</a> 
						<a target="_blank" href="${ctx}/act/task/trace/info/${task.processInstanceId}">跟踪信息</a>
						--%>
					</td>
				</tr>
			</c:forEach> 
		</tbody>
	</table>
	<div class="pagination">${page}</div>
	<script type="text/javascript">
		//更新业务评价状态  -----GL2018.10.23
		function updateYwpj(ywh) {
			var qxdm = "${qxdm}";
			var zjh = "${tzrzjhm}";
			var taskDefKey = "${task.taskDefinitionKey}";
			if (qxdm == "610702" && !ywh.contains("X")) {
				if (taskDefKey == "reg_start" || taskDefKey == "reg_audit56" || taskDefKey == "reg_audit6") {
					$.ajax({
						type : "POST",
						/* url : "http://127.0.0.1:9090/ODM_INTER/phone/pjxt/saveYwpj", */
						url : "http://172.16.56.40:8080/ODM_INTER/phone/pjxt/saveYwpj",
						cache : false,
						data : {"ywh":ywh, "slzt": "1", "zjh": zjh},
						async : true,
						timeout : 2000,
						success : function(modelmap) {
							return;
						},
						error : function() {
							console.log("链接超时!请检查网络连接!");
							return;
						}
					});
				}
			}
		}
		
	</script>
</body>
</html>