合同登记打开登记列表

This commit is contained in:
zengweihai 2024-07-18 16:47:21 +08:00
parent 874977fa9d
commit 07988ee7df
1 changed files with 23 additions and 0 deletions

View File

@ -8,11 +8,15 @@ import kd.bos.entity.datamodel.events.AfterDeleteRowEventArgs;
import kd.bos.entity.datamodel.events.BeforeDeleteRowEventArgs;
import kd.bos.entity.datamodel.events.ChangeData;
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
import kd.bos.form.FormShowParameter;
import kd.bos.form.ShowType;
import kd.bos.form.control.Control;
import kd.bos.form.field.BasedataEdit;
import kd.bos.form.field.ItemClassEdit;
import kd.bos.form.field.events.BeforeF7SelectEvent;
import kd.bos.form.field.events.BeforeF7SelectListener;
import kd.bos.form.plugin.AbstractFormPlugin;
import kd.bos.list.ListFilterParameter;
import kd.bos.list.ListShowParameter;
import kd.bos.orm.query.QCP;
import kd.bos.orm.query.QFilter;
@ -46,6 +50,7 @@ public class ContractbillFromPlugin extends AbstractFormPlugin implements Before
if (edit != null){
edit.addBeforeF7SelectListener(this);
}
this.addClickListeners("shkd_look");
}
@Override
@ -72,6 +77,24 @@ 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 propertyChanged(PropertyChangedArgs e) {
super.propertyChanged(e);