47 lines
1.6 KiB
Java
47 lines
1.6 KiB
Java
|
|
package tqq9.lc123.cloud.app.plugin.form.pm;
|
||
|
|
|
||
|
|
import kd.bos.bill.AbstractBillPlugIn;
|
||
|
|
import kd.bos.bill.BillShowParameter;
|
||
|
|
import kd.bos.dataentity.entity.DynamicObject;
|
||
|
|
import kd.bos.dataentity.utils.StringUtils;
|
||
|
|
import kd.bos.form.CloseCallBack;
|
||
|
|
import kd.bos.form.ShowType;
|
||
|
|
import kd.bos.form.control.events.ItemClickEvent;
|
||
|
|
import kd.bos.logging.Log;
|
||
|
|
import kd.bos.logging.LogFactory;
|
||
|
|
import kd.bos.orm.query.QCP;
|
||
|
|
import kd.bos.orm.query.QFilter;
|
||
|
|
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||
|
|
import kd.sdk.plugin.Plugin;
|
||
|
|
|
||
|
|
import java.util.Date;
|
||
|
|
import java.util.EventObject;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 采购退货界面插件
|
||
|
|
*/
|
||
|
|
public class PurRefundApplyBillPlugin extends AbstractBillPlugIn implements Plugin {
|
||
|
|
private final static Log logger = LogFactory.getLog(PurorderEntryIntroPaybillPlugin.class);
|
||
|
|
@Override
|
||
|
|
public void registerListener(EventObject e) {
|
||
|
|
super.registerListener(e);
|
||
|
|
this.addItemClickListeners("tbmain");
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
*异地退货
|
||
|
|
*/
|
||
|
|
@Override
|
||
|
|
public void itemClick(ItemClickEvent evt) {
|
||
|
|
super.itemClick(evt);
|
||
|
|
String itemKey = evt.getItemKey();
|
||
|
|
if(StringUtils.equals("tqq9_ydth",itemKey)){
|
||
|
|
BillShowParameter param = new BillShowParameter();
|
||
|
|
param.setFormId("tqq9_otheroutapply");
|
||
|
|
param.setCustomParam("tqq9_otheroutapplybillno", this.getModel().getValue("billno"));//采购退货申请单号
|
||
|
|
param.setCloseCallBack(new CloseCallBack(this, "tqq9_otheroutapply"));
|
||
|
|
param.getOpenStyle().setShowType(ShowType.Modal);
|
||
|
|
this.getView().showForm(param);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|