Histórico da Página
...
Todos os parâmetros são recebidos na User Function via PARAMIXB, conforme consta em Execblock / Customização.
08. EXEMPLO
...
| language | cpp |
|---|---|
| title | Exemplo |
| linenumbers | true |
| collapse | true |
...
------
#INCLUDE "PROTHEUS.CH"
...
User
...
Function
...
A010WMSO()
...
Local
...
nTipo
...
:=
...
PARAMIXB[1]
...
Local
...
cProduto
...
:=
...
PARAMIXB[2]
...
Local
...
cArmazem
...
:=
...
PARAMIXB[3]
...
Local
...
nQtde
...
:=
...
PARAMIXB[4]
...
Local
...
cServWMS
...
:=
...
""
...
Local
...
cEndeWMS
...
:=
...
""
...
Local
...
lProcessa
...
:=
...
.T.
...
If
...
IntWms(cProduto)
...
cServWMS :=
...
"001"
...
cEndeWMS :=
...
GetEndWMS(cArmazem)
...
//
...
Static
...
Function
...
que
...
busca
...
o
...
endereço
...
WMS
lProcessa :=
...
ValEndWMS(cArmazem,cEndeWMS,cProduto,nQtde)
...
//
...
Static
...
Function
...
que
...
valida
...
endereço
...
WMS
...
EndIf
...
Return
...
{cServWMS,cEndeWMS,lProcessa}
...
------
| Templatedocumentos |
|---|
| HTML |
|---|
<style>
div.theme-default .ia-splitter #main {
margin-left: 0px;
}
.ia-fixed-sidebar, .ia-splitter-left {
display: none;
}
#main {
padding-left: 10px;
padding-right: 10px;
overflow-x: hidden;
}
.aui-header-primary .aui-nav, .aui-page-panel {
margin-left: 0px !important;
}
.aui-header-primary .aui-nav {
margin-left: 0px !important;
}
.aui-tabs.horizontal-tabs>.tabs-menu>.menu-item.active-tab a::after {
background: #FF9900; !important
}
.menu-item.active-tab {
border-bottom: none !important;
}
</style>
|