给F7空间赋值

来源:互联网 发布:杜兰金融硕士 知乎 编辑:程序博客网 时间:2024/04/27 20:49

   // 过滤当前行的仓库字段
   // 收货仓库
   KDBizPromptBox bizBox = new KDBizPromptBox();
   bizBox
     .setQueryInfo("com.kingdee.eas.rt.basedata.master.depot.app.F7DepotQuery");

   bizBox.setDisplayFormat("$number$");
   bizBox.setEditFormat("$number$");
   bizBox.setCommitFormat("$number$;$name$");
   
   //bizBox.setValue(value)
   row.getCell("depot").setEditor(new KDTDefaultCellEditor(bizBox));

   EntityViewInfo ev = EntityViewHelper.from().equal(
     "storageOrgUnit.id",
     storeInfo == null ? "x" : storeInfo.getId().toString())
     .equal("property.id", DepotTypeID).entityViewInfo();
   bizBox.setEntityViewInfo(ev);
   
   CoreBaseCollection baseCollection= DepotFactory.getRemoteInstance().getCollection(ev);
   DepotInfo depotInfo=(DepotInfo) baseCollection.get(0);
   if(depotInfo!=null ){
    bizBox.setValue(depotInfo);
   }

原创粉丝点击