📄 rentinfo.java
字号:
package imis_hous.com.bean;
import imis_hous.com.util.BuildingInfo;
import java.io.Serializable;
import java.sql.Date;
public class RentInfo implements Serializable{
public RentInfo() {
// TODO Auto-generated constructor stub
}
private int roomApplyId;
private int RentFor;
private int RentType;
private String RoomNu;
private String BuildingNu;
private String AppBy;
private Date AppDate;
private String AppDes;
private Date RentBeginDate;
private Date RentEndDate;
private float RentFee;
private String CheckBy;
private String CheckDes;
private Date CheckDate;
private int ReMark;
private String Memo;
private String deletUrl;
private String rentForToString;
private String rentTypeToString;
private String toName;
BuildingInfo bi=new BuildingInfo();
public String getToName() {
toName=bi.getDepartment(getBuildingNu() );
return toName;
}
public String getRentForToString() {
if (getRentFor() == 1) {
rentForToString = "出租";
} else if (getRentFor() == 2) {
rentForToString = "续租";
} else if (getRentFor() == 3) {
rentForToString = "退租";
}
return rentForToString;
}
public void setRentForToString(String rentForToString) {
this.rentForToString = rentForToString;
}
public String getDeletUrl() {
String url = "/Imis/servlet/RoomRent_sl?id=delete&&RoomApplyId="+this.roomApplyId;
return "<a href="+url+">"+"删除</a>";
}
public String getRentTypeToString() {
if (getRentType() == 1) {
rentTypeToString = "楼";
} else if (getRentType() == 2) {
rentTypeToString = "房间";
}
return rentTypeToString;
}
public void setRentTypeToString(String rentTypeToString) {
this.rentTypeToString = rentTypeToString;
}
/**
* @return the appBy
*/
public String getAppBy() {
return AppBy;
}
/**
* @param appBy
* the appBy to set
*/
public void setAppBy(String appBy) {
if (appBy != null)
AppBy = appBy.trim();
else
AppBy = "";
}
/**
* @return the appDes
*/
public String getAppDes() {
return AppDes;
}
/**
* @param appDes
* the appDes to set
*/
public void setAppDes(String appDes) {
if (appDes != null)
AppDes = appDes.trim();
else
AppDes = "";
}
/**
* @return the buildingNu
*/
public String getBuildingNu() {
return BuildingNu;
}
/**
* @param buildingNu
* the buildingNu to set
*/
public void setBuildingNu(String buildingNu) {
if (buildingNu != null)
BuildingNu = buildingNu.trim();
else
BuildingNu = "";
}
/**
* @return the checkBy
*/
public String getCheckBy() {
return CheckBy;
}
/**
* @param checkBy
* the checkBy to set
*/
public void setCheckBy(String checkBy) {
if (checkBy != null)
CheckBy = checkBy.trim();
else
CheckBy = "";
}
/**
* @return the checkDes
*/
public String getCheckDes() {
return CheckDes;
}
/**
* @param checkDes
* the checkDes to set
*/
public void setCheckDes(String checkDes) {
if (checkDes != null)
CheckDes = checkDes.trim();
else
CheckDes = "";
}
/**
* @return the memo
*/
public String getMemo() {
return Memo;
}
/**
* @param memo
* the memo to set
*/
public void setMemo(String memo) {
if (memo != null)
Memo = memo.trim();
else
Memo = "";
}
/**
* @return the reMark
*/
public int getReMark() {
return ReMark;
}
/**
* @param reMark
* the reMark to set
*/
public void setReMark(int reMark) {
ReMark = reMark;
}
public void setReMark(String reMark) {
if (reMark != null && !reMark.equals("")) {
ReMark = Integer.parseInt(reMark.trim());
} else {
ReMark = 1;
}
}
public Date getAppDate() {
return AppDate;
}
public void setAppDate(Date appDate) {
AppDate = appDate;
}
public void setAppDate(String appDate) {
if(appDate != null && (appDate.equals("") != true)) {
this.AppDate = Date.valueOf(appDate);
}
}
public Date getCheckDate() {
return CheckDate;
}
public void setCheckDate(Date checkDate) {
CheckDate = checkDate;
}
public void setCheckDate(String checkDate) {
if(checkDate != null && (checkDate.equals("") != true)) {
this.CheckDate = Date.valueOf(checkDate);
}
}
public Date getRentBeginDate() {
return RentBeginDate;
}
public void setRentBeginDate(Date rentBeginDate) {
RentBeginDate = rentBeginDate;
}
public void setRentBeginDate(String rentBeginDate) {
if(rentBeginDate != null && (rentBeginDate.equals("") != true)) {
this.RentBeginDate = Date.valueOf(rentBeginDate);
}
}
public Date getRentEndDate() {
return RentEndDate;
}
public void setRentEndDate(Date rentEndDate) {
RentEndDate = rentEndDate;
}
public void setRentEndDate(String rentEndDate) {
if(rentEndDate != null && (rentEndDate.equals("") != true)) {
this.RentEndDate = Date.valueOf(rentEndDate);
}
}
/**
* @return the rentFee
*/
public float getRentFee() {
return RentFee;
}
/**
* @param rentFee
* the rentFee to set
*/
public void setRentFee(float rentFee) {
RentFee = rentFee;
}
public void setRentFee(String rentFee) {
if (rentFee != null && !rentFee.equals(""))
RentFee = Float.parseFloat(rentFee.trim());
else
RentFee = 0;
}
/**
* @return the rentFor
*/
public int getRentFor() {
return RentFor;
}
/**
* @param rentFor
* the rentFor to set
*/
public void setRentFor(int rentFor) {
RentFor = rentFor;
}
public void setRentFor(String rentFor) {
RentFor = Integer.parseInt(rentFor.trim());
}
/**
* @return the rentType
*/
public int getRentType() {
return RentType;
}
/**
* @param rentType
* the rentType to set
*/
public void setRentType(int rentType) {
RentType = rentType;
}
public void setRentType(String rentType) {
RentType = Integer.parseInt(rentType.trim());
}
/**
* @return the roomNu
*/
public String getRoomNu() {
return RoomNu;
}
/**
* @param roomNu
* the roomNu to set
*/
public void setRoomNu(String roomNu) {
if (roomNu != null)
RoomNu = roomNu.trim();
else
RoomNu = "";
}
public int getRoomApplyId() {
return roomApplyId;
}
public void setRoomApplyId(int roomApplyId) {
this.roomApplyId = roomApplyId;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -