Versions Compared
Version | Old Version 1 | New Version 2 |
---|---|---|
Changes made by | ||
Saved on |
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Tip |
---|
Guia de uso para os símbolos inclusos no projeto default |
Usage guide for the symbols included in the default project |
Symbols
Datagrid_Filter
É um símbolo que pode ser utilizado em qualquer tela que possua uma janela do tipo DataGrid. É usado para inserir filtros rápidos de data / hora e opcionalmente também por nível de Tags e Tags específicas.
Configurações necessárias
Filtro por Data / Hora
Em uma tela que possua um elemento DataGrid, basta selecionar na lista de símbolos ‘Datagrid_Filter’ e o posicionar no local desejado.
Image Removed
Em seguida deve-se abrir as configurações do DataGrid, dando um duplo clique em cima do componente, ou selecionando a opção de ‘configurações’ na parte esquerda da tela, e colocar o seguinte no campo de filtroIt is a symbol that can be used on any screen that has a DataGrid window. It is used to insert quick date/time filters and optionally also by level of specific Tags and Tags.
Required settings
Filter by Date / Time
On a screen that has a DataGrid element, simply select from the 'Datagrid_Filter' symbol list and position it in the desired location.
Image Added
Next you must open the DataGrid settings by double-clicking on the component, or selecting the 'settings' option on the left side of the screen, and placing the following in the filter field:
Tag.ZZ_System.Filter.SQL.FilterSQL.Value |
Por
fim, basta abrir o ‘Códigos’ da tela, e colocar no método ‘DisplayOpening' o seguinte Finally, simply open the 'Codes' screen, and put in the method 'DisplayOpening' the following Script:
Code Block |
---|
@Script.Class.ZZS_Filter.StartUp(FILTRO_PADRÃO, DATE_FIELD, TAG_FIELD, LEVEL_FIELD, DB_PROVIDER); Onde: 'FILTRO_PADRÃO' é o valor padrão do filtro do DataGrid, caso ele possua um; 'DATE_FIELD' é o valor para o nome da coluna de Data / Hora do DataGrid a ser filtrado; 'TAG_FIELD' é o valor para o nome da coluna de Tags do DataGrid a ser filtrado; 'LEVEL_FIELD' é o valor para o nome da coluna de Levels do DataGrid a ser filtrado; 'DB_PROVIDER' é o valor do nome do provider do banco de dados, adquirido por '@Dataset.DB.DB_NAME.Provider' (Em que DB_NAME é o nome do banco de dados); |
Info |
---|
Caso seja passado o valor ‘string.Empty’ nesses argumentos, seus valores padrões sãoIf the value 'string' is passed. Empty' in these arguments, their default values are: ' ' ' ' ‘' |
Filtro por Tags e Nível de Tags
Na mesma tela em que foi adicionado o símbolo, selecione na lateral o componente 'Assets', e o configure dando um duplo clique com as seguintes opções de TagsFilter by Tags and Tag Level
On the same screen where the symbol was added, select the 'Assets' component on the side, and configure it by double-clicking the following Tag options:
SelectedAsset | Tag.ZZ_System.Filter.Assets.SelectedAsset |
SelectedLevel | Tag.ZZ_System.Filter.Assets.SelectedLevel |
Funcionamento
Quando não há nenhum filtro ativo, o símbolo ficará com suas datas e horas opacas e quando ativo sua visualização ficará normal, como visto abaixoOperation
When there is no active filter, the symbol will have its dates and times opaque and when active its preview will be normal, as seen below:
O
símbolo possui duas entradas de tempo, sendo uma de data e outra de hora, para filtrar o tempo inicial, e o mesmo para o tempo finalThe symbol has two time entries, one date and one time, to filter the start time, and the same for the end time.
Além disso, possui dois botões, um para aplicar o filtro, que aplica tanto o filtro de data/hora quanto de níveis/Tags caso esteja sendo usado, e outro para limpar todos os filtros e manter apenas o valor do filtro padrão do DataGrid / mostrar todos os dados caso nenhum filtro padrão tenha sido configurado.
Image Removed
O uso do componente ‘Assets’ possui seu comportamento inalterado, sendo apenas necessário selecionar com um click de mouse no nível ou Tag desejada, em seguida clicar no botão de filtrar do símbolo para aplicar o filtro.
In addition, it has two buttons, one to apply the filter, which applies both the date/time filter and levels/Tags if being used, and another to clear all filters and keep only the default DataGrid filter value/ show all data if no default filter has been configured.
Image Added
The use of the 'Assets' component has its behavior unchanged, and it is only necessary to select with a mouse click at the desired level or tag, then click the filter button of the symbol to apply the filter.
Panel | ||||
---|---|---|---|---|
On this page:
|