合同登记打开登记列表测回

This commit is contained in:
zengweihai 2024-07-18 18:32:53 +08:00
parent 07988ee7df
commit 9cb6ac3cec
1 changed files with 18 additions and 18 deletions

View File

@ -50,7 +50,7 @@ public class ContractbillFromPlugin extends AbstractFormPlugin implements Before
if (edit != null){
edit.addBeforeF7SelectListener(this);
}
this.addClickListeners("shkd_look");
// this.addClickListeners("shkd_look");
}
@Override
@ -77,23 +77,23 @@ public class ContractbillFromPlugin extends AbstractFormPlugin implements Before
}
}
@Override
public void click(EventObject evt) {
super.click(evt);
Control source = (Control) evt.getSource();
String key = source.getKey();
if ("shkd_look".equals(key)){
ListShowParameter lsp = new ListShowParameter();
lsp.setBillFormId("er_contractbill");
String billno = (String) this.getModel().getValue("billno");
QFilter numberQF = new QFilter("billno", QCP.equals, billno);
ListFilterParameter listFilterParameter = new ListFilterParameter();
listFilterParameter.setFilter(numberQF);
lsp.setListFilterParameter(listFilterParameter);
lsp.getOpenStyle().setShowType(ShowType.MainNewTabPage);
this.getView().showForm(lsp);
}
}
// @Override
// public void click(EventObject evt) {
// super.click(evt);
// Control source = (Control) evt.getSource();
// String key = source.getKey();
// if ("shkd_look".equals(key)){
// ListShowParameter lsp = new ListShowParameter();
// lsp.setBillFormId("er_contractbill");
// String billno = (String) this.getModel().getValue("billno");
// QFilter numberQF = new QFilter("billno", QCP.equals, billno);
// ListFilterParameter listFilterParameter = new ListFilterParameter();
// listFilterParameter.setFilter(numberQF);
// lsp.setListFilterParameter(listFilterParameter);
// lsp.getOpenStyle().setShowType(ShowType.MainNewTabPage);
// this.getView().showForm(lsp);
// }
// }
@Override
public void propertyChanged(PropertyChangedArgs e) {