apzl_leasing/WebContent/Tenwa/Gps/LmGpsOrderList.jsp
2019-08-23 16:00:23 +08:00

64 lines
2.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2019-07-16
Content:
History Log:
*/
String userId = CurUser.getUserID();
ASObjectModel doTemp = new ASObjectModel("LmGpsOrderList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","All","Button","查看定位信息","查看定位信息","queryOrder()","","","","",""},
{"true","","Button","查看安装图","查看安装图","showImage()","","","","",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<link rel="stylesheet" href="<%=sWebRootPath%>/js/viewpicture/css/viewer.min.css">
<script type="text/javascript">
function queryOrder(){
var orderNo = getItemValue(0,getRow(),"ORDER_NO");
if(undefined==orderNo){alert("请选择一行");return;}
var applyNo = getItemValue(0,getRow(),"APPLY_NO");
var projectId = getItemValue(0,getRow(),"PROJECT_ID");
var vin = getItemValue(0,getRow(),"CAR_VIN");
var result =AsControl.RunJavaMethodTrans("com.tenwa.gps.GpsController","queryOrder","userId=<%=userId%>,flowUnid=流程外查询,applyNo="+applyNo+",orderNo="+orderNo+",tableName=LM_GPS_ORDER,projectId="+projectId+",vin="+vin);
AsDialog.PopView("/Tenwa/Gps/LmGpsLocationList.jsp","ProjectNo="+applyNo,"dialogWidth=1300px;dialogHeight=200px;center:yes;status:no;statusbar:no",function(sAreaCodeInfo){
},'GPS定位信息');
}
var viewer=null;
function showImage(){
var applyNo = getItemValue(0,getRow(),"APPLY_NO");
var Images =AsControl.RunJavaMethodTrans("com.tenwa.gps.GpsController","getImage","applyNo="+applyNo);
if("null"==Images){
alert("暂无图片信息");
return
}
var ImageArr = Images.split(',');
if(ImageArr.length>0){
$("#dowebok").remove();
var ul= $("<ul id='dowebok'></ul>");
for(var i=0;i<ImageArr.length;i++){
$(ul).append("<li><img data-original='"+ImageArr[i]+"' src='"+ImageArr[i]+"' style='display:none;'></li>");
}
$("body").append(ul);
viewer = new Viewer(document.getElementById('dowebok'), {
url: 'data-original'
});
viewer.show();
}else{
alert("暂无图片信息");
}
}
</script>
<script src="<%=sWebRootPath%>/js/viewpicture/js/viewer.min.js"></script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>