Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unit View.Pages.Cadastro.Usuario001;
- interface
- uses
- Vcl.Controls,
- Vcl.Forms,
- Router4D.Interfaces,
- View.Components.Helpers,
- View.Services.Utils,
- View.Styles.Colors;
- type
- TPageCadastroUsuario001 = class(TForm, iRouter4DComponent)
- procedure FormCreate(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- function Render : TForm;
- procedure UnRender;
- end;
- var
- PageCadastroUsuario001: TPageCadastroUsuario001;
- implementation
- {$R *.dfm}
- { TPageCadastroUsuario001 }
- procedure TPageCadastroUsuario001.FormCreate(Sender: TObject);
- begin
- Components.BackGrounds
- .BackGround001(Self)
- .Attributes
- .Title('Cadastro de Usuários')
- //.Controller()
- //.ActionButton001(A)
- //.ActionButton002(A)
- .&End
- .AddComponent(
- //////////
- Components
- .GridPanels
- .GridPanel001(Self)
- .Attributes
- .BackGround(WHITE)
- .Height(60)
- .&End
- .ColumnPercent(8)
- .AddColumn(
- Components
- .Edits.Edit005(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('Código')
- .Format(tpNumero)
- .&End
- .Component
- )
- .ColumnPercent(20)
- .AddColumn(
- Components
- .Edits.Edit005(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('Data de Cadastro')
- .Format(tpData)
- .&End
- .Component
- )
- .ColumnPercent(35)
- .AddColumn(
- Components
- .Edits.Edit005(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('Data Alteração')
- .Format(tpData)
- .&End
- .Component
- )
- .ColumnPercent(15)
- .AddColumn(
- Components
- .ComboBoxs.ComboBox001(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('Ativo')
- .Format(tpTexto)
- .DropDrowWidth(150)
- .&End
- .AddItem('SIM')
- .AddItem('NÃO')
- .AddItem('SIM')
- .AddItem('NÃO')
- .Component
- )
- .ColumnPercent(15)
- .AddColumn(
- Components
- .ComboBoxs.ComboBox001(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('Vendedor')
- .Format(tpTexto)
- .DropDrowWidth(250)
- .&End
- .AddItem('SIM')
- .AddItem('NÃO')
- .AddItem('Palhaço Ç')
- .Component
- )
- .Component
- )
- .AddComponent(
- Components
- .GridPanels
- .GridPanel001(Self)
- .Attributes
- .BackGround(WHITE)
- .Height(60)
- .&End
- .ColumnPercent(70)
- .AddColumn(
- Components
- .Edits.Edit005(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('Nome')
- .Format(tpTexto)
- .&End
- .Component
- )
- .AddColumn(
- Components
- .Edits.Edit005(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('Apelido')
- .Format(tpTexto)
- .&End
- .Component
- )
- .Component
- )
- .AddComponent(
- Components
- .GridPanels
- .GridPanel001(Self)
- .Attributes
- .BackGround(WHITE)
- .Height(60)
- .&End
- .ColumnPercent(30)
- .AddColumn(
- Components
- .Edits.Edit005(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('Data de Nascimento')
- .Format(tpData)
- .&End
- .Component
- )
- .AddColumn(
- Components
- .Edits.Edit005(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('C.P.F.')
- .Format(tpCPF)
- .&End
- .Component
- )
- .AddColumn(
- Components
- .Edits.Edit005(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('RG')
- .Format(tpTexto)
- .&End
- .Component
- )
- .AddColumn(
- Components
- .Edits.Edit005(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('Orgão Emissor')
- .Format(tpTexto)
- .&End
- .Component
- )
- .AddColumn(
- Components
- .Edits.Edit005(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('UF do Orgão Emissor')
- .Format(tpTexto)
- .&End
- .Component
- )
- .AddColumn(
- Components
- .Edits.Edit005(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('Data de Emissão')
- .Format(tpData)
- .&End
- .Component
- )
- .Component
- )
- .AddComponent(
- Components
- .GridPanels
- .GridPanel001(Self)
- .Attributes
- .BackGround(WHITE)
- .Height(60)
- .&End
- .ColumnPercent(40)
- .AddColumn(
- Components
- .Edits.Edit005(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('Endereço')
- .Format(tpTexto)
- .&End
- .Component
- )
- .ColumnPercent(30)
- .AddColumn(
- Components
- .Edits.Edit005(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('Bairro')
- .Format(tpTexto)
- .&End
- .Component
- )
- .AddColumn(
- Components
- .Edits.Edit005(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('Complemento')
- .Format(tpTexto)
- .&End
- .Component
- )
- .Component
- )
- .AddComponent(
- Components
- .GridPanels
- .GridPanel001(Self)
- .Attributes
- .BackGround(WHITE)
- .Height(60)
- .&End
- .ColumnPercent(40)
- .AddColumn(
- Components
- .ComboBoxs.ComboBox003(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('Cidade')
- .Format(tpTexto)
- .&End
- .Component
- )
- .ColumnPercent(20)
- .AddColumn(
- Components
- .Edits.Edit005(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('CEP')
- .Format(tpCEP)
- .&End
- .Component
- )
- .ColumnPercent(20)
- .AddColumn(
- Components
- .Edits.Edit005(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('UF')
- .Format(tpTexto)
- .&End
- .Component
- )
- .ColumnPercent(20)
- .AddColumn(
- Components
- .Edits.Edit005(Self)
- .LoadAttributes('StyleEdit')
- .Attributes
- .Title('Código IBGE da Cidade')
- .Format(tpTexto)
- .&End
- .Component
- )
- .Component
- ).Component;
- end;
- function TPageCadastroUsuario001.Render: TForm;
- begin
- Self.Align := AlClient;
- Self.WindowState:=wsMaximized;
- Self.BorderStyle := bsNone;
- Result := Self;
- end;
- procedure TPageCadastroUsuario001.UnRender;
- begin
- //
- end;
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement