1.合同正文(盖章件)不能为空

2.移动端页面关闭调试

S
This commit is contained in:
weiyunlong 2025-02-09 16:33:38 +08:00
parent 9e89cf5d25
commit aa5b9b3edd
3 changed files with 14 additions and 1 deletions

View File

@ -29,6 +29,8 @@ public class PurDemandListPlugin extends AbstractListPlugin {
public void setFilter(SetFilterEvent e) { public void setFilter(SetFilterEvent e) {
super.setFilter(e); super.setFilter(e);
e.getQFilters().clear();
IFormView parentView = this.getView().getParentView(); IFormView parentView = this.getView().getParentView();
IDataModel model = parentView.getModel(); IDataModel model = parentView.getModel();
DynamicObject dataEntity = model.getDataEntity(); DynamicObject dataEntity = model.getDataEntity();

View File

@ -29,7 +29,7 @@ public class ContractOPPlugin extends AbstractOperationServicePlugIn {
DynamicObject dataEntity = extendedDataEntity.getDataEntity(); DynamicObject dataEntity = extendedDataEntity.getDataEntity();
DynamicObjectCollection qeugBondentrys = dataEntity.getDynamicObjectCollection("qeug_bondentry"); DynamicObjectCollection qeugBondentrys = dataEntity.getDynamicObjectCollection("qeug_bondentry");
BigDecimal qeugMarginlevel = BigDecimal.ZERO; BigDecimal qeugMarginlevel = BigDecimal.ZERO;
if (qeugBondentrys.size() > 0) { if (!qeugBondentrys.isEmpty()) {
for (DynamicObject qeugBondentry : qeugBondentrys) { for (DynamicObject qeugBondentry : qeugBondentrys) {
qeugMarginlevel = qeugMarginlevel.add(qeugBondentry.getBigDecimal("qeug_marginlevel")); qeugMarginlevel = qeugMarginlevel.add(qeugBondentry.getBigDecimal("qeug_marginlevel"));
} }
@ -39,6 +39,16 @@ public class ContractOPPlugin extends AbstractOperationServicePlugIn {
} }
} }
break; break;
case "qeug_attatchment":
for (ExtendedDataEntity extendedDataEntity : dataEntities1) {
//合同正文(盖章件)不能为空
DynamicObject dataEntity = extendedDataEntity.getDataEntity();
DynamicObjectCollection attachmentpanel = dataEntity.getDynamicObjectCollection("attachmentpanel");
if (attachmentpanel.isEmpty()) {
this.addMessage(extendedDataEntity, "合同正文(盖章件)不能为空");
}
}
break;
default: default:
break; break;

View File

@ -24,6 +24,7 @@ public class ApprovalPageMobilePlugin extends ApprovalPageMobilePluginNew {
String operation = (String) e.getReturnData(); String operation = (String) e.getReturnData();
if (!"cancel".equals(operation)){ if (!"cancel".equals(operation)){
logger.info("close1"); logger.info("close1");
this.getView().close(); this.getView().close();
logger.info("close2"); logger.info("close2");
} }