## 主要改进 - 实现 /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>
59 lines
6.4 KiB
HTML
59 lines
6.4 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>MenuTool Properties</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">MenuTool Properties</h1>
|
||
</div>
|
||
</div>
|
||
<div id="nstext">
|
||
<p>The properties of the <b>MenuTool</b> class are listed below. For a complete list of <b>MenuTool</b> class members, see the <a href="Aveva.ApplicationFramework.Presentation.MenuToolMembers.html">MenuTool Members</a> topic.</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.MenuTool.AllowTearaway.html">AllowTearaway</a></td><td width="50%"> Gets or sets whether the menu can be torn off </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.MenuTool.AutoUpdate.html">AutoUpdate</a></td><td width="50%"> Gets or sets whether the Image, Tooltip and Command are automaticaly updated. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.MenuTool.Caption.html">Caption</a></td><td width="50%"> Gets or sets the tool caption </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.MenuTool.Category.html">Category</a></td><td width="50%"> Gets or sets the tools category </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.MenuTool.Checked.html">Checked</a></td><td width="50%"> Gets or sets whether the tool is in the checked state. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.MenuTool.Command.html">Command</a></td><td width="50%"> Gets the command object which was associated with the tool when it was created. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.MenuTool.DropDownArrowStyle.html">DropDownArrowStyle</a></td><td width="50%"> Returns or sets the style of the dropdown arrow for the popup menu. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.MenuTool.Enabled.html">Enabled</a></td><td width="50%"> Gets or sets the enabled state of the tool. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.MenuTool.Image.html">Image</a></td><td width="50%"> Gets or sets the image displayed on the tool </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.MenuTool.IsContextMenu.html">IsContextMenu</a></td><td width="50%"> Gets or sets whether the menu is a context menu </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.MenuTool.IsFirstInGroup.html">IsFirstInGroup</a></td><td width="50%"> Gets or sets a flag which indicated whether an instance tool is the first in a tool group. A separator will be displayed before a tool if this property is set to true. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.MenuTool.Key.html">Key</a></td><td width="50%"> The Key of the tool in the RootToolsCollection </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.MenuTool.OptionSetKey.html">OptionSetKey</a></td><td width="50%"> Gets or sets the OptionSet key for the tool. Setting the key assigns the tool to the CommandBarManagers OptionSet which has this key. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.MenuTool.PopupStyle.html">PopupStyle</a></td><td width="50%"> Gets or sets the popup style of the menu (Menu or CommandBar) </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.MenuTool.Shortcut.html">Shortcut</a></td><td width="50%"> Gets or sets the shortcut associated with a tool. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.MenuTool.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 tool. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.MenuTool.Tools.html">Tools</a></td><td width="50%"> Gets the ToolsCollection containing the tools to display in the popup menu. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.MenuTool.Tooltip.html">Tooltip</a></td><td width="50%"> Gets or sets the tools tooltip </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.MenuTool.Value.html">Value</a></td><td width="50%"> Gets or sets the value of the tool. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.MenuTool.Visible.html">Visible</a></td><td width="50%"> Gets or sets the visibility of the tool. </td></tr></table>
|
||
</div>
|
||
<h4 class="dtH4">See Also</h4>
|
||
<p>
|
||
<a href="Aveva.ApplicationFramework.Presentation.MenuTool.html">MenuTool 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> |