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