Compare commits
1 Commits
2234f32e68
...
debugging
| Author | SHA1 | Date | |
|---|---|---|---|
| 94d587705c |
@@ -24,124 +24,120 @@ import com.unicenta.data.loader.DataRead;
|
|||||||
import com.unicenta.data.loader.IKeyed;
|
import com.unicenta.data.loader.IKeyed;
|
||||||
import com.unicenta.data.loader.SerializerRead;
|
import com.unicenta.data.loader.SerializerRead;
|
||||||
|
|
||||||
|
|
||||||
public class VoucherInfo implements IKeyed {
|
public class VoucherInfo implements IKeyed {
|
||||||
private String id;
|
private String id;
|
||||||
private String voucherNumber;
|
private String voucherNumber;
|
||||||
private String customerName;
|
private String customerName;
|
||||||
private double amount;
|
private double amount;
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
public VoucherInfo() {
|
public VoucherInfo() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public VoucherInfo(
|
public VoucherInfo(
|
||||||
String id,
|
String id,
|
||||||
String voucherNumber,
|
String voucherNumber,
|
||||||
String customerName,
|
String customerName,
|
||||||
double amount,
|
double amount,
|
||||||
String status)
|
String status) {
|
||||||
{
|
this.id = id;
|
||||||
this.id = id;
|
this.voucherNumber = voucherNumber;
|
||||||
this.voucherNumber = voucherNumber;
|
this.customerName = customerName;
|
||||||
this.customerName = customerName;
|
this.amount = amount;
|
||||||
this.amount = amount;
|
this.status = status;
|
||||||
this.status = status;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object getKey() {
|
public Object getKey() {
|
||||||
return getId();
|
return getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the id
|
* @return the id
|
||||||
*/
|
*/
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param id the id to set
|
* @param id the id to set
|
||||||
*/
|
*/
|
||||||
public void setId(String id) {
|
public void setId(String id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the voucherNumber
|
* @return the voucherNumber
|
||||||
*/
|
*/
|
||||||
public String getVoucherNumber() {
|
public String getVoucherNumber() {
|
||||||
return voucherNumber;
|
return voucherNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param voucherNumber the voucherNumber to set
|
* @param voucherNumber the voucherNumber to set
|
||||||
*/
|
*/
|
||||||
public void setVoucherNumber(String voucherNumber) {
|
public void setVoucherNumber(String voucherNumber) {
|
||||||
this.voucherNumber = voucherNumber;
|
this.voucherNumber = voucherNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the customerName
|
|
||||||
*/
|
|
||||||
public String getCustomerName() {
|
|
||||||
return customerName;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param customerName the customerName to set
|
* @return the customerName
|
||||||
*/
|
*/
|
||||||
public void setCustomerName(String customerName) {
|
public String getCustomerName() {
|
||||||
this.customerName = customerName;
|
return customerName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the amount
|
* @param customerName the customerName to set
|
||||||
*/
|
*/
|
||||||
public double getAmount() {
|
public void setCustomerName(String customerName) {
|
||||||
return amount;
|
this.customerName = customerName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param amount the amount to set
|
* @return the amount
|
||||||
*/
|
*/
|
||||||
public void setAmount(double amount) {
|
public double getAmount() {
|
||||||
this.amount = amount;
|
return amount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return voucherNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the status
|
|
||||||
*/
|
|
||||||
public String getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param status the status to set
|
* @param amount the amount to set
|
||||||
*/
|
*/
|
||||||
public void setStatus(String status) {
|
public void setAmount(double amount) {
|
||||||
this.status = status;
|
this.amount = amount;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static SerializerRead getSerializerRead() {
|
@Override
|
||||||
return new SerializerRead()
|
public String toString() {
|
||||||
{
|
return voucherNumber;
|
||||||
@Override
|
}
|
||||||
public Object readValues(DataRead dr) throws BasicException {
|
|
||||||
return new VoucherInfo(
|
/**
|
||||||
dr.getString(1),
|
* @return the status
|
||||||
dr.getString(2),
|
*/
|
||||||
dr.getString(3),
|
public String getStatus() {
|
||||||
dr.getDouble(4),
|
return status;
|
||||||
dr.getString(5));
|
}
|
||||||
}};
|
|
||||||
}
|
/**
|
||||||
|
* @param status the status to set
|
||||||
|
*/
|
||||||
|
public void setStatus(String status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static SerializerRead getSerializerRead() {
|
||||||
|
return new SerializerRead() {
|
||||||
|
@Override
|
||||||
|
public Object readValues(DataRead dr) throws BasicException {
|
||||||
|
return new VoucherInfo(
|
||||||
|
dr.getString(1),
|
||||||
|
dr.getString(2),
|
||||||
|
dr.getString(3),
|
||||||
|
dr.getDouble(4),
|
||||||
|
dr.getString(5));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user