示例#1
0
 /** Set up the screen input fields. */
 public void setupFields() {
   FieldInfo field = null;
   field = new FieldInfo(this, ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
   field.setDataClass(Integer.class);
   field.setHidden(true);
   field = new FieldInfo(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);
   field.setDataClass(Date.class);
   field.setHidden(true);
   field = new FieldInfo(this, DELETED, 10, null, new Boolean(false));
   field.setDataClass(Boolean.class);
   field.setHidden(true);
   field = new FieldInfo(this, TAX_CODE, 2, null, null);
   field = new FieldInfo(this, MARITAL_STATUS, 1, null, null);
   field = new FieldInfo(this, CUT_OFF_AMOUNT, 8, null, null);
   field.setDataClass(Double.class);
   field = new FieldInfo(this, TAX_RATE, 5, null, null);
   field.setDataClass(Float.class);
 }
示例#2
0
 /** Set up the screen input fields. */
 public void setupFields() {
   FieldInfo field = null;
   field = new FieldInfo(this, ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
   field.setDataClass(Integer.class);
   field.setHidden(true);
   field = new FieldInfo(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);
   field.setDataClass(Date.class);
   field.setHidden(true);
   field = new FieldInfo(this, DELETED, 10, null, new Boolean(false));
   field.setDataClass(Boolean.class);
   field.setHidden(true);
   field = new FieldInfo(this, DESCRIPTION, 20, null, null);
   field = new FieldInfo(this, ICON, Constants.DEFAULT_FIELD_LENGTH, null, null);
   field.setDataClass(Object.class);
 }
示例#3
0
 /** Set up the screen input fields. */
 public void setupFields() {
   FieldInfo field = null;
   field = new FieldInfo(this, ID, 10, null, null);
   field.setDataClass(Integer.class);
   field.setHidden(true);
   field = new FieldInfo(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);
   field.setDataClass(Date.class);
   field.setHidden(true);
   field = new FieldInfo(this, DELETED, 10, null, new Boolean(false));
   field.setDataClass(Boolean.class);
   field.setHidden(true);
   field = new FieldInfo(this, PRODUCT_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
   field.setDataClass(Integer.class);
   field = new FieldInfo(this, PRODUCT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
   field.setDataClass(Integer.class);
   field = new FieldInfo(this, RATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
   field.setDataClass(Integer.class);
   field = new FieldInfo(this, CLASS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
   field.setDataClass(Integer.class);
   field = new FieldInfo(this, OTHER_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
   field.setDataClass(Integer.class);
   field = new FieldInfo(this, INV_DATE, 12, null, null);
   field.setDataClass(Date.class);
   field.setScale(Constants.DATE_ONLY);
   field = new FieldInfo(this, BLOCKED, 3, null, null);
   field.setDataClass(Short.class);
   field = new FieldInfo(this, USED, 3, null, new Short((short) 0));
   field.setDataClass(Short.class);
   field = new FieldInfo(this, AVAILABLE, 3, null, null);
   field.setDataClass(Short.class);
   field = new FieldInfo(this, OVERSELL, 3, null, null);
   field.setDataClass(Short.class);
   field = new FieldInfo(this, CLOSED, 10, null, null);
   field.setDataClass(Boolean.class);
 }