Package org.xBaseJ.micro.fields

Examples of org.xBaseJ.micro.fields.DateField


         {
         case 'C':
           tField = new CharField(name, iLength, file);
           break;
         case 'D':
           tField = new DateField(name, file);
           break;
         case 'F':
           tField = new FloatField(name, iLength, decpoint, file);
           break;
         case 'L':
View Full Code Here


                }
                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 "";
View Full Code Here

TOP

Related Classes of org.xBaseJ.micro.fields.DateField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.