feat:服务维修单无权限修改
This commit is contained in:
parent
936313989b
commit
eb8fcb0a2d
@ -4,6 +4,8 @@ import com.google.common.collect.Maps;
|
||||
import com.yem.wm.utils.FunctionalCommon;
|
||||
import com.yem.wm.utils.YEM;
|
||||
import kd.bos.bill.AbstractBillPlugIn;
|
||||
import kd.bos.dataentity.entity.DynamicObject;
|
||||
import kd.bos.entity.datamodel.IDataModel;
|
||||
import kd.bos.extplugin.sample.AbstractFormPlugin;
|
||||
import kd.bos.form.CloseCallBack;
|
||||
import kd.bos.form.FormShowParameter;
|
||||
@ -12,6 +14,7 @@ import kd.bos.form.ShowType;
|
||||
import kd.bos.form.events.BeforeDoOperationEventArgs;
|
||||
import kd.bos.form.events.ClosedCallBackEvent;
|
||||
import kd.bos.form.operate.FormOperate;
|
||||
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
@ -42,8 +45,10 @@ public class ServiceRepairFormPlugin extends AbstractBillPlugIn {
|
||||
super.closedCallBack(e);
|
||||
IFormView view = this.getView();
|
||||
String actionId = e.getActionId();
|
||||
IDataModel model = this.getModel();
|
||||
DynamicObject dataEntity = model.getDataEntity(true);
|
||||
if ("voidreason".equals(actionId)) {
|
||||
view.invokeOperation("save");
|
||||
SaveServiceHelper.save(new DynamicObject[]{dataEntity});
|
||||
view.invokeOperation("refresh");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user