Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions

:
#)CashBatchScreenRecord. Copyright © 2012 tourapp.com. All rights reserved. GPL3 Open Source Software License.
 
 package com.tourapp.tour.acctrec.screen.cash;
 
 import java.util.*;
 
CashBatchScreenRecord - Cash Batch Variables.
public class CashBatchScreenRecord extends ScreenRecord
    private static final long serialVersionUID = 1L;
    public static final String USER_ID = "UserID";
    public static final String TOTAL = "Total";
    public static final String COUNT = "Count";
    public static final String MCO_NO = "McoNo";
    public static final String BOOKING_ID = "BookingID";
    public static final String CHANGE_BALANCE = "ChangeBalance";
    public static final String END_BALANCE = "EndBalance";
    public static final String AIRLINE_ID = "AirlineID";
    
Default constructor.
    public CashBatchScreenRecord()
    {
        super();
    }
    
Constructor.
    public CashBatchScreenRecord(RecordOwner screen)
    {
        this();
        this.init(screen);
    }
    
Initialize class fields.
    public void init(RecordOwner screen)
    {
        super.init(screen);
    }
    public static final String CASH_BATCH_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 CashBatchScreenRecord_UserID(this.nullnull);
        if (iFieldSeq == 1)
            field = new CurrencyField(this.nullnull);
        if (iFieldSeq == 2)
            field = new ShortField(this.nullnull);
        if (iFieldSeq == 3)
            field = new StringField(this, 16, nullnull);
        if (iFieldSeq == 4)
            field = new BookingField(this.nullnull);
        if (iFieldSeq == 5)
            field = new CurrencyField(this.nullnull);
        if (iFieldSeq == 6)
            field = new CurrencyField(this.nullnull);
        if (iFieldSeq == 7)
            field = new AirlineField(this.nullnull);
        if (field == null)
            field = super.setupField(iFieldSeq);
        return field;
    }
New to GrepCode? Check out our FAQ X