Skip to content

Commit 1ba3994

Browse files
committed
Chuyển truy vấn trong form tạo đơn thành procedure, viết thêm trigger
1 parent 8f9cf98 commit 1ba3994

24 files changed

+312
-337
lines changed
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

build/classes/oracle/Main.class

0 Bytes
Binary file not shown.

build/classes/oracle/MainForm.class

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

build/classes/oracle/Session.class

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
-721 Bytes
Binary file not shown.

build/classes/oracle/form/CreateOrderForm.form

+32-31
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<Component id="layout_product" max="32767" attributes="0"/>
3030
<EmptySpace max="-2" attributes="0"/>
3131
<Component id="layout_giohang" min="-2" max="-2" attributes="0"/>
32+
<EmptySpace max="-2" attributes="0"/>
3233
</Group>
3334
</Group>
3435
</DimensionLayout>
@@ -37,10 +38,9 @@
3738
<Group type="102" alignment="1" attributes="0">
3839
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
3940
<Group type="103" groupAlignment="0" max="-2" attributes="0">
40-
<Component id="layout_product" max="32767" attributes="0"/>
4141
<Component id="layout_giohang" max="32767" attributes="0"/>
42+
<Component id="layout_product" max="32767" attributes="0"/>
4243
</Group>
43-
<EmptySpace min="-2" max="-2" attributes="0"/>
4444
</Group>
4545
</Group>
4646
</DimensionLayout>
@@ -83,7 +83,7 @@
8383
<DimensionLayout dim="1">
8484
<Group type="103" groupAlignment="0" attributes="0">
8585
<Group type="102" alignment="1" attributes="0">
86-
<EmptySpace max="32767" attributes="0"/>
86+
<EmptySpace pref="599" max="32767" attributes="0"/>
8787
<Group type="103" groupAlignment="3" attributes="0">
8888
<Component id="jLabel6" alignment="3" min="-2" max="-2" attributes="0"/>
8989
<Component id="txt_gh_ten_sp" alignment="3" min="-2" pref="16" max="-2" attributes="0"/>
@@ -210,18 +210,21 @@
210210
<Group type="103" groupAlignment="0" attributes="0">
211211
<Group type="102" attributes="0">
212212
<EmptySpace max="-2" attributes="0"/>
213-
<Group type="103" groupAlignment="0" max="-2" attributes="0">
214-
<Group type="102" attributes="0">
215-
<EmptySpace min="-2" pref="220" max="-2" attributes="0"/>
216-
<Component id="btn_add_to_cart" min="-2" pref="326" max="-2" attributes="0"/>
217-
<EmptySpace type="unrelated" max="-2" attributes="0"/>
218-
<Component id="btn_add_donhang" max="32767" attributes="0"/>
213+
<Group type="103" groupAlignment="0" attributes="0">
214+
<Group type="102" alignment="1" attributes="0">
215+
<Component id="lbl_hinh_anh" min="-2" max="-2" attributes="0"/>
216+
<EmptySpace max="32767" attributes="0"/>
217+
<Component id="jScrollPane2" min="-2" pref="643" max="-2" attributes="0"/>
219218
</Group>
220-
<Group type="102" attributes="0">
221-
<Component id="lbl_hinh_anh" min="-2" pref="200" max="-2" attributes="0"/>
219+
<Group type="102" alignment="1" attributes="0">
220+
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
222221
<Group type="103" groupAlignment="0" attributes="0">
223-
<Group type="102" attributes="0">
224-
<EmptySpace min="-2" pref="400" max="-2" attributes="0"/>
222+
<Group type="102" alignment="0" attributes="0">
223+
<Component id="btn_add_to_cart" min="-2" pref="326" max="-2" attributes="0"/>
224+
<EmptySpace type="unrelated" max="-2" attributes="0"/>
225+
<Component id="btn_add_donhang" min="-2" pref="305" max="-2" attributes="0"/>
226+
</Group>
227+
<Group type="102" alignment="0" attributes="0">
225228
<Group type="103" groupAlignment="0" attributes="0">
226229
<Component id="jLabel1" min="-2" pref="84" max="-2" attributes="0"/>
227230
<Component id="jLabel2" alignment="0" min="-2" pref="61" max="-2" attributes="0"/>
@@ -241,35 +244,33 @@
241244
<Component id="txt_so_khach" max="32767" attributes="0"/>
242245
<Component id="cb_ban" min="-2" pref="76" max="-2" attributes="0"/>
243246
</Group>
244-
<EmptySpace type="unrelated" max="-2" attributes="0"/>
245-
<Group type="103" groupAlignment="1" attributes="0">
246-
<Component id="txt_total" min="-2" pref="164" max="-2" attributes="0"/>
247-
<Component id="jLabel3" alignment="1" min="-2" max="-2" attributes="0"/>
247+
<Group type="103" groupAlignment="0" attributes="0">
248+
<Group type="102" alignment="0" attributes="0">
249+
<EmptySpace min="-2" pref="94" max="-2" attributes="0"/>
250+
<Component id="jLabel3" min="-2" max="-2" attributes="0"/>
251+
</Group>
252+
<Group type="102" alignment="0" attributes="0">
253+
<EmptySpace type="unrelated" max="-2" attributes="0"/>
254+
<Component id="txt_total" min="-2" pref="164" max="-2" attributes="0"/>
255+
</Group>
248256
</Group>
249257
</Group>
250-
<Group type="102" alignment="0" attributes="0">
251-
<EmptySpace max="-2" attributes="0"/>
252-
<Component id="jScrollPane2" min="-2" pref="925" max="-2" attributes="0"/>
253-
</Group>
254258
</Group>
255259
</Group>
256260
</Group>
257-
<EmptySpace min="-2" max="-2" attributes="0"/>
261+
<EmptySpace max="-2" attributes="0"/>
258262
</Group>
259263
</Group>
260264
</DimensionLayout>
261265
<DimensionLayout dim="1">
262266
<Group type="103" groupAlignment="0" attributes="0">
263267
<Group type="102" alignment="0" attributes="0">
264-
<EmptySpace type="separate" max="-2" attributes="0"/>
268+
<EmptySpace max="-2" attributes="0"/>
265269
<Group type="103" groupAlignment="0" attributes="0">
266-
<Component id="jScrollPane2" pref="584" max="32767" attributes="0"/>
267-
<Group type="102" attributes="0">
268-
<Component id="lbl_hinh_anh" min="-2" pref="200" max="-2" attributes="0"/>
269-
<EmptySpace min="0" pref="384" max="32767" attributes="0"/>
270-
</Group>
270+
<Component id="lbl_hinh_anh" min="-2" pref="200" max="-2" attributes="0"/>
271+
<Component id="jScrollPane2" min="-2" pref="569" max="-2" attributes="0"/>
271272
</Group>
272-
<EmptySpace type="unrelated" max="-2" attributes="0"/>
273+
<EmptySpace max="32767" attributes="0"/>
273274
<Group type="103" groupAlignment="0" attributes="0">
274275
<Group type="102" alignment="0" attributes="0">
275276
<Group type="103" groupAlignment="1" attributes="0">
@@ -293,13 +294,13 @@
293294
<Component id="txt_so_khach" alignment="3" min="-2" max="-2" attributes="0"/>
294295
</Group>
295296
</Group>
296-
<Group type="102" attributes="0">
297+
<Group type="102" alignment="0" attributes="0">
297298
<Component id="jLabel3" min="-2" max="-2" attributes="0"/>
298299
<EmptySpace max="-2" attributes="0"/>
299300
<Component id="txt_total" min="-2" pref="29" max="-2" attributes="0"/>
300301
</Group>
301302
</Group>
302-
<EmptySpace min="-2" pref="29" max="-2" attributes="0"/>
303+
<EmptySpace min="-2" pref="35" max="-2" attributes="0"/>
303304
<Group type="103" groupAlignment="3" attributes="0">
304305
<Component id="btn_add_to_cart" alignment="3" min="-2" pref="55" max="-2" attributes="0"/>
305306
<Component id="btn_add_donhang" alignment="3" min="-2" pref="55" max="-2" attributes="0"/>
0 Bytes
Binary file not shown.
248 Bytes
Binary file not shown.
223 Bytes
Binary file not shown.
Binary file not shown.

login.dat

11 Bytes
Binary file not shown.

nbproject/private/private.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ do.jlink=false
55
javac.debug=true
66
javadoc.preview=true
77
jlink.strip=false
8-
user.properties.file=C:\\Users\\QTrun\\AppData\\Roaming\\NetBeans\\17\\build.properties
8+
user.properties.file=C:\\Users\\trilo\\AppData\\Roaming\\NetBeans\\16\\build.properties

nbproject/private/private.xml

+7-9
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,27 @@
55
<url>src/oracle/form/CreateOrderForm.java</url>
66
<bookmark id="1">
77
<name/>
8-
<line>548</line>
8+
<line>545</line>
99
<key/>
1010
</bookmark>
1111
<bookmark id="2">
1212
<name/>
13-
<line>612</line>
13+
<line>627</line>
1414
<key/>
1515
</bookmark>
1616
<bookmark id="3">
1717
<name/>
18-
<line>696</line>
18+
<line>676</line>
1919
<key/>
2020
</bookmark>
2121
</file>
2222
</editor-bookmarks>
2323
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
2424
<group>
25-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/MainForm.java</file>
26-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/MainFormUser.java</file>
27-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/EmployeeManager.java</file>
28-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/Main.java</file>
29-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/Tablespaceview.java</file>
30-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/UserManager.java</file>
25+
<file>file:/D:/Study/Oracle/Oracle_Demo_Java/src/oracle/UserManager.java</file>
26+
<file>file:/D:/Study/Oracle/Oracle_Demo_Java/src/oracle/model/CTDonHangDB.java</file>
27+
<file>file:/D:/Study/Oracle/Oracle_Demo_Java/src/oracle/form/CreateOrderForm.java</file>
28+
<file>file:/D:/Study/Oracle/Oracle_Demo_Java/src/oracle/model/DonHangDB.java</file>
3129
</group>
3230
</open-files>
3331
</project-private>

