Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BasicAPI
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杜科
BasicAPI
Commits
0053b72c
Commit
0053b72c
authored
Mar 04, 2023
by
shyWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PDM前端改造
文档相关改造:处理检出编辑窗口不弹出问题
parent
cbc6f4dd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
DxCommonUtils.java
src/com/yonde/common/DxCommonUtils.java
+2
-0
DxDocService.java
src/com/yonde/doc/service/DxDocService.java
+3
-0
DxPartService.java
src/com/yonde/part/service/DxPartService.java
+3
-0
No files found.
src/com/yonde/common/DxCommonUtils.java
View file @
0053b72c
...
@@ -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
;
}
}
...
...
src/com/yonde/doc/service/DxDocService.java
View file @
0053b72c
...
@@ -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
);
}
}
...
...
src/com/yonde/part/service/DxPartService.java
View file @
0053b72c
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment