TellmePdmsPluging/NetInterfaceReferenceFiles/Aveva.ApplicationFramework/Aveva.ApplicationFramework.html
root 3082148d7e 实现PDMS模型状态API并移除硬编码数据
## 主要改进
- 实现 /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>
2025-08-01 10:36:02 +08:00

132 lines
5.4 KiB
HTML
Raw Permalink Blame History

<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>Aveva.ApplicationFramework</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">Aveva.ApplicationFramework Namespace</h1>
</div>
</div>
<div id="nstext">
<p>
<a href="Aveva.ApplicationFrameworkHierarchy.html">Namespace hierarchy</a>
</p>
<h3 class="dtH3">Classes</h3>
<div class="tablediv">
<table class="dtTABLE" cellspacing="0">
<tr valign="top">
<th width="50%">Class</th>
<th width="50%">Description</th>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Addin.html">Addin</a>
</td>
<td width="50%"> Class to represent an ApplicationFramework Addin </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.AddinEventArgs.html">AddinEventArgs</a>
</td>
<td width="50%"> Class used to hold the event arguments in Addin related events </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.AddinManager.html">AddinManager</a>
</td>
<td width="50%"> Provides properties and methods for the management of ApplicationFramework Addins. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.AddinsCollection.html">AddinsCollection</a>
</td>
<td width="50%"> Class to represent the collection of loaded ApplicationFramework Addins </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.ServiceEventArgs.html">ServiceEventArgs</a>
</td>
<td width="50%"> Class used to hold the event arguments in SeviceManager related events </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.ServiceManager.html">ServiceManager</a>
</td>
<td width="50%"> Provides a means by which the various components of the ApplicationFramework (e.g. Presentation Component) can publish their services. The ServiceManager also acts as a service provider responding to requests for services. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.SettingsGroup.html">SettingsGroup</a>
</td>
<td width="50%"> Class that represents a named colletion of keyed objects which represent application settings </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.SettingsGroupsCollection.html">SettingsGroupsCollection</a>
</td>
<td width="50%"> A collection of SettingsGroup objects </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.SettingsManager.html">SettingsManager</a>
</td>
<td width="50%"> Class to manage an applications settings </td>
</tr>
</table>
</div>
<h3 class="dtH3">Interfaces</h3>
<div class="tablediv">
<table class="dtTABLE" cellspacing="0">
<tr valign="top">
<th width="50%">Interface</th>
<th width="50%">Description</th>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.IAddin.html">IAddin</a>
</td>
<td width="50%"> Interface which enables communication between the framework and the addin. </td>
</tr>
</table>
</div>
<h3 class="dtH3">Delegates</h3>
<div class="tablediv">
<table class="dtTABLE" cellspacing="0">
<tr valign="top">
<th width="50%">Delegate</th>
<th width="50%">Description</th>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.AddinEventHandler.html">AddinEventHandler</a>
</td>
<td width="50%"> Represents the method that will handle addin related events. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.ServiceEventHandler.html">ServiceEventHandler</a>
</td>
<td width="50%"> Represents the method that will handle service related events. </td>
</tr>
</table>
</div>
<hr />
<div id="footer"><EFBFBD>AVEVA Solutions Ltd 2007</div>
</div>
</body>
</html>