在一个jsp页面上,我有一个操作按钮,单击该按钮后,它将弹出另一个弹出页面,并在其中显示所有上传的文档,而不是显示特定的orderids上传的文档。
function DocAttachment(rowIdx,orderID) {
var data = tier1Grid.row(rowIdx).data();
var orderId = orderID;
var mvnoID = data[7];
var map = new Object();
var params = new Object();
map["orderId"] = orderID;
map["mvnoID"] = mvnoID;
var createdDate = data[17];
var d = new Date(createdDate);
var m = d.getMonth() + 1;
var orderMonth = m;
map["orderMonth"] = orderMonth;
// Retry flag check
if (validate('${params.SUB_STATUS_1}')
&& '${params.SUB_STATUS_1}' == "true") {
map["sub_status_1_flag"] = "false";
} else {
map["sub_status_1_flag"] = "true";
}
// skip flag check
if (validate('${params.SUB_STATUS_2}')
&& '${params.SUB_STATUS_2}' == "true") {
map["sub_status_2_flag"] = "false";
} else {
map["sub_status_2_flag"] = "true";
}
map["profileId"] = data[11];
map["accountId"] = data[12];
map["serviceId"] = data[13];
map["order_type"] = data[18];
var url = "SalesLead/attachment/viewAttachments.jsp";
params["menuLink"] = url;
params["params"] = map;
ajax("menuLoader", "POST", "", "", params, function(data) {
addPopupdata(
'<spring:message code="overViewofOrder" text="" />',
data);
});
}