Merge remote-tracking branch 'origin/master'

This commit is contained in:
mzr 2025-03-07 10:21:04 +08:00
commit 0bf5ded6c9
2 changed files with 114 additions and 0 deletions

View File

@ -0,0 +1,29 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
package nc.bs.arap.actions;
public class GatheringbillSaveBatchBSAction extends BillInsertBatchBSAction {
public GatheringbillSaveBatchBSAction() {
this.validatorCode.add(5);
this.validatorCode.add(15);
this.validatorCode.add(29);
this.validatorCode.add(19);
this.validatorCode.add(26);
this.validatorCode.add(8);
this.validatorCode.add(24);
this.validatorCode.add(28);
this.validatorCode.add(44);
this.validatorCode.add(46);
this.validatorCode.add(31);
this.validatorCode.add(36);
this.validatorCode.add(23);
this.validatorCode.add(49);
this.validatorCode.add(57);
this.validatorCode.add(59);
this.validatorCode.add(62);
this.validatorCode.add(76);
}
}

View File

@ -0,0 +1,85 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
package nc.bs.arap.validator;
import java.util.Arrays;
import java.util.LinkedList;
import nc.bs.uif2.validation.ValidationFailure;
import nc.bs.uif2.validation.Validator;
import nc.vo.arap.pub.BillEnumCollection.CommissionPayType;
import nc.vo.arap.pub.BillEnumCollection.Direction;
import nc.vo.ml.NCLangRes4VoTransl;
import nc.vo.pub.AggregatedValueObject;
import nc.vo.pub.CircularlyAccessibleValueObject;
import nc.vo.pub.lang.UFBoolean;
import nc.vo.pub.lang.UFDouble;
public class OriAmountNotNullValidator extends AbstractValidator implements Validator {
private static final long serialVersionUID = 1L;
public OriAmountNotNullValidator() {
}
public ValidationFailure validate(Object obj) {
if (UFBoolean.FALSE.equals(this.checkObj(obj))) {
return null;
} else {
LinkedList<CircularlyAccessibleValueObject> childrens = new LinkedList();
for(AggregatedValueObject aggvo : (AggregatedValueObject[])obj) {
this.setObj(aggvo);
childrens.addAll(Arrays.asList(aggvo.getChildrenVO()));
}
StringBuilder sb = new StringBuilder();
for(CircularlyAccessibleValueObject child : childrens) {
if (null != child.getAttributeValue("direction") && !CommissionPayType.RefuseCommPay.VALUE.equals(child.getAttributeValue("commpaytype"))) {
Object money = null;
Object local_money = null;
Object local_tax = null;
if (Direction.CREDIT.VALUE.equals(child.getAttributeValue("direction"))) {
local_tax = child.getAttributeValue("local_tax_cr");
if (local_tax == null || ((UFDouble)local_tax).compareTo(UFDouble.ZERO_DBL) == 0) {
money = child.getAttributeValue("money_cr");
local_money = child.getAttributeValue("local_money_cr");
if (money != null && ((UFDouble)money).compareTo(UFDouble.ZERO_DBL) != 0) {
if (local_money == null || ((UFDouble)local_money).compareTo(UFDouble.ZERO_DBL) == 0) {
sb.append(NCLangRes4VoTransl.getNCLangRes().getStrByID("2006v61020_0", "02006v61020-0097"));
}
} else if (local_money != null && ((UFDouble)local_money).compareTo(UFDouble.ZERO_DBL) != 0) {
sb.append(NCLangRes4VoTransl.getNCLangRes().getStrByID("2006v61020_0", "02006v61020-0096"));
} else {
sb.append(NCLangRes4VoTransl.getNCLangRes().getStrByID("2006v61020_0", "02006v61020-0095"));
}
}
} else {
local_tax = child.getAttributeValue("local_tax_de");
if (local_tax == null || ((UFDouble)local_tax).compareTo(UFDouble.ZERO_DBL) == 0) {
money = child.getAttributeValue("money_de");
local_money = child.getAttributeValue("local_money_de");
if (money != null && ((UFDouble)money).compareTo(UFDouble.ZERO_DBL) != 0) {
if (local_money == null || ((UFDouble)local_money).compareTo(UFDouble.ZERO_DBL) == 0) {
sb.append(NCLangRes4VoTransl.getNCLangRes().getStrByID("2006v61020_0", "02006v61020-0128"));
}
} else if (local_money != null && ((UFDouble)local_money).compareTo(UFDouble.ZERO_DBL) != 0) {
sb.append(NCLangRes4VoTransl.getNCLangRes().getStrByID("2006v61020_0", "02006v61020-0099"));
} else {
sb.append(NCLangRes4VoTransl.getNCLangRes().getStrByID("2006v61020_0", "02006v61020-0098"));
}
}
}
if (sb.length() > 0) {
break;
}
}
}
return sb.length() > 0 ? new ValidationFailure(sb.toString()) : null;
}
}
}