Escolar Documentos
Profissional Documentos
Cultura Documentos
Frmulavisualrmtotvs 140421094945 Phpapp01 PDF
Frmulavisualrmtotvs 140421094945 Phpapp01 PDF
2
Introdução
3
Introdução
4
Introdução
5
Introdução
6
Introdução
7
Introdução
8
Introdução
9
Introdução
10
Introdução
11
Introdução
12
Introdução
13
Introdução
14
Introdução
15
Introdução
16
Introdução
17
Introdução
18
Introdução
19
Introdução
20
Introdução
21
Introdução
22
Introdução
23
Fórmula Visual
ÍNDICE
I) Conceitos
• WWF
• Gatilho
• Dataset
• 03 Camadas
• Activity
II) Prática
24
Conceitos
fonte
http://msdn.microsoft.com/pt-br/netframework/aa663328
25
Conceitos
Gatilho
• A fórmula visual é executada
através de:
– Gatilhos:
• Tela de visão
• Tela de cadastro
• Processo
– Manualmente
• Tela de visão
• Tela de cadastro
26
Conceitos
Dataset
• A data set (or dataset) is a collection of data, usually presented
in tabular form. Each column represents a particular variable.
Each row corresponds to a given member of the data set in
question. It lists values for each of the variables, such as height
and weight of an object. Each value is known as a datum. The
data set may comprise data for one or more members,
corresponding to the number of rows.
fonte
http://en.wikipedia.org/wiki/Data_set
27
Conceitos
Dataset
• Um "Conjunto de dados" ou "dataset" é uma coleção de dados
normalmente tabulados. Por cada elemento (ou indivíduo) se
indicam varias características. Cada coluna representa uma
variável particular. Cada linha corresponde a um determinado
membro do conjunto de dados em questão. Cada valor é
conhecido como um dado. O conjunto de dados pode incluir
dados para um ou mais membros, correspondente ao número de
linhas.
fonte
http://pt.wikipedia.org/wiki/Conjunto_de_dados
28
Conceitos
Dataset
• Funcionários • Movimento
– Campos Complementares – Campos Complementares
– Salário Composto – Histórico
– Histórico de Seção – Itens
– Histórico de Função • Campos Complementares
– Histórico de Situação • Histórico
– Histórico Salarial – Rateio por centro de custo
– Rateio por departamento
29
Conceitos
Dataset
30
Conceitos
Dataset
31
Conceitos
03 Camadas
32
Conceitos
03 Camadas
33
Conceitos
Activity
• Windows Workflow Foundation (WF) includes a default set of activities that
provide functionality for control flow, conditions, event handling, state
management, and communicating with applications and services. When you
design workflows, you can use the activities that are provided by Windows
Workflow Foundation, and you can create your own custom activities.
• Activities are the fundamental building blocks of workflows. A workflow is a
set of activities that are organized hierarchically in a tree structure. An activity
represents an action in a workflow. It can be a simple action such as a delay, or
it can be a composite activity that consists of several child activities.
• An activity, like a workflow, can be sequential, which means that the order of
its actions is specified at design time. Or the activity can be event-driven,
which means that the order of its actions is determined at run time in
response to external events.
fonte
• http://msdn.microsoft.com/en-us/library/ms733615(v=vs.90).aspx
34
Fórmula Visual
ÍNDICE
I) Conceitos
II) Prática
• Preparo
• Validação
• Tabela mãe
• Tabela Filha
• Filha com SQL
• E-mail
• Dataserver
• Custom Activity
• Processos de FV
35
Prática
Preparo
• Até a versão 11.40
• Em ambiente 2 camadas, editar o arquivo RM.Host.Exe.config.
• Em ambiente 3 camadas, editar o arquivo RM.Host.Service.exe.config.
36
Prática
Preparo
• Usuário
37
Prática
Preparo
• Perfil
38
Prática
Preparo
• Categorias
39
Prática
Preparo
• Fórmula visual simples
40
Prática
Preparo
• Teste 1: Salvar e executar
41
Prática
Preparo
• Teste 2: Vincular ao gatilho e simular erro
42
Prática
Preparo
• Teste 2: Vincular ao gatilho e simular erro
43
Prática
Validação
• Tabela principal
44
Prática
Validação
• Tabela principal
45
Prática
Validação
• Tabela filha
46
Prática
Validação
• Tabela filha
– Ex. 2
47
Prática
Validação
• Tabela filha
– Ex. 2
48
Prática
Validação
• Tabela filha
– Ex. 2
49
Prática
Validação
• Tabela filha
– Ex. 2
50
Prática
Validação
• Tabela filha
– Ex. 2
51
Prática
E-mail
• Exemplo
52
Prática
Dataserver
• Exemplo:
53
Prática
Custom Activity
54
Prática
Custom Activity
55
Prática
Custom Activity
56
Prática
Custom Activity
57
Prática
Custom Activity
58
Prática
Custom Activity
59
Prática
Custom Activity
60
Prática
Processos de FV
61
Prática
Processos de FV
62
Fórmula Visual
QUESTÕES
Fábio Delboni
Fábrica de Software
fabio.delboni@totvs.com.br
63