## 主要改进 - 实现 /api/status/model 接口,返回真实PDMS模型状态信息 - 使用MDB.CurrentMDB、Project.CurrentProject等AVEVA API获取真实数据 - 移除硬编码的CurrentSession、PositionInfo、PdmsSpecific等复杂结构 - 简化数据模型,只保留核心的真实数据字段 ## 技术实现 - 通过DbSession获取真实的用户名、会话开始时间和持续时间 - 通过WorldMembers()获取真实的模型元素统计 - 修复DateTime类型的null合并运算符编译错误 - 清理不使用的方法和类定义 ## API返回数据 现在返回的数据主要包含真实的PDMS信息: - ModelLoaded: MDB连接状态检查 - ProjectName: 真实的设计数据库名称 - MdsName: 真实的MDB名称 - UserName: 真实的数据库会话用户 - StartTime: 真实的会话创建时间 - TotalElements: 真实的模型元素数量统计 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
90 lines
9.8 KiB
HTML
90 lines
9.8 KiB
HTML
<html dir="LTR">
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
|
||
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
|
||
<title>DockedWindow Members</title>
|
||
<xml>
|
||
</xml>
|
||
<link rel="stylesheet" type="text/css" href="MSDN.css" />
|
||
</head>
|
||
<body id="bodyID" class="dtBODY">
|
||
<div id="nsbanner">
|
||
<div id="bannerrow1">
|
||
<table class="bannerparthead" cellspacing="0">
|
||
<tr id="hdr">
|
||
<td class="runninghead">Common Application Framework</td>
|
||
<td class="product">
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<div id="TitleRow">
|
||
<h1 class="dtH1">DockedWindow Members
|
||
</h1>
|
||
</div>
|
||
</div>
|
||
<div id="nstext">
|
||
<p>
|
||
<a href="Aveva.ApplicationFramework.Presentation.DockedWindow.html">DockedWindow overview</a>
|
||
</p>
|
||
<h4 class="dtH4">Public Instance Properties</h4>
|
||
<div class="tablediv">
|
||
<table class="dtTABLE" cellspacing="0">
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.Control.html">Control</a></td><td width="50%"> Gets the control displayed in the window. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.DockedPosition.html">DockedPosition</a></td><td width="50%"> Gets the current docked position of the window. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.DockGroupStyle.html">DockGroupStyle</a></td><td width="50%"> Returns or sets how groups of docked windows should be organised. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.Enabled.html">Enabled</a></td><td width="50%"> Gets or sets whether the window is enabled. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.Floatable.html">Floatable</a></td><td width="50%"> Gets or sets whether the window is floatable. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.Height.html">Height</a></td><td width="50%"> Gets or sets the height of the window. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.HelpALink.html">HelpALink</a></td><td width="50%"> Gets or sets a help link associated with the window. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.HelpContextId.html">HelpContextId</a></td><td width="50%"> Gets or sets the help context id associated with the window. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.IsFloating.html">IsFloating</a></td><td width="50%"> Gets the floating state of a window. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.Key.html">Key</a></td><td width="50%"> Gets the Key of the window in the WindowsCollection. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.MaximumSize.html">MaximumSize</a></td><td width="50%"> Get or sets the maximum size of the window. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.MinimumSize.html">MinimumSize</a></td><td width="50%"> Get or sets the minimum size of the window. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.SaveLayout.html">SaveLayout</a></td><td width="50%"> Gets or sets the property which controls if the window should be included in the docked window layout serialization </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.Tag.html">Tag</a></td><td width="50%"> Gets or sets the tag property which can be used to logically attach another object or value to a window. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.Title.html">Title</a></td><td width="50%"> Gets or sets the title of the window. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.Visible.html">Visible</a></td><td width="50%"> Gets or sets the visible state of the window. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.Width.html">Width</a></td><td width="50%"> Gets or sets the width of the window. </td></tr></table>
|
||
</div>
|
||
<h4 class="dtH4">Public Instance Methods</h4>
|
||
<div class="tablediv">
|
||
<table class="dtTABLE" cellspacing="0">
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.Close.html">Close</a></td><td width="50%"> Destroys the window. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.Dock.html">Dock</a></td><td width="50%"> Docks the window within the main window. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassEqualsTopic.htm">Equals</a> (inherited from <b>Object</b>)</td><td width="50%">
|
||
Determines whether the specified <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a> is equal to the current <b>Object</b>.
|
||
</td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.Float.html">Float</a></td><td width="50%"> Displays the window as a floating window. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassGetHashCodeTopic.htm">GetHashCode</a> (inherited from <b>Object</b>)</td><td width="50%">
|
||
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
|
||
</td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassGetTypeTopic.htm">GetType</a> (inherited from <b>Object</b>)</td><td width="50%">
|
||
Gets the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemTypeClassTopic.htm">Type</a> of the current instance.
|
||
</td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.GroupWith.html">GroupWith</a></td><td width="50%"> Arrange docked windows together as a group. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.Hide.html">Hide</a></td><td width="50%"> Conceals the window from the user. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.Show.html">Show</a></td><td width="50%"> Displays the window to the user. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassToStringTopic.htm">ToString</a> (inherited from <b>Object</b>)</td><td width="50%">
|
||
Returns a <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a> that represents the current <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a>.
|
||
</td></tr></table>
|
||
</div>
|
||
<h4 class="dtH4">Public Instance Events</h4>
|
||
<div class="tablediv">
|
||
<table class="dtTABLE" cellspacing="0">
|
||
<tr VALIGN="top"><td width="50%"><img src="pubevent.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.Activated.html">Activated</a></td><td width="50%"> Event which occurs when the window is activated. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubevent.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.Closed.html">Closed</a></td><td width="50%"> Event which occurs when window is closed. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubevent.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.Closing.html">Closing</a></td><td width="50%"> Event which occurs when window is closing. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubevent.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.Deactivated.html">Deactivated</a></td><td width="50%"> Event which occurs when the window is deactivated. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubevent.gif"></img><a href="Aveva.ApplicationFramework.Presentation.DockedWindow.Reparented.html">Reparented</a></td><td width="50%"> Event which occurs when the window is reparented. </td></tr></table>
|
||
</div>
|
||
<h4 class="dtH4">See Also</h4>
|
||
<p>
|
||
<a href="Aveva.ApplicationFramework.Presentation.DockedWindow.html">DockedWindow Class</a> | <a href="Aveva.ApplicationFramework.Presentation.html">Aveva.ApplicationFramework.Presentation Namespace</a></p>
|
||
|
||
<hr />
|
||
<div id="footer"><EFBFBD>AVEVA Solutions Ltd 2007</div>
|
||
</div>
|
||
</body>
|
||
</html> |