function changeItemListSelection(url, popupId, listId, itemIdPrefix, isCustomer, checkBoxIdSuffix) { try { if (url === undefined || url === null) { return; } var oidStr = ""; $("#" + popupId + " input:checked").each(function() { var id = $(this).attr("id").split("-")[1]; oidStr += id + ","; }); $.get(url, { oidString: oidStr }).done(function (jsonResult) { updateSelectedList(jsonResult, listId, itemIdPrefix, isCustomer, popupId, checkBoxIdSuffix, url); }); } catch(error) { logError(error.message); } } // Col-Value berechnen function updateSelectedList(jsonResult, listId, itemIdPrefix, isCustomer, popupId, checkBoxIdSuffix, url) { try { if(isEmptyOrSpaces(jsonResult)) { return; } var listItems = $.parseJSON(jsonResult); var list = $("#" + listId); list.empty(); var colorClass = "text-bewo-employee"; if(isCustomer === true) { colorClass = "text-bewo-customers"; } $.each(listItems, function (index, item) { var oid; if(isCustomer === true) { oid = item.CustomerOid; } else { oid = item.EmployeeOid; } var id = itemIdPrefix + oid; var removeParams = oid + ", '" + checkBoxIdSuffix + "', " + isCustomer + ", '" + url + "', '" + popupId + "', '" + listId + "', '" + itemIdPrefix + "'"; var html = "
" + item.LastName + ", " + item.FirstName + "
" + "