## 主要改进 - 实现 /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>
92 lines
11 KiB
HTML
92 lines
11 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>CommandList Methods</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">CommandList Methods</h1>
|
||
</div>
|
||
</div>
|
||
<div id="nstext">
|
||
<p>The methods of the <b>CommandList</b> class are listed below. For a complete list of <b>CommandList</b> class members, see the <a href="Aveva.ApplicationFramework.Presentation.CommandListMembers.html">CommandList Members</a> topic.</p>
|
||
<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.CommandList.Add.html">Add</a></td><td width="50%"> Adds an object to the end of the CommandList. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandList.AddRange.html">AddRange</a></td><td width="50%"> Adds the elements of an ICollection to the end of the CommandList. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassBinarySearchTopic.htm">BinarySearch</a> (inherited from <b>ArrayList</b>)</td><td width="50%">Overloaded.
|
||
Searches the entire sorted <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassTopic.htm">ArrayList</a> for an element using the specified comparer and returns the zero-based index of the element.
|
||
</td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandList.Clear.html">Clear</a></td><td width="50%"> Removes all elements from the CommandList. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassCloneTopic.htm">Clone</a> (inherited from <b>ArrayList</b>)</td><td width="50%">
|
||
Creates a shallow copy of the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassTopic.htm">ArrayList</a>.
|
||
</td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassContainsTopic.htm">Contains</a> (inherited from <b>ArrayList</b>)</td><td width="50%">
|
||
Determines whether an element is in the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassTopic.htm">ArrayList</a>.
|
||
</td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassCopyToTopic.htm">CopyTo</a> (inherited from <b>ArrayList</b>)</td><td width="50%">Overloaded.
|
||
Copies the entire <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassTopic.htm">ArrayList</a> to a compatible one-dimensional <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemArrayClassTopic.htm">Array</a>, starting at the specified index of the target array.
|
||
</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="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassGetEnumeratorTopic.htm">GetEnumerator</a> (inherited from <b>ArrayList</b>)</td><td width="50%">Overloaded.
|
||
Returns an enumerator for the entire <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassTopic.htm">ArrayList</a>.
|
||
</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/frlrfSystemCollectionsArrayListClassGetRangeTopic.htm">GetRange</a> (inherited from <b>ArrayList</b>)</td><td width="50%">
|
||
Returns an <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassTopic.htm">ArrayList</a> which represents a subset of the elements in the source <b>ArrayList</b>.
|
||
</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="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassIndexOfTopic.htm">IndexOf</a> (inherited from <b>ArrayList</b>)</td><td width="50%">Overloaded.
|
||
Searches for the specified <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a> and returns the zero-based index of the first occurrence within the entire <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassTopic.htm">ArrayList</a>.
|
||
</td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandList.Insert.html">Insert</a></td><td width="50%"> Inserts an element into the CommandList at the specified index. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandList.InsertRange.html">InsertRange</a></td><td width="50%"> Inserts the elements of a collection into the CommandList at the specified index. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassLastIndexOfTopic.htm">LastIndexOf</a> (inherited from <b>ArrayList</b>)</td><td width="50%">Overloaded.
|
||
Searches for the specified <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a> and returns the zero-based index of the last occurrence within the section of the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassTopic.htm">ArrayList</a> that contains the specified number of elements and ends at the specified index.
|
||
</td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandList.Remove.html">Remove</a></td><td width="50%"> Removes the first occurrence of a specific object from the CommandList. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandList.RemoveAt.html">RemoveAt</a></td><td width="50%"> Removes the element at the specified index of the CommandList. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandList.RemoveRange.html">RemoveRange</a></td><td width="50%"> Removes a range of elements from the CommandList. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandList.Reverse_overloads.html">Reverse</a></td><td width="50%">Overloaded. Reverses the order of the elements in the CommandList or a portion of it. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandList.SetRange.html">SetRange</a></td><td width="50%"> Copies the elements of a collection over a range of elements in the CommandList. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandList.Sort_overloads.html">Sort</a></td><td width="50%">Overloaded. Sorts the elements in the CommandList or a portion of it. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassToArrayTopic.htm">ToArray</a> (inherited from <b>ArrayList</b>)</td><td width="50%">Overloaded.
|
||
Copies the elements of the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassTopic.htm">ArrayList</a> to a new array of the specified type.
|
||
</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>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassTrimToSizeTopic.htm">TrimToSize</a> (inherited from <b>ArrayList</b>)</td><td width="50%">
|
||
Sets the capacity to the actual number of elements in the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassTopic.htm">ArrayList</a>.
|
||
</td></tr></table>
|
||
</div>
|
||
<h4 class="dtH4">See Also</h4>
|
||
<p>
|
||
<a href="Aveva.ApplicationFramework.Presentation.CommandList.html">CommandList Class</a> | <a href="Aveva.ApplicationFramework.Presentation.html">Aveva.ApplicationFramework.Presentation Namespace</a></p>
|
||
|
||
<hr />
|
||
<div id="footer">©AVEVA Solutions Ltd 2007</div>
|
||
</div>
|
||
</body>
|
||
</html> |