package com.gaowj.system.back;

import java.io.UnsupportedEncodingException;

import com.gaowj.business.action.BasicAction;
import com.gaowj.business.exception.BusinessException;
import com.gaowj.business.util.Java_tool;
import com.gaowj.business.util.PropUtil;

public class ViewAboutAction extends BasicAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4816134935367878078L;
	
	
	public String license() throws BusinessException{
		Java_tool tool = new Java_tool();
		getEditdata().put("EXPIREDATE", tool.date2string(getLicense().getEXPIREDATE()));//失效日期
		getEditdata().put("ISSUEDATE", tool.date2string(getLicense().getISSUEDATE()));//起效日期
		getEditdata().put("LICENSEDSOFTWARE", getLicense().getLICENSEDSOFTWARE());//应用系统_宁波金网数据交换平台
		String tt = getLicense().getLICENSINGCOMPANIES();
		try {
			tt = new String(tt.getBytes(PropUtil.getValue("licensechinesecharset", "quartz_service", "gbk")));
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 
		getEditdata().put("LICENSINGCOMPANIES",tt );
//		getEditdata().put("LICENSINGCOMPANIES", getLicense().getLICENSINGCOMPANIES());
		getEditdata().put("LICENSENUMBER", getLicense().getLICENSENUMBER());
		getEditdata().put("MACADDRESS", getLicense().getMACADDRESS());
		getEditdata().put("IPADDRESS", getLicense().getIPADDRESS());
		getEditdata().put("STATE", getLicense().getSTATE());//状态
		getEditdata().put("TYPE", getLicense().getTYPE());//用途
		getEditdata().put("USERNUMBER", getLicense().getUSERNUMBER());//授权用户数
		return "license";
	}

}
