Skip to content

Commit d0150e7

Browse files
committed
bk/2025-03-31-2355
1 parent df84f09 commit d0150e7

3 files changed

Lines changed: 51 additions & 5 deletions

File tree

ClientWeb/Src/Main.View.dfm

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object MainView: TMainView
2-
Width = 640
2+
Width = 1118
33
Height = 480
44
Caption = 'Delphi Web - Home'
55
OnCreate = WebFormCreate
@@ -69,7 +69,7 @@ object MainView: TMainView
6969
object WebPanel1: TWebPanel
7070
Left = 112
7171
Top = 160
72-
Width = 489
72+
Width = 945
7373
Height = 33
7474
ElementID = 'divContainerBotoes01'
7575
ChildOrder = 5
@@ -137,6 +137,46 @@ object MainView: TMainView
137137
WidthPercent = 100.000000000000000000
138138
OnClick = btnListarClick
139139
end
140+
object btnPost: TWebButton
141+
Left = 451
142+
Top = 0
143+
Width = 136
144+
Height = 33
145+
Align = alLeft
146+
Caption = 'Cadastrar / Post '
147+
ChildOrder = 1
148+
ElementID = 'btnPost'
149+
HeightPercent = 100.000000000000000000
150+
WidthPercent = 100.000000000000000000
151+
ExplicitLeft = 445
152+
ExplicitTop = 3
153+
end
154+
object btnAlterar: TWebButton
155+
Left = 587
156+
Top = 0
157+
Width = 136
158+
Height = 33
159+
Align = alLeft
160+
Caption = 'Alterar / PUT'
161+
ChildOrder = 1
162+
ElementID = 'btnAlterar'
163+
HeightPercent = 100.000000000000000000
164+
WidthPercent = 100.000000000000000000
165+
ExplicitLeft = 593
166+
end
167+
object btnDelete: TWebButton
168+
Left = 723
169+
Top = 0
170+
Width = 136
171+
Height = 33
172+
Align = alLeft
173+
Caption = 'Delete'
174+
ChildOrder = 1
175+
ElementID = 'btnDelete'
176+
HeightPercent = 100.000000000000000000
177+
WidthPercent = 100.000000000000000000
178+
ExplicitLeft = 729
179+
end
140180
end
141181
object mmTeste: TWebMemo
142182
Left = 232
@@ -183,9 +223,8 @@ object MainView: TMainView
183223
object XDataWebDataSet1Porcentagem: TFloatField
184224
FieldName = 'Porcentagem'
185225
end
186-
object XDataWebDataSet1Ativo: TStringField
226+
object XDataWebDataSet1Ativo: TBooleanField
187227
FieldName = 'Ativo'
188-
Size = 5
189228
end
190229
end
191230
object WebDataSource1: TWebDataSource

ClientWeb/Src/Main.View.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,10 @@ <h3>65</h3>
871871
<button type="button" class="btn btn-primary" id="btnGetNome">GeNome</button>
872872
<button type="button" class="btn btn-info" id="btnGet">Get</button>
873873
<button type="button" class="btn btn-success" id="btnListar">Success</button>
874+
875+
<button type="button" class="btn btn-warning" id="btnPost">btnPost</button>
876+
<button type="button" class="btn btn-info" id="btnAlterar">btnAlterar</button>
877+
<button type="button" class="btn btn-danger" id="btnDelete">btnDelete</button>
874878
</div>
875879
</div>
876880
<!--end::Row Botoes-->

ClientWeb/Src/Main.View.pas

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@ TMainView = class(TWebForm)
4545
XDataWebDataSet1Profissao: TStringField;
4646
XDataWebDataSet1Limite: TFloatField;
4747
XDataWebDataSet1Porcentagem: TFloatField;
48-
XDataWebDataSet1Ativo: TStringField;
4948
btnListar: TWebButton;
49+
XDataWebDataSet1Ativo: TBooleanField;
50+
btnPost: TWebButton;
51+
btnAlterar: TWebButton;
52+
btnDelete: TWebButton;
5053
procedure lbImportantClick(Sender: TObject);
5154
[Async]
5255
procedure lbWarningClick(Sender: TObject);

0 commit comments

Comments
 (0)