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

53 lines
4.7 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>Command 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">Command Properties</h1>
</div>
</div>
<div id="nstext">
<p>The properties of the <b>Command</b> class are listed below. For a complete list of <b>Command</b> class members, see the <a href="Aveva.ApplicationFramework.Presentation.CommandMembers.html">Command 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.Command.Checked.html">Checked</a></td><td width="50%"> Gets or sets if the command is in a checked state. Setting this value will set the CommandExecutor.Checked property on all attached CommandExecutors. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.Command.Description.html">Description</a></td><td width="50%"> Description for the command </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.Command.Enabled.html">Enabled</a></td><td width="50%"> Gets or sets if the command is enabled. Setting this value will set the CommandExecutor.Enabled property on all attached CommandExecutors. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.Command.ExecuteOnCheckedChange.html">ExecuteOnCheckedChange</a></td><td width="50%">
</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.Command.Internal.html">Internal</a></td><td width="50%"> Flag to control the visibility of the command in Customization dialog </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.Command.IsValid.html">IsValid</a></td><td width="50%"> Gets the IsValid status of the command. A Command may become invalid in some application context. Method can be overriden in a derived class. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.Command.Key.html">Key</a></td><td width="50%"> The commands key in the CommandCollection </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.Command.List.html">List</a></td><td width="50%"> ArrayList which can contain data to be presented in the GUI </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.Command.SelectedIndex.html">SelectedIndex</a></td><td width="50%"> Used to comunicate to the command which item in the list was selected </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.Command.Value.html">Value</a></td><td width="50%"> Setting this value will set the CommandExecutor.Value property on all attached CommandExecutors. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.Command.ValueChanged.html">ValueChanged</a></td><td width="50%"> True if the value of the command has been changed </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.ApplicationFramework.Presentation.Command.Visible.html">Visible</a></td><td width="50%"> Gets or sets if the command is visible. Setting this value will set the CommandExecutor.Visible property on all attached CommandExecutors. </td></tr></table>
</div>
<h4 class="dtH4">See Also</h4>
<p>
<a href="Aveva.ApplicationFramework.Presentation.Command.html">Command 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>