*/
private List<EntUfisMsgACT> formatData(EntDbAtrtab entAtrtab, String cmd) {
List<String> fldList = new ArrayList<>();
List<Object> valueList = new ArrayList<>();
List<EntUfisMsgACT> listAction = new ArrayList<>();
EntUfisMsgACT action = new EntUfisMsgACT();
//fields to INSERT
fldList.add("APC3");
fldList.add("APC4");
fldList.add("VAFR");
fldList.add("VATO");
valueList.add(notamsIATA);
valueList.add(notamsICAO);
valueList.add(effectFrom);
valueList.add(effectTil);
action.setCmd(cmd);
if(entAtrtab != null){
//fields to UPDATE
String urno = String.valueOf(entAtrtab.getUrno());
/*fldList.add("URNO");
valueList.add(urno);*/
action.setSel("WHERE URNO = "+ urno);
}
//fields for all IRT/URT/DRT
fldList.add("REST");
fldList.add("REMA");
fldList.add("MSID");
valueList.add(HpEKConstants.EK_LIDO_NOTAMS);
valueList.add(rema);
valueList.add(notamsId);
action.setTab("ATRTAB");
action.setFld(fldList);
action.setData(valueList);
listAction.add(action);
return listAction;
}