Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
458411d50f
|
@ -41,9 +41,9 @@ public class ContractSettlePlanF7Plugin extends AbstractFormPlugin implements Pl
|
|||
DynamicObject[] settlePlanBills = BusinessDataServiceHelper.load("recon_settleplanbill", "id,bill,qeug_applyamount", statusFilter.and(orgFilter).toArray());
|
||||
|
||||
// 若无数据,直接返回
|
||||
if (settlePlanBills == null || settlePlanBills.length == 0) {
|
||||
return;
|
||||
}
|
||||
// if (settlePlanBills == null || settlePlanBills.length == 0) {
|
||||
// return;
|
||||
// }
|
||||
|
||||
// 遍历所有采购需求数据
|
||||
for (DynamicObject settlePlanBill : settlePlanBills) {
|
||||
|
|
|
@ -14,7 +14,7 @@ import java.util.List;
|
|||
|
||||
/**
|
||||
* 动态表单插件
|
||||
* 合同列表增加过滤条件-经办人
|
||||
* 合同列表、合同监控列表、费用登记、付款申请增加过滤条件-经办人
|
||||
*/
|
||||
public class ContractListFilterPlugin extends AbstractListPlugin implements Plugin {
|
||||
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
package shkd.repc.recon.listplugin;
|
||||
|
||||
import kd.bos.config.client.util.StringUtils;
|
||||
import kd.bos.dataentity.entity.LocaleString;
|
||||
import kd.bos.filter.CommonFilterColumn;
|
||||
import kd.bos.filter.FilterColumn;
|
||||
import kd.bos.form.events.FilterContainerInitArgs;
|
||||
import kd.bos.form.plugin.AbstractFormPlugin;
|
||||
import kd.bos.list.plugin.AbstractListPlugin;
|
||||
import kd.bos.logging.Log;
|
||||
import kd.bos.logging.LogFactory;
|
||||
import kd.bos.servicehelper.user.UserServiceHelper;
|
||||
import kd.sdk.plugin.Plugin;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 动态表单插件
|
||||
* 采购需求-增加过滤条件-经办人
|
||||
*/
|
||||
public class SettlePlanListFilterPlugin extends AbstractListPlugin implements Plugin {
|
||||
|
||||
private final static Log logger = LogFactory.getLog(SettlePlanListFilterPlugin.class);
|
||||
|
||||
@Override
|
||||
public void filterContainerInit(FilterContainerInitArgs args) {
|
||||
super.filterContainerInit(args);
|
||||
|
||||
String formId = this.getView().getFormShowParameter().getFormId();
|
||||
if (StringUtils.isEmpty(formId) || !"bos_listf7".equals(formId)) {
|
||||
CommonFilterColumn creatorFilter = new CommonFilterColumn("handler.id");
|
||||
// 设置标题
|
||||
creatorFilter.setCaption(new LocaleString("经办人"));
|
||||
// 设置默认值
|
||||
creatorFilter.setConstantDefaultValue("103");
|
||||
args.addFilterColumn(creatorFilter);
|
||||
}
|
||||
logger.info(String.format("shkd.repc.recon.listplugin.SettlePlanListFilterPlugin", formId));
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue