IndexMenu.java~9~
资源名称:shihua.rar [点击查看]
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:1k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
JavaScript
- package com.chinacannel.xlchemical.struts.Vo;
- import com.chinacannel.common.*;
- import com.chinacannel.entity.*;
- import com.chinacannel.xlchemical.service.*;
- import org.apache.commons.logging.*;
- public class IndexMenu {
- private CommonDAO dao = new CommonDAO();
- private static Log log = LogFactory.getLog(InformationService.class);
- private Menu menu = null;
- private String defaultName = "";
- public String getDefaultName() {
- if (this.menu.getMen_Default().equals(new Long(1))) {
- try {
- DefaultColumn dc = (DefaultColumn) dao.loadOneObjectBySQL(
- "from DefaultColumn as dc where dc.def_ID='" +
- this.menu.getMen_Name() + "'");
- this.defaultName = dc.getDef_Name();
- } catch (DAOException ex) {
- log.error(ex.getMessage(), ex);
- return null;
- }
- } else {
- this.defaultName = this.menu.getMen_Name();
- }
- return DefaultName;
- }
- public Menu getMenu() {
- return menu;
- }
- public void setMenu(Menu menu) {
- this.menu = menu;
- }
- }