当对象与特定条件匹配时,如何使车间模块的各个部分可见?

发布于 2025-02-09 09:55:32 字数 148 浏览 3 评论 0原文

我正在建立一个用于对象视图(OV)的车间模块。所讨论的对象表示一个具有许多不同阶段的过程。

我想向对象的最终用户介绍该过程当前阶段的指令,但不要用所有阶段的所有指令淹没它们。

可以通过“状态”属性看到对象的当前阶段。

如何隐藏所有其他指令?

I am building out a Workshop module to use as an object view (OV). The object in question represents a process that has a number of different stages.

I would like to present the end user of my object the instructions for the current stage of the process, but not overwhelm them with all of the instructions for all of the stages.

The current stage of the object can be seen through the 'Status' property.

How can I hide all of the other sets of instructions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冰火雁神 2025-02-16 09:55:32
  1. 创建一个字符串变量以表示“状态”属性。
    1. “变量设置”
  2. 创建一个布尔变量来表示“ 'status'!= {status_1}>”
    1. 这将需要您编写功能,例如
    public isNOTStringEqual(string1: string, string2: string): boolean {
        return string1.localeCompare(string2) != 0;
    }
  1. 创建一个具有以下设置的新部分,除非您选择了上面创建的布尔值。
    1. “部分设置”

每当对象的'状态'属性等于{status_1}时,这将隐藏您创建的部分。

  1. Create a string variable to represent the 'Status' property.
    1. Variable Setup
  2. Create a boolean variable to represents "'Status' != {status_1}"
    1. This will require you to write a function e.g.
    public isNOTStringEqual(string1: string, string2: string): boolean {
        return string1.localeCompare(string2) != 0;
    }
  1. Create a new section with the following settings except you have selected the boolean value created above.
    1. Section Settings

This will hide the section you have created whenever the 'Status' property of the object is equal to {status_1}.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文