";
var fillAcceptList = function(data) {
console.log("fillAcceptData");
var html = tableHead;
var lines = data;
for (var i = 0; i < lines.length; i++) {
html += "
";
var onAccept = function(data){
console.log("acceptResult");
console.log(data);
if (data.result=="true"){
flushApplylist();
flushAcceptlist();
}
};
var fillApplyData = function(data) {
console.log("fillApplyListData");
var html = tableApplyHead;
var lines = data;
for (var i = 0; i < lines.length; i++) {
html += "
";
html += (i + 1);
html += "
";
html += lines[i].uuid;
html += "
";
html += lines[i].remark;
html += "
";
html += "";
html += "
";
html += "";
html += "
";
html += "";
html += "
";
}
html += tableTail;
$("#unauthoriedDiv").html(html);
$("#unauthoriedDiv").off("click", ":button").on(
"click",
":button",
function(event) {
var acceptInfo = {
};
var pos = ($(this).closest("tr").find("td").eq(0)
.text() - 1) / 1;
acceptInfo.uuid = global.applyList[pos].uuid;
acceptInfo.expiredDate = $("#timeInput"+pos)[0].value;
if (acceptInfo.expiredDate==undefined || acceptInfo.expiredDate