Commit 0053b72c authored by shyWang's avatar shyWang

PDM前端改造

文档相关改造:处理检出编辑窗口不弹出问题
parent cbc6f4dd
...@@ -4,6 +4,7 @@ import com.ptc.windchill.enterprise.templateutil.ActionValidator; ...@@ -4,6 +4,7 @@ import com.ptc.windchill.enterprise.templateutil.ActionValidator;
import wt.access.AccessControlHelper; import wt.access.AccessControlHelper;
import wt.access.AccessPermission; import wt.access.AccessPermission;
import wt.doc.WTDocument; import wt.doc.WTDocument;
import wt.fc.PersistenceHelper;
import wt.fc.PersistenceServerHelper; import wt.fc.PersistenceServerHelper;
import wt.fc.WTObject; import wt.fc.WTObject;
import wt.folder.Folder; import wt.folder.Folder;
...@@ -79,6 +80,7 @@ public class DxCommonUtils implements RemoteAccess, Serializable { ...@@ -79,6 +80,7 @@ public class DxCommonUtils implements RemoteAccess, Serializable {
throw new WTException("当前用户不具有对象[编号:" + number + ",名称:" + name throw new WTException("当前用户不具有对象[编号:" + number + ",名称:" + name
+ "]的检出权限。"); + "]的检出权限。");
} }
workingCopy = (Workable) PersistenceHelper.manager.refresh(workingCopy);
return workingCopy; return workingCopy;
} }
......
...@@ -132,6 +132,9 @@ public class DxDocService implements RemoteAccess { ...@@ -132,6 +132,9 @@ public class DxDocService implements RemoteAccess {
WTDocument docById = DxDocUtil.getDocById(id); WTDocument docById = DxDocUtil.getDocById(id);
WTDocument checkout = (WTDocument) DxCommonUtils.checkout(docById, checkOutNote); WTDocument checkout = (WTDocument) DxCommonUtils.checkout(docById, checkOutNote);
dxDocumentVO = new DxDocumentVO(checkout); dxDocumentVO = new DxDocumentVO(checkout);
if (ObjectsUtil.isNull(dxDocumentVO.getLocker())) {
dxDocumentVO.setLockerVO(docById);
}
} finally { } finally {
SessionContext.setContext(previous); SessionContext.setContext(previous);
} }
......
...@@ -147,6 +147,9 @@ public class DxPartService implements RemoteAccess, Serializable { ...@@ -147,6 +147,9 @@ public class DxPartService implements RemoteAccess, Serializable {
WTPart partById = DxPartUtil.getPartById(id); WTPart partById = DxPartUtil.getPartById(id);
WTPart checkout = (WTPart) DxCommonUtils.checkout(partById, checkOutNote); WTPart checkout = (WTPart) DxCommonUtils.checkout(partById, checkOutNote);
dxPartVO = new DxPartVO(checkout); dxPartVO = new DxPartVO(checkout);
if (ObjectsUtil.isNull(dxPartVO.getLocker())) {
dxPartVO.setLockerVO(partById);
}
} finally { } finally {
SessionContext.setContext(previous); SessionContext.setContext(previous);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment