合同台账增加《补充协议》按钮
This commit is contained in:
parent
4965528d29
commit
ae7afdc95c
|
@ -30,6 +30,13 @@ public class ContractBillExtList extends AbstractListPlugin implements Plugin {
|
||||||
ListSelectedRowCollection selectedRowCollection = listView.getSelectedRows();
|
ListSelectedRowCollection selectedRowCollection = listView.getSelectedRows();
|
||||||
List<Object> pks = (List)selectedRowCollection.stream().map(ListSelectedRow::getPrimaryKeyValue).collect(Collectors.toList());
|
List<Object> pks = (List)selectedRowCollection.stream().map(ListSelectedRow::getPrimaryKeyValue).collect(Collectors.toList());
|
||||||
switch (key) {
|
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":
|
case "popup":
|
||||||
if (result.isSuccess()) {
|
if (result.isSuccess()) {
|
||||||
if (pks.size() != 1) {
|
if (pks.size() != 1) {
|
||||||
|
|
|
@ -42,7 +42,12 @@ public class ContractbillFromPlugin extends AbstractFormPlugin {
|
||||||
if(contractcode.isEmpty()){
|
if(contractcode.isEmpty()){
|
||||||
model.setValue("contractcode",billno);
|
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
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue