⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 moneyconfigaction.java

📁 新技术论坛系统 v1.0 前后台管理的初始用户名 : admin 密码 123456
💻 JAVA
字号:
package com.ntsky.bbs.web.webwork.action.xml;

import java.util.List;
import java.util.Map;

import com.ntsky.bbs.Symbols;
import com.ntsky.bbs.util.page.Pagination;
import com.ntsky.bbs.util.page.QueryResult;

/**
 * 金钱信息设定管理Action
 *  
 * @author ntsky
 * @link www.ntsky.com
 * 
 * @version $Revision: 1.5 $ $Date: 2007/04/05 18:10:12 $
 */
public class MoneyConfigAction extends XmlActionSupport {
	
	/**
	 * 金钱信息设置
	 * <pre>
	 * 	执行成功迁移到 moneyConfig.ftl
	 * </pre>
	 * @return String success 
	 */
	public String doSet() throws Exception {
		
		/* ---------- 权限判断 ------------ */
		// 金钱设置 
		if(!isPermisson("1_7")){
			setWarnMessage("您没有金钱设置的权限.");
			return NO_PERMISSION;
		}
		/* ------------------------------ */		
		
		/* ------------ 记录日志 -----------*/
		recordActLog("金钱设置");
		/* -------------------------------*/	
		
		if(logger.isInfoEnabled()){
			logger.info("设置金钱配置信息");
		}
		// 修改金钱数据
		super.xmlDataService.editXml(Symbols.CONFIG_MONEY,super.getRequest().getParameterMap());
		this.setMoneyConfigMap();
		return SUCCESS;
    }

	private void setMoneyConfigMap(){
		// 设置基本信息
		Map basicMap = super.xmlDataService.select(Symbols.CONFIG_MONEY);
		super.setPropertyMap(basicMap);				
	}
	
	/**
	 * 取得金钱信息
	 * <ul>
	 *  <li>查询金钱信息</li>
	 * </ul>
	 */
	public String doOpen() throws Exception {
		
		/* ---------- 权限判断 ------------ */
		// 金钱设置 
		if(!isPermisson("1_7")){
			setWarnMessage("您没有金钱设置的权限.");
			return NO_PERMISSION;
		}
		/* ------------------------------ */		
		
		/* ------------ 记录日志 -----------*/
		recordActLog("金钱设置");
		/* -------------------------------*/			
		
		if(logger.isDebugEnabled()){
			logger.debug("检索金钱配置信息");		
		}
		this.setMoneyConfigMap();	
		return SUCCESS;
	}
	
	/**
	 * 设置基本配置信息
	 * @throws Exception
	 */
	public void prepare() throws Exception {

	}
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -