Skip to content

Commit 29cd5af

Browse files
committed
cập nhật phân nhóm quyền, session
1 parent b8a2086 commit 29cd5af

File tree

110 files changed

+2044
-320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+2044
-320
lines changed
3.04 MB
Binary file not shown.

build/classes/oracle/AuditView.class

0 Bytes
Binary file not shown.

build/classes/oracle/BackupDB.class

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

build/classes/oracle/Instance.class

0 Bytes
Binary file not shown.

build/classes/oracle/Main$7.class

0 Bytes
Binary file not shown.

build/classes/oracle/Main.class

13 Bytes
Binary file not shown.

build/classes/oracle/MainForm$1.class

899 Bytes
Binary file not shown.
-4 Bytes
Binary file not shown.
-1 Bytes
Binary file not shown.
-2 Bytes
Binary file not shown.
4 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
-2 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
-4 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

build/classes/oracle/MainForm$2.class

-36 Bytes
Binary file not shown.
6 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
142 Bytes
Binary file not shown.

build/classes/oracle/MainForm$3.class

0 Bytes
Binary file not shown.

build/classes/oracle/MainForm$4.class

-7 Bytes
Binary file not shown.

build/classes/oracle/MainForm$5.class

6 Bytes
Binary file not shown.

build/classes/oracle/MainForm$6.class

0 Bytes
Binary file not shown.

build/classes/oracle/MainForm$7.class

0 Bytes
Binary file not shown.

build/classes/oracle/MainForm$8.class

3 Bytes
Binary file not shown.

build/classes/oracle/MainForm$9.class

0 Bytes
Binary file not shown.

build/classes/oracle/MainForm.class

-162 Bytes
Binary file not shown.

build/classes/oracle/MainForm.form

+10-2
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,14 @@
150150
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="menuItemChangePwActionPerformed"/>
151151
</Events>
152152
</MenuItem>
153+
<MenuItem class="javax.swing.JMenuItem" name="jMenuItem8">
154+
<Properties>
155+
<Property name="text" type="java.lang.String" value="Ph&#xe2;n quy&#x1ec1;n"/>
156+
</Properties>
157+
<Events>
158+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuItem8ActionPerformed"/>
159+
</Events>
160+
</MenuItem>
153161
</SubComponents>
154162
</Menu>
155163
<Menu class="javax.swing.JMenu" name="jMenu5">
@@ -159,15 +167,15 @@
159167
<SubComponents>
160168
<MenuItem class="javax.swing.JMenuItem" name="jMenuItem3">
161169
<Properties>
162-
<Property name="text" type="java.lang.String" value="Sao l&#x1b0;u"/>
170+
<Property name="text" type="java.lang.String" value="Xu&#x1ea5;t"/>
163171
</Properties>
164172
<Events>
165173
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuItem3ActionPerformed"/>
166174
</Events>
167175
</MenuItem>
168176
<MenuItem class="javax.swing.JMenuItem" name="jMenuItem4">
169177
<Properties>
170-
<Property name="text" type="java.lang.String" value="Ph&#x1ee5;c h&#x1ed3;i"/>
178+
<Property name="text" type="java.lang.String" value="Nh&#x1ead;p"/>
171179
</Properties>
172180
<Events>
173181
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuItem4ActionPerformed"/>
899 Bytes
Binary file not shown.
-36 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
-7 Bytes
Binary file not shown.
6 Bytes
Binary file not shown.
-6 Bytes
Binary file not shown.
156 Bytes
Binary file not shown.
541 Bytes
Binary file not shown.

build/classes/oracle/MainFormUser.form

+23
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,29 @@
3434
</MenuItem>
3535
</SubComponents>
3636
</Menu>
37+
<Menu class="javax.swing.JMenu" name="jMenu2">
38+
<Properties>
39+
<Property name="text" type="java.lang.String" value="Qu&#x1ea3;n l&#xfd;"/>
40+
</Properties>
41+
<SubComponents>
42+
<MenuItem class="javax.swing.JMenuItem" name="jMenuItem2">
43+
<Properties>
44+
<Property name="text" type="java.lang.String" value="Nh&#xe2;n vi&#xea;n"/>
45+
</Properties>
46+
<Events>
47+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuItem2ActionPerformed"/>
48+
</Events>
49+
</MenuItem>
50+
<MenuItem class="javax.swing.JMenuItem" name="jMenuItem3">
51+
<Properties>
52+
<Property name="text" type="java.lang.String" value="S&#x1ea3;n ph&#x1ea9;m"/>
53+
</Properties>
54+
<Events>
55+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuItem3ActionPerformed"/>
56+
</Events>
57+
</MenuItem>
58+
</SubComponents>
59+
</Menu>
3760
</SubComponents>
3861
</Menu>
3962
</NonVisualComponents>
-115 Bytes
Binary file not shown.

