设备维修申请界面插件
This commit is contained in:
parent
90a1ca92f1
commit
663baefb2c
|
@ -0,0 +1,41 @@
|
|||
package zcgj.zcdev.zcdev.pr.plugin.operate;
|
||||
|
||||
import kd.bos.dataentity.entity.DynamicObject;
|
||||
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
|
||||
import kd.bos.entity.plugin.AddValidatorsEventArgs;
|
||||
import kd.bos.entity.plugin.PreparePropertysEventArgs;
|
||||
import kd.bos.orm.query.QCP;
|
||||
import kd.bos.orm.query.QFilter;
|
||||
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class MaintenanceBillOp extends AbstractOperationServicePlugIn {
|
||||
|
||||
@Override
|
||||
public void onPreparePropertys(PreparePropertysEventArgs e) {
|
||||
super.onPreparePropertys(e);
|
||||
// List<String> fieldKeys = e.getFieldKeys();
|
||||
// String billno = "";
|
||||
// List<String> objects = new ArrayList<>();
|
||||
// for (Object id : e.getIds()) {
|
||||
// QFilter filter = new QFilter("id", QCP.equals,Long.valueOf(id.toString()));
|
||||
// DynamicObject[] contracts = BusinessDataServiceHelper.load("ec_in_contract", "*", new QFilter[]{filter});
|
||||
// for (DynamicObject contract : contracts) {
|
||||
// billno = contract.getString("billno");
|
||||
// }
|
||||
// QFilter qf = new QFilter("zcgj_renewal", QCP.in,billno);
|
||||
// DynamicObject[] recontracts = BusinessDataServiceHelper.load("ec_in_contract", "*", new QFilter[]{filter});
|
||||
// for (DynamicObject recontract : recontracts) {
|
||||
// objects.add( recontract.getString("billno"));
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAddValidators(AddValidatorsEventArgs e) {
|
||||
super.onAddValidators(e);
|
||||
e.getValidators().add(0, new MaintenanceBillValidator());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue