日期:2014-05-19 浏览次数:20734 次
var arrayId = new Array();
var language;
var getData =function(_num){
if(_num==undefined
------解决方案--------------------
_num=='undefined'){
_num = 0;
}
//alert(_num);
urlPath = "user/getTicketInfo.do?num="+_num+"&selectedIds="+arrayId;
$.ajax({
type: "post",
contentType : 'application/json',
processData : false,
url: urlPath,
dataType:'json' ,
beforeSend: function(XMLHttpRequest){
//ShowLoading();
},
success: function(data, textStatus){
var str = "<table width=\"900\" cellpadding=\"0\" cellspacing=\"2\" >";
var back = data.back;
var next = data.next;
var begin = data.begin;
language = data.language;
var selectedIds = data.selectedIds;
//for(var i=0;i<selectedIds.length;i++){
//arrayId.push(selectedIds[i]);
//}
//alert(selectedIds);
var ticketInfos = data.ticketInfoList;
//alert();
for(var i=0;i<ticketInfos.length;i++){
var ticketInfo = ticketInfos[i];
str += "<tr>";
str += " <td height=\"30\" width=\"20\" valign=\"middle\"></td><td height=\"30\" width=\"30\" align=\"right\" >";
if(ticketInfo.ticketPrintState=="true"
------解决方案--------------------
ticketInfo.canPrint == false){
str += " <img src=\"image/other/noselect.gif\" id=\""+ticketInfo.ticketNo+"\" width=\"35\" height=\"35\">";
}else{
var flag = false;
for(var k=0;k<selectedIds.length;k++){
if(selectedIds[k]==ticketInfo.ticketNo){
flag = true;
break;
}else{
flag =false;
}
}
if(flag){
str += " <img src=\"image/other/select.jpg\" name=\"checkbox\" id=\""+ticketInfo.ticketNo+"\" fid=\"1\" width=\"35\" height=\"35\" onmousedown=\"changeSelected(this)\">";
}else{
str += " <img src=\"image/other/noselect.jpg\" name=\"checkbox\" id=\""+ticketInfo.ticketNo+"\" fid=\"0\" width=\"35\" height=\"35\" onmousedown=\"changeSelected(this)\">";
}
}
str += " </td>";
if(language=="eng"){
str += "<td height=\"30\" width=\"195\" align=\"center\" bgcolor=\"#999999\"><strong>Ticket No</strong></td>";
}else{
str += "<td height=\"30\" width=\"195\" align=\"center\" bgcolor=\"#999999\"><strong>票号</strong></td>";
}
str += " <td height=\"30\"