- 浏览: 682765 次
- 性别:
- 来自: 杭州
文章分类
- 全部博客 (141)
- java (58)
- SQL (7)
- java开源 (2)
- javascript (3)
- struts2 (2)
- oracle (6)
- junit (1)
- js报表 (1)
- jQuery (5)
- 插件安装 (1)
- myeclipse (1)
- xfire (1)
- weblogic (1)
- hibernate (6)
- loading (1)
- jbpm (3)
- 物语 (0)
- android (14)
- spring (20)
- BigDecimal (1)
- view (1)
- 总结 (2)
- application (1)
- Netty (5)
- aop (1)
- redis (7)
- double (1)
- restful (1)
- cache (3)
- profile (1)
- redisTemplate (1)
- poi (3)
- excel导出 (1)
- mysql (7)
- group (4)
- replication (4)
- proxysql (1)
- windows (1)
- version (1)
- mongodb (2)
- RocketMQ (1)
- MQ (1)
- RSA (1)
- 日志 (2)
- ip (1)
- socket (1)
- hibernate-validator (1)
- delayQueue (1)
- spring-retry (1)
- rabbitmq (3)
- httpclient (1)
- tools (1)
- 增量发布 (1)
- web (3)
- spring-boot (5)
- druid (2)
- pageHelper (1)
- freemarker (1)
- RequestMapping (1)
- 性能优化 (2)
- springBoot (1)
- docker (2)
- 安全 (0)
- 国际化 (3)
- websocket (1)
- stomp (1)
- shiro (1)
- 网络安全 (2)
- 锁 (1)
- logback (1)
最新评论
-
changerzhuo_319:
谢谢大佬, 查了一天了没解决
Spring-boot构建多模块依赖工程时,maven打包异常:程序包xxx不存在 -
迪伦少校:
spring越来越优秀的同时,也越来越复杂
spring核心技术(1) -
hbxflihua:
ivi13 写道这种方式会有个问题,假如有个商户的交易量特别大 ...
使用spring-retry实现支付系统异步通知 -
ivi13:
这种方式会有个问题,假如有个商户的交易量特别大,通知全部失败, ...
使用spring-retry实现支付系统异步通知 -
ckxlnd:
挺好的 有借鉴意义
重写DispatcherServlet获取springmvc 所有RequestMapping的url
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@taglib uri="/struts-tags" prefix="s"%> <%@ include file="/common/header.jsp"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base target="_self"/> <title>工作票详单</title> <jsp:include page="/common/meta.jsp"/> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <style type="text/css"> input{ border:0px; /*border:0px solid #005aa7;边框取消 */ border-bottom:1px solid #000000 /* 下划线效果 */ } .tableborder { border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; /*以上分别设置的是表格边框中上右下左的边框宽度*/ border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; /*设置边框的表现样式,solid为实线*/ border-top-color: #000000; border-right-color: #000000; border-bottom-color: #000000; border-left-color: #000000; /*设置边框的颜色*/ } textarea { overflow:visible; border-left:0px; border-right:0px; border-top:0px; border-bottom:0px; background-image:url(${root}/js/backline.gif); line-height: 12pt; word-break:break-all; } .STYLE2 { font-size: 24px; font-weight: bold; } #out_tbl{ border: 1px solid black; /*修正单元格之间的边框不能合并*/ border-collapse: collapse; width:100%; } #out_tbl td { border: 1px solid black; } .MDFlatInput { BORDER-RIGHT: #ffffff 0px solid; BORDER-TOP: #666666 0px solid; BORDER-LEFT: #666666 0px solid; BORDER-BOTTOM: #ffffff 0px solid; BACKGROUND-COLOR: transparent; width: 100%; } .ulinelbl{ border-bottom: 1px solid black; } </style> <SCRIPT type="text/javascript"> function changeVal(oldVal,ticketIdVal,lineIndexVal,obj){ if(obj.value!=oldVal){ $.post("${root }/android/saveEarthLinewtc.action", {ticketId:ticketIdVal,lineIndex:lineIndexVal,earthLine:obj.value}, cbTicketAttr); } } function cbTicketAttr(result){ //alert(result); } jQuery(document).ready(function() { dataFieldHide();//隐藏对应数据 /** * form提交 */ $('#wtcform').form({ url: '${root }/android/updatewtc.action', type:"POST", onSubmit: function() { return true;//$(this).form('validate') }, success: function(data) { if(!(data instanceof Object)){ data = jQuery.parseJSON(data) } if(typeof(data.success)!='undefined'){ if(data.success){ if (window.android){ var msg="保存成功"; if($('#state')==4){ msg="提交成功"; dataFieldHide(); } window.android.showMsg(msg); } } } } }); }); function dataFieldHide(){ //1 if($("#workSignNameImg").is(":visible")){ $('#workSignNameLbl').hide(); } //2 if($("#accWorkPrincipalImg").is(":visible")){ $('#accWorkPrincipalLbl').hide(); } //3 转到9 //4 if($("#delayAllowNameImg").is(":visible")){ $('#delayAllowNameLbl').hide(); } //5 if($("#delayWorkPrincipalImg").is(":visible")){ $('#delayWorkPrincipalLbl').hide(); } //6 if($("#newWorkSignNameImg").is(":visible")){ $('#newWorkSignNameLbl').hide(); } //7 if($("#oldWorkPrincipalImg").is(":visible")){ $('#oldWorkPrincipalLbl').hide(); } //8 if($("#newWorkPrincipalImg").is(":visible")){ $('#newWorkPrincipalLbl').hide(); } //9 <s:iterator value="#request.wtglist"> var imgObj=$('#gi_'+<s:property value='workTicketGroupId'/>); if(imgObj.is(":visible")){ $('#gl_'+<s:property value='workTicketGroupId'/>).hide(); } </s:iterator> var state = $('#state').val(); if('${isManage }'=='true'||state==4){//管理员 或已提交 $("#workSignNameImg").click(null);//1 $("#accWorkPrincipalImg").click(null);//2 $("#delayAllowNameImg").click(null);//4 $("#delayWorkPrincipalImg").click(null);//5 $("#newWorkSignNameImg").click(null);//6 $("#oldWorkPrincipalImg").click(null);//7 $("#newWorkPrincipalImg").click(null);//8 $('#workSignNameLbl').click(null); $('#accWorkPrincipalLbl').click(null); $('#delayAllowNameLbl').click(null); $('#delayWorkPrincipalLbl').click(null); $('#newWorkSignNameLbl').click(null); $('#oldWorkPrincipalLbl').click(null); <s:iterator value="#request.wtglist"> $('#gi_'+<s:property value='workTicketGroupId'/>).click(null);//8 $('#gl_'+<s:property value='workTicketGroupId'/>).click(null);//8 </s:iterator> $('#permission').attr("readonly","readonly"); $('#extendTime').attr("readonly","readonly"); $('#unbackNum').attr("readonly","readonly"); $('#unknifeLittlecar').attr("readonly","readonly"); $('#keep1_1').attr("readonly","readonly"); $('#keep1_2').attr("readonly","readonly"); $('#keep1_3').attr("readonly","readonly"); $('#keep1_4').attr("readonly","readonly"); $('#keep2').attr("readonly","readonly"); $('#keep3').attr("readonly","readonly"); $('#changeTime').attr("readonly","readonly"); $('#remark').attr("readonly","readonly"); $('#permission').blur(null); $('#extendTime').blur(null); $('#unbackNum').blur(null); $('#unknifeLittlecar').blur(null); $('#keep1_1').blur(null); $('#keep1_2').blur(null); $('#keep1_3').blur(null); $('#keep1_4').blur(null); $('#keep2').blur(null); $('#keep3').blur(null); $('#changeTime').blur(null); $('#remark').blur(null); $('#save_btn').hide();//保存按钮 $('#submit_btn').hide();//提交按钮 $('#saw_add').hide();//第8项,添加按钮 $('#group_add').hide();//第9项,添加按钮 $('#eaw_add').hide();//第11.3项,添加按钮 } } //保存工作票信息 function saveTicket(){ $('#wtcform').submit(); } function Msg(msg){ if (window.android){ window.android.showMsg(msg); }else{ alert(msg); } } //提交工作票信息 function submitTicket(){ $('#state').val('4'); var flag = true;//验证是否通过 var msg =""; //7 var permission=$('#permission').val();//工作许可方 if(emptySign(permission)){ msg="第7项中的工作许可方不能为空"; return Msg(msg); } var workSignName=$('#workSignNameLbl').html();//工作票签发人签名 if(emptySign(workSignName)){ msg="第7项中的工作票签发人签名不能为空"; return Msg(msg); } var accWorkPrincipal=$('#accWorkPrincipalLbl').html();//工作负责人签名 if(emptySign(accWorkPrincipal)){ msg="第7项中的工作负责人签名不能为空"; return Msg(msg); } //8 var saw_tbl_len=$('#saw_tbl tr').length;//许可工作开始 if(saw_tbl_len<2){ msg="第8项,许可工作开始不能为空"; return Msg(msg); } //9 var wtgdivinfo =$('#wtg_div').html(); if(wtgdivinfo==''||$.trim(wtgdivinfo)==''){ msg="第9项中的工作班组人员签名不能为空"; return Msg(msg); } //11 //11.1 var unbackNum = $('#unbackNum').val();//现场所挂接地线 if(unbackNum==''||isNaN(unbackNum)){ msg="第11.1项中的现场所挂接地线为数值必填项"; return Msg(msg); } //11.2 var unknifeLittlecar = $('#unknifeLittlecar').val();//现场所挂个人保安线 if(unknifeLittlecar==''||isNaN(unknifeLittlecar)){ msg="第11.2项中的现场所挂个人保安线为数值必填项"; return Msg(msg); } //11.3 var eaw_tbl_len=$('#eaw_tbl tr').length;//工作终结报告 if(eaw_tbl_len<2){ msg="第11.3项,工作终结报告不能为空"; return Msg(msg); } // 第10项只要有一个单元格不为空,所有都必填 var extendTime=$('#extendTime').val();//工作票有效期 var dan_flag = emptySign($('#delayAllowNameLbl').html());//经工作许可人 var dwp_flag = emptySign($('#delayWorkPrincipalLbl').html());//工作负责人签名 if(dan_flag&&dwp_flag&& (extendTime==null||extendTime=='')){//如果都为空,过 flag = true; }else if((!dan_flag)&&(!dwp_flag)&& (extendTime!=null&&extendTime!='')){//如果都不为空过 if(valiCnDate(extendTime)){ flag = true; }else{ flag = false; msg ="第10项,工作票有效期格式有误,正确的格式:yyyy年MM月dd日"; return Msg(msg); } }else { if(dan_flag){ flag = false; msg ="第10项,经工作许可人签名不能为空"; return Msg(msg); }else if(dwp_flag){ flag = false; msg ="第10项,工作负责人签名不能为空"; return Msg(msg); }else if(!valiCnDate(extendTime)){ flag = false; msg ="第10项,工作票有效期格式有误,正确的格式:yyyy年MM月dd日"; return Msg(msg); } } // 第12.12项只要有一个单元格不为空,所有都必填 var changeTime=$('#changeTime').val();//工作负责人变动时间 var nwsn_flag = emptySign($('#newWorkSignNameLbl').html());// 经签发人 var owp_flag = emptySign($('#oldWorkPrincipalLbl').html());// 原工作负责人 var nwp_flag = emptySign($('#newWorkPrincipalLbl').html());// 变更工作负责人 if((changeTime==null||changeTime=='')&& nwsn_flag&&owp_flag&&nwp_flag){ flag = true; }else if((changeTime!=null&&changeTime!='')&& (!nwsn_flag)&&(!owp_flag)&&(!nwp_flag)){ if(valiCnDate(changeTime)){ flag = true; }else{ flag = false; msg ="第12.2项,工作负责人变动时间格式有误,正确的格式:yyyy年MM月dd日"; return Msg(msg); } }else { flag = false; if(nwsn_flag){ msg = "第12.2项,经签发人不能为空"; return Msg(msg); }else if(owp_flag){ msg = "第12.2项,原工作负责人不能为空"; return Msg(msg); }else if(nwp_flag){ msg = "第12.2项,变更工作负责人不能为空"; return Msg(msg); }else if(!valiCnDate(extendTime)){ msg ="第12.2项,工作负责人变动时间格式有误,正确的格式:yyyy年MM月dd日"; return Msg(msg); } } $('#wtcform').submit(); } //空签名验证 function emptySign(signVal){ return (signVal==null||$.trim(signVal)=='null'||$.trim(signVal)==''||$.trim(signVal)=='点此签名'); } //时间格式验证 function valiCnTime(time){ if(time==null||time==''){ return false; } return (time.match(/^[0-9]{4}年[0-9]{2}月[0-9]{2}日[0-9]{2}时[0-9]{2}分$/)); } //日期格式验证 function valiCnDate(date){ if(date==null||date==''){ return false; } return (date.match(/^[0-9]{4}年[0-9]{2}月[0-9]{2}日$/)); } //显示GPS function showGps(location){ if (window.android){ window.android.showGps(location); } } //编辑许可--old function editaw(id,sta,mode,date, aname,wprin,asign,wsign,rowNo){ if (window.android){ window.android.allowWorkEdit(id,sta,mode,date,aname,wprin,asign,wsign,rowNo); } } //编辑许可-new function editAllow(trid){ var trObj = $('#'+trid); var id = trid.replace("tr_",""); var sta = trObj.attr("sta"); var mode = trObj.attr("mode"); var date = trObj.attr("date"); var aname = trObj.attr("aname"); var wprin = trObj.attr("wprin"); var asign = trObj.attr("asign"); var wsign = trObj.attr("wsign"); if (window.android){ window.android.allowWorkEdit(id,sta,mode,date,aname,wprin,asign,wsign); } } //删除记录并清空行 function delAllow(aid){ var trObj = $('#tr_'+aid); $.post("${root }/android/delaw.action", {id:aid}, cbTicketAttr); trObj.remove(); if (window.android){ window.android.showMsg("删除成功"); } } //回调--编辑许可 function cbEditaw(id,mode,date,status, aname,wprin,asign,wsign,avoc,wvoc,sgps,wgps){ //编辑行 var tr = $('#tr_'+id);//主键 var am = $('#am_'+id);//许可方式 var ad = $('#ad_'+id);//许可日期 var ai = $('#ai_'+id);//许可人签名 var al = $('#al_'+id);//许可人姓名 var pi = $('#pi_'+id);//负责人签名 var pl = $('#pl_'+id);//负责人姓名 var ag = $('#ag_'+id);//许可人GPS var av = $('#av_'+id);//许可人语音 var pg = $('#pg_'+id);//负责人GPS var pv = $('#pv_'+id);//负责人语音 tr.attr("sta",status); tr.attr("mode",mode); tr.attr("date",date); tr.attr("aname",aname); tr.attr("wprin",wprin); tr.attr("asign",asign); tr.attr("wsign",wsign); am.html(mode); ad.html(date); ai.attr("src","${root }"+asign); al.html(aname); pi.attr("src","${root }"+wsign); pl.html(wprin); if(asign!=''){//存在许可人签名文件 al.hide(); ai.show(); }else{ ai.hide(); al.show(); } if(wsign!=''){//存在负责人签名文件 pl.hide(); pi.show(); }else{// pi.hide(); pl.show(); } if(sgps!=null&&sgps!=''){ ag.attr("src","${root}/images/ticket/gps.png"); ag.bind("click", function(){ showGps(sgps); }); } if(wgps!=null&&wgps!=''){ pg.attr("src","${root}/images/ticket/gps.png"); pg.bind("click", function(){ showGps(wgps); }); } if(avoc.indexOf(".wav")>0){ av.attr("src","${root}/images/ticket/voice.png"); av.bind("click", function(){ playVideo(avoc); }); } if(wvoc.indexOf(".wav")>0){ pv.attr("src","${root}/images/ticket/voice.png"); pv.bind("click", function(){ playVideo(wvoc); }); } } //添加许可 function addaw(status){ if (window.android){ window.android.allowWorkAdd(status); } } //回调--添加许可 function cbAddaw(id,mode,date,status, aname,wprin,asign,wsign,avoc,wvoc,sgps,wgps){ //添加行记录 if(status=='start'){//开始 //rowCount=$("#saw_tbl tr").length; $('#saw_tbl').append( const_aw_tr(id,mode,date,status, aname,wprin,asign,wsign,avoc,wvoc,sgps,wgps)); }else if(status=='end'){//终结 //rowCount=$("#eaw_tbl tr").length; $('#eaw_tbl').append( const_aw_tr(id,mode,date,status, aname,wprin,asign,wsign,avoc,wvoc,sgps,wgps)); } } //回调--删除行-old function cbDelaw(id,status){ if(status=='start'){//开始 $('#str_'+id).remove(); }else if(status=='end'){//终结 $('#etr_'+id).remove(); } } //构建行记录 function const_aw_tr(id,mode,date,status, aname,wprin,asign,wsign,avoc,wvoc,sgps,wgps){ var tr_start ="<tr align=center id=tr_"+id +" sta='"+ status +"' mode='" + mode +"' date='"+ date +"' aname='" +aname+"' wprin='"+ wprin +"' asign='"+ asign +"' wsign='"+wsign+"'" +">"; var td1="<td id=am_"+id+">" + mode + "</td>"; var td2="<td>"; td2+=" <img id=ai_"+id;//签名 td2+=" alt='" + aname + "' height=30px "; td2+=" src='${root}" + asign + "'"; if(asign==null||asign==''){ td2+=" style=\"display: none;\" />"; }else{ td2+=" style=\"display: inline;\" />"; } td2+=" <label id='al_"+id+"'";//文字 if(asign==null||asign==''){ td2+=" style=\"display: inline;\" >"; }else{ td2+=" style=\"display: none;\" >"; } td2+=" "+aname+" "; td2+=" </label>"; td2+="<img alt='GPS' id='ag_"+id+"' ";//GPS if(sgps!=null && sgps!=''){ td2+=" src='${root}/images/ticket/gps.png' "; td2+=" onclick=showGps('"+sgps+"')"; }else{ td2+=" src='${root}/images/ticket/gps_1.png' "; } td2+=" /> "; td2 += "<img alt='语音' id='av_"+id+"' ";//语音 if(avoc!=null && avoc!='' && avoc!='null'){ td2+=" src='${root}/images/ticket/voice.png' "; td2+=" onclick=playVideo('"+ avoc +"')"; }else{ td2+=" src='${root}/images/ticket/voice_1.png' "; } td2 += "/>"; td2+="</td>"; var td3 = "<td><img id=pi_"+id;//签名 td3+=" alt=\"" + wprin + "\" "; td3+=" src=\"${root}"+wsign +"\" "; td3+=" height=30px width=70px"; if(wsign==null||wsign==''){ td3+=" style=\"display: none;\" />"; }else{ td3+=" style=\"display: inline;\" />"; } td3+=" <label id='pl_"+id+"' ";//文字 if(wsign==null||wsign==''){ td3+=" style=\"display: inline;\" >"; }else{ td3+=" style=\"display: none;\" >"; } td3+=" "+wprin+" "; td3+=" </label>"; td3+="<img alt='GPS' id='gg_"+id+"' ";//GPS if(wgps!=null && wgps!=''){ td3+=" src='${root}/images/ticket/gps.png' "; td3+=" onclick=showGps('"+wgps+"')"; }else{ td3+=" src='${root}/images/ticket/gps_1.png' "; } td3+=" /> "; td3 += "<img alt='语音' id='gv_"+id+"' ";//语音 if(wvoc!=null && wvoc!='' && wvoc!='null'){ td3+=" src='${root}/images/ticket/voice.png' "; td3+=" onclick=playVideo('"+ wvoc+"')"; }else{ td3+=" src='${root}/images/ticket/voice_1.png' "; } td3 += "/>"; td3+="</td>"; var td4 = "<td id=ad_"+id+">"+date+" </td>"; var td5 ="<td>"; td5+="<a href='#' onclick=editAllow('tr_"+id+"')>编辑</a> "; td5+="<a href='#' onclick=delAllow('"+id+"')>删除</a>"; td5+="</td>"; var tr_end = "</tr>"; return (tr_start+td1+td2+td3+td4+td5+tr_end); } //工作票签名 function ticketSign(sAttr ){ var sWords = "";var sName =""; if('${isManage}'=='false'){ if(sAttr=="workGroupSign"){ sWords = $('#workGroupSignLbl').html(); sName = $("#workGroupSignImg").attr("src").replace("${root}",""); } else if(sAttr=="delayAllowName"){ sWords = $('#delayAllowNameLbl').html(); sName = $("#delayAllowNameImg").attr("src").replace("${root}",""); } else if(sAttr=="delayWorkPrincipal"){ sWords = $('#delayWorkPrincipalLbl').html(); sName = $("#delayWorkPrincipalImg").attr("src").replace("${root}",""); } else if(sAttr=="newWorkSignName"){ sWords = $('#newWorkSignNameLbl').html(); sName = $("#newWorkSignNameImg").attr("src").replace("${root}",""); } else if(sAttr=="oldWorkPrincipal"){ sWords = $('#oldWorkPrincipalLbl').html(); sName = $("#oldWorkPrincipalImg").attr("src").replace("${root}",""); } else if(sAttr=="newWorkPrincipal"){ sWords = $('#newWorkPrincipalLbl').html(); sName = $('#newWorkPrincipalImg').attr("src").replace("${root}",""); } else if(sAttr=="workSignName"){ sWords = $('#workSignNameLbl').html(); sName = $("#workSignNameImg").attr("src").replace("${root}",""); } else if(sAttr=="accWorkPrincipal"){//需时间设置 sWords = $('#accWorkPrincipalLbl').html(); sName = $("#accWorkPrincipalImg").attr("src").replace("${root}",""); } if($.trim(sWords)=='点此签名'){ sWords=""; } var ticketId = $('#ticketId').val(); if (window.android){ window.android.ticketSign(ticketId,sAttr, sWords, sName); }else{ alert("ticketId:"+ticketId+"sAttr:"+sAttr+",sWords:"+sWords+",sName:"+sName); } } } //工作票签名回调 function cbTicketSign(sAttr, words, sign, gps ,voice , date){ var hasVoc = (voice.indexOf(".wav")>0?true:false); if(sAttr=="workGroupSign"){ $('#workGroupSignLbl').html(words); $('#workGroupSignLbl').hide(); $('#workGroupSignImg').show(); $("#workGroupSignImg").attr("src","${root }"+sign); $("#workGroupSignGps").attr("src","${root}/images/ticket/gps.png"); $("#workGroupSignGps").bind("click", function(){ showGps(gps); }); if(hasVoc){ $("#workGroupSignVoc").attr("src","${root}/images/ticket/voice.png"); $("#workGroupSignVoc").bind("click", function(){ playVideo(voice); }); } } else if(sAttr=="delayAllowName"){ $('#delayAllowNameLbl').html(words); $('#delayAllowNameLbl').hide(); $('#delayAllowNameImg').show(); $("#delayAllowNameImg").attr("src","${root }"+sign); $("#delayAllowNameGps").attr("src","${root}/images/ticket/gps.png"); $("#delayAllowNameGps").bind("click", function(){ showGps(gps); }); if(hasVoc){ $("#delayAllowNameVoc").attr("src","${root}/images/ticket/voice.png"); $("#delayAllowNameVoc").bind("click", function(){ playVideo(voice); }); } } else if(sAttr=="delayWorkPrincipal"){//需时间设置 $('#delayWorkPrincipalLbl').html(words); $('#delayWorkPrincipalLbl').hide(); $('#delayPrinTime').val(date); $('#delayWorkPrincipalImg').show(); $("#delayWorkPrincipalImg").attr("src","${root }"+sign); $("#delayWorkPrincipalGps").attr("src","${root}/images/ticket/gps.png"); $("#delayWorkPrincipalGps").bind("click", function(){ showGps(gps); }); if(hasVoc){ $("#delayWorkPrincipalVoc").attr("src","${root}/images/ticket/voice.png"); $("#delayWorkPrincipalVoc").bind("click", function(){ playVideo(voice); }); } } else if(sAttr=="newWorkSignName"){ $('#newWorkSignNameLbl').html(words); $('#newWorkSignNameLbl').hide(); $('#newWorkSignNameImg').show(); $("#newWorkSignNameImg").attr("src","${root }"+sign); $("#newWorkSignNameGps").attr("src","${root}/images/ticket/gps.png"); $("#newWorkSignNameGps").bind("click", function(){ showGps(gps); }); if(hasVoc){ $("#newWorkSignNameVoc").attr("src","${root}/images/ticket/voice.png"); $("#newWorkSignNameVoc").bind("click", function(){ playVideo(voice); }); } //document.getElementById('newWorkSignNameGps').onclick= showGps(gps); } else if(sAttr=="oldWorkPrincipal"){ $('#oldWorkPrincipalLbl').html(words); $('#oldWorkPrincipalLbl').hide(); $('#oldWorkPrincipalImg').show(); $("#oldWorkPrincipalImg").attr("src","${root }"+sign); $("#oldWorkPrincipalGps").attr("src","${root}/images/ticket/gps.png"); $("#oldWorkPrincipalGps").bind("click", function(){ showGps(gps); }); if(hasVoc){ $("#oldWorkPrincipalVoc").attr("src","${root}/images/ticket/voice.png"); $("#oldWorkPrincipalVoc").bind("click", function(){ playVideo(voice); }); } } else if(sAttr=="newWorkPrincipal"){ $('#newWorkPrincipalLbl').html(words); $('#newWorkPrincipalLbl').hide(); //$('#delayPrinTime').val(date); $('#newWorkPrincipalImg').show(); $("#newWorkPrincipalImg").attr("src","${root }"+sign); $("#newWorkPrincipalGps").attr("src","${root}/images/ticket/gps.png"); $("#newWorkPrincipalGps").bind("click", function(){ showGps(gps); }); if(hasVoc){ $("#newWorkPrincipalVoc").attr("src","${root}/images/ticket/voice.png"); $("#newWorkPrincipalVoc").bind("click", function(){ playVideo(voice); }); } } else if(sAttr=="workSignName"){//需时间设置 $('#workSignNameLbl').html(words); $('#workSignNameLbl').hide(); $('#signDate').val(date); $('#workSignNameImg').show(); $("#workSignNameImg").attr("src","${root }"+sign); $("#workSignNameGps").attr("src","${root}/images/ticket/gps.png"); $("#workSignNameGps").bind("click", function(){ showGps(gps); }); if(hasVoc){ $("#workSignNameVoc").attr("src","${root}/images/ticket/voice.png"); $("#workSignNameVoc").bind("click", function(){ playVideo(voice); }); } } else if(sAttr=="accWorkPrincipal"){//需时间设置 $('#accWorkPrincipalLbl').html(words); $('#accWorkPrincipalLbl').hide(); $('#priReceiveSignDate').val(date); $('#accWorkPrincipalImg').show(); $("#accWorkPrincipalImg").attr("src","${root }"+sign); $("#accWorkPrincipalGps").attr("src","${root}/images/ticket/gps.png"); $("#accWorkPrincipalGps").bind("click", function(){ showGps(gps); }); if(hasVoc){ $("#accWorkPrincipalVoc").attr("src","${root}/images/ticket/voice.png"); $("#accWorkPrincipalVoc").bind("click", function(){ playVideo(voice); }); } } } //工作组签名 function groupSign(gid ){ var sWords ="",sName = ""; if(gid!=''){ sName = $('#gi_'+gid).attr("src").replace("${root}",""); sWords = $('#gl_'+gid).html(); } var ticketId = $('#ticketId').val(); var sAttr="workGroupSign_"+gid; if (window.android){ window.android.ticketSign(ticketId,sAttr, sWords, sName); }else{ alert(gid); } } //回调--工作组签名 function cbGroupSign(gid,gdt,words,sign,gps,voice){ if(gdt=='add'){//添加 var imgObj = " <img alt='点此签名' src='${root }"+sign+"'"; imgObj+=" height=30px id='gi_"+gid+"' "; imgObj+=" onclick=groupSign('"+gid+"')"; if(sign!=null&&sign!=''){ imgObj+=" style=\"display: inline;\""; }else{ imgObj+=" style=\"display: none;\""; } imgObj+=" />"; var lblObj=" <label class='ulinelbl' width: 100px; id='gl_"+gid+"'"; lblObj+=" onclick=groupSign('"+gid+"')"; if(sign!=null&&sign!=''){ lblObj+=" style=\"display: none;\""; }else{ lblObj+=" style=\"display: inline;\""; } lblObj+=" >"+words+"</label>"; var gpsObj =" <img alt='GPS' height=22px width=22px id='gg_"+gid+"' "; if(gps!=null&&gps!=''){ gpsObj+=" src='${root}/images/ticket/gps.png' "; gpsObj+=" onclick=showGps('"+gps+"')"; }else{ gpsObj+=" src='${root}/images/ticket/gps_1.png' "; } gpsObj+=" /> "; var vocObj = "<img alt='语音' height=22px width=22px"; if(voice!=null&&voice!=''&&voice!='null'){ vocObj+=" src='${root}/images/ticket/voice.png' "; vocObj+=" onclick=playVideo('"+ voice +"')"; }else{ vocObj+=" src='${root}/images/ticket/voice_1.png' "; } vocObj += "/>"; $('#wtg_div').append(imgObj+lblObj+gpsObj+vocObj); }else if(gdt=='edit'){//编辑 $('#gi_'+gid).attr("src","${root }"+sign); $('#gl_'+gid).html(words); $('#gl_'+gid).hide(); $('#gg_'+gid).attr("src","${root}/images/ticket/gps.png"); $('#gg_'+gid).bind("click", function(){ showGps(gps); }); } } //自动保存文本 function autoSave(attr,id){ if('${isManage}'=='false'){ var ticketIdVal = $('#ticketId').val(); $.post("${root }/android/updateSglwtc.action", {ticketId:ticketIdVal,attr:attr,attrVal:$('#'+id).val()}, cbTicketAttr); } } //自动保存日期 function autoSaveDate(attr,id){ if('${isManage}'=='false'){ var ticketIdVal = $('#ticketId').val(); var dateVal = $('#'+id).val(); if(valiCnDate(dateVal)){ $.post("${root }/android/updateSglwtc.action", {ticketId:ticketIdVal,attr:attr,attrVal:dateVal}, cbTicketAttr); }else{ if (window.android){ window.android.showMsg("日期格式不正确,正确的格式:yyyy年MM月dd日"); } } } } /** * web端音乐播放 * */ function webVideo(url) { url= '${root }' + url; try{ document.getElementById('bgss').src=url; bgss.play(); }catch(e){ } } /** * 音乐播放 * */ function playVideo(url){ var _url= '${root }' + url; if(window.android){ window.android.playMusic(_url); }else{ webVideo(url); } } </SCRIPT> </head> <body><div> <bgsound loop="false" autostart="false" id="bgss"> <form name="wtcform" id="wtcform" action="${root }/android/updatewtc.action" method="post"> <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="C5C5C5"> <tr> <td valign="top" bgcolor="#FFFFFF"> <table width="100%" border="0" align="center"> <tr align="center" valign="middle"> <td height="42" colspan="2"><span class="STYLE2">电力线路第一种工作票</span></td> </tr> <tr> <td colspan="2" align="right" valign="middle">编号 <input type="text" name="textfield" value="${contents.trueticketNum }" /> </td> </tr> <tr> <td colspan="2" align="left" valign="baseline">工作单位 <input type="text" readonly="readonly" value="${contents.mainWorkUnit}"" size="40"/> </td> </tr> <tr> <td colspan="2" align="left" valign="baseline"> 1、工作负责人(监护人) <input type="text" readonly="readonly" value="${contents.workPrincipal}" readonly="readonly" name="textfield3" /> 班组 <input type="text" readonly="readonly" value="${contents.mainworkGroup}" name="textfield4" /> <SPAN style="height: 13px;width: 100%;display: block;"> </SPAN> 2、工作班人员(不包括工作负责人): <input type="text" readonly="readonly" value="${contents.workGroupMem}" name="textfield5" size="40"/> 共 <input readonly="readonly" id="workGroupCount" value="${contents.workGroupCount}" name="workGroupCount" size="6" /> 人; <SPAN style="height: 13px;width: 100%;display: block;"> </SPAN> 3、工作的线路或设备双重名称(多回路应注明双重称号): <span style='text-decoration: underline'> <textarea readonly="readonly" style="width:100%; right:75px;" >${contents.workPowerstation}</textarea> </span> <SPAN style="height: 13px;width: 100%;display: block;"> </SPAN> 4、工作任务和简图: <SPAN style="height: 10px;width: 100%;display: block;"> </SPAN> 4.1工作任务(注明分、支线路名称、线路的起止杆号和工作内容): <span style='text-decoration: underline'> <textarea readonly="readonly" style="width:100%; right:75px;" >${contents.workItem}</textarea> </span> <SPAN style="height: 10px;width: 100%;display: block;"> </SPAN> 4.2简图 <div> <img alt="简图" src="${root }${contents.drawing }"> </div> <SPAN style="height: 13px;width: 100%;display: block;"> </SPAN> 5、计划工作时间: 自 <input type="text" readonly="readonly" value="${contents.planWorktimeStart}" name="planWorktimeStart" size="25"/> 至 <input type="text" readonly="readonly" value="${contents.planWorktimeEnd }" name="planWorktimeEnd" size="25"/> <SPAN style="height: 13px;width: 100%;display: block;"> </SPAN> 6、安全措施: <SPAN style="height: 10px;width: 100%;display: block;"> </SPAN> 6.1 应改为检修状态的线路间隔名称和应拉开的断路器(开关)、隔离开关(刀闸)、熔断器(包括分支线、用户线路和配合停电线路): <textarea readonly="readonly" style="width:100%; right:75px;">${contents.offswitch}</textarea> <SPAN style="height: 10px;width: 100%;display: block;"> </SPAN> 6.2 保留邻近的带电线路、设备: <textarea readonly="readonly" style="width:100%; right:75px;">${contents.linedev}</textarea> <SPAN style="height: 10px;width: 100%;display: block;"> </SPAN> 6.3 其他安全措施和注意事项: <textarea readonly="readonly" style="width:100%; right:75px;">${contents.othersafe}</textarea> <SPAN style="height: 10px;width: 100%;display: block;"> </SPAN> 6.4应挂接地线: <table id="out_tbl" cellpadding="0" cellspacing="0" style="BORDER-COLLAPSE: collapse;" border="0"> <s:set id="listCount" value="#request.elist.size-1"></s:set> <s:iterator begin="0" end="#request.rowCount" step="1" status="out_stat"> <tr> <td width="22%" nowrap="nowrap">路线名称及杆号</td> <s:iterator value="#request.elist" id="earthline" status="stat" begin="#out_stat.index*6" end="#out_stat.index*6+5>#listCount?#listCount:#out_stat.index*6+5"> <td width="13%"><s:property value="poleName"/></td> </s:iterator> <s:iterator begin="0" end="#out_stat.index*6+4-#listCount"> <td width="13%"> </td> </s:iterator> </tr> <tr> <td width="22%" nowrap="nowrap">接地线编号</td> <s:iterator value="#request.elist" id="earthline" status="stat" begin="#out_stat.index*6" end="#out_stat.index*6+5>#listCount?#listCount:#out_stat.index*6+5"> <td width="13%" id=<s:property value='lineIndex'/> ticketId=<s:property value='ticketId'/> > <input type="text" onblur="changeVal('<s:property value="earthLine"/>','<s:property value="ticketId"/>','<s:property value="lineIndex"/>',this)" class="MDFlatInput" style="width: 100%;" value=<s:property value="earthLine"/> /> </td> </s:iterator> <s:iterator begin="0" end="#out_stat.index*6+4-#listCount"> <td width="13%"> </td> </s:iterator> </tr> </s:iterator> </table> <!-- editable space start --> <SPAN style="height: 13px;width: 100%;display: block;"> </SPAN> 7、工作许可方: <input type="text" value="${contents.permission}" name="content.permission" id="permission" onblur="autoSave('permission','permission')"/> 工作票签发人签名: <img alt="点此签名" height="40px" width="100px" id="workSignNameImg" src="${root }${contents.workSignNameImg }" onclick="ticketSign('workSignName')" <s:if test="#request.contents.workSignNameImg!=null&&#request.contents.workSignNameImg!=''"> style="display: inline;" </s:if><s:else> style="display: none;" </s:else> /> <label class="ulinelbl" style="width: 100px;" id="workSignNameLbl" onclick="ticketSign('workSignName')"> <s:if test="#request.contents.workSignName!=null&&#request.contents.workSignName!=''}">${contents.workSignName}</s:if> <s:else>点此签名</s:else> </label> <input type="text" readonly="readonly" id="signDate" value="${contents.signDate }" size="24"/> <img alt="GPS" height="22px" width="22px" id="workSignNameGps" <s:if test="#request.contents.workSignNameGps!=''"> onclick="showGps('${contents.workSignNameGps }')" src="${root}/images/ticket/gps.png" </s:if><s:else> src="${root}/images/ticket/gps_1.png" </s:else> /> <img alt="语音" height="22px" width="22px" id="workSignNameVoc" <s:if test="#request.contents.workSignNameVoc!=null&&#request.contents.workSignNameVoc!=''"> onclick="playVideo('<s:property value="#request.contents.workSignNameVoc"/>')" src="${root}/images/ticket/voice.png" </s:if><s:else> src="${root}/images/ticket/voice_1.png" </s:else> /> <br> 工作负责人签名: <img alt="点此签名" height="30px" id="accWorkPrincipalImg" src="${root }${contents.accWorkPrincipalImg }" onclick="ticketSign('accWorkPrincipal')" <s:if test="#request.contents.accWorkPrincipalImg!=null&&#request.contents.accWorkPrincipalImg!=''"> style="display: inline;" </s:if><s:else> style="display: none;" </s:else> /> <label class="ulinelbl" style="width: 100px;" id="accWorkPrincipalLbl" onclick="ticketSign('accWorkPrincipal')"> <s:if test="#request.contents.accWorkPrincipal!=null&&#request.contents.accWorkPrincipal!=''}">${contents.accWorkPrincipal}</s:if> <s:else>点此签名</s:else> </label> <input type="text" readonly="readonly" value="${contents.priReceiveSignDate }" name="priReceiveSignDate" size="24"/> <img alt="GPS" height="22px" width="22px" id="accWorkPrincipalGps" <s:if test="#request.contents.accWorkPrincipalGps!=null&&#request.contents.accWorkPrincipalGps!=''"> onclick="showGps('${contents.accWorkPrincipalGps }')" src="${root}/images/ticket/gps.png" </s:if><s:else> src="${root}/images/ticket/gps_1.png" </s:else> /> <img alt="语音" height="22px" width="22px" id="accWorkPrincipalVoc" <s:if test="#request.contents.accWorkPrincipalVoc!=null&&#request.contents.accWorkPrincipalVoc!=''"> onclick="playVideo('<s:property value="#request.contents.accWorkPrincipalVoc"/>')" src="${root}/images/ticket/voice.png" </s:if><s:else> src="${root}/images/ticket/voice_1.png" </s:else> /> <SPAN style="height: 13px;width: 100%;display: block;"> </SPAN> 8、确认本工作票1至7项,许可工作开始:<input type="button" onclick="addaw('start')" id="saw_add" value=" 添 加 "> <table id="saw_tbl" width="100%" border="1" bordercolor="#000000" style="border-collapse: collapse" cellpadding="0" cellspacing="0"> <tr> <td width="15%" align="center">许可方式</td> <td width="20%" align="center">许可人</td> <td width="20%" align="center">工作负责人签名</td> <td width="30%" align="center">许可工作时间</td> <s:if test="#request.isManage=='false'"> <td width="15%" align="center">操作</td> </s:if> </tr> <s:iterator value="#request.sawlist" var="a" status="stat"> <tr align="center" id="tr_${a.allowworkinfoid }" sta="${a.status }" mode="${a.allowmode }" date="${a.allowDate }" aname="${a.sureAllowName }" wprin="${a.sureWorkPrincipal }" asign="${a.sureAllowSign }" wsign="${a.signName }" > <td id="am_${a.allowworkinfoid }"> ${a.allowmode}</td> <td> <img id="ai_${a.allowworkinfoid }" alt="${a.sureAllowName}" height="30px" src="${root}<s:property value='sureAllowSign'/>" <s:if test="sureAllowSign!=null&&sureAllowSign!=''"> style="display: inline;" </s:if><s:else> style="display: none;" </s:else> /> <label id="al_${a.allowworkinfoid }" <s:if test="sureAllowSign!=null&&sureAllowSign!=''"> style="display: none;" </s:if><s:else> style="display: inline;" </s:else> > ${a.sureAllowName} </label> <img alt="GPS" id="ag_${a.allowworkinfoid }" <s:if test="sureAllowGps!=null&&sureAllowGps!=''"> src="${root}/images/ticket/gps.png" onclick="showGps('<s:property value="sureAllowGps"/>')" </s:if><s:else> src="${root}/images/ticket/gps_1.png" </s:else> /> <img alt="语音" id="av_${a.allowworkinfoid }" <s:if test="sureAllowRecord!=null&&sureAllowRecord!=''"> onclick="playVideo('<s:property value="sureAllowRecord"/>')" src="${root}/images/ticket/voice.png" </s:if><s:else> src="${root}/images/ticket/voice_1.png" </s:else> /> </td> <td> <img id="pi_${a.allowworkinfoid }" alt="${a.sureWorkPrincipal}" src="${root}<s:property value='signName'/>" height="30px" width="70px" <s:if test="signName!=null&&signName!=''"> style="display: inline;" </s:if><s:else> style="display: none;" </s:else> /> <label id="pl_${a.allowworkinfoid }" <s:if test="signName!=null&&signName!=''"> style="display: none;" </s:if><s:else> style="display: inline;" </s:else> > ${a.sureWorkPrincipal} </label> <img alt="GPS" id="pg_${a.allowworkinfoid }" <s:if test="gps!=null&&gps!=''"> src="${root}/images/ticket/gps.png" onclick="showGps('<s:property value="gps"/>')" </s:if><s:else> src="${root}/images/ticket/gps_1.png" </s:else> /> <img alt="语音" id="pv_${a.allowworkinfoid }" <s:if test="recordName!=null&&recordName!=''"> onclick="playVideo('<s:property value="recordName"/>')" src="${root}/images/ticket/voice.png" </s:if><s:else> src="${root}/images/ticket/voice_1.png" </s:else> /> </td> <td id="ad_${a.allowworkinfoid }"> ${a.allowDate}</td> <s:if test="#request.isManage=='false'"> <td> <a href="#" onclick="editAllow('tr_${a.allowworkinfoid }')">编辑</a> <a href="#" onclick="delAllow('${a.allowworkinfoid }')">删除</a> </td> </s:if> </tr> </s:iterator> </table> <SPAN style="height: 13px;width: 100%;display: block;"> </SPAN> 9、确认工作负责人布置的工作任务和安全措施。 <br> 工作班组人员签名: <img alt="添加" src="${root}/images/ticket/oicn_add.png" id="group_add" onclick="groupSign('')" height="22px" width="22px"/> <div id="wtg_div"> <s:iterator value="#request.wtglist" var="wtg"> <img alt="点此签名" src="${root }<s:property value='sign'/>" height="30px" id="gi_<s:property value='workTicketGroupId'/>" onclick="groupSign('<s:property value="workTicketGroupId"/>')" <s:if test="sign!=null&&sign!=''"> style="display: inline;" </s:if><s:else> style="display: none;" </s:else> /> <label class="ulinelbl" style="width: 100px;" id="gl_<s:property value='workTicketGroupId'/>" onclick="groupSign('<s:property value="workTicketGroupId"/>')" <s:if test="sign!=null&&sign!=''"> style="display: none;" </s:if><s:else> style="display: inline;" </s:else> ><s:property value='name'/></label> <img alt="GPS" height="22px" width="22px" id="gg_<s:property value='workTicketGroupId'/>" <s:if test="gps!=null&&gps!=''"> src="${root}/images/ticket/gps.png" onclick="showGps('<s:property value="gps"/>')" </s:if><s:else> src="${root}/images/ticket/gps_1.png" </s:else> /> <img alt="语音" height="22px" width="22px" id="gv_<s:property value='workTicketGroupId'/>" <s:if test="voice!=null&&voice!=''"> onclick="playVideo('<s:property value="voice"/>')" src="${root}/images/ticket/voice.png" </s:if><s:else> src="${root}/images/ticket/voice_1.png" </s:else> /> </s:iterator> </div> <SPAN style="height: 13px;width: 100%;display: block;"> </SPAN> 10.工作票延期:经工作许可人 <img alt="点此签名" height="30px" id="delayAllowNameImg" src="${root }${contents.delayAllowNameImg }" onclick="ticketSign('delayAllowName')" <s:if test="#request.contents.delayAllowNameImg!=null&&#request.contents.delayAllowNameImg!=''"> style="display: inline;" </s:if><s:else> style="display: none;" </s:else> /> <label class="ulinelbl" style="width: 100px;" id="delayAllowNameLbl" onclick="ticketSign('delayAllowName')"> <s:if test="#request.contents.delayAllowName!=null&&#request.contents.delayAllowName!=''}">${contents.delayAllowName}</s:if> <s:else>点此签名</s:else> </label> <img alt="GPS" height="22px" width="22px" id="delayAllowNameGps" <s:if test="#request.contents.delayAllowNameGps!=null&&#request.contents.delayAllowNameGps!=''"> onclick="showGps('${contents.delayAllowNameGps }')" src="${root}/images/ticket/gps.png" </s:if><s:else> src="${root}/images/ticket/gps_1.png" </s:else> /> <img alt="语音" height="22px" width="22px" id="delayAllowNameVoc" <s:if test="#request.contents.delayAllowNameVoc!=null&&#request.contents.delayAllowNameVoc!=''"> onclick="playVideo('${contents.delayAllowNameVoc }')" src="${root}/images/ticket/voice.png" </s:if><s:else> src="${root}/images/ticket/voice_1.png" </s:else> /> 同意,工作票有效期延长到 <input type="text" id="extendTime" value="${contents.extendTime }" name="content.extendTime" size="24" onblur="autoSaveDate('extendTime','extendTime')" /> <SPAN style="height: 10px;width: 100%;display: block;"> </SPAN> 工作负责人签名: <img alt="点此签名" height="30px" id="delayWorkPrincipalImg" src="${root }${contents.delayWorkPrincipalImg }" onclick="ticketSign('delayWorkPrincipal')" <s:if test="#request.contents.delayWorkPrincipalImg!=null&&#request.contents.delayWorkPrincipalImg!=''"> style="display: inline;" </s:if><s:else> style="display: none;" </s:else> /> <label class="ulinelbl" style="width: 100px;" id="delayWorkPrincipalLbl" onclick="ticketSign('delayWorkPrincipal')"> <s:if test="#request.contents.delayWorkPrincipal!=null&&#request.contents.delayWorkPrincipal!=''}">${contents.delayWorkPrincipal}</s:if> <s:else>点此签名</s:else> </label> <input type="text" readonly="readonly" value="${contents.delayPrinTime }" name="content.delayPrinTime" id="delayPrinTime" size="24"/> <img alt="GPS" height="22px" width="22px" id="delayWorkPrincipalGps" <s:if test="#request.contents.delayWorkPrincipalGps!=null&&#request.contents.delayWorkPrincipalGps!=''"> onclick="showGps('${contents.delayWorkPrincipalGps }')" src="${root}/images/ticket/gps.png" </s:if><s:else> src="${root}/images/ticket/gps_1.png" </s:else> /> <img alt="语音" height="22px" width="22px" id="delayWorkPrincipalVoc" <s:if test="#request.contents.delayWorkPrincipalVoc!=null&&#request.contents.delayWorkPrincipalVoc!=''"> onclick="playVideo('${contents.delayWorkPrincipalVoc }')" src="${root}/images/ticket/voice.png" </s:if><s:else> src="${root}/images/ticket/voice_1.png" </s:else> /> <SPAN style="height: 14px;width: 100%;display: block;"> </SPAN> 11、工作票终结: <SPAN style="height: 10px;width: 100%;display: block;"> </SPAN> 11.1、现场所挂接地线 <input type="text" value="${contents.unbackNum}" name="content.unbackNum" id="unbackNum" onblur="autoSave('unbackNum','unbackNum')"/> 组,已全部拆除、带回。 <SPAN style="height: 10px;width: 100%;display: block;"> </SPAN> 11.2、现场所挂个人保安线 <input type="text" value="${contents.unknifeLittlecar}" name="content.unknifeLittlecar" id="unknifeLittlecar" onblur="autoSave('unknifeLittlecar','unknifeLittlecar')" /> 组(根),已全部拆除、带回。 <SPAN style="height: 10px;width: 100%;display: block;"> </SPAN> 11.3、工作终结报告:<input type="button" onclick="addaw('end')" id="eaw_add" value=" 添 加 "> <br/> <table id="eaw_tbl" width="100%" border="1" bordercolor="#000000" style="border-collapse: collapse" cellpadding="0" cellspacing="0" > <tr> <td align="center" width="15%">总结报告方式</td> <td align="center" width="20%">许可人</td> <td align="center" width="20%">工作负责人签名</td> <td align="center" width="30%">终结报告时间</td> <s:if test="#request.isManage=='false'"> <td align="center" width="15%">操作</td> </s:if> </tr> <s:iterator value="#request.eawlist" var="a" status="stat"> <tr align="center" id="tr_${a.allowworkinfoid }" sta="${a.status }" mode="${a.allowmode }" date="${a.allowDate }" aname="${a.sureAllowName }" wprin="${a.sureWorkPrincipal }" asign="${a.sureAllowSign }" wsign="${a.signName }" > <td id="am_${a.allowworkinfoid }"> ${a.allowmode}</td> <td> <img id="ai_${a.allowworkinfoid }" alt="${a.sureAllowName}" height="30px" src="${root}<s:property value='sureAllowSign'/>" <s:if test="sureAllowSign!=null&&sureAllowSign!=''"> style="display: inline;" </s:if><s:else> style="display: none;" </s:else> /> <label id="al_${a.allowworkinfoid }" <s:if test="sureAllowSign!=null&&sureAllowSign!=''"> style="display: none;" </s:if><s:else> style="display: inline;" </s:else> > ${a.sureAllowName} </label> <img alt="GPS" id="ag_${a.allowworkinfoid }" <s:if test="sureAllowGps!=null&&sureAllowGps!=''"> src="${root}/images/ticket/gps.png" onclick="showGps('<s:property value="sureAllowGps"/>')" </s:if><s:else> src="${root}/images/ticket/gps_1.png" </s:else> /> <img alt="语音" id="av_${a.allowworkinfoid }" <s:if test="sureAllowRecord!=null&&sureAllowRecord!=''"> onclick="playVideo('<s:property value="sureAllowRecord"/>')" src="${root}/images/ticket/voice.png" </s:if><s:else> src="${root}/images/ticket/voice_1.png" </s:else> /> </td> <td> <img id="pi_${a.allowworkinfoid }" alt="${a.sureWorkPrincipal}" src="${root}<s:property value='signName'/>" height="30px" width="70px" <s:if test="signName!=null&&signName!=''"> style="display: inline;" </s:if><s:else> style="display: none;" </s:else> /> <label id="pl_${a.allowworkinfoid }" <s:if test="signName!=null&&signName!=''"> style="display: none;" </s:if><s:else> style="display: inline;" </s:else> > ${a.sureWorkPrincipal} </label> <img alt="GPS" id="pg_${a.allowworkinfoid }" <s:if test="gps!=null&&gps!=''"> src="${root}/images/ticket/gps.png" onclick="showGps('<s:property value="gps"/>')" </s:if><s:else> src="${root}/images/ticket/gps_1.png" </s:else> /> <img alt="语音" id="pv_${a.allowworkinfoid }" <s:if test="recordName!=null&&recordName!=''"> onclick="playVideo('<s:property value="recordName"/>')" src="${root}/images/ticket/voice.png" </s:if><s:else> src="${root}/images/ticket/voice_1.png" </s:else> /> </td> <td id="ad_${a.allowworkinfoid }"> ${a.allowDate}</td> <s:if test="#request.isManage=='false'"> <td > <a href="#" onclick="editAllow('tr_${a.allowworkinfoid }')">编辑</a> <a href="#" onclick="delAllow('${a.allowworkinfoid }')">删除</a> </td> </s:if> </tr> </s:iterator> </table> <SPAN style="height: 14px;width: 100%;display: block;"> </SPAN> 12、备注:<br> (1)指定专责监护人 <input type="text" value="${contents.keep1_1}" name="content.keep1_1" id="keep1_1" onblur="autoSave('keep11','keep1_1')"/> 负责监护(地点及具体工作) <input type="text" value="${contents.keep1_2}" name="content.keep1_2" id="keep1_2" size="108" onblur="autoSave('keep12','keep1_2')"/> <br> 定专责监护人 <input type="text" value="${contents.keep1_3}" name="content.keep1_3" id="keep1_3" onblur="autoSave('keep13','keep1_3')"/> 负责监护(地点及具体工作)<br> <input type="text" value="${contents.keep1_4}" name="content.keep1_4" id="keep1_4" size="108" onblur="autoSave('keep14','keep1_4')"/> <br> 指定专责监护人 <input type="text" value="${contents.keep2}" name="content.keep2" id="keep2" onblur="autoSave('keep2','keep2')" /> 负责监护(地点及具体工作) <br> <input type="text" value="${contents.keep3}" name="content.keep3" id="keep3" size="108" onblur="autoSave('keep3','keep3')"/> <br> (2)工作负责人变动情况: <input type="text" value="${contents.changeTime }" name="content.changeTime" id="changeTime" size="24" onblur="autoSaveDate('changeTime','changeTime')" /> , 经签发人 <img alt="点此签名" height="30px" id="newWorkSignNameImg" src="${root }${contents.newWorkSignNameImg }" onclick="ticketSign('newWorkSignName')" <s:if test="#request.contents.newWorkSignNameImg!=null&&#request.contents.newWorkSignNameImg!=''"> style="display: inline;" </s:if><s:else> style="display: none;" </s:else> /> <label class="ulinelbl" style="width: 100px;" id="newWorkSignNameLbl" onclick="ticketSign('newWorkSignName')"> <s:if test="#request.contents.newWorkSignName!=null&&#request.contents.newWorkSignName!=''}">${contents.newWorkSignName}</s:if> <s:else>点此签名</s:else> </label> <img alt="GPS" height="22px" width="22px" id="newWorkSignNameGps" <s:if test="#request.contents.newWorkSignNameGps!=null&&#request.contents.newWorkSignNameGps!=''"> src="${root}/images/ticket/gps.png" onclick="showGps('${contents.newWorkSignNameGps }')" </s:if><s:else> src="${root}/images/ticket/gps_1.png" </s:else> /> <img alt="语音" height="22px" width="22px" id="newWorkSignNameVoc" <s:if test="#request.contents.newWorkSignNameVoc!=null&&#request.contents.newWorkSignNameVoc!=''"> onclick="playVideo('${contents.newWorkSignNameVoc }')" src="${root}/images/ticket/voice.png" </s:if><s:else> src="${root}/images/ticket/voice_1.png" </s:else> /> 同意,原工作负责人 <img alt="点此签名" height="30px" id="oldWorkPrincipalImg" src="${root }${contents.oldWorkPrincipalImg }" onclick="ticketSign('oldWorkPrincipal')" <s:if test="#request.contents.oldWorkPrincipalImg!=null&&#request.contents.oldWorkPrincipalImg!=''"> style="display: inline;" </s:if><s:else> style="display: none;" </s:else> /> <label class="ulinelbl" style="width: 100px;" id="oldWorkPrincipalLbl" onclick="ticketSign('oldWorkPrincipal')" > <s:if test="#request.contents.oldWorkPrincipal!=null&&#request.contents.oldWorkPrincipal!=''}">${contents.oldWorkPrincipal}</s:if> <s:else>点此签名</s:else> </label> <img alt="GPS" height="22px" width="22px" id="oldWorkPrincipalGps" <s:if test="#request.contents.oldWorkPrincipalGps!=''"> onclick="showGps('${contents.oldWorkPrincipalGps }')" src="${root}/images/ticket/gps.png" </s:if><s:else> src="${root}/images/ticket/gps_1.png" </s:else> /> <img alt="语音" height="22px" width="22px" id="oldWorkPrincipalVoc" <s:if test="#request.contents.oldWorkPrincipalVoc!=null&&#request.contents.oldWorkPrincipalVoc!=''"> onclick="playVideo('${contents.oldWorkPrincipalVoc }')" src="${root}/images/ticket/voice.png" </s:if><s:else> src="${root}/images/ticket/voice_1.png" </s:else> /> 离去,变更 <img alt="点此签名" height="30px" id="newWorkPrincipalImg" src="${root }${contents.newWorkPrincipalImg }" onclick="ticketSign('newWorkPrincipal')" <s:if test="#request.contents.newWorkPrincipalImg!=null&&#request.contents.newWorkPrincipalImg!=''"> style="display: inline;" </s:if><s:else> style="display: none;" </s:else> /> <label class="ulinelbl" style="width: 100px;" id="newWorkPrincipalLbl" onclick="ticketSign('newWorkPrincipal')" > <s:if test="#request.contents.newWorkPrincipal!=null&&#request.contents.newWorkPrincipal!=''}">${contents.newWorkPrincipal}</s:if> <s:else>点此签名</s:else> </label> <img alt="GPS" height="22px" id="newWorkPrincipalGps" <s:if test="#request.contents.newWorkPrincipalGps!=null&&#request.contents.newWorkPrincipalGps!=''"> src="${root}/images/ticket/gps.png" onclick="showGps('${contents.newWorkPrincipalGps }')" </s:if><s:else> src="${root}/images/ticket/gps_1.png" </s:else> /> <img alt="语音" height="22px" width="22px" id="newWorkPrincipalVoc" <s:if test="#request.contents.newWorkPrincipalVoc!=null&&#request.contents.newWorkPrincipalVoc!=''"> onclick="playVideo('${contents.newWorkPrincipalVoc }')" src="${root}/images/ticket/voice.png" </s:if><s:else> src="${root}/images/ticket/voice_1.png" </s:else> /> 为工作负责人。 <br> <br> (3)其他事项:<br> <span style='text-decoration: underline'> <textarea name="content.remark" id="remark" style="width:100%; right:75px;" onblur="autoSave('remark','remark')">${contents.remark}</textarea> </span> <SPAN style="height: 10px;width: 100%;display: block;"> </SPAN> <input type="hidden" name="content.state" id="state" value="${contents.state}"/> <input type="hidden" name="content.ticketId" id="ticketId" value="${contents.ticketId }"> <input type="hidden" name="isManage" value="${isManage }"> <div style="width: 100%;text-align: center; display: block;"> <input type="button" onclick="saveTicket()" id="save_btn" value=" 保 存 "> <input type="button" onclick="submitTicket()" id="submit_btn" value=" 提 交 "> </div> </td> </tr> <tr> <td colspan="2" height="10px"> </td> </tr> </table> </td> </tr> </table> </form> </div> </body> </html>
发表评论
-
Android 远程服务(remote service)
2012-05-29 18:08 9536Android 远程服务 Android远程服务(Remot ... -
百度地图 Android SDK 技术详解集锦
2012-05-21 15:46 2333【百度地图-android SDK】技术详解集锦 百 ... -
Android 避免重复提交
2012-05-11 13:19 7580不曾想,android系统也会有重复提交的问题。网上搜了下,基 ... -
Android 手写签名实例
2012-05-05 15:50 23537这篇文章本来想在一个月前就发布的,最近一直忙于国家电网手持 ... -
ScrollView 中嵌套ListView
2012-04-26 19:45 2049在ScrollView中嵌套使用ListView,Lis ... -
EditText 文本焦点事件
2012-04-19 12:12 9750焦点改变监听:setOnFocus ... -
ListView自定义adapter处理多事件
2012-04-13 16:31 9043使用过ListView 的开发人员都知道,ListView ... -
自定义类继承ImageView 实现多点图片触碰的拖动和缩放
2012-04-13 10:37 15631最近的一个android 项目中,客户要求在查看拍照上传的图片 ... -
android 嵌入服务端页面二 之WebView与页面互调
2012-04-06 16:51 8988WebView引入页面及回调处理 <?xm ... -
android开发 ImageView显示文字
2012-03-25 15:35 20776我们将一张图片显示在屏幕上,首先要创建一个图片显示的对象Ima ... -
android开发 资料下载
2012-03-18 13:33 1775这里汇总了android的一些学习资料,有兴趣的可以下载看看。 ... -
Android开发 准备工作补充
2012-03-10 17:57 1310如果你用的IDE是myeclipse,直接通过插件 ... -
Android开发 准备工作
2012-03-10 17:39 1721Android 开发 前期准备: Eclipse3. ...
相关推荐
在IT行业中,构建Android应用程序与后端服务器交互是常见的需求,这里我们主要关注"android服务端jsp+servlet+mysql"这个主题。这个组合涉及到Android客户端、Java Web服务端以及数据库管理,下面将详细阐述这三个...
CocosCreator 嵌入原生 Android 项目详解 本文将详细介绍如何将 CocosCreator 项目嵌入到原生 Android 项目中,包括编译 CocosCreator 项目、配置 Android 项目、添加libcocos2dx依赖模板、设置依赖模块、启动Cocos...
本项目"Android打开H5网页完整AndroidStudio工程"旨在帮助开发者快速理解和实现这一功能。下面将详细介绍这个项目中的关键知识点。 1. **WebView组件**: Android中的WebView是Android SDK提供的一个核心组件,它...
- 使用Android Studio的Run按钮或命令行工具编译和安装APK到设备或模拟器上。 - 利用Android Studio的调试工具,可以对Java和C++代码进行同步调试。 8. **优化和性能** - 考虑使用预编译头文件(GCH)、代码分割...
这篇博文链接指向了作者obacow在iteye博客上分享的一篇关于Android嵌入Lua的文章。从标题和标签我们可以推测,这篇文章可能涵盖了如何在Android应用中集成和使用Lua语言,以及可能涉及到了源码解析和工具的使用。 ...
这款压缩包包含的是一个针对机票预订的Android手机软件的服务端代码,主要编程语言为PHP。在深入探讨相关知识点之前,我们需要了解几个基本概念: 1. **Android手机软件**:Android是一种开源的操作系统,广泛应用...
本教程将重点关注Android与服务端的交互,以及使用JSP进行数据展示。以下是对这些技术点的详细阐述: 1. **网络通信**:Android客户端与服务端之间的通信主要依赖于HTTP/HTTPS协议,通过发送HTTP请求(如GET、POST...
在Android应用开发中,确保客户端(Android端)与服务端之间的通信安全至关重要。这涉及到防止数据被篡改、保护用户隐私以及确保应用的完整性。本文将深入探讨一种通过So外部文件实现签名防篡改的方案,以增强...
本文将深入探讨如何在JAVA GUI中嵌入浏览器页面,以实现类似的功能,如在桌面应用中打开和显示网页。 首先,我们需要了解的是Java中用于嵌入浏览器的API——Java Desktop Integration Components (JDIC)。JDIC 是一...
在PB11.5(PowerBuilder 11.5)中,嵌入OLE控件Web Browser是一种常见的技术,用于在应用程序内部展示网页内容并实现与网页的交互。本主题将详细探讨如何使用此功能,以及如何通过HTML页面的链接来控制窗口的打开。 ...
总的来说,Unity嵌入Web页面是一个结合了3D游戏引擎和Web前端技术的创新实践,它可以极大地拓展Unity应用的功能范围,尤其是在数据可视化和交互设计方面。通过熟练掌握这一技术,开发者可以构建出更加丰富、动态且...
3. **Web页面嵌入**:通过使用大华OCX插件,开发者可以将摄像头的视频流直接嵌入到Web页面中,用户无需安装额外的客户端软件,只需在IE浏览器上浏览页面即可查看摄像头画面。这种技术使得远程监控、在线视频会议等...
使用Logcat进行日志跟踪,利用Unity的Profiler工具检查性能瓶颈,以及使用Android Studio的调试工具对原生代码进行调试。 9. **发布准备**: 最后,在准备好发布之前,确保进行了充分的测试,包括不同设备的兼容性...
在Android平台上,调用外部应用来打开特定类型的文件,如PPT,是常见的需求。这里我们将专注于Android如何利用WPS Office这样的第三方应用打开PowerPoint(PPT)文件。首先,我们需要理解Android系统的Intent机制,...
本文将深入探讨如何在Android中创建并嵌入一个自定义键盘,主要基于给定的"MoveKeyboard-master"项目进行讲解。 首先,自定义键盘的基本原理是通过在布局文件中添加自定义视图,并实现对输入事件的处理。在Android...
这篇教程将详细介绍如何在Android中利用WebView来调用H5页面,从而实现摄像头扫描二维码的功能。 首先,我们需要理解WebView的基本用法。WebView是Android SDK提供的一种控件,它可以加载本地或者远程的HTML、CSS和...
在Android项目中嵌入ReactNative是一项常见的跨平台开发技术,它允许开发者利用JavaScript和React库来构建原生的Android应用。ReactNative是由Facebook推出的开源框架,它的核心理念是“Learn once, write anywhere...
在Android开发中,将本地HTML嵌入到应用中是一个常见的需求,这主要通过使用WebView组件来实现。WebView是Android提供的一种用于展示网页内容的控件,它可以加载远程或本地的HTML资源,使得开发者可以在Android应用...
这个插件的工作原理是,当用户访问一个页面时,如果该页面需要IE引擎来正确显示,IETab会接管渲染任务,使得Firefox在后台模拟IE的行为。这并不意味着Firefox变成了IE,而是IETab插件提供了一个桥梁,使得Firefox...
在网页中嵌入Window Media Player(WMP)插件,以支持Internet Explorer(IE)和Google Chrome浏览器,是一项常见的多媒体内容展示技术。由于WMP在现代浏览器中的兼容性问题,尤其是对非IE浏览器的支持,这一过程...