1.手工结算调整
This commit is contained in:
parent
043c6b8d1a
commit
4798b53657
|
@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
|
|||
import kd.bos.dataentity.entity.DynamicObject;
|
||||
import kd.bos.form.FormShowParameter;
|
||||
import kd.bos.form.control.Button;
|
||||
import kd.bos.form.plugin.AbstractFormPlugin;
|
||||
import kd.bos.logging.Log;
|
||||
import kd.bos.logging.LogFactory;
|
||||
import kd.bos.orm.query.QCP;
|
||||
|
@ -11,6 +12,7 @@ import kd.bos.orm.query.QFilter;
|
|||
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||
import kd.fi.arapcommon.form.ManualSettleBasePlugin;
|
||||
import kd.fi.arapcommon.service.IManualSettleService;
|
||||
import kd.sdk.plugin.Plugin;
|
||||
|
||||
import java.util.EventObject;
|
||||
import java.util.List;
|
||||
|
@ -19,7 +21,65 @@ import java.util.List;
|
|||
/**
|
||||
* 手工结算赋值及自动查询
|
||||
*/
|
||||
public class ApHandSettleFormPlugin extends ManualSettleBasePlugin {
|
||||
//public class ApHandSettleFormPlugin extends ManualSettleBasePlugin {
|
||||
// private final static Log logger = LogFactory.getLog(ApHandSettleFormPlugin.class);
|
||||
//
|
||||
//
|
||||
// @Override
|
||||
// public void afterCreateNewData(EventObject e) {
|
||||
// // 获取当前页面的FormShowParameter对象
|
||||
// FormShowParameter formShowParameter = this.getView().getFormShowParameter();
|
||||
// // 获取自定义参数
|
||||
// JSONObject e_asstact = formShowParameter.getCustomParam("e_asstact");
|
||||
// JSONObject settleorg = formShowParameter.getCustomParam("settleorg");
|
||||
// DynamicObject supplier = null;
|
||||
// DynamicObject bos_org = null;
|
||||
// if (e_asstact != null && settleorg != null) {
|
||||
// String number = e_asstact.get("number").toString();
|
||||
// String number1 = settleorg.get("number").toString();
|
||||
// supplier = BusinessDataServiceHelper.loadSingle("bd_supplier", new QFilter[]{new QFilter("number", QCP.equals, number)});
|
||||
// bos_org = BusinessDataServiceHelper.loadSingle("bos_org", new QFilter[]{new QFilter("number", QCP.equals, number1)});
|
||||
// this.getModel().setValue("org", bos_org);
|
||||
// this.getModel().setValue("asstactvalue", supplier);
|
||||
// this.getModel().setValue("settlerelation", "apself");
|
||||
// this.getModel().setValue("pagedisplay", "entry");
|
||||
//
|
||||
//
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void afterBindData(EventObject e) {
|
||||
// super.afterBindData(e);
|
||||
// FormShowParameter formShowParameter = this.getView().getFormShowParameter();
|
||||
// // 获取自定义参数
|
||||
// JSONObject e_asstact = formShowParameter.getCustomParam("e_asstact");
|
||||
// if(e_asstact!=null){
|
||||
// Button button = (Button)this.getControl("btnquery");
|
||||
// button.addClickListener(this);
|
||||
// button.click();
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// protected List<Long> getOrgIdList() {
|
||||
// return null;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// protected String getSettleRecordEntity() {
|
||||
// return null;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// protected IManualSettleService getService() {
|
||||
// return null;
|
||||
// }
|
||||
//
|
||||
//
|
||||
//}
|
||||
|
||||
public class ApHandSettleFormPlugin extends AbstractFormPlugin implements Plugin {
|
||||
private final static Log logger = LogFactory.getLog(ApHandSettleFormPlugin.class);
|
||||
|
||||
|
||||
|
@ -46,33 +106,7 @@ public class ApHandSettleFormPlugin extends ManualSettleBasePlugin {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterBindData(EventObject e) {
|
||||
super.afterBindData(e);
|
||||
FormShowParameter formShowParameter = this.getView().getFormShowParameter();
|
||||
// 获取自定义参数
|
||||
JSONObject e_asstact = formShowParameter.getCustomParam("e_asstact");
|
||||
if(e_asstact!=null){
|
||||
Button button = (Button)this.getControl("btnquery");
|
||||
button.addClickListener(this);
|
||||
button.click();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected List<Long> getOrgIdList() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getSettleRecordEntity() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected IManualSettleService getService() {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue