}
case COL_3: return "";
case COL_POLIS: return regLpu.getField(LpuFields.POL_NUM).get().trim();
case COL_INSURER: return regLpu.getField(LpuFields.INS_ORG).get().trim();
case COL_DATE_BORN: {
DateField date = (DateField) regLpu.getField(LpuFields.BDAY);
return Converter.dateToString(date.getCalendar().getTime(),"dd.MM.yy");
}
case COL_SEX: {
String pol = regLpu.getField(LpuFields.SEX).get().trim();
if (pol.equals("1")) {
return "М";
} else if (pol.equals("2")){
return "Ж";
} else {
return "?";
}
}
case COL_ADDRESS: {
String adr = "";
String str = regLpu.getField(LpuFields.AREA).get().trim();
if (!str.isEmpty()) {
adr = adr + str + ",";
}
str = regLpu.getField(LpuFields.REGION).get().trim();
if (!str.isEmpty()) {
adr = adr + " " + str + ",";
}
str = regLpu.getField(LpuFields.ITEM).get().trim();
if (!str.isEmpty()) {
adr = adr + " " + str + ",";
}
str = regLpu.getField(LpuFields.STREET).get().trim();
if (!str.isEmpty()) {
adr = adr + " " + str + ",";
}
str = regLpu.getField(LpuFields.HOUSE).get().trim();
if (!str.isEmpty()) {
adr = adr + " д." + str;
str = regLpu.getField(LpuFields.LITER).get().trim();
if (!str.isEmpty()) {
adr = adr + str;
}
}
str = regLpu.getField(LpuFields.FLAT).get().trim();
if (!str.isEmpty()) {
adr = adr + " кв." + str;
}
return adr;
}
case COL_SOCIAL: return regLpu.getField(LpuFields.STATUS).get().trim();
case COL_DATE_VISIT: {
DateField date = (DateField) regLpu.getField(LpuFields.DATE_BEGIN);
return Converter.dateToString(date.getCalendar().getTime(),"dd.MM.yy");
}
case COL_FACT: return "1";
case COL_MES: return "1";
case COL_CODE_MES: return regLpu.getField(LpuFields.MES).get().trim();
case COL_TARIF: return "";