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

📄 slaconfigform.java

📁 sla性能采集
💻 JAVA
字号:
package com.asiainfo.ainx.slaconf.action;

import java.text.DecimalFormat;

import ainx.common.struts.AinxForm;

import com.asiainfo.ainx.slaconf.vo.SlaConfigVo;
/**
 * 
 * @author zhaotj
 *
 */
public class SlaConfigForm extends AinxForm{
	private String id;//id
	private String resId;	//设备id
	private String resType; //设备类型
	private String itemType;//指标类型	
	private String upper = "0";//上限阈值

	private String lower = "0"; //下限阈值

	private String upperLevel="1";//上限警报级别
	private String lowerLevel="1";//下限警报级别
	
	//用于显示
	private String resName;//设备名称
	private String resTypeName;//设备类型名称
	

	public void setForm2VO(Object arg0) {
		
	}

	
	public void setVO2Form(Object arg0) {
		SlaConfigVo vo = (SlaConfigVo)arg0;
		this.id = vo.getId();
		this.resId = vo.getResId();
		if(vo.getResType().equals("3"))
			this.resType = "2";
		if(vo.getResType().equals("5"))
			this.resType = "1";
		this.itemType = vo.getItemType();
		DecimalFormat df=new DecimalFormat("0.00");
		this.upper = df.format(Float.parseFloat(vo.getUpper())*100);
		this.lower = df.format(Float.parseFloat(vo.getLower())*100);
		this.upperLevel = vo.getUpperLevel();
		this.lowerLevel = vo.getLowerLevel();
		
	
		
		
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getItemType() {
		return itemType;
	}

	public void setItemType(String itemType) {
		this.itemType = itemType;
	}

	public String getLower() {
		return lower;
	}

	public void setLower(String lower) {
		this.lower = lower;
	}

	public String getLowerLevel() {
		return lowerLevel;
	}

	public void setLowerLevel(String lowerLevel) {
		this.lowerLevel = lowerLevel;
	}

	public String getResId() {
		return resId;
	}

	public void setResId(String resId) {
		this.resId = resId;
	}

	public String getResType() {
		return resType;
	}

	public void setResType(String resType) {
		this.resType = resType;
	}

	public String getUpper() {
		return upper;
	}

	public void setUpper(String upper) {
		this.upper = upper;
	}

	public String getUpperLevel() {
		return upperLevel;
	}

	public void setUpperLevel(String upperLevel) {
		this.upperLevel = upperLevel;
	}

	

	public String getResName() {
		return resName;
	}

	public void setResName(String resName) {
		this.resName = resName;
	}


	public String getResTypeName() {
		return resTypeName;
	}


	public void setResTypeName(String resTypeName) {
		this.resTypeName = resTypeName;
	}


	

}

⌨️ 快捷键说明

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