142 lines
5.9 KiB
Plaintext
142 lines
5.9 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||
/*
|
||
Author: undefined 2017-08-22
|
||
Content:
|
||
History Log:
|
||
*/
|
||
String inputuserid = CurUser.getUserID();
|
||
ASObjectModel doTemp = new ASObjectModel("TelephoneVerifyList");
|
||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||
dwTemp.Style="1"; //--设置为Grid风格--
|
||
dwTemp.ReadOnly = "1"; //只读模式
|
||
dwTemp.setPageSize(20);
|
||
dwTemp.genHTMLObjectWindow(inputuserid);
|
||
|
||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||
String sButtons[][] = {
|
||
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
|
||
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
|
||
{"true","","Button","删除","删除","deleteRecond()","","","","btn_icon_delete",""},
|
||
};
|
||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||
<script type="text/javascript">
|
||
function newRecord(){
|
||
var sUrl = "/Tenwa/Customer/TelephoneVerify/TelephoneVerifyDetail.jsp";
|
||
AsDialog.OpenSelector("SelectPersonCustomer","userid,<%=CurUser.getUserID()%>","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="_NONE_"){
|
||
//alert(getHtmlMessage('1'));//请选择一条信息!
|
||
return;
|
||
}
|
||
sReturn = sReturn.split("@");
|
||
var id=sReturn[0];
|
||
var FULLNAME=sReturn[1];
|
||
var certid = getItemValue(0,getRow(0),'CUST_CERTID');
|
||
if(id == certid){
|
||
alert("该客户审核列表中已存在!");
|
||
return;
|
||
}
|
||
AsControl.OpenView(sUrl,'CertId='+id+'&FULLNAME='+FULLNAME,'_self','');
|
||
reloadSelf();
|
||
},"请选择核查客户");
|
||
}
|
||
function viewAndEdit(){
|
||
var sUrl = "/Tenwa/Customer/TelephoneVerify/TelephoneVerifyDetail.jsp";
|
||
var sPara = getItemValue(0,getRow(0),'id');
|
||
var certid = getItemValue(0,getRow(0),'CUST_CERTID');
|
||
var FULLNAME = getItemValue(0,getRow(0),'FULLNAME');;
|
||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||
alert("参数不能为空!");
|
||
return ;
|
||
}
|
||
AsControl.OpenView(sUrl,'ID=' +sPara +"&CertId="+ certid+'&FULLNAME='+FULLNAME ,'_self','');
|
||
}
|
||
|
||
function deleteRecond(){
|
||
var certid = getItemValue(0, getRow(0), "CUST_CERTID");
|
||
if(confirm('确实要删除吗?')){
|
||
as_delete(0);
|
||
//RunJavaMethodTrans("com.tenwa.customer.cache.SpeechVerifyResultInit", "DeleTeleVerifyResultByCertid", "CertId="+certid);
|
||
}
|
||
}
|
||
function afterSearch(){
|
||
for(var i=0;i<getRowCount(0);i++){
|
||
getObj(0,i,"operation").innerHTML='<a class="box" onclick="upload(\''+getItemValue(0,i,"id")+'\')" style={color:#000;text-decoration:underline;}><font color="blue">上传</font></a>';
|
||
var filelist=getObj(0,i,"filelist").innerHTML;
|
||
var obj=eval('('+filelist+')');
|
||
var html="";
|
||
for(var file in obj){
|
||
//if(isReview!="true"&&sRightType!="ReadOnly"&&(sObjectType==obj[file]['objecttype'])&&username.replace(/\s+/g," ")==obj[file]['inputuser']){
|
||
// html+='<a class="btn_icon btn_icon_close" onclick="deleteFile(\''+obj[file]['id']+'\');"> </a>';
|
||
//}
|
||
if(obj[file]['image']=="true"){
|
||
html+='<a class="btn_icon btn_icon_search" onclick="showImage(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\');"> </a>';
|
||
}
|
||
if(obj[file]['word']=="true"){
|
||
html+='<a class="btn_icon btn_icon_search" onclick="showWord(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\');"> </a>';
|
||
}
|
||
if(obj[file]['pdf']=="true"){
|
||
html+='<a class="btn_icon btn_icon_search" onclick="showPDF(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\');"> </a>';
|
||
}
|
||
html+='<a onclick=downloadFile(\''+obj[file]['id']+'\')><font color="blue">'+obj[file]['filename']+'</font></a>';
|
||
html+='【上传时间:'+obj[file]['inputtime']+'】';
|
||
html+='【上传人:'+obj[file]['inputuser']+'】';
|
||
html+='【大小:'+Math.floor(obj[file]['FileSize']/1024*100)/100+'kb】';
|
||
html+='</br>';
|
||
|
||
}
|
||
getObj(0,i,"filelist").innerHTML=html;
|
||
getObj(0,i,"filelist").style["white-space"]="pre-wrap";
|
||
var height = getObj(0,i,"filelist").offsetHeight+1;
|
||
setItemStyle(0,i,"FULLNAME","height="+height+"px");
|
||
};
|
||
}
|
||
function upload(id){
|
||
var param="Library_id="+id;
|
||
var sUrl="/Tenwa/Comm/DocList/TelAttachmentUpload.jsp";
|
||
AsDialog.PopView(sUrl,param,"dialogWidth=450px;dialogHeight=400px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(message){
|
||
|
||
reloadSelf();
|
||
heping();
|
||
},"上传附件");
|
||
}
|
||
function heping(){
|
||
$("#TR_Right_myiframe0_0").attr("class","color_zebra0");
|
||
huanhang("Doc_Name");
|
||
}
|
||
function huanhang(col){
|
||
var tab=document.getElementById("myiframe0");
|
||
var a= getColIndex(0,col);
|
||
for(var i=0;i<tab.rows.length-1;i++){
|
||
$("#INPUT_myiframe0_"+col+"_"+i+"_"+a).parent().attr("style","white-space: pre-wrap;");
|
||
}
|
||
}
|
||
function showPDF(id,name){
|
||
var sUrl="/Tenwa/Comm/DocList/showPDF.jsp";
|
||
var param="attrid="+id;
|
||
AsControl.OpenPage(sUrl,param,"","");
|
||
}
|
||
function showWord(id,name){
|
||
var sUrl="/Tenwa/Comm/DocList/showWord.jsp";
|
||
var param="attrid="+id;
|
||
AsControl.OpenPage(sUrl,param,"","");
|
||
}
|
||
function showImage(id,name){
|
||
var sUrl="/Tenwa/Comm/DocList/showImage.jsp";
|
||
var param="attrid="+id;
|
||
AsDialog.PopView(sUrl,param,"dialogWidth=480px;dialogHeight=400px;",function(message){
|
||
|
||
},name);
|
||
}
|
||
function downloadFile(id){
|
||
if(!frames["downloadTemplate"]) $("<iframe name='downloadTemplate' style='display:none;'></iframe>").appendTo("body");
|
||
window.open(sWebRootPath+"/servlet/view/docDownloadServlet?CompClientID=<%=sCompClientID%>&sqlString=save@"+id, "downloadTemplate");
|
||
}
|
||
function deleteFile(id){
|
||
var sParams="attId="+id;
|
||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.doc.action.DocListAction","deleteAttr",sParams);
|
||
reloadSelf();
|
||
heping();
|
||
}
|
||
</script>
|
||
<%@ include file="/Frame/resources/include/include_end.jspf"%> |