src/oracle/form/CreateOrderForm.form

+32-31
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<Component id="layout_product" max="32767" attributes="0"/>
3030
<EmptySpace max="-2" attributes="0"/>
3131
<Component id="layout_giohang" min="-2" max="-2" attributes="0"/>
32+
<EmptySpace max="-2" attributes="0"/>
3233
</Group>
3334
</Group>
3435
</DimensionLayout>
@@ -37,10 +38,9 @@
3738
<Group type="102" alignment="1" attributes="0">
3839
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
3940
<Group type="103" groupAlignment="0" max="-2" attributes="0">
40-
<Component id="layout_product" max="32767" attributes="0"/>
4141
<Component id="layout_giohang" max="32767" attributes="0"/>
42+
<Component id="layout_product" max="32767" attributes="0"/>
4243
</Group>
43-
<EmptySpace min="-2" max="-2" attributes="0"/>
4444
</Group>
4545
</Group>
4646
</DimensionLayout>
@@ -83,7 +83,7 @@
8383
<DimensionLayout dim="1">
8484
<Group type="103" groupAlignment="0" attributes="0">
8585
<Group type="102" alignment="1" attributes="0">
86-
<EmptySpace max="32767" attributes="0"/>
86+
<EmptySpace pref="599" max="32767" attributes="0"/>
8787
<Group type="103" groupAlignment="3" attributes="0">
8888
<Component id="jLabel6" alignment="3" min="-2" max="-2" attributes="0"/>
8989
<Component id="txt_gh_ten_sp" alignment="3" min="-2" pref="16" max="-2" attributes="0"/>
@@ -210,18 +210,21 @@
210210
<Group type="103" groupAlignment="0" attributes="0">
211211
<Group type="102" attributes="0">
212212
<EmptySpace max="-2" attributes="0"/>
213-
<Group type="103" groupAlignment="0" max="-2" attributes="0">
214-
<Group type="102" attributes="0">
215-
<EmptySpace min="-2" pref="220" max="-2" attributes="0"/>
216-
<Component id="btn_add_to_cart" min="-2" pref="326" max="-2" attributes="0"/>
217-
<EmptySpace type="unrelated" max="-2" attributes="0"/>
218-
<Component id="btn_add_donhang" max="32767" attributes="0"/>
213+
<Group type="103" groupAlignment="0" attributes="0">
214+
<Group type="102" alignment="1" attributes="0">
215+
<Component id="lbl_hinh_anh" min="-2" max="-2" attributes="0"/>
216+
<EmptySpace max="32767" attributes="0"/>
217+
<Component id="jScrollPane2" min="-2" pref="643" max="-2" attributes="0"/>
219218
</Group>
220-
<Group type="102" attributes="0">
221-
<Component id="lbl_hinh_anh" min="-2" pref="200" max="-2" attributes="0"/>
219+
<Group type="102" alignment="1" attributes="0">
220+
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
222221
<Group type="103" groupAlignment="0" attributes="0">
223-
<Group type="102" attributes="0">
224-
<EmptySpace min="-2" pref="400" max="-2" attributes="0"/>
222+
<Group type="102" alignment="0" attributes="0">
223+
<Component id="btn_add_to_cart" min="-2" pref="326" max="-2" attributes="0"/>
224+
<EmptySpace type="unrelated" max="-2" attributes="0"/>
225+
<Component id="btn_add_donhang" min="-2" pref="305" max="-2" attributes="0"/>
226+
</Group>
227+
<Group type="102" alignment="0" attributes="0">
225228
<Group type="103" groupAlignment="0" attributes="0">
226229
<Component id="jLabel1" min="-2" pref="84" max="-2" attributes="0"/>
227230
<Component id="jLabel2" alignment="0" min="-2" pref="61" max="-2" attributes="0"/>
@@ -241,35 +244,33 @@
241244
<Component id="txt_so_khach" max="32767" attributes="0"/>
242245
<Component id="cb_ban" min="-2" pref="76" max="-2" attributes="0"/>
243246
</Group>
244-
<EmptySpace type="unrelated" max="-2" attributes="0"/>
245-
<Group type="103" groupAlignment="1" attributes="0">
246-
<Component id="txt_total" min="-2" pref="164" max="-2" attributes="0"/>
247-
<Component id="jLabel3" alignment="1" min="-2" max="-2" attributes="0"/>
247+
<Group type="103" groupAlignment="0" attributes="0">
248+
<Group type="102" alignment="0" attributes="0">
249+
<EmptySpace min="-2" pref="94" max="-2" attributes="0"/>
250+
<Component id="jLabel3" min="-2" max="-2" attributes="0"/>
251+
</Group>
252+
<Group type="102" alignment="0" attributes="0">
253+
<EmptySpace type="unrelated" max="-2" attributes="0"/>
254+
<Component id="txt_total" min="-2" pref="164" max="-2" attributes="0"/>
255+
</Group>
248256
</Group>
249257
</Group>
250-
<Group type="102" alignment="0" attributes="0">
251-
<EmptySpace max="-2" attributes="0"/>
252-
<Component id="jScrollPane2" min="-2" pref="925" max="-2" attributes="0"/>
253-
</Group>
254258
</Group>
255259
</Group>
256260
</Group>
257-
<EmptySpace min="-2" max="-2" attributes="0"/>
261+
<EmptySpace max="-2" attributes="0"/>
258262
</Group>
259263
</Group>
260264
</DimensionLayout>
261265
<DimensionLayout dim="1">
262266
<Group type="103" groupAlignment="0" attributes="0">
263267
<Group type="102" alignment="0" attributes="0">
264-
<EmptySpace type="separate" max="-2" attributes="0"/>
268+
<EmptySpace max="-2" attributes="0"/>
265269
<Group type="103" groupAlignment="0" attributes="0">
266-
<Component id="jScrollPane2" pref="584" max="32767" attributes="0"/>
267-
<Group type="102" attributes="0">
268-
<Component id="lbl_hinh_anh" min="-2" pref="200" max="-2" attributes="0"/>
269-
<EmptySpace min="0" pref="384" max="32767" attributes="0"/>
270-
</Group>
270+
<Component id="lbl_hinh_anh" min="-2" pref="200" max="-2" attributes="0"/>
271+
<Component id="jScrollPane2" min="-2" pref="569" max="-2" attributes="0"/>
271272
</Group>
272-
<EmptySpace type="unrelated" max="-2" attributes="0"/>
273+
<EmptySpace max="32767" attributes="0"/>
273274
<Group type="103" groupAlignment="0" attributes="0">
274275
<Group type="102" alignment="0" attributes="0">
275276
<Group type="103" groupAlignment="1" attributes="0">
@@ -293,13 +294,13 @@
293294
<Component id="txt_so_khach" alignment="3" min="-2" max="-2" attributes="0"/>
294295
</Group>
295296
</Group>
296-
<Group type="102" attributes="0">
297+
<Group type="102" alignment="0" attributes="0">
297298
<Component id="jLabel3" min="-2" max="-2" attributes="0"/>
298299
<EmptySpace max="-2" attributes="0"/>
299300
<Component id="txt_total" min="-2" pref="29" max="-2" attributes="0"/>
300301
</Group>
301302
</Group>
302-
<EmptySpace min="-2" pref="29" max="-2" attributes="0"/>
303+
<EmptySpace min="-2" pref="35" max="-2" attributes="0"/>
303304
<Group type="103" groupAlignment="3" attributes="0">
304305
<Component id="btn_add_to_cart" alignment="3" min="-2" pref="55" max="-2" attributes="0"/>
305306
<Component id="btn_add_donhang" alignment="3" min="-2" pref="55" max="-2" attributes="0"/>

0 commit comments

Comments
 (0)