NETCTOSS02_资费管理模块
结果展示:
用到的技术:
1.搭建struts2项目
2.访问数据库,查询结果显示在jsp中
3.分页技术
源代码及具体细节如下:
Cost.java 实体类
package com.qxl.netctoss.entity;
import java.sql.Timestamp;
public class Cost {
private int costId; //资费ID
private String name; //资费名称
private double baseDuration; //包在线时长
private double baseCost; //月固定费
private double unitCost; //单位费用
private String status; // 0:开通 1:暂停
private String descr; //资费信息说明
private Timestamp creatime; //创建日期
private Timestamp startime; //启用日期
private String costType; //费用类型
public int getCostId() {
return costId;
}
public void setCostId(int costId) {
this.costId = costId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public double getBaseDuration() {
return baseDuration;
}
public void setBaseDuration(double baseDuration) {
this.baseDuration = baseDuration;
}
public double getBaseCost() {
return baseCost;
}
public void setBaseCost(double baseCost) {
this.baseCost = baseCost;
}
public double getUnitCost() {
return unitCost;
}
public void setUnitCost(double unitCost) {
this.unitCost = unitCost;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getDescr() {
return descr;
}
public void setDescr(String descr) {
this.descr = descr;
}
public Timestamp getCreatime() {
return creatime;
}
public void setCreatime(Timestamp creatime) {
this.creatime = creatime;
}
public Timestamp getStartime() {
return startime;
}
public void setStartime(Timestamp startime) {
this.startime = startime;
}
public String getCostType() {
return costType;
}
public void setCostType(String costType) {
this.costType = costType;
}
public String toString() {
return "Cost [costId=" + costId + ", name=" + name + "]";
}
}
ListCostAction.java 相关Action
package com.qxl.netctoss.action;
import java.util.List;
import com.qxl.netctoss.dao.CostDAO;
import com.qxl.netctoss.entity.Cost;
import com