예제 #1
0
    @Override
    public void after(ActionEvent event) {
      IBizSystem sys = (IBizSystem) event.getEntity();
      if (sys == null) {
        return;
      }

      try {
        String extendClass = Demsy.bizEngine.getExtendClassName(sys);
        Demsy.bizEngine.parseSystemByAnnotation(Cls.forName(extendClass), sys);
      } catch (ClassNotFoundException e) {
        // throw new DemsyException(e);
      }
    }
예제 #2
0
    @Override
    public void after(ActionEvent event) {
      IOrm orm = (IOrm) event.getOrm();
      IBizSystem sys = (IBizSystem) event.getEntity();
      if (sys == null) {
        return;
      }

      try {
        String extendClass = Demsy.bizEngine.getExtendClassName(sys);
        Demsy.bizEngine.parseSystemByAnnotation(Cls.forName(extendClass), sys);
      } catch (ClassNotFoundException e) {
        // throw new DemsyException(e);
      }

      // 将【业务系统】转换成【业务模块】
      Demsy.moduleEngine.makeModule(orm, Demsy.me().getSoft(), sys);
    }
예제 #3
0
파일: UIWidget.java 프로젝트: kmetop/demsy
 @Override
 public String toString() {
   if (id == null)
     return Cls.getType(getClass()).getSimpleName() + "@" + Integer.toHexString(hashCode());
   else return Cls.getType(getClass()).getSimpleName() + "#" + id;
 }