@Override public boolean isCellEditable(EventObject anEvent) { NHzInfo hzInfo = StorageModule.getInstance().getHzInfo(); NJtInfo jtInfo = new NJtInfo(); jtInfo.ID = hzInfo.REFERENCE_NJt; jtInfo.JTMC = hzInfo.REFERENCE_NJt_desc; List<Condition> filterList = new ArrayList<Condition>(); Condition condition = new Condition(); condition.fieldName = ReferenceConstants.JT_REFERENCE_NAME; condition.fieldDesc = "集团"; condition.operator = Operator.equal.id; condition.value.data = jtInfo; filterList.add(condition); NHzmsInfo hzmsInfo = StorageModule.getInstance().getHzmsInfo(); if (NHzmsEnum.ENUM_KCMS.ZCZYLKC.key == hzmsInfo.ENUM_KCMS) { condition = new Condition(); condition.fieldName = "ENUM_ZHSP"; condition.fieldDesc = "组合商品"; condition.operator = Operator.equal.id; condition.value.data = KasaEnumFactory.getEnum(NSpEnum.ENUM_ZHSP.YL); filterList.add(condition); } ((JDataTableSelect) this.getEditorComponent()).setFilterConditon(filterList); return true; }
public YsdDhxdMainPane() { super(TableNameConstants.YSD); List<Condition> filterList = new ArrayList<Condition>(); Condition condition = new Condition(); condition.fieldName = "ENUM_YSFS"; condition.fieldDesc = "运输方式"; condition.operator = Operator.equal.id; condition.value.data = KasaEnumFactory.getEnum(NYsdEnum.ENUM_YSFS.YS); condition.isDefault = false; filterList.add(condition); condition = new Condition(); condition.fieldName = "YSRQ"; condition.fieldDesc = "运输日期"; condition.operator = Operator.equal.id; condition.value.data = new Date(); condition.isDefault = false; filterList.add(condition); condition = new Condition(); condition.fieldName = "ENUM_DJZT"; condition.fieldDesc = "单据状态"; condition.operator = Operator.equal.id; condition.value.data = KasaEnumFactory.getEnum(NYsdEnum.ENUM_DJZT.SHJH); condition.isDefault = false; filterList.add(condition); this.appendFilterConditon(filterList); List<FieldOrder> fieldOrderList = new ArrayList<FieldOrder>(); FieldOrder fieldOrder = new FieldOrder(); fieldOrder.fieldName = "YSRQ"; fieldOrder.direction = FieldOrder.ASC; fieldOrderList.add(fieldOrder); fieldOrder = new FieldOrder(); fieldOrder.fieldName = "SHDWDZ"; fieldOrder.direction = FieldOrder.ASC; fieldOrderList.add(fieldOrder); this.setFieldOrderList(fieldOrderList); }