build/classes/oracle/PGA.class

0 Bytes
Binary file not shown.

build/classes/oracle/Policy.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.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
4 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
1.07 KB
Binary file not shown.

build/classes/oracle/ProfileManager.form

+113-58
Large diffs are not rendered by default.

build/classes/oracle/RestoreDB.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.
-188 Bytes
Binary file not shown.

build/classes/oracle/RoleManager.form

+8-13
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,14 @@
123123
<Component id="jLabel3" min="-2" pref="73" max="-2" attributes="0"/>
124124
<Group type="102" alignment="0" attributes="0">
125125
<Group type="103" groupAlignment="0" attributes="0">
126-
<Group type="102" alignment="0" attributes="0">
127-
<Component id="ckbSYSDBA" min="-2" pref="90" max="-2" attributes="0"/>
128-
<EmptySpace max="32767" attributes="0"/>
129-
<Component id="ckbSession" min="-2" max="-2" attributes="0"/>
130-
</Group>
131-
<Group type="102" alignment="1" attributes="0">
132-
<Group type="103" groupAlignment="0" attributes="0">
133-
<Component id="ckbProcedure" alignment="0" min="-2" pref="139" max="-2" attributes="0"/>
134-
<Component id="ckbGrant" alignment="0" min="-2" pref="90" max="-2" attributes="0"/>
135-
</Group>
136-
<EmptySpace pref="12" max="32767" attributes="0"/>
137-
<Component id="ckbTrigger" min="-2" pref="112" max="-2" attributes="0"/>
138-
</Group>
126+
<Component id="ckbProcedure" alignment="0" min="-2" pref="139" max="-2" attributes="0"/>
127+
<Component id="ckbGrant" alignment="0" min="-2" pref="90" max="-2" attributes="0"/>
128+
<Component id="ckbSYSDBA" alignment="0" min="-2" pref="90" max="-2" attributes="0"/>
129+
</Group>
130+
<EmptySpace pref="12" max="32767" attributes="0"/>
131+
<Group type="103" groupAlignment="0" attributes="0">
132+
<Component id="ckbTrigger" min="-2" pref="112" max="-2" attributes="0"/>
133+
<Component id="ckbSession" min="-2" max="-2" attributes="0"/>
139134
</Group>
140135
<EmptySpace type="unrelated" max="-2" attributes="0"/>
141136
<Group type="103" groupAlignment="0" attributes="0">

build/classes/oracle/Session$5.class

0 Bytes
Binary file not shown.

build/classes/oracle/Session.class

15 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
-1 Bytes
Binary file not shown.
-2 Bytes
Binary file not shown.
-1 Bytes
Binary file not shown.
3 Bytes
Binary file not shown.
2 Bytes
Binary file not shown.
-2 Bytes
Binary file not shown.
-4 Bytes
Binary file not shown.
4 Bytes
Binary file not shown.
-1 Bytes
Binary file not shown.
5 Bytes
Binary file not shown.
220 Bytes
Binary file not shown.
-5 Bytes
Binary file not shown.
165 Bytes
Binary file not shown.

build/classes/oracle/UserManager.form

+5-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<Component id="txtSearch" alignment="3" min="-2" max="-2" attributes="0"/>
6767
<Component id="btnSearch" alignment="3" min="-2" max="-2" attributes="0"/>
6868
</Group>
69-
<EmptySpace max="32767" attributes="0"/>
69+
<EmptySpace pref="93" max="32767" attributes="0"/>
7070
<Component id="jScrollPane1" min="-2" pref="602" max="-2" attributes="0"/>
7171
</Group>
7272
<Group type="102" alignment="1" attributes="0">
@@ -403,7 +403,7 @@
403403
<Component id="btnGrantTable" alignment="3" min="-2" max="-2" attributes="0"/>
404404
<Component id="btnRevokeTable" alignment="3" min="-2" max="-2" attributes="0"/>
405405
</Group>
406-
<EmptySpace pref="55" max="32767" attributes="0"/>
406+
<EmptySpace pref="67" max="32767" attributes="0"/>
407407
</Group>
408408
</Group>
409409
</DimensionLayout>
@@ -464,6 +464,9 @@
464464
<StringArray count="0"/>
465465
</Property>
466466
</Properties>
467+
<Events>
468+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbbRoleActionPerformed"/>
469+
</Events>
467470
<AuxValues>
468471
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="&lt;String&gt;"/>
469472
</AuxValues>
Binary file not shown.

build/classes/oracle/datafile.class

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

build/classes/oracle/form/CreateOrderForm.form

+10-7
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,9 @@
219219
</Group>
220220
<Group type="102" attributes="0">
221221
<Component id="lbl_hinh_anh" min="-2" pref="200" max="-2" attributes="0"/>
222-
<EmptySpace type="unrelated" max="-2" attributes="0"/>
223-
<Group type="103" groupAlignment="0" max="-2" attributes="0">
224-
<Component id="jScrollPane2" alignment="1" max="32767" attributes="0"/>
225-
<Group type="102" alignment="0" attributes="0">
222+
<Group type="103" groupAlignment="0" attributes="0">
223+
<Group type="102" attributes="0">
224+
<EmptySpace min="-2" pref="400" max="-2" attributes="0"/>
226225
<Group type="103" groupAlignment="0" attributes="0">
227226
<Component id="jLabel1" min="-2" pref="84" max="-2" attributes="0"/>
228227
<Component id="jLabel2" alignment="0" min="-2" pref="61" max="-2" attributes="0"/>
@@ -248,10 +247,14 @@
248247
<Component id="jLabel3" alignment="1" min="-2" max="-2" attributes="0"/>
249248
</Group>
250249
</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>
251254
</Group>
252255
</Group>
253256
</Group>
254-
<EmptySpace max="-2" attributes="0"/>
257+
<EmptySpace min="-2" max="-2" attributes="0"/>
255258
</Group>
256259
</Group>
257260
</DimensionLayout>
@@ -260,10 +263,10 @@
260263
<Group type="102" alignment="0" attributes="0">
261264
<EmptySpace type="separate" max="-2" attributes="0"/>
262265
<Group type="103" groupAlignment="0" attributes="0">
263-
<Component id="jScrollPane2" pref="572" max="32767" attributes="0"/>
266+
<Component id="jScrollPane2" pref="584" max="32767" attributes="0"/>
264267
<Group type="102" attributes="0">
265268
<Component id="lbl_hinh_anh" min="-2" pref="200" max="-2" attributes="0"/>
266-
<EmptySpace min="0" pref="367" max="32767" attributes="0"/>
269+
<EmptySpace min="0" pref="384" max="32767" attributes="0"/>
267270
</Group>
268271
</Group>
269272
<EmptySpace type="unrelated" max="-2" attributes="0"/>
Binary file not shown.
Binary file not shown.

login.dat

-9 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\\trilo\\AppData\\Roaming\\NetBeans\\16\\build.properties
8+
user.properties.file=C:\\Users\\QTrun\\AppData\\Roaming\\NetBeans\\17\\build.properties

nbproject/private/private.xml

+6-24
Original file line numberDiff line numberDiff line change
@@ -22,36 +22,18 @@
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/model/ChucVuDB.java</file>
26+
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/model/ChucVuModel.java</file>
2527
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/MainForm.java</file>
26-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/SGA.java</file>
27-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/model/CTDonHangModel.java</file>
28-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/form/CreateOrderForm.java</file>
28+
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/model/SanPhamDB.java</file>
2929
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/Main.java</file>
30-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/PGA.java</file>
31-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/RoleManager.java</file>
30+
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/model/NhanVienDB.java</file>
3231
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/AuditView.java</file>
33-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/ProfileManager.java</file>
34-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/Instance.java</file>
35-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/ChangePassword.java</file>
36-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/OracleConnection.java</file>
37-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/model/CTDonHangDB.java</file>
3832
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/model/DB.java</file>
39-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/model/DonHangDB.java</file>
40-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/model/BanDB.java</file>
41-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/Session.java</file>
42-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/datafile.java</file>
43-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/model/SanPhamModel.java</file>
44-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/model/SanPhamDB.java</file>
45-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/EmployeeManager.java</file>
46-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/BackupDB.java</file>
47-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/model/DonHangModel.java</file>
48-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/RestoreDB.java</file>
49-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/model/NhanVienDB.java</file>
50-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/Policy.java</file>
51-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/ProcessView.java</file>
5233
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/MainFormUser.java</file>
34+
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/model/DonHangDB.java</file>
5335
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/Tablespaceview.java</file>
54-
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/ProductManager.java</file>
36+
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/Session.java</file>
5537
<file>file:/D:/GitHub/Oracle_Demo_Java/src/oracle/UserManager.java</file>
5638
</group>
5739
</open-files>

src/oracle/EmployeeManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ private void btnThemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST
278278
try {
279279
oracle.openConnection();
280280

281-
String sql = "INSERT INTO nhanvien VALUES("+id+",'"+tennv+"',"+luong+","+chucvu+")";
281+
String sql = "INSERT INTO admin.nhanvien VALUES("+id+",'"+tennv+"',"+luong+","+chucvu+")";
282282
Statement st = oracle.conn.createStatement();
283283

284284
st.executeUpdate(sql);

src/oracle/Main.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,14 @@ else if(ckbRemeberMe.isSelected()==false)
261261
JOptionPane.showMessageDialog(null, "Đăng nhập thành công bằng người dùng "+username+" bằng quyền quản trị");
262262
new MainForm().setVisible(true);
263263
this.setVisible(false);
264-
oracle.closeConnection();
264+
oracle.LogOut();
265265
} catch (Exception e) {
266266
// TODO: handle exception
267+
Statement stmt1 = conn.createStatement();
267268
JOptionPane.showMessageDialog(null, "Đăng nhập thành công bằng người dùng "+username1+" bằng quyền thường");
268269
new MainFormUser().setVisible(true);
269270
this.setVisible(false);
270-
oracle.closeConnection();
271+
oracle.LogOut();
271272
}
272273

273274
} catch (Exception e) {
@@ -336,7 +337,7 @@ public static void main(String args[]) {
336337
*/
337338
try {
338339
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
339-
if ("Windows".equals(info.getName())) {
340+
if ("Nimbus".equals(info.getName())) {
340341
javax.swing.UIManager.setLookAndFeel(info.getClassName());
341342
break;
342343
}

src/oracle/MainForm.form

+10-2
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,14 @@
150150
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="menuItemChangePwActionPerformed"/>
151151
</Events>
152152
</MenuItem>
153+
<MenuItem class="javax.swing.JMenuItem" name="jMenuItem8">
154+
<Properties>
155+
<Property name="text" type="java.lang.String" value="Ph&#xe2;n quy&#x1ec1;n"/>
156+
</Properties>
157+
<Events>
158+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuItem8ActionPerformed"/>
159+
</Events>
160+
</MenuItem>
153161
</SubComponents>
154162
</Menu>
155163
<Menu class="javax.swing.JMenu" name="jMenu5">
@@ -159,15 +167,15 @@
159167
<SubComponents>
160168
<MenuItem class="javax.swing.JMenuItem" name="jMenuItem3">
161169
<Properties>
162-
<Property name="text" type="java.lang.String" value="Sao l&#x1b0;u"/>
170+
<Property name="text" type="java.lang.String" value="Xu&#x1ea5;t"/>
163171
</Properties>
164172
<Events>
165173
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuItem3ActionPerformed"/>
166174
</Events>
167175
</MenuItem>
168176
<MenuItem class="javax.swing.JMenuItem" name="jMenuItem4">
169177
<Properties>
170-
<Property name="text" type="java.lang.String" value="Ph&#x1ee5;c h&#x1ed3;i"/>
178+
<Property name="text" type="java.lang.String" value="Nh&#x1ead;p"/>
171179
</Properties>
172180
<Events>
173181
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuItem4ActionPerformed"/>

0 commit comments

Comments
 (0)