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

59 lines
7.6 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>TaskBar 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">TaskBar Properties</h1>
</div>
</div>
<div id="nstext">
<p>The properties of the <b>TaskBar</b> class are listed below. For a complete list of <b>TaskBar</b> class members, see the <a href="Aveva.ApplicationFramework.Presentation.TaskBarMembers.html">TaskBar 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.CommandBar.AllowCustomize.html">AllowCustomize</a> (inherited from <b>CommandBar</b>)</td><td width="50%"> Gets or sets whether the CommandBar can be customized at run-time by the end user. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBar.AllowFloating.html">AllowFloating</a> (inherited from <b>CommandBar</b>)</td><td width="50%"> Gets or sets whether the CommandBar can be dragged out of a dock area and floated. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBar.AllowHiding.html">AllowHiding</a> (inherited from <b>CommandBar</b>)</td><td width="50%"> Gets or sets whether the CommandBar can be hidden at run-time by the end user. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBar.Caption.html">Caption</a> (inherited from <b>CommandBar</b>)</td><td width="50%"> Gets or sets the description displayed in the customization dialogs and in the caption of the floating CommandBar. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBar.Command.html">Command</a> (inherited from <b>CommandBar</b>)</td><td width="50%"> Gets the command object which was associated with the CommandBar when it was created. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBar.DockedColumn.html">DockedColumn</a> (inherited from <b>CommandBar</b>)</td><td width="50%"> Gets or sets the column (within the dock area) in which the CommandBar is docked. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.TaskBar.DockedContentExtent.html">DockedContentExtent</a></td><td width="50%"> Return or sets the size of the taskbar. Either its width or height depending on where it is docked. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBar.DockedPosition.html">DockedPosition</a> (inherited from <b>CommandBar</b>)</td><td width="50%"> Gets or sets the current location of the CommandBar (left, right, top, bottom, floating) </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBar.DockedRow.html">DockedRow</a> (inherited from <b>CommandBar</b>)</td><td width="50%"> Gets or sets the row (within the dock area) in which the CommandBar is docked. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBar.Enabled.html">Enabled</a> (inherited from <b>CommandBar</b>)</td><td width="50%"> Gets or sets the enabled state of the CommandBar. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBar.FillEntireRow.html">FillEntireRow</a> (inherited from <b>CommandBar</b>)</td><td width="50%"> Gets or sets whether the CommandBar will take up the entire dock area row, even if it doesn't have enough tools to fill the area. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.TaskBar.HomeTaskPaneToolKey.html">HomeTaskPaneToolKey</a></td><td width="50%"> Returns or sets the key of the tool representing the "home" item. The SelectedTaskPaneToolKey will be set to the HomeTaskPaneToolKey when the home navigation button is pressed. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBar.Key.html">Key</a> (inherited from <b>CommandBar</b>)</td><td width="50%"> The Key of the CommandBar in the CommandBarCollection </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.TaskBar.NavigationButtonStyle.html">NavigationButtonStyle</a></td><td width="50%"> Returns or sets a value indicating how the navigation buttons are used to navigate the items in a TaskPane and can also be used to hide the navigation buttons. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.TaskBar.SelectedTaskPaneToolKey.html">SelectedTaskPaneToolKey</a></td><td width="50%"> Returns or sets the key of the currently selected task pane tool. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.TaskBar.ShowHomeButton.html">ShowHomeButton</a></td><td width="50%"> Returns or sets a value indicating whether the home navigation button will be displayed. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBar.ShowInToolbarList.html">ShowInToolbarList</a> (inherited from <b>CommandBar</b>)</td><td width="50%"> Gets or sets whether the CommandBar shows up in the customization dialog at runtime. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBar.Tag.html">Tag</a> (inherited from <b>CommandBar</b>)</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.CommandBar.Tools.html">Tools</a> (inherited from <b>CommandBar</b>)</td><td width="50%"> Gets the ToolsCollection containing the tools to display in the CommandBar. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.CommandBar.Visible.html">Visible</a> (inherited from <b>CommandBar</b>)</td><td width="50%"> Gets or sets whether the CommandBar is visible. </td></tr></table>
</div>
<h4 class="dtH4">See Also</h4>
<p>
<a href="Aveva.ApplicationFramework.Presentation.TaskBar.html">TaskBar 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>