合同台账增加《补充协议》按钮

This commit is contained in:
李靖 2024-06-14 19:02:00 +08:00
parent 4965528d29
commit ae7afdc95c
2 changed files with 13 additions and 1 deletions

View File

@ -30,6 +30,13 @@ public class ContractBillExtList extends AbstractListPlugin implements Plugin {
ListSelectedRowCollection selectedRowCollection = listView.getSelectedRows();
List<Object> pks = (List)selectedRowCollection.stream().map(ListSelectedRow::getPrimaryKeyValue).collect(Collectors.toList());
switch (key) {
case "newsp2":
BillShowParameter parameter3 = new BillShowParameter();
parameter3.setCustomParam("newsp", "newsp");
parameter3.setFormId("er_contractbill");
parameter3.getOpenStyle().setShowType(ShowType.MainNewTabPage);
this.getView().showForm(parameter3);
break;
case "popup":
if (result.isSuccess()) {
if (pks.size() != 1) {

View File

@ -42,7 +42,12 @@ public class ContractbillFromPlugin extends AbstractFormPlugin {
if(contractcode.isEmpty()){
model.setValue("contractcode",billno);
}
// 补充协议新增
Object customParam = this.getView().getFormShowParameter().getCustomParam("newsp");
if(customParam != null && !"".equals(customParam)){
//model.setValue("stdbilltype", 1972476134629078016L);
model.setItemValueByNumber("stdbilltype", "er_contractaddbill_BT");
}
}
@Override