-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathta.pas
218 lines (181 loc) · 4.64 KB
/
ta.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
unit TA;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls,
ExtDlgs;
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
ComboBox1: TComboBox;
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Edit4: TEdit;
GroupBox1: TGroupBox;
Image1: TImage;
Label1: TLabel;
Label10: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Label7: TLabel;
Label8: TLabel;
Label9: TLabel;
Memo1: TMemo;
Memo2: TMemo;
OpenPictureDialog1: TOpenPictureDialog;
Panel1: TPanel;
Panel2: TPanel;
Panel3: TPanel;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
procedure Button4Click(Sender: TObject);
procedure ComboBox1Change(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure Label2Click(Sender: TObject);
procedure Label6Click(Sender: TObject);
procedure ListBox1Click(Sender: TObject);
procedure ListBox2Click(Sender: TObject);
procedure Memo1Change(Sender: TObject);
procedure Memo3Change(Sender: TObject);
procedure Panel1Click(Sender: TObject);
procedure Panel3Click(Sender: TObject);
private
public
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.Panel1Click(Sender: TObject);
begin
end;
procedure TForm1.Panel3Click(Sender: TObject);
begin
end;
procedure TForm1.Label2Click(Sender: TObject);
begin
end;
procedure TForm1.ComboBox1Change(Sender: TObject);
begin
if combobox1.Text='Pengajuan Baru KKP' then
begin
Panel3.Caption:='400000';
Label9.Caption:='TOTAL BIAYA PENGAJUAN' + Slinebreak + 'BIMBINGAN KKP KAMU';
Label10.Caption:='Terbilang Empat Ratus Ribu Rupiah';
end
else
if combobox1.Text='Pengajuan Perpanjangan KKP' then
begin
Panel3.Caption:='200000';
Label9.Caption:='TOTAL BIAYA PENGAJUAN' + Slinebreak + 'BIMBINGAN KKP KAMU';
Label10.Caption:='Terbilang Dua Ratus Ribu Rupiah';
end
else
if combobox1.Text='Pengajuan Baru Skripsi' then
begin
Panel3.Caption:='800000';
Label9.Caption:='TOTAL BIAYA PENGAJUAN' + Slinebreak + 'BIMBINGAN SKRIPSI KAMU';
Label10.Caption:='Terbilang Delapan Ratus Ribu Rupiah';
end
else
if combobox1.Text='Pengajuan Perpanjangan Skripsi' then
begin
Panel3.Caption:='400000';
Label9.Caption:='TOTAL BIAYA PENGAJUAN' + Slinebreak + 'BIMBINGAN SKRIPSI KAMU';
Label10.Caption:='Terbilang Empat Ratus Ribu Rupiah';
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
if OpenPictureDialog1.Execute then
begin
Image1.Picture.LoadFromFile(OpenPictureDialog1.FileName);
end
end;
procedure TForm1.Button2Click(Sender: TObject);
var nim : String[11];
begin
if Edit1.Text=''then
begin
ShowMessage('NIM Masih Kosong');
Edit1.SetFocus;
end
else if Edit2.Text=''then
begin
ShowMessage('Nama Masih Kosong');
Edit1.SetFocus;
end
else if Edit3.Text=''then
begin
ShowMessage('No Hp Masih Kosong');
Edit1.SetFocus;
end
else if Edit4.Text=''then
begin
ShowMessage('prodi Masih Kosong');
Edit1.SetFocus;
end
else if Memo1.Text=''then
begin
ShowMessage('judul proposal Masih Kosong');
Edit1.SetFocus;
end
else
begin
nim := Edit1.Text;
MessageDlg('Information','Selamat Data' + nim + 'Berhasil Disimpan',
mtInformation, [mbOK], 0);
end
end;
procedure TForm1.Button3Click(Sender: TObject);
begin
Edit1.Text:='';
Edit2.Text:='' ;
Edit3.Text:='' ;
Edit4.Text:='' ;
Memo1.Text:='' ;
Memo2.Text:='' ;
Image1.Picture.Clear;
ComboBox1.Text:='';
Panel3.Caption:='';
end;
procedure TForm1.Button4Click(Sender: TObject);
begin
if MessageDlg('Perhatian','Ingin keluar?',mtConfirmation,[mbYes, mbNo],0)=mrYes then
close;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
ComboBox1.Items.Add('Pengajuan Baru KKP');
ComboBox1.Items.Add('Pengajuan Perpanjangan KKP');
ComboBox1.Items.Add('Pengajuan Baru Skripsi');
ComboBox1.Items.Add('Pengajuan Perpanjangan Skripsi');
memo1.Clear;
memo2.Clear;
end;
procedure TForm1.Label6Click(Sender: TObject);
begin
end;
procedure TForm1.ListBox1Click(Sender: TObject);
begin
end;
procedure TForm1.ListBox2Click(Sender: TObject);
begin
end;
procedure TForm1.Memo1Change(Sender: TObject);
begin
end;
procedure TForm1.Memo3Change(Sender: TObject);
begin
end;
end.