提前部分结清调整

This commit is contained in:
zzk 2022-04-25 17:47:33 +08:00
parent 6597c64581
commit 399e282fd8

View File

@ -14,22 +14,16 @@ public class CarRatio extends CommonHandler {
String retainfield2;
public String getRetainfield2() {
return retainfield2;
}
public void setRetainfield2(String retainfield2) {
this.retainfield2 = retainfield2;
}
protected void initDisplayForEdit(BizObject bo) throws Exception {
JBOTransaction tx=JBOFactory.createJBOTransaction();
int por = Integer.parseInt(bo.getAttribute("retainfield2").toString());
double por = bo.getAttribute("retainfield2").getDouble();
por = por*100;
retainfield2 = String.valueOf(por)+"%";
bo.setAttributeValue("retainfield2", retainfield2);