public ContainerTabItem() { setText("集装箱"); store = new ListStore<BeanModel>(); store.sort("containerNo", Style.SortDir.ASC); beanModelFactory = BeanModelLookup.get().getFactory(Container.class); addListener( Events.Select, new Listener<ComponentEvent>() { public void handleEvent(ComponentEvent be) { if (selectedCustomsDeclarationHead == null) { MessageBox.alert("提示", "请选择报关单表头", null); be.cancelBubble(); } else { refreshStore(); } } }); }
public ContractProcessFeeTabItem() { setText("工缴费"); store = new ListStore<BeanModel>(); beanModelFactory = BeanModelLookup.get().getFactory(ContractProduct.class); }
public static BeanModel obtainModel(InstitutionContactInstance instance) { if (beanModelfactory == null) beanModelfactory = BeanModelLookup.get().getFactory(InstitutionContactInstance.class); BeanModel model = beanModelfactory.createModel(instance); return model; }
private List<BeanModel> convertToModels(List<MetaAsset> list) { return BeanModelLookup.get().getFactory(MetaAsset.class).createModel(list); }