Merge remote-tracking branch 'origin/main' into main
This commit is contained in:
commit
e14e64e967
|
@ -1,24 +1,86 @@
|
|||
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.form.ShowType;
|
||||
import kd.bos.form.events.AfterDoOperationEventArgs;
|
||||
import kd.bos.form.plugin.AbstractFormPlugin;
|
||||
|
||||
public class TestFormPlugin extends AbstractFormPlugin {
|
||||
import java.util.List;
|
||||
|
||||
public class TestFormPlugin extends AbstractFormPlugin implements Rules {
|
||||
|
||||
@Override
|
||||
public void afterDoOperation(AfterDoOperationEventArgs afterDoOperationEventArgs) {
|
||||
super.afterDoOperation(afterDoOperationEventArgs);
|
||||
|
||||
String operateKey = afterDoOperationEventArgs.getOperateKey();
|
||||
if ("testoperate".equals(operateKey)) {
|
||||
if ("save".equals(operateKey)) {
|
||||
BillShowParameter billShowParameter = new BillShowParameter();
|
||||
billShowParameter.setFormId("recos_conplan");// 合约规划
|
||||
billShowParameter.getOpenStyle().setShowType(ShowType.Modal);
|
||||
billShowParameter.getOpenStyle().setTargetKey("tabap");
|
||||
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.entity.plugin.AbstractOperationServicePlugIn;
|
||||
import kd.bos.entity.plugin.args.AfterOperationArgs;
|
||||
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.RoundingMode;
|
||||
|
||||
/**
|
||||
* 产值
|
||||
*/
|
||||
public class WorkloadcfSubmitOPPlugin extends AbstractOperationServicePlugIn {
|
||||
|
||||
@Override
|
||||
|
@ -18,6 +22,7 @@ public class WorkloadcfSubmitOPPlugin extends AbstractOperationServicePlugIn {
|
|||
if ("submit".equals(operationKey)){
|
||||
DynamicObject[] dataEntities = e.getDataEntities();
|
||||
DynamicObject dataEntity = dataEntities[0];
|
||||
dataEntity = BusinessDataServiceHelper.loadSingle(dataEntity.getPkValue(), "recon_workloadcfmbill");
|
||||
BigDecimal latestoriprice = dataEntity.getBigDecimal("latestoriprice"); // 合同最新造价
|
||||
BigDecimal sumworkloadamt = dataEntity.getBigDecimal("sumworkloadamt"); // 累计已完成产值(含税)
|
||||
|
||||
|
|
Loading…
Reference in New Issue