213 lines
4.9 KiB
Plaintext
213 lines
4.9 KiB
Plaintext
package th.co.muangthai.endrprint.model.bean.form.data;
|
|
|
|
import org.codehaus.jackson.annotate.JsonAutoDetect;
|
|
import org.codehaus.jackson.map.annotate.JsonSerialize;
|
|
import th.co.muangthai.endrprint.util.JsonDateSerializer;
|
|
|
|
import java.io.Serializable;
|
|
import java.math.BigDecimal;
|
|
import java.sql.ResultSet;
|
|
import java.sql.SQLException;
|
|
import java.text.ParseException;
|
|
import java.util.Date;
|
|
|
|
@JsonAutoDetect
|
|
public class PrintingDataForm implements Serializable {
|
|
|
|
private String taskId;
|
|
private String policyNo;
|
|
private String clientNo;
|
|
private String insuredName;
|
|
private String endrCode;
|
|
private String endrDesc;
|
|
private Date approveDate;
|
|
private String status;
|
|
private String team;
|
|
private String printOper;
|
|
private Date printDate;
|
|
private String printServer;
|
|
private String printNo;
|
|
|
|
private String type;
|
|
|
|
private String approveDateDisplay;
|
|
private String printDateDisplay;
|
|
|
|
private BigDecimal selectFlag;
|
|
|
|
private String docType;
|
|
|
|
/////////////////////////////////////////
|
|
// setdata
|
|
public void setPrintingData(ResultSet rs) throws SQLException, ParseException {
|
|
|
|
setTaskId(rs.getString("taskid"));
|
|
setPolicyNo(rs.getString("policy_no"));
|
|
setClientNo(rs.getString("client_no"));
|
|
setInsuredName(rs.getString("inusured_name"));
|
|
setEndrCode(rs.getString("endr_code"));
|
|
setEndrDesc(rs.getString("endr_desc"));
|
|
//setApproveDate(rs.getDate("approve_date"));
|
|
setStatus(rs.getString("status"));
|
|
setTeam(rs.getString("team_code"));
|
|
setPrintOper(rs.getString("print_oper"));
|
|
//setPrintDate(rs.getDate("print_date"));
|
|
setPrintServer(rs.getString("print_server"));
|
|
setPrintNo(rs.getString("print_no"));
|
|
|
|
setApproveDateDisplay(rs.getString("approve_date"));
|
|
setPrintDateDisplay(rs.getString("print_date"));
|
|
|
|
setDocType(rs.getString("doc_type"));
|
|
}
|
|
|
|
/////////////////////////////////////////
|
|
// getter and setter
|
|
|
|
|
|
public String getTaskId() {
|
|
return taskId;
|
|
}
|
|
|
|
public void setTaskId(String taskId) {
|
|
this.taskId = taskId;
|
|
}
|
|
|
|
public String getPolicyNo() {
|
|
return policyNo;
|
|
}
|
|
|
|
public void setPolicyNo(String policyNo) {
|
|
this.policyNo = policyNo;
|
|
}
|
|
|
|
public String getClientNo() {
|
|
return clientNo;
|
|
}
|
|
|
|
public void setClientNo(String clientNo) {
|
|
this.clientNo = clientNo;
|
|
}
|
|
|
|
public String getInsuredName() {
|
|
return insuredName;
|
|
}
|
|
|
|
public void setInsuredName(String insuredName) {
|
|
this.insuredName = insuredName;
|
|
}
|
|
|
|
public String getEndrCode() {
|
|
return endrCode;
|
|
}
|
|
|
|
public void setEndrCode(String endrCode) {
|
|
this.endrCode = endrCode;
|
|
}
|
|
|
|
public String getEndrDesc() {
|
|
return endrDesc;
|
|
}
|
|
|
|
public void setEndrDesc(String endrDesc) {
|
|
this.endrDesc = endrDesc;
|
|
}
|
|
|
|
@JsonSerialize(using = JsonDateSerializer.class)
|
|
public Date getApproveDate() {
|
|
return approveDate;
|
|
}
|
|
|
|
public void setApproveDate(Date approveDate) {
|
|
this.approveDate = approveDate;
|
|
}
|
|
|
|
public String getStatus() {
|
|
return status;
|
|
}
|
|
|
|
public void setStatus(String status) {
|
|
this.status = status;
|
|
}
|
|
|
|
public String getTeam() {
|
|
return team;
|
|
}
|
|
|
|
public void setTeam(String team) {
|
|
this.team = team;
|
|
}
|
|
|
|
public String getPrintOper() {
|
|
return printOper;
|
|
}
|
|
|
|
public void setPrintOper(String printOper) {
|
|
this.printOper = printOper;
|
|
}
|
|
|
|
@JsonSerialize(using = JsonDateSerializer.class)
|
|
public Date getPrintDate() {
|
|
return printDate;
|
|
}
|
|
|
|
public void setPrintDate(Date printDate) {
|
|
this.printDate = printDate;
|
|
}
|
|
|
|
public String getPrintServer() {
|
|
return printServer;
|
|
}
|
|
|
|
public void setPrintServer(String printServer) {
|
|
this.printServer = printServer;
|
|
}
|
|
|
|
public String getPrintNo() {
|
|
return printNo;
|
|
}
|
|
|
|
public void setPrintNo(String printNo) {
|
|
this.printNo = printNo;
|
|
}
|
|
|
|
public String getType() {
|
|
return type;
|
|
}
|
|
|
|
public void setType(String type) {
|
|
this.type = type;
|
|
}
|
|
|
|
public String getApproveDateDisplay() {
|
|
return approveDateDisplay;
|
|
}
|
|
|
|
public void setApproveDateDisplay(String approveDateDisplay) {
|
|
this.approveDateDisplay = approveDateDisplay;
|
|
}
|
|
|
|
public String getPrintDateDisplay() {
|
|
return printDateDisplay;
|
|
}
|
|
|
|
public void setPrintDateDisplay(String printDateDisplay) {
|
|
this.printDateDisplay = printDateDisplay;
|
|
}
|
|
|
|
public BigDecimal getSelectFlag() {
|
|
return selectFlag;
|
|
}
|
|
|
|
public void setSelectFlag(BigDecimal selectFlag) {
|
|
this.selectFlag = selectFlag;
|
|
}
|
|
|
|
public String getDocType() {
|
|
return docType;
|
|
}
|
|
|
|
public void setDocType(String docType) {
|
|
this.docType = docType;
|
|
}
|
|
} |