Exemplo n.º 1
0
 @SuppressWarnings("unchecked")
 public void addObject(List list, RecordSet rs) {
   PtmenuBean abb = new PtmenuBean();
   abb.menuid = rs.getString("menuid");
   abb.setKeyValue("MENUID", "" + abb.getMenuid());
   abb.parentmenuid = rs.getString("parentmenuid");
   abb.setKeyValue("PARENTMENUID", "" + abb.getParentmenuid());
   abb.menulevel = rs.getString("menulevel");
   abb.setKeyValue("MENULEVEL", "" + abb.getMenulevel());
   abb.isleaf = rs.getString("isleaf");
   abb.setKeyValue("ISLEAF", "" + abb.getIsleaf());
   abb.menudesc = rs.getString("menudesc");
   abb.setKeyValue("MENUDESC", "" + abb.getMenudesc());
   abb.menulabel = rs.getString("menulabel");
   abb.setKeyValue("MENULABEL", "" + abb.getMenulabel());
   abb.menuicon = rs.getString("menuicon");
   abb.setKeyValue("MENUICON", "" + abb.getMenuicon());
   abb.openicon = rs.getString("openicon");
   abb.setKeyValue("OPENICON", "" + abb.getOpenicon());
   abb.targetmachine = rs.getString("targetmachine");
   abb.setKeyValue("TARGETMACHINE", "" + abb.getTargetmachine());
   abb.menuaction = rs.getString("menuaction");
   abb.setKeyValue("MENUACTION", "" + abb.getMenuaction());
   abb.openwindow = rs.getString("openwindow");
   abb.setKeyValue("OPENWINDOW", "" + abb.getOpenwindow());
   abb.windowwidth = rs.getString("windowwidth");
   abb.setKeyValue("WINDOWWIDTH", "" + abb.getWindowwidth());
   abb.windowheight = rs.getString("windowheight");
   abb.setKeyValue("WINDOWHEIGHT", "" + abb.getWindowheight());
   abb.levelidx = rs.getString("levelidx");
   abb.setKeyValue("LEVELIDX", "" + abb.getLevelidx());
   abb.fillstr50 = rs.getString("fillstr50");
   abb.setKeyValue("FILLSTR50", "" + abb.getFillstr50());
   abb.fillstr100 = rs.getString("fillstr100");
   abb.setKeyValue("FILLSTR100", "" + abb.getFillstr100());
   abb.fillint1 = rs.getString("fillint1");
   abb.setKeyValue("FILLINT1", "" + abb.getFillint1());
   abb.filldbl2 = rs.getString("filldbl2");
   abb.setKeyValue("FILLDBL2", "" + abb.getFilldbl2());
   abb.filldate = rs.getString("filldate");
   abb.setKeyValue("FILLDATE", "" + abb.getFilldate());
   list.add(abb);
   abb.operate_mode = "edit";
 }
Exemplo n.º 2
0
 public Object clone() throws CloneNotSupportedException {
   PtmenuBean obj = (PtmenuBean) super.clone();
   obj.setMenuid(obj.menuid);
   obj.setParentmenuid(obj.parentmenuid);
   obj.setMenulevel(obj.menulevel);
   obj.setIsleaf(obj.isleaf);
   obj.setMenudesc(obj.menudesc);
   obj.setMenulabel(obj.menulabel);
   obj.setMenuicon(obj.menuicon);
   obj.setOpenicon(obj.openicon);
   obj.setTargetmachine(obj.targetmachine);
   obj.setMenuaction(obj.menuaction);
   obj.setOpenwindow(obj.openwindow);
   obj.setWindowwidth(obj.windowwidth);
   obj.setWindowheight(obj.windowheight);
   obj.setLevelidx(obj.levelidx);
   obj.setFillstr50(obj.fillstr50);
   obj.setFillstr100(obj.fillstr100);
   obj.setFillint1(obj.fillint1);
   obj.setFilldbl2(obj.filldbl2);
   obj.setFilldate(obj.filldate);
   return obj;
 }
Exemplo n.º 3
0
 public static RecordSet findRecordSet(String sSqlWhere, boolean isAutoRelease) throws Exception {
   PtmenuBean bean = new PtmenuBean();
   bean.setAutoRelease(isAutoRelease);
   return bean.findRecordSetByWhere(sSqlWhere);
 }
Exemplo n.º 4
0
 public static PtmenuBean findFirstAndLock(String sSqlWhere, boolean isAutoRelease)
     throws Exception {
   PtmenuBean bean = new PtmenuBean();
   bean.setAutoRelease(isAutoRelease);
   return (PtmenuBean) bean.findFirstAndLockByWhere(sSqlWhere);
 }