TellmePdmsPluging/NetInterfaceReferenceFiles/Aveva.ApplicationFramework/Aveva.ApplicationFramework.Presentation.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

477 lines
22 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.Presentation</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.Presentation Namespace</h1>
</div>
</div>
<div id="nstext">
<p>
<a href="Aveva.ApplicationFramework.PresentationHierarchy.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.Presentation.ButtonTool.html">ButtonTool</a>
</td>
<td width="50%"> Represents a ButtonToolt. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.CancelClosingEventArgs.html">CancelClosingEventArgs</a>
</td>
<td width="50%"> Provides data for a cancelable event. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.ComboBoxTool.html">ComboBoxTool</a>
</td>
<td width="50%"> Represents a ComboBoxTool. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.Command.html">Command</a>
</td>
<td width="50%"> Abstract base class which an application must inherit from to create a Command object </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.CommandBar.html">CommandBar</a>
</td>
<td width="50%"> Class to represent a CommandBar. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.CommandBarEventArgs.html">CommandBarEventArgs</a>
</td>
<td width="50%"> Provides data for the CommandBarAdded and CommandBarRemoved events. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.html">CommandBarManager</a>
</td>
<td width="50%"> Class representing a CommandBarManager. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.CommandBarsCollection.html">CommandBarsCollection</a>
</td>
<td width="50%"> Class to represent a CommandBarCollection. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.CommandEventArgs.html">CommandEventArgs</a>
</td>
<td width="50%"> Provides data for the CommandAdded and CommandRemoved events. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.CommandExecutor.html">CommandExecutor</a>
</td>
<td width="50%"> Abstract base class which an application must inherit from to create a CommandExecutor object. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.CommandList.html">CommandList</a>
</td>
<td width="50%"> An ArrayList use for the list property of Command objects which supports an IsModified property. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.CommandManager.html">CommandManager</a>
</td>
<td width="50%"> Class representing a CommandManager. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.CommandsCollection.html">CommandsCollection</a>
</td>
<td width="50%"> Class that represents a CommandCollection. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.CommandTypesCollection.html">CommandTypesCollection</a>
</td>
<td width="50%"> Class that represents a CommandCollection. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.ContainerTool.html">ContainerTool</a>
</td>
<td width="50%"> A tool that contains a Control. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.DockedWindow.html">DockedWindow</a>
</td>
<td width="50%"> Class to represent a DockedWindow. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.DragDropDirector.html">DragDropDirector</a>
</td>
<td width="50%"> A class to help direct drag-drop events. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.DropTarget.html">DropTarget</a>
</td>
<td width="50%"> A class to represent a DragDropTarget. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.DropTargetEventArgs.html">DropTargetEventArgs</a>
</td>
<td width="50%"> A class to provide information to for drop-drop events. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.FontListTool.html">FontListTool</a>
</td>
<td width="50%"> Represents a FontListTool. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.HtmlHelp.html">HtmlHelp</a>
</td>
<td width="50%"> A class to control Html Help viewer. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.LabelTool.html">LabelTool</a>
</td>
<td width="50%"> Class to represent a static Label. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.ListTool.html">ListTool</a>
</td>
<td width="50%"> Represents a ListTool. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.MdiWindow.html">MdiWindow</a>
</td>
<td width="50%"> Represents an MDI style window or dialog box. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.MdiWindowListTool.html">MdiWindowListTool</a>
</td>
<td width="50%"> Class to respresent the special tool which displays a list of current MDI Windows. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.MenuTool.html">MenuTool</a>
</td>
<td width="50%"> Represents a MenuTool. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.PopupColorPickerTool.html">PopupColorPickerTool</a>
</td>
<td width="50%"> Represents a PopupColorPicker. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.PopupContainerTool.html">PopupContainerTool</a>
</td>
<td width="50%"> Represents a PopuplContainerTool. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.ResourceManager.html">ResourceManager</a>
</td>
<td width="50%"> Provides convenient access to culture-specific resources at runtime. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.ResourceSet.html">ResourceSet</a>
</td>
<td width="50%"> Represent a set of culture-specific resource files. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.RootToolsCollection.html">RootToolsCollection</a>
</td>
<td width="50%"> Class representing a RootToolsCollection. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.SplashScreen.html">SplashScreen</a>
</td>
<td width="50%"> Provides an application SplashScreen. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.StateButtonTool.html">StateButtonTool</a>
</td>
<td width="50%"> Represents a StateButtonTool. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.StatusBar.html">StatusBar</a>
</td>
<td width="50%"> Represents a Windows style status bar control. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.StatusBarPanelsCollection.html">StatusBarPanelsCollection</a>
</td>
<td width="50%"> Represents a collection of status bar panels. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.StatusBarTextPanel.html">StatusBarTextPanel</a>
</td>
<td width="50%"> Represents a StatusBarTextPanel. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.TaskBar.html">TaskBar</a>
</td>
<td width="50%"> Class representing a Microsoft Office style "TaskPane" type toolbar. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.TaskPaneTool.html">TaskPaneTool</a>
</td>
<td width="50%"> Class used to represent a single item in a TaskPane. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.TextBoxTool.html">TextBoxTool</a>
</td>
<td width="50%"> Represents a TextBoxTool. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.ThemeColours.html">ThemeColours</a>
</td>
<td width="50%"> Class which provides a number of Theme colours </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.ToolEventArgs.html">ToolEventArgs</a>
</td>
<td width="50%"> Provides information for Tool events. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.ToolsCollection.html">ToolsCollection</a>
</td>
<td width="50%"> Class representing a ToolsCollection. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.ValueList.html">ValueList</a>
</td>
<td width="50%"> Class representing a ValueList, which is a collection of ValueListItem objects. It is typicall assigned to a ComboBoxTool as the list of options displayed as the dropdown list. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.ValueListItem.html">ValueListItem</a>
</td>
<td width="50%"> Class representing a ValueListItem, which can be a member of ValueList. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.WindowEventArgs.html">WindowEventArgs</a>
</td>
<td width="50%"> Provides data for the WindowAdded event. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.WindowManager.html">WindowManager</a>
</td>
<td width="50%"> Provides access to window related facilities. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.WindowsCollection.html">WindowsCollection</a>
</td>
<td width="50%"> Provides access to a collection of application windows. </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.Presentation.IApplicationInfo.html">IApplicationInfo</a>
</td>
<td width="50%"> Interface use to supply application information to the framework </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.IStatusBarPanel.html">IStatusBarPanel</a>
</td>
<td width="50%"> Interface supported by Statusbar panels. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.ITool.html">ITool</a>
</td>
<td width="50%"> Interface supported by all Tool clases. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.IWindow.html">IWindow</a>
</td>
<td width="50%"> Interface supported by supported window types(MDI, Docked). </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.Presentation.CommandBarEventHandler.html">CommandBarEventHandler</a>
</td>
<td width="50%"> Represents the method that will handle CommandBar related events. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.CommandEventHandler.html">CommandEventHandler</a>
</td>
<td width="50%"> Represents the method that will handle command related events. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.DropTargetEventHandler.html">DropTargetEventHandler</a>
</td>
<td width="50%"> Represents the method that will handle DropTarget related events. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.ToolEventHandler.html">ToolEventHandler</a>
</td>
<td width="50%"> Represents the method that will handle Tool related events. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.WindowEventHandler.html">WindowEventHandler</a>
</td>
<td width="50%"> Represents the method that will handle Window related events. </td>
</tr>
</table>
</div>
<h3 class="dtH3">Enumerations</h3>
<div class="tablediv">
<table class="dtTABLE" cellspacing="0">
<tr valign="top">
<th width="50%">Enumeration</th>
<th width="50%">Description</th>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.CommandState.html">CommandState</a>
</td>
<td width="50%"> Enumeration for various states of a command. This enumeration can be treated as a bit field; that is, a set of flags. Bit fields can be combined using a bitwise OR operation. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.CustomizationType.html">CustomizationType</a>
</td>
<td width="50%"> Enumeration of menu and commandbar customisation options </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.DockedPosition.html">DockedPosition</a>
</td>
<td width="50%"> Enumerator used to specify the location of a toolbar or window docking area. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.DockGroupStyle.html">DockGroupStyle</a>
</td>
<td width="50%"> Enumeration of styles for group docked windows. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.DropDownArrowStyle.html">DropDownArrowStyle</a>
</td>
<td width="50%"> Enumerator used to specify the style used to draw a popup tool's dropdown arrow. Also determines which part of the tool should be clicked to drop down the tool. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.NavigationButtonStyle.html">NavigationButtonStyle</a>
</td>
<td width="50%"> Enumeration used to indicate how the navigation buttons are used to navigate the items in a TaskBar </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.PanelSizingMode.html">PanelSizingMode</a>
</td>
<td width="50%"> Enumeration of the statusbar panel sizing options. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.PopupStyle.html">PopupStyle</a>
</td>
<td width="50%"> Enumerator used to specify the style of popup menus. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.StandardImage.html">StandardImage</a>
</td>
<td width="50%"> Enumeration of standard images </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.UpdateOptions.html">UpdateOptions</a>
</td>
<td width="50%"> Enumerations for the options for automatically updating the state of a MenuTool following state changes to an child StateButtonTool or ButtonTool. This enumeration can be treated as a bit field; that is, a set of flags. Bit fields can be combined using a bitwise OR operation. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.ValueListDisplayStyle.html">ValueListDisplayStyle</a>
</td>
<td width="50%"> Enumeration for specifying what property of a value list item will be displayed in each item of the DropDown list </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="Aveva.ApplicationFramework.Presentation.ValueListSortStyle.html">ValueListSortStyle</a>
</td>
<td width="50%"> Enumeration for specifying how value list items will be sorted when displaying value list items in a drop down list </td>
</tr>
</table>
</div>
<hr />
<div id="footer"><EFBFBD>AVEVA Solutions Ltd 2007</div>
</div>
</body>
</html>