This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "protheus.ch" | |
user function DnlTmpTbl() | |
local oTable as object | |
local aFields as array | |
local nConnect as numeric | |
local lCloseConnect as logical | |
local cAlias as char | |
local cTableName as char | |
local cAreaQuery as char |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user function DNL_SED() | |
local oBrowse as object | |
oBrowse := FWLoadBrw("DNL_SED") | |
oBrowse:Activate() | |
oBrowse:DeActivate() | |
oBrowse:Destroy() | |
FreeObj(oBrowse) | |
oBrowse := nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static function BrowseDef() | |
local oBrowse as object | |
oBrowse := FWMBrowse():New() | |
oBrowse:SetAlias("SED") | |
oBrowse:SetDescription("Testando o MVC - Tabela SED") | |
return oBrowse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static function ModelDef() | |
local oModel as object | |
local oStruct as object | |
oModel := MPFormModel():New( "MODEL_SED", /*bPre*/ , /*bPos*/, /*bCommit*/, /*bCancel*/ ) | |
oStruct := FwFormStruct( 1, "SED", /*bFiltro*/ ) | |
oModel:AddFields( "FIELDS_SED", /*Owner*/ , oStruct, /*bPre*/ , /*bPos*/ , /*bLoad*/ ) | |
return oModel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static function ViewDef() | |
local oView as object | |
local oStruct as object | |
local oModel as object | |
oView := FwFormView():New() | |
oModel := FwLoadModel("DNL_SED") | |
oStruct := FwFormStruct( 2, "SED", /*bFiltro*/ ) | |
oView:SetModel(oModel) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static function MenuDef() | |
local aRotina as array | |
aRotina := {} | |
Add Option aRotina Title "Pesquisar" Action "PesqBrw" Operation OP_PESQUISAR Access 0 | |
Add Option aRotina Title "Visualizar" Action "ViewDef.DNL_SED" Operation OP_VISUALIZAR Access 0 | |
Add Option aRotina Title "Incluir" Action "ViewDef.DNL_SED" Operation OP_INCLUIR Access 0 | |
Add Option aRotina Title "Alterar" Action "ViewDef.DNL_SED" Operation OP_ALTERAR Access 0 | |
Add Option aRotina Title "Excluir" Action "ViewDef.DNL_SED" Operation OP_EXCLUIR Access 0 |
OlderNewer