getListOption(options:[], value:any, property = null, property2 = null) {
for(var i=0;i<options.length;i++) {
let option = options[i];
if (property2) {
if (option[property][property2]==value) {
return option;
}
}
else if (property) {
if (option[property]==value) {
return option;
}
}
else if (option==value) {
return option;
}
}
return null;
}