优化合同结算受产值确认牵连报错问题
This commit is contained in:
parent
4c90cc0883
commit
a1a5d62bc0
|
@ -1,24 +1,86 @@
|
||||||
package shkd.repc.recon.formplugin;
|
package shkd.repc.recon.formplugin;
|
||||||
|
|
||||||
|
import com.apusic.aas.util.digester.Digester;
|
||||||
|
import com.apusic.aas.util.digester.Rule;
|
||||||
|
import com.apusic.aas.util.digester.Rules;
|
||||||
import kd.bos.bill.BillShowParameter;
|
import kd.bos.bill.BillShowParameter;
|
||||||
import kd.bos.form.ShowType;
|
import kd.bos.form.ShowType;
|
||||||
import kd.bos.form.events.AfterDoOperationEventArgs;
|
import kd.bos.form.events.AfterDoOperationEventArgs;
|
||||||
import kd.bos.form.plugin.AbstractFormPlugin;
|
import kd.bos.form.plugin.AbstractFormPlugin;
|
||||||
|
|
||||||
public class TestFormPlugin extends AbstractFormPlugin {
|
import java.util.List;
|
||||||
|
|
||||||
|
public class TestFormPlugin extends AbstractFormPlugin implements Rules {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void afterDoOperation(AfterDoOperationEventArgs afterDoOperationEventArgs) {
|
public void afterDoOperation(AfterDoOperationEventArgs afterDoOperationEventArgs) {
|
||||||
super.afterDoOperation(afterDoOperationEventArgs);
|
super.afterDoOperation(afterDoOperationEventArgs);
|
||||||
|
|
||||||
String operateKey = afterDoOperationEventArgs.getOperateKey();
|
String operateKey = afterDoOperationEventArgs.getOperateKey();
|
||||||
if ("testoperate".equals(operateKey)) {
|
if ("save".equals(operateKey)) {
|
||||||
BillShowParameter billShowParameter = new BillShowParameter();
|
BillShowParameter billShowParameter = new BillShowParameter();
|
||||||
billShowParameter.setFormId("recos_conplan");// 合约规划
|
billShowParameter.setFormId("recos_conplan");// 合约规划
|
||||||
billShowParameter.getOpenStyle().setShowType(ShowType.Modal);
|
billShowParameter.getOpenStyle().setShowType(ShowType.Modal);
|
||||||
billShowParameter.getOpenStyle().setTargetKey("tabap");
|
billShowParameter.getOpenStyle().setTargetKey("tabap");
|
||||||
this.getView().showForm(billShowParameter);
|
this.getView().showForm(billShowParameter);
|
||||||
}
|
}
|
||||||
|
List<Rule> rules = this.rules();
|
||||||
|
this.getControl("rules");
|
||||||
|
this.getView().getModel();
|
||||||
|
|
||||||
|
Rule rule = null;
|
||||||
|
rule.getNamespaceURI();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Digester getDigester() {
|
||||||
|
System.out.println("");
|
||||||
|
System.out.println("");
|
||||||
|
System.out.println("");
|
||||||
|
System.out.println("");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setDigester(Digester digester) {
|
||||||
|
System.out.println("");
|
||||||
|
System.out.println("");
|
||||||
|
System.out.println("");
|
||||||
|
System.out.println("");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void add(String s, Rule rule) {
|
||||||
|
System.out.println("");
|
||||||
|
System.out.println("");
|
||||||
|
System.out.println("");
|
||||||
|
System.out.println("");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void clear() {
|
||||||
|
System.out.println("");
|
||||||
|
System.out.println("");
|
||||||
|
System.out.println("");
|
||||||
|
System.out.println("");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Rule> match(String s, String s1) {
|
||||||
|
System.out.println("");
|
||||||
|
System.out.println("");
|
||||||
|
System.out.println("");
|
||||||
|
System.out.println("");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Rule> rules() {
|
||||||
|
System.out.println("");
|
||||||
|
System.out.println("");
|
||||||
|
System.out.println("");
|
||||||
|
System.out.println("");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,11 +3,15 @@ package shkd.repc.recon.opplugin;
|
||||||
import kd.bos.dataentity.entity.DynamicObject;
|
import kd.bos.dataentity.entity.DynamicObject;
|
||||||
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
|
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
|
||||||
import kd.bos.entity.plugin.args.AfterOperationArgs;
|
import kd.bos.entity.plugin.args.AfterOperationArgs;
|
||||||
|
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||||
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.math.RoundingMode;
|
import java.math.RoundingMode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 产值
|
||||||
|
*/
|
||||||
public class WorkloadcfSubmitOPPlugin extends AbstractOperationServicePlugIn {
|
public class WorkloadcfSubmitOPPlugin extends AbstractOperationServicePlugIn {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -18,6 +22,7 @@ public class WorkloadcfSubmitOPPlugin extends AbstractOperationServicePlugIn {
|
||||||
if ("submit".equals(operationKey)){
|
if ("submit".equals(operationKey)){
|
||||||
DynamicObject[] dataEntities = e.getDataEntities();
|
DynamicObject[] dataEntities = e.getDataEntities();
|
||||||
DynamicObject dataEntity = dataEntities[0];
|
DynamicObject dataEntity = dataEntities[0];
|
||||||
|
dataEntity = BusinessDataServiceHelper.loadSingle(dataEntity.getPkValue(), "recon_workloadcfmbill");
|
||||||
BigDecimal latestoriprice = dataEntity.getBigDecimal("latestoriprice"); // 合同最新造价
|
BigDecimal latestoriprice = dataEntity.getBigDecimal("latestoriprice"); // 合同最新造价
|
||||||
BigDecimal sumworkloadamt = dataEntity.getBigDecimal("sumworkloadamt"); // 累计已完成产值(含税)
|
BigDecimal sumworkloadamt = dataEntity.getBigDecimal("sumworkloadamt"); // 累计已完成产值(含税)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue