供方入围可添加供应商修订版1.0
This commit is contained in:
parent
756428b3e2
commit
0c6a43235f
|
@ -11,8 +11,11 @@ import kd.bos.entity.datamodel.IDataModel;
|
|||
import kd.bos.entity.datamodel.IEntryOperate;
|
||||
import kd.bos.entity.datamodel.events.ChangeData;
|
||||
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
|
||||
import kd.bos.form.control.Button;
|
||||
import kd.bos.form.control.Control;
|
||||
import kd.bos.form.control.EntryGrid;
|
||||
import kd.bos.form.control.events.BeforeItemClickEvent;
|
||||
import kd.bos.form.control.events.ItemClickEvent;
|
||||
import kd.bos.form.events.AfterDoOperationEventArgs;
|
||||
import kd.bos.form.events.BeforeDoOperationEventArgs;
|
||||
import kd.bos.form.operate.FormOperate;
|
||||
|
@ -37,27 +40,24 @@ public class SupplierInvitationFormPlugin extends SupplierInvitationBidNumEdit {
|
|||
private HashMap<Long, DynamicObject> projectSectionMap = new HashMap();
|
||||
List<String> isCheckList = new ArrayList();
|
||||
|
||||
|
||||
@Override
|
||||
public void beforeDoOperation(BeforeDoOperationEventArgs args) {
|
||||
super.beforeDoOperation(args);
|
||||
FormOperate source = (FormOperate) args.getSource();
|
||||
String operateKey = source.getOperateKey();
|
||||
if ("addsupplierdetail".equals(operateKey)){
|
||||
}
|
||||
public void registerListener(EventObject e) {
|
||||
super.registerListener(e);
|
||||
addItemClickListeners("supplierenrolltoolbar");
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void afterDoOperation(AfterDoOperationEventArgs afterDoOperationEventArgs) {
|
||||
super.afterDoOperation(afterDoOperationEventArgs);
|
||||
String operateKey = afterDoOperationEventArgs.getOperateKey();
|
||||
public void beforeItemClick(BeforeItemClickEvent evt) {
|
||||
super.beforeItemClick(evt);
|
||||
String itemKey = evt.getItemKey();
|
||||
DynamicObject bidproject = (DynamicObject) this.getModel().getValue("bidproject");
|
||||
if ("addsupplierdetail".equals(operateKey)){
|
||||
if ("addsupplierdetail".equals(itemKey)){
|
||||
EntryGrid SEEntryGrid = this.getControl("supplierenrollentry");
|
||||
DynamicObjectCollection SEEntry = this.getModel().getEntryEntity("supplierenrollentry");
|
||||
int[] selectRows = SEEntryGrid.getSelectRows();
|
||||
this.getView().showTipNotification(String.valueOf(selectRows[0]));
|
||||
for (int selectRow : selectRows) {
|
||||
this.getView().showTipNotification("beforedo:"+String.valueOf(selectRow));
|
||||
DynamicObject dy = SEEntry.get(selectRow);
|
||||
DynamicObject enrollsupplier = dy.getDynamicObject("enrollsupplier");//报名供应商
|
||||
if (enrollsupplier != null){
|
||||
|
@ -72,8 +72,40 @@ public class SupplierInvitationFormPlugin extends SupplierInvitationBidNumEdit {
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void beforeDoOperation(BeforeDoOperationEventArgs args) {
|
||||
super.beforeDoOperation(args);
|
||||
// FormOperate source = (FormOperate) args.getSource();
|
||||
// String operateKey = source.getOperateKey();
|
||||
// DynamicObject bidproject = (DynamicObject) this.getModel().getValue("bidproject");
|
||||
// if ("addsupplierdetail".equals(operateKey)){
|
||||
// EntryGrid SEEntryGrid = this.getControl("supplierenrollentry");
|
||||
// DynamicObjectCollection SEEntry = this.getModel().getEntryEntity("supplierenrollentry");
|
||||
// int[] selectRows = SEEntryGrid.getSelectRows();
|
||||
// for (int selectRow : selectRows) {
|
||||
// this.getView().showTipNotification("beforedo:"+String.valueOf(selectRow));
|
||||
// DynamicObject dy = SEEntry.get(selectRow);
|
||||
// DynamicObject enrollsupplier = dy.getDynamicObject("enrollsupplier");//报名供应商
|
||||
// if (enrollsupplier != null){
|
||||
// Object enrollsupplierPkValue = enrollsupplier.getPkValue();
|
||||
// boolean flag = checkSupplierCollection(enrollsupplierPkValue,bidproject);
|
||||
// if (!flag){
|
||||
// this.createRespMyTender(enrollsupplierPkValue);
|
||||
// DynamicObject dataEntity = this.getModel().getDataEntity();
|
||||
// SaveServiceHelper.save(new DynamicObject[]{dataEntity});
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public void propertyChanged(PropertyChangedArgs args) {
|
||||
ChangeData changeData = args.getChangeSet()[0];
|
||||
|
|
Loading…
Reference in New Issue