## 主要改进 - 实现 /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>
88 lines
9.7 KiB
HTML
88 lines
9.7 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>CommandBarManager 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">CommandBarManager Members
|
||
</h1>
|
||
</div>
|
||
</div>
|
||
<div id="nstext">
|
||
<p>
|
||
<a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.html">CommandBarManager overview</a>
|
||
</p>
|
||
<h4 class="dtH4">Public Static Properties</h4>
|
||
<div class="tablediv">
|
||
<table class="dtTABLE" cellspacing="0">
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><img src="static.gif" /><a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.Instance.html">Instance</a></td><td width="50%"> Get instance of commandbar manager </td></tr></table>
|
||
</div>
|
||
<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.CommandBarManager.AllowCustomization.html">AllowCustomization</a></td><td width="50%"> Gets or sets the default Customization status for all CommandBars belonging to the CommandBarManager; </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.CommandBars.html">CommandBars</a></td><td width="50%"> Gets the collection of CommandBar objects currently managed by the CommandBarManager. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.Controls.html">Controls</a></td><td width="50%"> Gets a Hashtable which contains controls to use for controls containers. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.CustomizationDialog.html">CustomizationDialog</a></td><td width="50%"> Gets the non standard customization dialog. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.CustomizationType.html">CustomizationType</a></td><td width="50%"> Gets or sets the type of customization. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.Enabled.html">Enabled</a></td><td width="50%"> Get or sets a property which controls the enabled state of all CommandBars </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.IsUpdating.html">IsUpdating</a></td><td width="50%"> Gets whether the CommandBarManager is currently in update mode. (i.e. BeginInit() has been called) </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.MenuBar.html">MenuBar</a></td><td width="50%"> Gets the CommandBar object that represents the Main Menu Bar. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.RootTools.html">RootTools</a></td><td width="50%"> Gets the collection of RootTool objects currently managed by the CommandBarManager. </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.CommandBarManager.AddOptionSet.html">AddOptionSet</a></td><td width="50%"> Create a new OptionSet indentified by the specified Key An OptionSet is a set of StateButtonTools (a radio group) where at most one of the tools can can be in the Down (pressed) state. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.AddUICustomizationFile.html">AddUICustomizationFile</a></td><td width="50%"> Adds a new UI Customization file. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.AddUICustomizationFromStream.html">AddUICustomizationFromStream</a></td><td width="50%"> Adds a new UI Customization from the given stream </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.AddUICustomizationSet.html">AddUICustomizationSet</a></td><td width="50%"> Adds a set of UI Customization files. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.BeginInit.html">BeginInit</a></td><td width="50%"> ISupportInitialize allows controls to optimize for multiple sets to properties. As a result, you can initialize co-dependent properties or batch set multiple properties at design time. Signal the object that initialization is starting. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.EndInit.html">EndInit</a></td><td width="50%"> ISupportInitialize allows controls to optimize for multiple sets to properties. As a result, you can initialize co-dependent properties or batch set multiple properties at design time. Signal that initialization is complete. </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/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.CommandBarManager.LoadLayout.html">LoadLayout</a></td><td width="50%"> Load the saved command CommandBars layout from a sttings file. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.LoadUI.html">LoadUI</a></td><td width="50%"> Creates the Menus,CommandBars and ContextMenus defined by the loaded UICustomization files. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.SaveLayout.html">SaveLayout</a></td><td width="50%"> Save the current command CommandBars layout to a sttings file. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.SelectTaskPane.html">SelectTaskPane</a></td><td width="50%"> Select the taskpane with the given key </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.CommandBarManager.CommandBarLayoutLoaded.html">CommandBarLayoutLoaded</a></td><td width="50%"> Event raised when the commandBar layout is loaded </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubevent.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.UILoaded.html">UILoaded</a></td><td width="50%"> Event raised when the UI (Menus,CommandBars and ContextMenus) have finished loading after a call to LoadUI(). </td></tr></table>
|
||
</div>
|
||
<h4 class="dtH4">See Also</h4>
|
||
<p>
|
||
<a href="Aveva.ApplicationFramework.Presentation.CommandBarManager.html">CommandBarManager 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> |