Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions

:
#)McoScreenRecord. Copyright © 2012 tourapp.com. All rights reserved. GPL3 Open Source Software License.
  
  package com.tourapp.tour.acctrec.screen.mco;
  
  import java.util.*;
  
McoScreenRecord - Screen Fields for MCO reports.
 
 public class McoScreenRecord extends ScreenRecord
 {
     private static final long serialVersionUID = 1L;
 
     public static final String NET = "Net";
     public static final String AIRLINE_ID = "AirlineID";
     public static final String SERVICE_CHARGE = "ServiceCharge";
     public static final String REPORT_DATE = "ReportDate";
     public static final String TOTAL_GROSS = "TotalGross";
     public static final String TOTAL_NET = "TotalNet";
     public static final String COUNT = "Count";
     public static final String FLAG = "Flag";
     public static final String TODAY = "Today";
     public static final String BOOKING_ID = "BookingID";
     public static final String CARD_NO = "CardNo";
     public static final String CARD_ID = "CardID";
     public static final String CARD_FILTER_ID = "CardFilterID";
     public static final String NULL_DATE = "NullDate";
    
Default constructor.
 
     public McoScreenRecord()
     {
         super();
     }
    
Constructor.
 
     public McoScreenRecord(RecordOwner screen)
     {
         this();
         this.init(screen);
     }
    
Initialize class fields.
 
     public void init(RecordOwner screen)
     {
         super.init(screen);
     }
 
     public static final String MCO_SCREEN_RECORD_FILE = null// Screen field
     
Add this field in the Record's field sequence.
 
     public BaseField setupField(int iFieldSeq)
     {
         BaseField field = null;
         if (iFieldSeq == 0)
             field = new CurrencyField(this.nullnull);
         if (iFieldSeq == 1)
             field = new AirlineField(this.nullnull);
         if (iFieldSeq == 2)
             field = new PercentField(this.nullnull);
         if (iFieldSeq == 3)
             field = new McoScreenRecord_ReportDate(this.nullnull);
         if (iFieldSeq == 4)
             field = new CurrencyField(this.nullnull);
         if (iFieldSeq == 5)
             field = new CurrencyField(this.nullnull);
         if (iFieldSeq == 6)
             field = new ShortField(this.nullnull);
         if (iFieldSeq == 7)
             field = new BooleanField(this.nullnull);
         if (iFieldSeq == 8)
             field = new McoScreenRecord_Today(this.nullnull);
         if (iFieldSeq == 9)
            field = new BookingField(this.nullnull);
        if (iFieldSeq == 10)
            field = new StringField(this, 20, nullnull);
        if (iFieldSeq == 11)
            field = new CardField(this.nullnull);
        if (iFieldSeq == 12)
            field = new CardFilter(this.nullnull);
        if (iFieldSeq == 13)
            field = new DateField(this.nullnull);
        if (field == null)
            field = super.setupField(iFieldSeq);
        return field;
    }
New to GrepCode? Check out our FAQ X