Vous êtes sur la page 1sur 63

Frmula Visual

Fbio Delboni / 07 - 2012

Introduo

Introduo

Introduo

Introduo

Introduo

Introduo

Introduo

Introduo

Introduo

10

Introduo

11

Introduo

12

Introduo

13

Introduo

14

Introduo

15

Introduo

16

Introduo

17

Introduo

18

Introduo

19

Introduo

20

Introduo

21

Introduo

22

Introduo

23

Frmula Visual

NDICE
I) Conceitos
WWF
Gatilho
Dataset
03 Camadas
Activity
II) Prtica

24

Conceitos

Windows Workflow Foundation (WWF)


fornece um modelo de programao, mecanismo de
fluxo de trabalho em processo e designer
reospedvel para implementar processos de
execuo prolongada como fluxos de trabalho nos
aplicativos .NET
fonte
http
://msdn.microsoft.com/pt-br/netframework/aa663328

25

Conceitos

Gatilho
A frmula visual
executada atravs de:
Gatilhos:
Tela de viso
Tela de cadastro
Processo

Manualmente
Tela de viso
Tela de cadastro

26

Conceitos

Dataset
Adata set(ordataset) is a collection ofdata, usually
presented intabularform. Eachcolumnrepresents a
particular variable. Eachrowcorresponds 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 adatum. 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 coleo
de dados normalmentetabulados. Por cada
elemento (ou indivduo) se indicam varias
caractersticas. Cada coluna representa uma
varivel particular. Cada linha corresponde a um
determinado membro do conjunto de dados em
questo. Cada valor conhecido como umdado. O
conjunto de dados pode incluir dados para um ou
mais membros, correspondente ao nmero de
linhas.
fonte
http://pt.wikipedia.org/wiki/Conjunto_de_dados
28

Conceitos

Dataset
Funcionrios
Campos
Complementares
Salrio Composto
Histrico de Seo
Histrico de Funo
Histrico de Situao
Histrico Salarial

Movimento
Campos
Complementares
Histrico
Itens
Campos
Complementares
Histrico

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.
34

Frmula Visual

NDICE
I) Conceitos
II) Prtica
Preparo
Validao
Tabela me
Tabela Filha
Filha com SQL
E-mail
Dataserver
Custom Activity
Processos de FV

35

Prtica

Preparo
At a verso 11.40
Em
ambiente
2
camadas,
RM.Host.Exe.config.
Em
ambiente
3
camadas,
RM.Host.Service.exe.config.

editar

arquivo

editar

arquivo

36

Prtica

Preparo
Usurio

37

Prtica

Preparo
Perfil

38

Prtica

Preparo
Categorias

39

Prtica

Preparo
Frmula visual simples

40

Prtica

Preparo
Teste 1: Salvar e executar

41

Prtica

Preparo
Teste 2: Vincular ao gatilho e simular erro

42

Prtica

Preparo
Teste 2: Vincular ao gatilho e simular erro

43

Prtica

Validao
Tabela principal

44

Prtica

Validao
Tabela principal

45

Prtica

Validao
Tabela filha

46

Prtica

Validao
Tabela filha
Ex. 2

47

Prtica

Validao
Tabela filha
Ex. 2

48

Prtica

Validao
Tabela filha
Ex. 2

49

Prtica

Validao
Tabela filha
Ex. 2

50

Prtica

Validao
Tabela filha
Ex. 2

51

Prtica

E-mail
Exemplo

52

Prtica

Dataserver
Exemplo:

53

Prtica

Custom Activity

54

Prtica

Custom Activity

55

Prtica

Custom Activity

56

Prtica

Custom Activity

57

Prtica

Custom Activity

58

Prtica

Custom Activity

59

Prtica

Custom Activity

60

Prtica

Processos de FV

61

Prtica

Processos de FV

62

Frmula Visual

QUESTES
Fbio Delboni

A
IM

M
E
G

Fbrica de Software
fabio.delboni@totvs.com.br

63

Vous aimerez peut-être aussi