B70340 1 ano atrás
pai
commit
1d30bfb30f
35 arquivos alterados com 1652 adições e 713 exclusões
  1. BIN
      .vs/HSKIN-MIS-SYS/FileContentIndex/1ab95d9d-c3ae-43fd-8e07-180726861a6c.vsidx
  2. BIN
      .vs/HSKIN-MIS-SYS/FileContentIndex/dca6d479-9d31-438e-a51b-225a2b304d2b.vsidx
  3. BIN
      .vs/HSKIN-MIS-SYS/FileContentIndex/e49782ca-f43b-477d-92be-01ba1cd51077.vsidx
  4. BIN
      .vs/HSKIN-MIS-SYS/v17/.suo
  5. 45
    4
      GRAMS-SYS/00、Module/SQL_休假與加班.vb
  6. 39
    9
      GRAMS-SYS/00、Module/SQL_系統設定.vb
  7. 14
    1
      GRAMS-SYS/00、Module/SQL_考勤系統.vb
  8. 134
    48
      GRAMS-SYS/02、休假管理/休假核准.Designer.vb
  9. 29
    11
      GRAMS-SYS/02、休假管理/休假核准.vb
  10. 95
    13
      GRAMS-SYS/02、休假管理/休假申請.Designer.vb
  11. 84
    17
      GRAMS-SYS/02、休假管理/休假申請.vb
  12. 97
    24
      GRAMS-SYS/02、休假管理/歷史休假紀錄.Designer.vb
  13. 28
    4
      GRAMS-SYS/02、休假管理/歷史休假紀錄.vb
  14. 13
    9
      GRAMS-SYS/03、加班管理/加班審核.Designer.vb
  15. 2
    2
      GRAMS-SYS/03、加班管理/加班審核.vb
  16. 8
    8
      GRAMS-SYS/03、加班管理/加班申請.Designer.vb
  17. 6
    4
      GRAMS-SYS/03、加班管理/加班申請.vb
  18. 37
    35
      GRAMS-SYS/04、考勤管理/到離職管理.Designer.vb
  19. 7
    11
      GRAMS-SYS/04、考勤管理/到離職管理.vb
  20. 635
    158
      GRAMS-SYS/04、考勤管理/考勤明細表.Designer.vb
  21. 89
    27
      GRAMS-SYS/04、考勤管理/考勤明細表.vb
  22. 7
    9
      GRAMS-SYS/04、考勤管理/考勤明細表_編輯.Designer.vb
  23. 11
    3
      GRAMS-SYS/04、考勤管理/考勤明細表_編輯.vb
  24. 171
    227
      GRAMS-SYS/10、系統管理/系統設定.Designer.vb
  25. 60
    72
      GRAMS-SYS/10、系統管理/系統設定.vb
  26. 25
    16
      GRAMS-SYS/HSKIN-MIS-SYS.Designer.vb
  27. 5
    0
      GRAMS-SYS/HSKIN-MIS-SYS.vb
  28. 9
    0
      GRAMS-SYS/HSKIN-MIS-SYS.vbproj
  29. BIN
      GRAMS-SYS/bin/Debug/HSKIN-MIS-SYS.exe
  30. BIN
      GRAMS-SYS/bin/Debug/HSKIN-MIS-SYS.pdb
  31. BIN
      GRAMS-SYS/obj/Debug/HSKIN-MIS-SYS.exe
  32. BIN
      GRAMS-SYS/obj/Debug/HSKIN-MIS-SYS.pdb
  33. 1
    1
      GRAMS-SYS/obj/Debug/HSKIN-MIS-SYS.vbproj.CoreCompileInputs.cache
  34. 1
    0
      GRAMS-SYS/obj/Debug/HSKIN-MIS-SYS.vbproj.FileListAbsolute.txt
  35. BIN
      GRAMS-SYS/obj/Debug/HSKIN-MIS-SYS.vbproj.GenerateResource.cache

BIN
.vs/HSKIN-MIS-SYS/FileContentIndex/1ab95d9d-c3ae-43fd-8e07-180726861a6c.vsidx Ver arquivo


BIN
.vs/HSKIN-MIS-SYS/FileContentIndex/dca6d479-9d31-438e-a51b-225a2b304d2b.vsidx Ver arquivo


BIN
.vs/HSKIN-MIS-SYS/FileContentIndex/e49782ca-f43b-477d-92be-01ba1cd51077.vsidx Ver arquivo


BIN
.vs/HSKIN-MIS-SYS/v17/.suo Ver arquivo


+ 45
- 4
GRAMS-SYS/00、Module/SQL_休假與加班.vb Ver arquivo

@@ -1,9 +1,9 @@
1 1
 Module SQL_休假與加班
2 2
     Friend Sub SQL_國定假日設定_月份考勤()
3 3
         ConnOpen()
4
-        SQL1 = "SELECT      萬年曆.日期, 萬年曆.星期, AA.請假類別, AA.事由, AA.是否生效, AA.核准人, AA.核准日期
4
+        SQL1 = "SELECT      萬年曆.日期, 萬年曆.星期, AA.請假類別, AA.事由, AA.是否生效, AA.核准人, AA.核准日期, AA.圖片資料庫, AA.圖片編號, AA.申請時數
5 5
                 FROM             萬年曆 LEFT OUTER JOIN
6
-                                (SELECT           員工編號, 日期, 請假類別, 事由, 是否生效, 核准人, 核准日期
6
+                                (SELECT           員工編號, 日期, 請假類別, 事由, 是否生效, 核准人, 核准日期, 圖片資料庫, 圖片編號, 申請時數
7 7
                                  FROM             人事請假單
8 8
                                  WHERE           (員工編號 LIKE N'" & PA & "') AND (日期 LIKE N'" & PA1 & "/" & PA2 & "%')) AS AA ON 萬年曆.日期 = AA.日期
9 9
                 WHERE          (萬年曆.日期 LIKE N'" & PA1 & "/" & PA2 & "%')
@@ -13,7 +13,7 @@
13 13
     Friend Sub SQL_休假申請()
14 14
         ConnOpen()
15 15
         SQL1 = "SELECT ras_Users.UserName AS 姓名, 人事請假單.員工編號 AS 編號, 人事請假單.日期, 萬年曆.星期, 人事請假單.請假類別, 
16
-                       人事請假單.事由, 人事請假單.是否生效, 人事請假單.核准人, 人事請假單.核准日期
16
+                       人事請假單.事由, 人事請假單.是否生效, 人事請假單.核准人, 人事請假單.核准日期, 圖片資料庫, 圖片編號
17 17
                 FROM   人事請假單 INNER JOIN
18 18
                        萬年曆 ON 人事請假單.日期 = 萬年曆.日期 INNER JOIN
19 19
                        ras_Users ON 人事請假單.員工編號 = ras_Users.DIN
@@ -21,10 +21,35 @@
21 21
                 ORDER BY ras_Users.UserName, 人事請假單.員工編號"
22 22
         CmdSet_For_DGV()
23 23
     End Sub
24
+    Friend Sub SQL_休假統計()
25
+        ConnOpen()
26
+        SQL1 = "SELECT          CASE WHEN 請假類別 = '特休' THEN '特休' WHEN 請假類別 = '事假' THEN '事假' WHEN 請假類別 = '病假' THEN '病假'
27
+                                     WHEN 請假類別 = '婚假' THEN '婚假' WHEN 請假類別 = '喪假' THEN '喪假' ELSE '其他' END AS 假別, COUNT(*) AS 天數, 
28
+                                          SUM(CAST(申請時數 AS DECIMAL(10, 1))) AS 總時數
29
+                FROM       人事請假單
30
+                WHERE     (請假類別 NOT LIKE '國定假日') AND (請假類別 NOT LIKE '未到') AND (請假類別 NOT LIKE '離職') AND 
31
+                          (是否生效 LIKE '已核准') AND (員工編號 LIKE '" & PA & "') AND (日期 LIKE '" & Strings.Left(PA1, 4) & "%')
32
+                GROUP BY   CASE WHEN 請假類別 = '特休' THEN '特休' WHEN 請假類別 = '事假' THEN '事假' WHEN 請假類別 = '病假' THEN '病假'
33
+                                WHEN 請假類別 = '婚假' THEN '婚假' WHEN 請假類別 = '喪假' THEN '喪假' ELSE '其他' END"
34
+        CmdSet_For_DGV()
35
+    End Sub
36
+    Friend Sub SQL_休假統計1()
37
+        ConnOpen()
38
+        SQL1 = "SELECT          CASE WHEN 請假類別 = '特休' THEN '特休' WHEN 請假類別 = '事假' THEN '事假' WHEN 請假類別 = '病假' THEN '病假'
39
+                                     WHEN 請假類別 = '婚假' THEN '婚假' WHEN 請假類別 = '喪假' THEN '喪假' WHEN 請假類別 = '未到' THEN '未到'
40
+                                     WHEN 請假類別 = '離職' THEN '離職' ELSE '其他' END AS 假別, COUNT(*) AS 天數, 
41
+                                          SUM(CAST(申請時數 AS DECIMAL(10, 1))) AS 總時數
42
+                FROM       人事請假單
43
+                WHERE     (請假類別 NOT LIKE '國定假日') AND (員工編號 LIKE '" & PA & "') AND (日期 LIKE '" & Strings.Left(PA1, 7) & "%')
44
+                GROUP BY   CASE WHEN 請假類別 = '特休' THEN '特休' WHEN 請假類別 = '事假' THEN '事假' WHEN 請假類別 = '病假' THEN '病假'
45
+                                WHEN 請假類別 = '婚假' THEN '婚假' WHEN 請假類別 = '喪假' THEN '喪假' WHEN 請假類別 = '未到' THEN '未到' 
46
+                                WHEN 請假類別 = '離職' THEN '離職' ELSE '其他' END"
47
+        CmdSet_For_DGV()
48
+    End Sub
24 49
     Friend Sub SQL_休假清單()
25 50
         ConnOpen()
26 51
         SQL1 = "SELECT ras_Users.UserName AS 姓名, 人事請假單.員工編號 AS 編號, 人事請假單.日期, 萬年曆.星期, 人事請假單.請假類別, 
27
-                       人事請假單.事由, 人事請假單.是否生效, 人事請假單.核准人, 人事請假單.核准日期
52
+                       人事請假單.事由, 人事請假單.是否生效, 人事請假單.核准人, 人事請假單.核准日期, 圖片資料庫, 圖片編號
28 53
                 FROM   人事請假單 INNER JOIN
29 54
                        萬年曆 ON 人事請假單.日期 = 萬年曆.日期 INNER JOIN
30 55
                        ras_Users ON 人事請假單.員工編號 = ras_Users.DIN
@@ -172,6 +197,9 @@
172 197
     Friend Sub SQL_查詢最後一筆圖片編號()
173 198
         ConnOpen_圖庫SQL() : SQL1 = "SELECT TOP(1) 流水號 FROM 加班圖片庫 ORDER BY 流水號 DESC" : CmdSet_For_dr()
174 199
     End Sub
200
+    Friend Sub SQL_查詢最後一筆圖片編號1()
201
+        ConnOpen_圖庫SQL() : SQL1 = "SELECT TOP(1) 流水號 FROM 請假圖片庫 ORDER BY 流水號 DESC" : CmdSet_For_dr()
202
+    End Sub
175 203
     Friend Sub SQL_修改加班圖()
176 204
         ConnOpen_圖庫SQL()
177 205
         SQL1 = "UPDATE 加班圖片庫 SET 圖片 = @binary_file WHERE 流水號 LIKE N'" & 加班申請.圖片流水號_tb.Text & "'"
@@ -185,4 +213,17 @@
185 213
     Friend Sub SQL_加班圖()
186 214
         ConnOpen_圖庫SQL() : SQL1 = "SELECT 圖片 FROM 加班圖片庫 WHERE 流水號 LIKE '" & PA2 & "'" : CmdSet_For_dr()
187 215
     End Sub
216
+    Friend Sub SQL_請假圖()
217
+        ConnOpen_圖庫SQL() : SQL1 = "SELECT 圖片 FROM 請假圖片庫 WHERE 流水號 LIKE '" & PA2 & "'" : CmdSet_For_dr()
218
+    End Sub
219
+    Friend Sub SQL_修改請假圖()
220
+        ConnOpen_圖庫SQL()
221
+        SQL1 = "UPDATE 請假圖片庫 SET 圖片 = @binary_file WHERE 流水號 LIKE N'" & 休假申請.圖片流水號_tb.Text & "'"
222
+        CmdSet_For_dr_pic()
223
+    End Sub
224
+    Friend Sub SQL_新增請假圖()
225
+        ConnOpen_圖庫SQL()
226
+        SQL1 = "INSERT INTO 請假圖片庫 (流水號, 圖片) SELECT N'" & 休假申請.圖片流水號_tb.Text & "', @binary_file"
227
+        CmdSet_For_dr_pic()
228
+    End Sub
188 229
 End Module

+ 39
- 9
GRAMS-SYS/00、Module/SQL_系統設定.vb Ver arquivo

@@ -58,15 +58,18 @@
58 58
     End Sub
59 59
     Friend Sub SQL_請假申請修改()
60 60
         ConnOpen()
61
-        SQL1 = "UPDATE  人事請假單  SET   請假類別= N'" & 休假申請.請假類別_cb.Text & "',事由= NN'" & 休假申請.事由_tb.Text & "'
62
-                Where   日期 Like N'" & 休假核准.請假日期_tb.Text & "' AND 員工編號 = " & 休假核准.員工編號_tb.Text & ""
61
+        SQL1 = "UPDATE  人事請假單  SET   請假類別= N'" & 休假申請.請假類別_cb.Text & "',事由= N'" & 休假申請.事由_tb.Text & "', 
62
+                        圖片資料庫 = N'" & 休假申請.資料指定圖庫_tb.Text & "', 圖片編號 = N'" & 休假申請.圖片流水號_tb.Text & "', 
63
+                        申請時數 = N'" & 休假申請.請休假時數_cb.Text & "'
64
+                Where   日期 Like N'" & 休假申請.特假日期_tb.Text & "' AND 員工編號 = " & 休假申請.員工編號_tb.Text & ""
63 65
         CmdSet_For_dr()
64 66
     End Sub
65 67
     Friend Sub SQL_請假申請新增()
66 68
         ConnOpen()
67
-        SQL1 = "INSERT INTO 人事請假單  ( 員工編號, 日期, 請假類別,事由,是否生效)
69
+        SQL1 = "INSERT INTO 人事請假單  ( 員工編號, 日期, 請假類別,事由,是否生效, 圖片資料庫, 圖片編號, 申請時數)
68 70
                 VALUES (N'" & 休假申請.員工編號_tb.Text & "',N'" & 休假申請.特假日期_tb.Text & "',
69
-                 N'" & 休假申請.請假類別_cb.Text & "' , N'" & 休假申請.事由_tb.Text & "','申請中')"
71
+                        N'" & 休假申請.請假類別_cb.Text & "' , N'" & 休假申請.事由_tb.Text & "','申請中', 
72
+                        N'" & 休假申請.資料指定圖庫_tb.Text & "', N'" & 休假申請.圖片流水號_tb.Text & "', N'" & 休假申請.請休假時數_cb.Text & "')"
70 73
         CmdSet_For_dr()
71 74
     End Sub
72 75
     Friend Sub SQL_申請刪除()
@@ -76,7 +79,7 @@
76 79
     End Sub
77 80
     Friend Sub SQL_申請新增1()
78 81
         ConnOpen()
79
-        SQL1 = "INSERT INTO 人事請假單  ( 員工編號, 日期, 請假類別,事由,是否生效)
82
+        SQL1 = "INSERT INTO 人事請假單  (員工編號, 日期, 請假類別,事由,是否生效)
80 83
                 VALUES (N'" & 到離職管理.員工編號_tb.Text & "',N'" & 到離職管理.特假日期_tb.Text & "',
81 84
                  N'" & 到離職管理.請假類別_cb.Text & "' , N'" & 到離職管理.事由_tb.Text & "','申請中')"
82 85
         CmdSet_For_dr()
@@ -93,6 +96,27 @@
93 96
                 ORDER BY ID"
94 97
         CmdSet_For_DGV()
95 98
     End Sub
99
+    Friend Sub SQL_適應症設定()
100
+        ConnOpen_ERP()
101
+        SQL1 = "SELECT 編號, 適應症 FROM  業務對應適應症 ORDER BY 編號"
102
+        CmdSet_For_DGV()
103
+    End Sub
104
+    Friend Sub SQL_適應症刪除()
105
+        ConnOpen_ERP()
106
+        SQL1 = "DELETE FROM  業務對應適應症  WHERE 編號 LIKE N'" & 系統設定.適應症_編號_tb.Text & "'"
107
+        CmdSet_For_dr()
108
+    End Sub
109
+    Friend Sub SQL_適應症修改()
110
+        ConnOpen_ERP()
111
+        SQL1 = "UPDATE  業務對應適應症   SET   適應症 = N'" & PA1 & "' WHERE 編號 LIKE N'" & 系統設定.適應症_編號_tb.Text & "'"
112
+        CmdSet_For_dr()
113
+    End Sub
114
+    Friend Sub SQL_查詢最後一筆適應症()
115
+        ConnOpen_ERP() : SQL1 = "SELECT TOP(1) 編號 FROM 業務對應適應症 ORDER BY 編號 DESC" : CmdSet_For_dr()
116
+    End Sub
117
+    Friend Sub SQL_適應症新增()
118
+        ConnOpen_ERP() : SQL1 = "INSERT INTO  業務對應適應症 (編號, 適應症)  VALUES (N'" & 系統設定.適應症_編號_tb.Text & "',N'" & 系統設定.適應症_tb.Text & "')" : CmdSet_For_dr()
119
+    End Sub
96 120
     Friend Sub SQL_時段新增()
97 121
         ConnOpen() : SQL1 = "INSERT INTO  時段設定 (ID, 時段, 時段1, 時段2, 時段3, 時段4, 時段5, 時段6, 時段7, 時段8,
98 122
                                                      上午上班, 下午上班, 加班上班, 一段休息,  二段休息)
@@ -105,10 +129,9 @@
105 129
     End Sub
106 130
     Friend Sub SQL_時段修改()
107 131
         ConnOpen()
108
-        SQL1 = "UPDATE  時段設定   SET   ID= N'" & PA & "', 時段1= N'" & PA2 & "' ,  時段2= N'" & PA3 & "' , 時段3= N'" & PA4 & "', 時段4= N'" & PA5 & "',
109
-                                         時段5= N'" & PA6 & "', 時段6= N'" & PA7 & "' , 時段7=  N'" & PA8 & "',時段8= N'" & PA9 & "',
110
-                                         上午上班= N'" & PA10 & "',下午上班= N'" & PA11 & "',加班上班= N'" & PA12 & "',一段休息= N'" & PA13 & "',二段休息= N'" & PA14 & "'
111
-
132
+        SQL1 = "UPDATE  時段設定   SET   ID = N'" & PA & "', 時段1 = N'" & PA2 & "' ,  時段2 = N'" & PA3 & "' , 時段3 = N'" & PA4 & "', 時段4 = N'" & PA5 & "',
133
+                                         時段5 = N'" & PA6 & "', 時段6 = N'" & PA7 & "' , 時段7 =  N'" & PA8 & "',時段8 = N'" & PA9 & "',
134
+                                         上午上班 = N'" & PA10 & "',下午上班 = N'" & PA11 & "',加班上班 = N'" & PA12 & "',一段休息 = N'" & PA13 & "',二段休息 = N'" & PA14 & "'
112 135
                 WHERE 時段 LIKE N'" & 系統設定.時段_tb.Text & "'"
113 136
         CmdSet_For_dr()
114 137
     End Sub
@@ -265,4 +288,11 @@
265 288
                                          "' WHERE (DIN = N'" & 系統使用者管理.編號_tb.Text & "')"
266 289
         CmdSet_For_dr()
267 290
     End Sub
291
+    Friend Sub SQL_系統使用者修改()
292
+        ConnOpen()
293
+        SQL1 = "UPDATE  使用者權限管理表 SET  CC18 = N'" & PA1 & "', 月薪 = N'" & PA2 & "', 時薪 = N'" & PA3 & "', 主管加級 = N'" & PA4 & "', 職務加級 = N'" & PA5 & "', 
294
+                        勞保費 = N'" & PA6 & "', 健保費 = N'" & PA7 & "' 
295
+                WHERE  (DIN = N'" & PA & "')"
296
+        CmdSet_For_dr()
297
+    End Sub
268 298
 End Module

+ 14
- 1
GRAMS-SYS/00、Module/SQL_考勤系統.vb Ver arquivo

@@ -1,7 +1,20 @@
1 1
 Module SQL_考勤系統
2
+    Friend Sub SQL_人員薪資資料()
3
+        ConnOpen()
4
+        SQL1 = "SELECT   ras_Users.DIN AS [No.], ras_Users.DIN AS 編號, ras_Users.UserName AS 姓名, 使用者權限管理表.CC18 AS 時薪人員, 
5
+                         使用者權限管理表.月薪, 使用者權限管理表.時薪, 使用者權限管理表.主管加級, 使用者權限管理表.職務加級, 
6
+                         使用者權限管理表.勞保費, 使用者權限管理表.健保費
7
+                FROM     ras_Users INNER JOIN 使用者權限管理表 ON ras_Users.DIN = 使用者權限管理表.DIN
8
+                WHERE    IsLockedOut = 0 AND ras_Users.DIN NOT LIKE '18' AND ras_Users.DIN NOT LIKE '19' AND 
9
+                         ras_Users.DIN NOT LIKE '21' AND ras_Users.DIN NOT LIKE '90'
10
+                ORDER BY 編號"
11
+        CmdSet_For_DGV()
12
+    End Sub
2 13
     Friend Sub SQL_考勤明細表_人員()
3 14
         ConnOpen()
4
-        SQL1 = "SELECT   ras_Users.DIN AS [No.], ras_Users.DIN AS 編號, ras_Users.UserName AS 姓名, 使用者權限管理表.CC18
15
+        SQL1 = "SELECT   ras_Users.DIN AS [No.], ras_Users.DIN AS 編號, ras_Users.UserName AS 姓名, 使用者權限管理表.CC18, 
16
+                         使用者權限管理表.月薪, 使用者權限管理表.時薪, 使用者權限管理表.主管加級, 使用者權限管理表.職務加級, 
17
+                         使用者權限管理表.勞保費, 使用者權限管理表.健保費
5 18
                 FROM     ras_Users INNER JOIN
6 19
                         (SELECT DIN FROM ras_AttRecord WHERE (MONTH(Clock) = " & PA2 & ") AND (YEAR(Clock) = " & PA1 & ") GROUP BY DIN) AS QQQ 
7 20
                          ON ras_Users.DIN = QQQ.DIN INNER JOIN 使用者權限管理表 ON ras_Users.DIN = 使用者權限管理表.DIN

+ 134
- 48
GRAMS-SYS/02、休假管理/休假核准.Designer.vb Ver arquivo

@@ -40,10 +40,18 @@ Partial Class 休假核准
40 40
         Me.Label16 = New System.Windows.Forms.Label()
41 41
         Me.Label17 = New System.Windows.Forms.Label()
42 42
         Me.人員_dgv = New System.Windows.Forms.DataGridView()
43
-        Me.PictureBox1 = New System.Windows.Forms.PictureBox()
43
+        Me.PictureBox2 = New System.Windows.Forms.PictureBox()
44
+        Me.Panel1 = New System.Windows.Forms.Panel()
45
+        Me.圖片流水號_tb = New System.Windows.Forms.TextBox()
46
+        Me.資料指定圖庫_tb = New System.Windows.Forms.TextBox()
47
+        Me.Label2 = New System.Windows.Forms.Label()
48
+        Me.Label5 = New System.Windows.Forms.Label()
49
+        Me.假期統計_dgv = New System.Windows.Forms.DataGridView()
44 50
         CType(Me.月清單_DGV, System.ComponentModel.ISupportInitialize).BeginInit()
45 51
         CType(Me.人員_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
46
-        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
52
+        CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).BeginInit()
53
+        Me.Panel1.SuspendLayout()
54
+        CType(Me.假期統計_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
47 55
         Me.SuspendLayout()
48 56
         '
49 57
         '月清單_DGV
@@ -52,12 +60,13 @@ Partial Class 休假核准
52 60
             Or System.Windows.Forms.AnchorStyles.Left) _
53 61
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
54 62
         Me.月清單_DGV.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
63
+        Me.月清單_DGV.BackgroundColor = System.Drawing.Color.White
55 64
         Me.月清單_DGV.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
56
-        Me.月清單_DGV.Location = New System.Drawing.Point(9, 124)
65
+        Me.月清單_DGV.Location = New System.Drawing.Point(3, 123)
57 66
         Me.月清單_DGV.Name = "月清單_DGV"
58 67
         Me.月清單_DGV.RowHeadersWidth = 5
59 68
         Me.月清單_DGV.RowTemplate.Height = 24
60
-        Me.月清單_DGV.Size = New System.Drawing.Size(862, 472)
69
+        Me.月清單_DGV.Size = New System.Drawing.Size(546, 473)
61 70
         Me.月清單_DGV.TabIndex = 784
62 71
         '
63 72
         'Button1
@@ -65,9 +74,9 @@ Partial Class 休假核准
65 74
         Me.Button1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
66 75
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
67 76
         Me.Button1.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
68
-        Me.Button1.Location = New System.Drawing.Point(131, 99)
77
+        Me.Button1.Location = New System.Drawing.Point(3, 99)
69 78
         Me.Button1.Name = "Button1"
70
-        Me.Button1.Size = New System.Drawing.Size(740, 23)
79
+        Me.Button1.Size = New System.Drawing.Size(418, 23)
71 80
         Me.Button1.TabIndex = 783
72 81
         Me.Button1.Text = "休假核准"
73 82
         Me.Button1.UseVisualStyleBackColor = True
@@ -76,25 +85,25 @@ Partial Class 休假核准
76 85
         '
77 86
         Me.事由_tb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
78 87
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
79
-        Me.事由_tb.Location = New System.Drawing.Point(182, 54)
88
+        Me.事由_tb.Location = New System.Drawing.Point(54, 54)
80 89
         Me.事由_tb.Multiline = True
81 90
         Me.事由_tb.Name = "事由_tb"
82
-        Me.事由_tb.Size = New System.Drawing.Size(689, 44)
91
+        Me.事由_tb.Size = New System.Drawing.Size(367, 44)
83 92
         Me.事由_tb.TabIndex = 782
84 93
         '
85 94
         'Label7
86 95
         '
87 96
         Me.Label7.AutoSize = True
88
-        Me.Label7.Location = New System.Drawing.Point(132, 57)
97
+        Me.Label7.Location = New System.Drawing.Point(4, 57)
89 98
         Me.Label7.Name = "Label7"
90
-        Me.Label7.Size = New System.Drawing.Size(44, 16)
99
+        Me.Label7.Size = New System.Drawing.Size(43, 16)
91 100
         Me.Label7.TabIndex = 781
92 101
         Me.Label7.Text = "事    由"
93 102
         '
94 103
         '請假日期_tb
95 104
         '
96 105
         Me.請假日期_tb.Enabled = False
97
-        Me.請假日期_tb.Location = New System.Drawing.Point(436, 3)
106
+        Me.請假日期_tb.Location = New System.Drawing.Point(308, 3)
98 107
         Me.請假日期_tb.Name = "請假日期_tb"
99 108
         Me.請假日期_tb.Size = New System.Drawing.Size(113, 23)
100 109
         Me.請假日期_tb.TabIndex = 780
@@ -102,63 +111,63 @@ Partial Class 休假核准
102 111
         'Label6
103 112
         '
104 113
         Me.Label6.AutoSize = True
105
-        Me.Label6.Location = New System.Drawing.Point(374, 6)
114
+        Me.Label6.Location = New System.Drawing.Point(246, 6)
106 115
         Me.Label6.Name = "Label6"
107
-        Me.Label6.Size = New System.Drawing.Size(56, 16)
116
+        Me.Label6.Size = New System.Drawing.Size(55, 16)
108 117
         Me.Label6.TabIndex = 779
109
-        Me.Label6.Text = "假日期"
118
+        Me.Label6.Text = "假日期"
110 119
         '
111 120
         '員工編號_tb
112 121
         '
113 122
         Me.員工編號_tb.Enabled = False
114
-        Me.員工編號_tb.Location = New System.Drawing.Point(436, 29)
123
+        Me.員工編號_tb.Location = New System.Drawing.Point(189, 29)
115 124
         Me.員工編號_tb.Name = "員工編號_tb"
116
-        Me.員工編號_tb.Size = New System.Drawing.Size(113, 23)
125
+        Me.員工編號_tb.Size = New System.Drawing.Size(51, 23)
117 126
         Me.員工編號_tb.TabIndex = 778
118 127
         '
119 128
         'Label4
120 129
         '
121 130
         Me.Label4.AutoSize = True
122
-        Me.Label4.Location = New System.Drawing.Point(374, 32)
131
+        Me.Label4.Location = New System.Drawing.Point(127, 32)
123 132
         Me.Label4.Name = "Label4"
124
-        Me.Label4.Size = New System.Drawing.Size(56, 16)
133
+        Me.Label4.Size = New System.Drawing.Size(55, 16)
125 134
         Me.Label4.TabIndex = 777
126 135
         Me.Label4.Text = "員工編號"
127 136
         '
128 137
         '申請人_tb
129 138
         '
130 139
         Me.申請人_tb.Enabled = False
131
-        Me.申請人_tb.Location = New System.Drawing.Point(182, 29)
140
+        Me.申請人_tb.Location = New System.Drawing.Point(54, 29)
132 141
         Me.申請人_tb.Name = "申請人_tb"
133
-        Me.申請人_tb.Size = New System.Drawing.Size(186, 23)
142
+        Me.申請人_tb.Size = New System.Drawing.Size(71, 23)
134 143
         Me.申請人_tb.TabIndex = 776
135 144
         '
136 145
         'Label3
137 146
         '
138 147
         Me.Label3.AutoSize = True
139
-        Me.Label3.Location = New System.Drawing.Point(132, 32)
148
+        Me.Label3.Location = New System.Drawing.Point(4, 32)
140 149
         Me.Label3.Name = "Label3"
141
-        Me.Label3.Size = New System.Drawing.Size(44, 16)
150
+        Me.Label3.Size = New System.Drawing.Size(43, 16)
142 151
         Me.Label3.TabIndex = 775
143 152
         Me.Label3.Text = "申請人"
144 153
         '
145 154
         'Label1
146 155
         '
147 156
         Me.Label1.AutoSize = True
148
-        Me.Label1.Location = New System.Drawing.Point(565, 31)
157
+        Me.Label1.Location = New System.Drawing.Point(247, 31)
149 158
         Me.Label1.Name = "Label1"
150
-        Me.Label1.Size = New System.Drawing.Size(32, 16)
159
+        Me.Label1.Size = New System.Drawing.Size(55, 16)
151 160
         Me.Label1.TabIndex = 774
152
-        Me.Label1.Text = "類別"
161
+        Me.Label1.Text = "類        別"
153 162
         '
154 163
         '請假類別_cb
155 164
         '
156 165
         Me.請假類別_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
157 166
         Me.請假類別_cb.FormattingEnabled = True
158 167
         Me.請假類別_cb.Items.AddRange(New Object() {"特休", "病假", "婚嫁", "喪假", "事假"})
159
-        Me.請假類別_cb.Location = New System.Drawing.Point(617, 28)
168
+        Me.請假類別_cb.Location = New System.Drawing.Point(308, 28)
160 169
         Me.請假類別_cb.Name = "請假類別_cb"
161
-        Me.請假類別_cb.Size = New System.Drawing.Size(254, 24)
170
+        Me.請假類別_cb.Size = New System.Drawing.Size(113, 24)
162 171
         Me.請假類別_cb.TabIndex = 773
163 172
         '
164 173
         '月份_cb
@@ -166,7 +175,7 @@ Partial Class 休假核准
166 175
         Me.月份_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
167 176
         Me.月份_cb.FormattingEnabled = True
168 177
         Me.月份_cb.Items.AddRange(New Object() {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"})
169
-        Me.月份_cb.Location = New System.Drawing.Point(297, 3)
178
+        Me.月份_cb.Location = New System.Drawing.Point(169, 3)
170 179
         Me.月份_cb.Name = "月份_cb"
171 180
         Me.月份_cb.Size = New System.Drawing.Size(71, 24)
172 181
         Me.月份_cb.TabIndex = 772
@@ -176,7 +185,7 @@ Partial Class 休假核准
176 185
         Me.年份_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
177 186
         Me.年份_cb.FormattingEnabled = True
178 187
         Me.年份_cb.Items.AddRange(New Object() {"2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030"})
179
-        Me.年份_cb.Location = New System.Drawing.Point(182, 3)
188
+        Me.年份_cb.Location = New System.Drawing.Point(54, 3)
180 189
         Me.年份_cb.Name = "年份_cb"
181 190
         Me.年份_cb.Size = New System.Drawing.Size(71, 24)
182 191
         Me.年份_cb.TabIndex = 771
@@ -184,18 +193,18 @@ Partial Class 休假核准
184 193
         'Label16
185 194
         '
186 195
         Me.Label16.AutoSize = True
187
-        Me.Label16.Location = New System.Drawing.Point(259, 6)
196
+        Me.Label16.Location = New System.Drawing.Point(131, 6)
188 197
         Me.Label16.Name = "Label16"
189
-        Me.Label16.Size = New System.Drawing.Size(32, 16)
198
+        Me.Label16.Size = New System.Drawing.Size(31, 16)
190 199
         Me.Label16.TabIndex = 770
191 200
         Me.Label16.Text = "月份"
192 201
         '
193 202
         'Label17
194 203
         '
195 204
         Me.Label17.AutoSize = True
196
-        Me.Label17.Location = New System.Drawing.Point(133, 6)
205
+        Me.Label17.Location = New System.Drawing.Point(5, 6)
197 206
         Me.Label17.Name = "Label17"
198
-        Me.Label17.Size = New System.Drawing.Size(41, 16)
207
+        Me.Label17.Size = New System.Drawing.Size(40, 16)
199 208
         Me.Label17.TabIndex = 769
200 209
         Me.Label17.Text = "年   份"
201 210
         '
@@ -207,7 +216,7 @@ Partial Class 休假核准
207 216
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
208 217
         Me.人員_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
209 218
         Me.人員_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
210
-        Me.人員_dgv.Location = New System.Drawing.Point(651, 161)
219
+        Me.人員_dgv.Location = New System.Drawing.Point(6, 32)
211 220
         Me.人員_dgv.Name = "人員_dgv"
212 221
         Me.人員_dgv.RowHeadersWidth = 5
213 222
         Me.人員_dgv.RowTemplate.Height = 24
@@ -215,23 +224,90 @@ Partial Class 休假核准
215 224
         Me.人員_dgv.TabIndex = 768
216 225
         Me.人員_dgv.Visible = False
217 226
         '
218
-        'PictureBox1
227
+        'PictureBox2
219 228
         '
220
-        Me.PictureBox1.BackgroundImage = Global.HSKIN_MIS_SYS.My.Resources.Resources.logo0001
221
-        Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
222
-        Me.PictureBox1.Location = New System.Drawing.Point(9, 3)
223
-        Me.PictureBox1.Name = "PictureBox1"
224
-        Me.PictureBox1.Size = New System.Drawing.Size(120, 120)
225
-        Me.PictureBox1.TabIndex = 785
226
-        Me.PictureBox1.TabStop = False
229
+        Me.PictureBox2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
230
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
231
+        Me.PictureBox2.BackgroundImage = Global.HSKIN_MIS_SYS.My.Resources.Resources.Picture
232
+        Me.PictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
233
+        Me.PictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
234
+        Me.PictureBox2.Location = New System.Drawing.Point(552, 2)
235
+        Me.PictureBox2.Name = "PictureBox2"
236
+        Me.PictureBox2.Size = New System.Drawing.Size(392, 594)
237
+        Me.PictureBox2.TabIndex = 1407
238
+        Me.PictureBox2.TabStop = False
239
+        '
240
+        'Panel1
241
+        '
242
+        Me.Panel1.Controls.Add(Me.圖片流水號_tb)
243
+        Me.Panel1.Controls.Add(Me.資料指定圖庫_tb)
244
+        Me.Panel1.Controls.Add(Me.人員_dgv)
245
+        Me.Panel1.Location = New System.Drawing.Point(168, 174)
246
+        Me.Panel1.Name = "Panel1"
247
+        Me.Panel1.Size = New System.Drawing.Size(200, 100)
248
+        Me.Panel1.TabIndex = 1408
249
+        '
250
+        '圖片流水號_tb
251
+        '
252
+        Me.圖片流水號_tb.Enabled = False
253
+        Me.圖片流水號_tb.Location = New System.Drawing.Point(98, 3)
254
+        Me.圖片流水號_tb.Name = "圖片流水號_tb"
255
+        Me.圖片流水號_tb.Size = New System.Drawing.Size(94, 23)
256
+        Me.圖片流水號_tb.TabIndex = 1646
257
+        '
258
+        '資料指定圖庫_tb
259
+        '
260
+        Me.資料指定圖庫_tb.Enabled = False
261
+        Me.資料指定圖庫_tb.Location = New System.Drawing.Point(3, 3)
262
+        Me.資料指定圖庫_tb.Name = "資料指定圖庫_tb"
263
+        Me.資料指定圖庫_tb.Size = New System.Drawing.Size(94, 23)
264
+        Me.資料指定圖庫_tb.TabIndex = 1645
265
+        '
266
+        'Label2
267
+        '
268
+        Me.Label2.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
269
+        Me.Label2.AutoSize = True
270
+        Me.Label2.Location = New System.Drawing.Point(11, 599)
271
+        Me.Label2.Name = "Label2"
272
+        Me.Label2.Size = New System.Drawing.Size(502, 96)
273
+        Me.Label2.TabIndex = 1409
274
+        Me.Label2.Text = "勞工喪假規定: " & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "一、父母、養父母、繼父母、配偶喪亡者,給予喪假八日,工資照給。" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "二、祖父母、子女、配偶之父母、配偶之養父母或繼父母喪亡者,給予喪假六日,工資" &
275
+    "照給。 " & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "三、曾祖父母、兄弟姊妹、配偶之祖父母喪亡者,給予喪假三日,工資照給。" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "勞工病假規定 :" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "只要一年內未請超過30天病假,當天薪資就是折半發給。"
276
+        '
277
+        'Label5
278
+        '
279
+        Me.Label5.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
280
+        Me.Label5.AutoSize = True
281
+        Me.Label5.Location = New System.Drawing.Point(534, 599)
282
+        Me.Label5.Name = "Label5"
283
+        Me.Label5.Size = New System.Drawing.Size(394, 96)
284
+        Me.Label5.TabIndex = 1410
285
+        Me.Label5.Text = "勞工婚假規定: " & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "勞工結婚者給予婚假八日,工資照給。』 前開婚假應自結婚之日前十日起" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "三個月內請畢。 但經雇主同意者,得於一年內請畢,並自即日生效。" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "勞工婚" &
286
+    "假規定: " & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "勞工因有事故必須親自處理者,得請事假,一年內合計不得超過十四日。 " & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "事假期間不給工資。"
287
+        '
288
+        '假期統計_dgv
289
+        '
290
+        Me.假期統計_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
291
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
292
+        Me.假期統計_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
293
+        Me.假期統計_dgv.BackgroundColor = System.Drawing.Color.White
294
+        Me.假期統計_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
295
+        Me.假期統計_dgv.Location = New System.Drawing.Point(423, 2)
296
+        Me.假期統計_dgv.Name = "假期統計_dgv"
297
+        Me.假期統計_dgv.RowHeadersWidth = 5
298
+        Me.假期統計_dgv.RowTemplate.Height = 24
299
+        Me.假期統計_dgv.Size = New System.Drawing.Size(126, 120)
300
+        Me.假期統計_dgv.TabIndex = 1411
227 301
         '
228 302
         '休假核准
229 303
         '
230 304
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
231 305
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
232
-        Me.ClientSize = New System.Drawing.Size(881, 600)
233
-        Me.Controls.Add(Me.PictureBox1)
234
-        Me.Controls.Add(Me.月清單_DGV)
306
+        Me.ClientSize = New System.Drawing.Size(946, 697)
307
+        Me.Controls.Add(Me.假期統計_dgv)
308
+        Me.Controls.Add(Me.Label5)
309
+        Me.Controls.Add(Me.Label2)
310
+        Me.Controls.Add(Me.PictureBox2)
235 311
         Me.Controls.Add(Me.Button1)
236 312
         Me.Controls.Add(Me.事由_tb)
237 313
         Me.Controls.Add(Me.Label7)
@@ -247,7 +323,8 @@ Partial Class 休假核准
247 323
         Me.Controls.Add(Me.年份_cb)
248 324
         Me.Controls.Add(Me.Label16)
249 325
         Me.Controls.Add(Me.Label17)
250
-        Me.Controls.Add(Me.人員_dgv)
326
+        Me.Controls.Add(Me.月清單_DGV)
327
+        Me.Controls.Add(Me.Panel1)
251 328
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
252 329
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
253 330
         Me.Name = "休假核准"
@@ -255,7 +332,10 @@ Partial Class 休假核准
255 332
         Me.Text = "休假核准"
256 333
         CType(Me.月清單_DGV, System.ComponentModel.ISupportInitialize).EndInit()
257 334
         CType(Me.人員_dgv, System.ComponentModel.ISupportInitialize).EndInit()
258
-        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
335
+        CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).EndInit()
336
+        Me.Panel1.ResumeLayout(False)
337
+        Me.Panel1.PerformLayout()
338
+        CType(Me.假期統計_dgv, System.ComponentModel.ISupportInitialize).EndInit()
259 339
         Me.ResumeLayout(False)
260 340
         Me.PerformLayout()
261 341
 
@@ -278,5 +358,11 @@ Partial Class 休假核准
278 358
     Friend WithEvents Label16 As Label
279 359
     Friend WithEvents Label17 As Label
280 360
     Friend WithEvents 人員_dgv As DataGridView
281
-    Friend WithEvents PictureBox1 As PictureBox
361
+    Friend WithEvents PictureBox2 As PictureBox
362
+    Friend WithEvents Panel1 As Panel
363
+    Friend WithEvents 圖片流水號_tb As TextBox
364
+    Friend WithEvents 資料指定圖庫_tb As TextBox
365
+    Friend WithEvents Label2 As Label
366
+    Friend WithEvents Label5 As Label
367
+    Friend WithEvents 假期統計_dgv As DataGridView
282 368
 End Class

+ 29
- 11
GRAMS-SYS/02、休假管理/休假核准.vb Ver arquivo

@@ -1,6 +1,7 @@
1
-Public Class 休假核准
2
-    ReadOnly ds, ds1 As New DataSet
1
+Imports System.IO
2
+Public Class 休假核准
3 3
     Private Sub 讀取人員資料表()
4
+        Dim ds As New DataSet
4 5
         人員_dgv.DataSource = Nothing : ds.Clear()
5 6
         人員_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
6 7
         人員_dgv.ColumnHeadersHeight = 25
@@ -19,6 +20,7 @@
19 20
         conn.Close()
20 21
     End Sub
21 22
     Private Sub Set_考勤明細()
23
+        Dim ds1 As New DataSet
22 24
         月清單_DGV.DataSource = Nothing : ds1.Clear()
23 25
         月清單_DGV.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
24 26
         月清單_DGV.ColumnHeadersHeight = 40
@@ -28,7 +30,8 @@
28 30
 
29 31
         月清單_DGV.Columns(0).FillWeight = 80 : 月清單_DGV.Columns(1).FillWeight = 40 : 月清單_DGV.Columns(2).FillWeight = 90 : 月清單_DGV.Columns(3).FillWeight = 65
30 32
         月清單_DGV.Columns(4).FillWeight = 55 : 月清單_DGV.Columns(5).FillWeight = 200 : 月清單_DGV.Columns(6).FillWeight = 80 : 月清單_DGV.Columns(7).FillWeight = 80
31
-        月清單_DGV.Columns(8).FillWeight = 80
33
+        月清單_DGV.Columns(8).FillWeight = 80 : 月清單_DGV.Columns("圖片資料庫").Visible = False : 月清單_DGV.Columns("圖片編號").Visible = False
34
+        月清單_DGV.Columns("核准人").Visible = False : 月清單_DGV.Columns("核准日期").Visible = False : 月清單_DGV.Columns("是否生效").Visible = False
32 35
         For I As Integer = 0 To 月清單_DGV.Rows.Count - 1
33 36
             If 月清單_DGV.Rows(I).Cells("星期").Value.ToString = "星期六" Then : 月清單_DGV.Rows(I).DefaultCellStyle.BackColor = Color.LightPink
34 37
             ElseIf 月清單_DGV.Rows(I).Cells("星期").Value.ToString = "星期日" Then : 月清單_DGV.Rows(I).DefaultCellStyle.BackColor = Color.LightPink
@@ -38,6 +41,15 @@
38 41
             End If
39 42
         Next
40 43
     End Sub
44
+    Private Sub Set_假期統計()
45
+        Dim ds As New DataSet
46
+        假期統計_dgv.DataSource = Nothing : ds.Clear()
47
+        假期統計_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
48
+        假期統計_dgv.ColumnHeadersHeight = 25
49
+        假期統計_dgv.AllowUserToAddRows = False
50
+        PA = 員工編號_tb.Text : PA1 = 請假日期_tb.Text : SQL_休假統計()
51
+        da.Fill(ds) : 假期統計_dgv.DataSource = ds.Tables(0) : conn.Close()
52
+    End Sub
41 53
     Private Sub 特休核准_Load(sender As Object, e As EventArgs) Handles MyBase.Load
42 54
         年份_下拉表單資料載入()
43 55
         年份_cb.Text = Year(Today) : 月份_cb.SelectedIndex = Month(Today) - 1 : 請假類別_cb.SelectedIndex = 0
@@ -52,15 +64,21 @@
52 64
     End Sub
53 65
     Private Sub 月清單_DGV_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles 月清單_DGV.CellClick
54 66
         If e.RowIndex = -1 Then : Else
55
-            If 月清單_DGV.Rows(e.RowIndex).Cells("星期").Value.ToString = "星期六" Or 月清單_DGV.Rows(e.RowIndex).Cells("星期").Value.ToString = "星期日" Or
56
-                月清單_DGV.Rows(e.RowIndex).Cells("請假類別").Value.ToString = "國定假日" Then
57
-                MsgBox("星期六/星期日或國定假日不可以申請特休!!")
58
-                請假日期_tb.Text = ""
59
-                事由_tb.Text = ""
67
+            員工編號_tb.Text = 月清單_DGV("編號", e.RowIndex).Value.ToString : 申請人_tb.Text = 月清單_DGV("姓名", e.RowIndex).Value.ToString
68
+            請假日期_tb.Text = 月清單_DGV("日期", e.RowIndex).Value.ToString : 事由_tb.Text = 月清單_DGV("事由", e.RowIndex).Value.ToString
69
+            請假類別_cb.Text = 月清單_DGV("請假類別", e.RowIndex).Value.ToString
70
+            資料指定圖庫_tb.Text = 月清單_DGV("圖片資料庫", e.RowIndex).Value.ToString : 圖片流水號_tb.Text = 月清單_DGV("圖片編號", e.RowIndex).Value.ToString
71
+            '------------驗貨報告讀取--------------------------------------------------------------------------------------------
72
+            If 資料指定圖庫_tb.Text <> "" And 圖片流水號_tb.Text <> "" Then
73
+                圖片庫 = 資料指定圖庫_tb.Text : SQL_連線字串_圖片資料庫() : PA2 = 圖片流水號_tb.Text
74
+                SQL_請假圖() : PictureBox2.Image = Nothing
75
+                While dr.Read() = True
76
+                    Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
77
+                    Dim oStream As New MemoryStream(bytes) : PictureBox2.Image = Bitmap.FromStream(oStream)
78
+                End While : conn.Close() : PictureBox2.SizeMode = 4
60 79
             Else
61
-                員工編號_tb.Text = 月清單_DGV("編號", e.RowIndex).Value.ToString : 申請人_tb.Text = 月清單_DGV("姓名", e.RowIndex).Value.ToString
62
-                請假日期_tb.Text = 月清單_DGV("日期", e.RowIndex).Value.ToString : 事由_tb.Text = 月清單_DGV("事由", e.RowIndex).Value.ToString
63
-            End If
80
+                PictureBox2.Image = Nothing
81
+            End If : Set_假期統計()
64 82
         End If
65 83
     End Sub
66 84
     Private Sub Set_日期格式轉換()

+ 95
- 13
GRAMS-SYS/02、休假管理/休假申請.Designer.vb Ver arquivo

@@ -22,7 +22,13 @@ Partial Class 休假申請
22 22
     '請勿使用程式碼編輯器進行修改。
23 23
     <System.Diagnostics.DebuggerStepThrough()>
24 24
     Private Sub InitializeComponent()
25
+        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
25 26
         Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
+        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
+        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
+        Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26 32
         Me.月清單_DGV = New System.Windows.Forms.DataGridView()
27 33
         Me.申請_bt = New System.Windows.Forms.Button()
28 34
         Me.事由_tb = New System.Windows.Forms.TextBox()
@@ -44,6 +50,8 @@ Partial Class 休假申請
44 50
         Me.刪除_bt = New System.Windows.Forms.Button()
45 51
         Me.圖片導入系統_bt = New System.Windows.Forms.Button()
46 52
         Me.Panel1 = New System.Windows.Forms.Panel()
53
+        Me.Label5 = New System.Windows.Forms.Label()
54
+        Me.請休假時數_cb = New System.Windows.Forms.ComboBox()
47 55
         Me.視窗2_pl = New System.Windows.Forms.Panel()
48 56
         Me.Panel3 = New System.Windows.Forms.Panel()
49 57
         Me.確定導入_bt = New System.Windows.Forms.Button()
@@ -77,12 +85,36 @@ Partial Class 休假申請
77 85
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
78 86
         Me.月清單_DGV.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
79 87
         Me.月清單_DGV.BackgroundColor = System.Drawing.Color.White
88
+        DataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
89
+        DataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control
90
+        DataGridViewCellStyle1.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
91
+        DataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText
92
+        DataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight
93
+        DataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText
94
+        DataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
95
+        Me.月清單_DGV.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle1
80 96
         Me.月清單_DGV.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
97
+        DataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
98
+        DataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window
99
+        DataGridViewCellStyle2.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
100
+        DataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText
101
+        DataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight
102
+        DataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText
103
+        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[False]
104
+        Me.月清單_DGV.DefaultCellStyle = DataGridViewCellStyle2
81 105
         Me.月清單_DGV.Location = New System.Drawing.Point(189, 98)
82 106
         Me.月清單_DGV.Name = "月清單_DGV"
107
+        DataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
108
+        DataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control
109
+        DataGridViewCellStyle3.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
110
+        DataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText
111
+        DataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight
112
+        DataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText
113
+        DataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
114
+        Me.月清單_DGV.RowHeadersDefaultCellStyle = DataGridViewCellStyle3
83 115
         Me.月清單_DGV.RowHeadersWidth = 5
84 116
         Me.月清單_DGV.RowTemplate.Height = 24
85
-        Me.月清單_DGV.Size = New System.Drawing.Size(748, 500)
117
+        Me.月清單_DGV.Size = New System.Drawing.Size(493, 500)
86 118
         Me.月清單_DGV.TabIndex = 801
87 119
         '
88 120
         '申請_bt
@@ -90,7 +122,7 @@ Partial Class 休假申請
90 122
         Me.申請_bt.BackgroundImage = Global.HSKIN_MIS_SYS.My.Resources.Resources.SAVER
91 123
         Me.申請_bt.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
92 124
         Me.申請_bt.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
93
-        Me.申請_bt.Location = New System.Drawing.Point(603, 4)
125
+        Me.申請_bt.Location = New System.Drawing.Point(681, 4)
94 126
         Me.申請_bt.Name = "申請_bt"
95 127
         Me.申請_bt.Size = New System.Drawing.Size(46, 46)
96 128
         Me.申請_bt.TabIndex = 800
@@ -104,7 +136,7 @@ Partial Class 休假申請
104 136
         Me.事由_tb.Location = New System.Drawing.Point(234, 52)
105 137
         Me.事由_tb.Multiline = True
106 138
         Me.事由_tb.Name = "事由_tb"
107
-        Me.事由_tb.Size = New System.Drawing.Size(703, 44)
139
+        Me.事由_tb.Size = New System.Drawing.Size(448, 44)
108 140
         Me.事由_tb.TabIndex = 799
109 141
         '
110 142
         'Label7
@@ -239,15 +271,39 @@ Partial Class 休假申請
239 271
         '
240 272
         '人員_dgv
241 273
         '
242
-        DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
243
-        Me.人員_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
274
+        DataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
275
+        Me.人員_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle4
244 276
         Me.人員_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
245 277
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
246 278
         Me.人員_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
247 279
         Me.人員_dgv.BackgroundColor = System.Drawing.Color.White
280
+        DataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
281
+        DataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control
282
+        DataGridViewCellStyle5.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
283
+        DataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText
284
+        DataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight
285
+        DataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText
286
+        DataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
287
+        Me.人員_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle5
248 288
         Me.人員_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
289
+        DataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
290
+        DataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Window
291
+        DataGridViewCellStyle6.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
292
+        DataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.ControlText
293
+        DataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight
294
+        DataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText
295
+        DataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.[False]
296
+        Me.人員_dgv.DefaultCellStyle = DataGridViewCellStyle6
249 297
         Me.人員_dgv.Location = New System.Drawing.Point(2, 3)
250 298
         Me.人員_dgv.Name = "人員_dgv"
299
+        DataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
300
+        DataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control
301
+        DataGridViewCellStyle7.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
302
+        DataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText
303
+        DataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight
304
+        DataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText
305
+        DataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
306
+        Me.人員_dgv.RowHeadersDefaultCellStyle = DataGridViewCellStyle7
251 307
         Me.人員_dgv.RowHeadersWidth = 5
252 308
         Me.人員_dgv.RowTemplate.Height = 24
253 309
         Me.人員_dgv.Size = New System.Drawing.Size(186, 595)
@@ -260,7 +316,7 @@ Partial Class 休假申請
260 316
         Me.PictureBox1.BackgroundImage = Global.HSKIN_MIS_SYS.My.Resources.Resources.Picture
261 317
         Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
262 318
         Me.PictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
263
-        Me.PictureBox1.Location = New System.Drawing.Point(938, 53)
319
+        Me.PictureBox1.Location = New System.Drawing.Point(683, 53)
264 320
         Me.PictureBox1.Name = "PictureBox1"
265 321
         Me.PictureBox1.Size = New System.Drawing.Size(345, 545)
266 322
         Me.PictureBox1.TabIndex = 1406
@@ -271,7 +327,7 @@ Partial Class 休假申請
271 327
         Me.刪除_bt.BackgroundImage = Global.HSKIN_MIS_SYS.My.Resources.Resources.GarbageEmpty
272 328
         Me.刪除_bt.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
273 329
         Me.刪除_bt.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
274
-        Me.刪除_bt.Location = New System.Drawing.Point(655, 4)
330
+        Me.刪除_bt.Location = New System.Drawing.Point(733, 4)
275 331
         Me.刪除_bt.Name = "刪除_bt"
276 332
         Me.刪除_bt.Size = New System.Drawing.Size(46, 46)
277 333
         Me.刪除_bt.TabIndex = 1408
@@ -282,7 +338,7 @@ Partial Class 休假申請
282 338
         Me.圖片導入系統_bt.BackgroundImage = Global.HSKIN_MIS_SYS.My.Resources.Resources.Add_Image
283 339
         Me.圖片導入系統_bt.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
284 340
         Me.圖片導入系統_bt.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
285
-        Me.圖片導入系統_bt.Location = New System.Drawing.Point(706, 4)
341
+        Me.圖片導入系統_bt.Location = New System.Drawing.Point(784, 4)
286 342
         Me.圖片導入系統_bt.Name = "圖片導入系統_bt"
287 343
         Me.圖片導入系統_bt.Size = New System.Drawing.Size(120, 46)
288 344
         Me.圖片導入系統_bt.TabIndex = 1407
@@ -290,6 +346,8 @@ Partial Class 休假申請
290 346
         '
291 347
         'Panel1
292 348
         '
349
+        Me.Panel1.Controls.Add(Me.Label5)
350
+        Me.Panel1.Controls.Add(Me.請休假時數_cb)
293 351
         Me.Panel1.Controls.Add(Me.視窗2_pl)
294 352
         Me.Panel1.Controls.Add(Me.刪除_bt)
295 353
         Me.Panel1.Controls.Add(Me.人員_dgv)
@@ -297,7 +355,6 @@ Partial Class 休假申請
297 355
         Me.Panel1.Controls.Add(Me.Label17)
298 356
         Me.Panel1.Controls.Add(Me.PictureBox1)
299 357
         Me.Panel1.Controls.Add(Me.Label16)
300
-        Me.Panel1.Controls.Add(Me.月清單_DGV)
301 358
         Me.Panel1.Controls.Add(Me.年份_cb)
302 359
         Me.Panel1.Controls.Add(Me.申請_bt)
303 360
         Me.Panel1.Controls.Add(Me.月份_cb)
@@ -311,12 +368,34 @@ Partial Class 休假申請
311 368
         Me.Panel1.Controls.Add(Me.申請人_tb)
312 369
         Me.Panel1.Controls.Add(Me.員工編號_tb)
313 370
         Me.Panel1.Controls.Add(Me.Label4)
371
+        Me.Panel1.Controls.Add(Me.月清單_DGV)
314 372
         Me.Panel1.Dock = System.Windows.Forms.DockStyle.Fill
315 373
         Me.Panel1.Location = New System.Drawing.Point(0, 0)
316 374
         Me.Panel1.Name = "Panel1"
317
-        Me.Panel1.Size = New System.Drawing.Size(1285, 600)
375
+        Me.Panel1.Size = New System.Drawing.Size(1030, 600)
318 376
         Me.Panel1.TabIndex = 1409
319 377
         '
378
+        'Label5
379
+        '
380
+        Me.Label5.AutoSize = True
381
+        Me.Label5.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
382
+        Me.Label5.Location = New System.Drawing.Point(606, 8)
383
+        Me.Label5.Name = "Label5"
384
+        Me.Label5.Size = New System.Drawing.Size(67, 16)
385
+        Me.Label5.TabIndex = 1411
386
+        Me.Label5.Text = "請休假時數"
387
+        '
388
+        '請休假時數_cb
389
+        '
390
+        Me.請休假時數_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
391
+        Me.請休假時數_cb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
392
+        Me.請休假時數_cb.FormattingEnabled = True
393
+        Me.請休假時數_cb.Items.AddRange(New Object() {"", "1.0小時", "1.5小時", "2.0小時", "2.5小時", "3.0小時", "3.5小時", "4.0小時", "4.5小時", "5.0小時", "5.5小時", "6.0小時", "6.5小時", "7.0小時", "7.5小時", "8.0小時"})
394
+        Me.請休假時數_cb.Location = New System.Drawing.Point(607, 26)
395
+        Me.請休假時數_cb.Name = "請休假時數_cb"
396
+        Me.請休假時數_cb.Size = New System.Drawing.Size(66, 24)
397
+        Me.請休假時數_cb.TabIndex = 1410
398
+        '
320 399
         '視窗2_pl
321 400
         '
322 401
         Me.視窗2_pl.BackColor = System.Drawing.Color.White
@@ -324,7 +403,7 @@ Partial Class 休假申請
324 403
         Me.視窗2_pl.Controls.Add(Me.Panel3)
325 404
         Me.視窗2_pl.Controls.Add(Me.Label2)
326 405
         Me.視窗2_pl.Controls.Add(Me.CanceL2_bt)
327
-        Me.視窗2_pl.Location = New System.Drawing.Point(345, 69)
406
+        Me.視窗2_pl.Location = New System.Drawing.Point(301, 106)
328 407
         Me.視窗2_pl.Name = "視窗2_pl"
329 408
         Me.視窗2_pl.Size = New System.Drawing.Size(527, 479)
330 409
         Me.視窗2_pl.TabIndex = 1409
@@ -398,6 +477,7 @@ Partial Class 休假申請
398 477
         Me.檔案名稱_tb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
399 478
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
400 479
         Me.檔案名稱_tb.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
480
+        Me.檔案名稱_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
401 481
         Me.檔案名稱_tb.ForeColor = System.Drawing.Color.Black
402 482
         Me.檔案名稱_tb.Location = New System.Drawing.Point(3, 386)
403 483
         Me.檔案名稱_tb.Multiline = True
@@ -487,9 +567,9 @@ Partial Class 休假申請
487 567
         '
488 568
         Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 12.0!)
489 569
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
490
-        Me.ClientSize = New System.Drawing.Size(1285, 600)
491
-        Me.Controls.Add(Me.Panel2)
570
+        Me.ClientSize = New System.Drawing.Size(1030, 600)
492 571
         Me.Controls.Add(Me.Panel1)
572
+        Me.Controls.Add(Me.Panel2)
493 573
         Me.Name = "休假申請"
494 574
         Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
495 575
         Me.Text = "休假申請"
@@ -546,4 +626,6 @@ Partial Class 休假申請
546 626
     Friend WithEvents 資料指定圖庫_tb As TextBox
547 627
     Friend WithEvents 檔案路徑2_tb As TextBox
548 628
     Friend WithEvents 預設圖片庫_tb As TextBox
629
+    Friend WithEvents 請休假時數_cb As ComboBox
630
+    Friend WithEvents Label5 As Label
549 631
 End Class

+ 84
- 17
GRAMS-SYS/02、休假管理/休假申請.vb Ver arquivo

@@ -1,6 +1,8 @@
1
-Public Class 休假申請
1
+Imports System.IO
2
+
3
+Public Class 休假申請
2 4
     ReadOnly ds, ds1 As New DataSet
3
-    Dim 生效 As String
5
+    Dim 生效 As String : Dim 圖片新建, 剛開啟 As Boolean
4 6
     Private Sub 讀取人員資料表()
5 7
         人員_dgv.DataSource = Nothing : ds.Clear()
6 8
         人員_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
@@ -9,6 +11,8 @@
9 11
         SQL_考勤明細表_人員()
10 12
         da.Fill(ds) : 人員_dgv.DataSource = ds.Tables(0) : conn.Close()
11 13
         人員_dgv.Columns(0).FillWeight = 70 : 人員_dgv.Columns(1).FillWeight = 80 : 人員_dgv.Columns(2).FillWeight = 100 : 人員_dgv.Columns(3).Visible = False
14
+        人員_dgv.Columns(4).Visible = False : 人員_dgv.Columns(5).Visible = False : 人員_dgv.Columns(6).Visible = False : 人員_dgv.Columns(7).Visible = False
15
+        人員_dgv.Columns(8).Visible = False : 人員_dgv.Columns(9).Visible = False
12 16
         For i As Integer = 0 To 人員_dgv.Rows.Count - 1
13 17
             人員_dgv.Rows(i).Cells("No.").Value = i + 1
14 18
         Next
@@ -28,6 +32,8 @@
28 32
         da.Fill(ds1) : 月清單_DGV.DataSource = ds1.Tables(0) : conn.Close()
29 33
 
30 34
         月清單_DGV.Columns(0).FillWeight = 80 : 月清單_DGV.Columns(1).FillWeight = 80 : 月清單_DGV.Columns(2).FillWeight = 90 : 月清單_DGV.Columns(3).FillWeight = 90
35
+        月清單_DGV.Columns("圖片資料庫").Visible = False : 月清單_DGV.Columns("圖片編號").Visible = False : 月清單_DGV.Columns(5).Visible = False
36
+        月清單_DGV.Columns(6).Visible = False : 月清單_DGV.Columns("申請時數").FillWeight = 50
31 37
         For I As Integer = 0 To 月清單_DGV.Rows.Count - 1
32 38
             If 月清單_DGV.Rows(I).Cells("星期").Value.ToString = "星期六" Then : 月清單_DGV.Rows(I).DefaultCellStyle.BackColor = Color.LightPink
33 39
             ElseIf 月清單_DGV.Rows(I).Cells("星期").Value.ToString = "星期日" Then : 月清單_DGV.Rows(I).DefaultCellStyle.BackColor = Color.LightPink
@@ -37,12 +43,14 @@
37 43
         Next
38 44
     End Sub
39 45
     Private Sub 特休申請_Load(sender As Object, e As EventArgs) Handles MyBase.Load
40
-        Panel1.SendToBack() : 視窗2_pl.Visible = False
46
+        Panel2.SendToBack() : 視窗2_pl.Visible = False : 剛開啟 = True
41 47
         WebBrowser2.Navigate(Environment.GetFolderPath(Environment.SpecialFolder.Desktop))
42 48
     End Sub
43 49
     Private Sub 特休申請_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
50
+        SQL_資料庫選擇() : If dr.Read() Then : 預設圖片庫_tb.Text = dr("圖片資料庫").ToString : Else : MsgBox("圖片資料庫已滿,請找系統管理員!!") : Me.Close() : End If
51
+
44 52
         年份_下拉表單資料載入() : 年份_cb.Text = Year(Today) : 月份_cb.SelectedIndex = Month(Today) - 1
45
-        請假類別_cb.SelectedIndex = 0 : PA1 = 年份_cb.Text : PA2 = 月份_cb.Text : 讀取人員資料表()
53
+        請假類別_cb.SelectedIndex = 0 : PA1 = 年份_cb.Text : PA2 = 月份_cb.Text : 剛開啟 = False : 讀取人員資料表()
46 54
 
47 55
         If CC(16) = False Then : 人員_dgv.Enabled = False : 申請人_tb.Text = gUserName
48 56
             SQL_考勤明細表_讀取編號() : If dr.Read() Then : 員工編號_tb.Text = dr("DIN") : End If : Set_考勤明細()
@@ -51,26 +59,38 @@
51 59
     Private Sub 人員_dgv_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles 人員_dgv.CellClick
52 60
         If e.RowIndex = -1 Then : Else
53 61
             員工編號_tb.Text = 人員_dgv("編號", e.RowIndex).Value.ToString : 申請人_tb.Text = 人員_dgv("姓名", e.RowIndex).Value.ToString
54
-            Set_考勤明細()
62
+            請休假時數_cb.Text = "" : Set_考勤明細()
55 63
         End If
56 64
     End Sub
57 65
     Private Sub 月清單_DGV_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles 月清單_DGV.CellClick
58 66
         If e.RowIndex = -1 Then : Else
59 67
             If 月清單_DGV.Rows(e.RowIndex).Cells("星期").Value.ToString = "星期六" Or 月清單_DGV.Rows(e.RowIndex).Cells("星期").Value.ToString = "星期日" Or
60 68
                 月清單_DGV.Rows(e.RowIndex).Cells("請假類別").Value.ToString = "國定假日" Then
61
-                MsgBox("星期六/星期日或國定假日不可以申請休假!!")
62
-                特假日期_tb.Text = ""
63
-                事由_tb.Text = ""
64
-            Else
65
-                特假日期_tb.Text = 月清單_DGV("日期", e.RowIndex).Value.ToString
69
+                特假日期_tb.Text = "" : 事由_tb.Text = "" : PictureBox1.Image = Nothing
70
+                MsgBox("星期六/星期日或國定假日不需要申請休假!!")
71
+            Else 特假日期_tb.Text = 月清單_DGV("日期", e.RowIndex).Value.ToString
66 72
                 事由_tb.Text = 月清單_DGV("事由", e.RowIndex).Value.ToString
67 73
                 生效 = 月清單_DGV("是否生效", e.RowIndex).Value.ToString
74
+                請假類別_cb.Text = 月清單_DGV("請假類別", e.RowIndex).Value.ToString
75
+                請休假時數_cb.Text = 月清單_DGV("申請時數", e.RowIndex).Value.ToString
76
+                資料指定圖庫_tb.Text = 月清單_DGV("圖片資料庫", e.RowIndex).Value.ToString : 圖片流水號_tb.Text = 月清單_DGV("圖片編號", e.RowIndex).Value.ToString
77
+                '------------驗貨報告讀取--------------------------------------------------------------------------------------------
78
+                If 資料指定圖庫_tb.Text <> "" And 圖片流水號_tb.Text <> "" Then
79
+                    圖片庫 = 資料指定圖庫_tb.Text : SQL_連線字串_圖片資料庫() : PA2 = 圖片流水號_tb.Text
80
+                    SQL_請假圖() : PictureBox1.Image = Nothing
81
+                    While dr.Read() = True
82
+                        Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
83
+                        Dim oStream As New MemoryStream(bytes) : PictureBox1.Image = Bitmap.FromStream(oStream)
84
+                    End While : conn.Close() : PictureBox1.SizeMode = 4
85
+                Else
86
+                    PictureBox1.Image = Nothing
87
+                End If
68 88
             End If
69 89
         End If
70 90
     End Sub
71 91
     Private Sub 申請_bt_Click(sender As Object, e As EventArgs) Handles 申請_bt.Click
72
-        If 特假日期_tb.Text = "" Then
73
-            MsgBox("日期不能為空白")
92
+        If 特假日期_tb.Text = "" Or 請休假時數_cb.Text = "" Or 申請人_tb.Text = "" Then
93
+            MsgBox("人員、日期、請休假時數 不能為空白!!")
74 94
         Else
75 95
             If 生效 = "已核准" Or 生效 = "未核准" Then : MsgBox("已簽核的資料不能再做修改")
76 96
             Else
@@ -81,17 +101,64 @@
81 101
         End If
82 102
     End Sub
83 103
     Private Sub 刪除_bt_Click(sender As Object, e As EventArgs) Handles 刪除_bt.Click
84
-        If 特假日期_tb.Text = "" Then
85
-            MsgBox("日期不能為空白")
104
+        If 特假日期_tb.Text = "" Or 申請人_tb.Text = "" Then
105
+            MsgBox("人員、日期、請休假時數 不能為空白!!")
86 106
         Else
87 107
             If 生效 = "已核准" Or 生效 = "未核准" Then : MsgBox("已簽核的資料不能再做修改")
88 108
             Else : SQL_申請刪除() : Set_考勤明細() : MsgBox("儲存完成") : End If
89 109
         End If
90 110
     End Sub
111
+    Private Sub 確定導入_bt_Click(sender As Object, e As EventArgs) Handles 確定導入_bt.Click
112
+        If 檔案路徑2_tb.Text <> "" Then
113
+            If 特假日期_tb.Text = "" Or 請休假時數_cb.Text = "" Or 申請人_tb.Text = "" Then
114
+                MsgBox("人員、日期、請休假時數 不能為空白!!")
115
+            Else
116
+                If 生效 = "已核准" Or 生效 = "未核准" Then : MsgBox("已簽核的資料不能再做修改") : Else
117
+                    SQL_請假申請讀取()
118
+                    If dr.Read Then
119
+                        圖片導入準備() : SQL_請假申請修改() : 圖片導入()
120
+                    Else
121
+                        圖片導入準備() : SQL_請假申請新增() : 圖片導入()
122
+                    End If
123
+                    Set_考勤明細() : MsgBox("圖片導入完成")
124
+                    Dim image As Image = Image.FromFile(檔案路徑2_tb.Text)
125
+                    PictureBox1.Image = image : PictureBox1.SizeMode = 4
126
+                End If
127
+            End If
128
+            檔案路徑2_tb.Text = ""
129
+        Else : MsgBox("沒有準備圖片!!") : End If
130
+    End Sub
131
+    Private Sub 圖片導入準備()
132
+        If 資料指定圖庫_tb.Text = "" Then
133
+            圖片庫 = 預設圖片庫_tb.Text : SQL_連線字串_圖片資料庫() : 資料指定圖庫_tb.Text = 預設圖片庫_tb.Text
134
+            SQL_查詢最後一筆圖片編號1()
135
+            If dr.Read() Then : 圖片流水號_tb.Text = dr("流水號").ToString : Else : 圖片流水號_tb.Text = "0" : End If : conn.Close()
136
+            Dim NUM1 As Integer
137
+            NUM1 = Double.Parse(Strings.Right(圖片流水號_tb.Text, 8)) + 1
138
+            If NUM1 < 10 Then : 圖片流水號_tb.Text = "IR" & "0000000" & NUM1
139
+            ElseIf NUM1 > 9 And NUM1 < 100 Then : 圖片流水號_tb.Text = "IR" & "000000" & NUM1
140
+            ElseIf NUM1 > 99 And NUM1 < 1000 Then : 圖片流水號_tb.Text = "IR" & "00000" & NUM1
141
+            ElseIf NUM1 > 999 And NUM1 < 10000 Then : 圖片流水號_tb.Text = "IR" & "0000" & NUM1
142
+            ElseIf NUM1 > 9999 And NUM1 < 100000 Then : 圖片流水號_tb.Text = "IR" & "000" & NUM1
143
+            ElseIf NUM1 > 99999 And NUM1 < 100000 Then : 圖片流水號_tb.Text = "IR" & "00" & NUM1
144
+            ElseIf NUM1 > 999999 And NUM1 < 1000000 Then : 圖片流水號_tb.Text = "IR" & "0" & NUM1
145
+            ElseIf NUM1 > 9999999 Then : 圖片流水號_tb.Text = "IR" & NUM1 : End If : 圖片新建 = True
146
+        Else
147
+            圖片庫 = 資料指定圖庫_tb.Text : SQL_連線字串_圖片資料庫() : 圖片新建 = False
148
+        End If
149
+    End Sub
150
+    Private Sub 圖片導入()
151
+        If 圖片新建 = True Then
152
+            PA49 = 檔案路徑2_tb.Text : SQL_新增請假圖()
153
+        Else
154
+            PA49 = 檔案路徑2_tb.Text : SQL_修改請假圖()
155
+        End If
156
+    End Sub
91 157
     Private Sub 月份_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 月份_cb.SelectedIndexChanged
92
-        PA1 = 年份_cb.Text : PA2 = 月份_cb.Text
93
-        讀取人員資料表()
94
-        Set_考勤明細()
158
+        If 剛開啟 = False Then : PA1 = 年份_cb.Text : PA2 = 月份_cb.Text : 讀取人員資料表() : Set_考勤明細() : End If
159
+    End Sub
160
+    Private Sub 年份_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 年份_cb.SelectedIndexChanged
161
+        If 剛開啟 = False Then : PA1 = 年份_cb.Text : PA2 = 月份_cb.Text : 讀取人員資料表() : Set_考勤明細() : End If
95 162
     End Sub
96 163
     Private Sub 月清單_DGV_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 月清單_DGV.RowPostPaint
97 164
         For I As Integer = 0 To 月清單_DGV.Rows.Count - 1

+ 97
- 24
GRAMS-SYS/02、休假管理/歷史休假紀錄.Designer.vb Ver arquivo

@@ -22,8 +22,8 @@ Partial Class 歷史休假紀錄
22 22
     '請勿使用程式碼編輯器進行修改。
23 23
     <System.Diagnostics.DebuggerStepThrough()>
24 24
     Private Sub InitializeComponent()
25
-        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
-        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
25
+        Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27 27
         Me.月清單_DGV = New System.Windows.Forms.DataGridView()
28 28
         Me.事由_tb = New System.Windows.Forms.TextBox()
29 29
         Me.Label7 = New System.Windows.Forms.Label()
@@ -41,25 +41,34 @@ Partial Class 歷史休假紀錄
41 41
         Me.Label17 = New System.Windows.Forms.Label()
42 42
         Me.人員_dgv = New System.Windows.Forms.DataGridView()
43 43
         Me.PictureBox1 = New System.Windows.Forms.PictureBox()
44
+        Me.PictureBox2 = New System.Windows.Forms.PictureBox()
45
+        Me.Panel1 = New System.Windows.Forms.Panel()
46
+        Me.圖片流水號_tb = New System.Windows.Forms.TextBox()
47
+        Me.資料指定圖庫_tb = New System.Windows.Forms.TextBox()
48
+        Me.假期統計_dgv = New System.Windows.Forms.DataGridView()
44 49
         CType(Me.月清單_DGV, System.ComponentModel.ISupportInitialize).BeginInit()
45 50
         CType(Me.人員_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
46 51
         CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
52
+        CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).BeginInit()
53
+        Me.Panel1.SuspendLayout()
54
+        CType(Me.假期統計_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
47 55
         Me.SuspendLayout()
48 56
         '
49 57
         '月清單_DGV
50 58
         '
51
-        DataGridViewCellStyle1.BackColor = System.Drawing.Color.Gainsboro
52
-        Me.月清單_DGV.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
59
+        DataGridViewCellStyle7.BackColor = System.Drawing.Color.Gainsboro
60
+        Me.月清單_DGV.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle7
53 61
         Me.月清單_DGV.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
54 62
             Or System.Windows.Forms.AnchorStyles.Left) _
55 63
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
56 64
         Me.月清單_DGV.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
65
+        Me.月清單_DGV.BackgroundColor = System.Drawing.Color.White
57 66
         Me.月清單_DGV.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
58 67
         Me.月清單_DGV.Location = New System.Drawing.Point(9, 125)
59 68
         Me.月清單_DGV.Name = "月清單_DGV"
60 69
         Me.月清單_DGV.RowHeadersWidth = 5
61 70
         Me.月清單_DGV.RowTemplate.Height = 24
62
-        Me.月清單_DGV.Size = New System.Drawing.Size(862, 472)
71
+        Me.月清單_DGV.Size = New System.Drawing.Size(677, 472)
63 72
         Me.月清單_DGV.TabIndex = 802
64 73
         '
65 74
         '事由_tb
@@ -69,7 +78,7 @@ Partial Class 歷史休假紀錄
69 78
         Me.事由_tb.Location = New System.Drawing.Point(182, 55)
70 79
         Me.事由_tb.Multiline = True
71 80
         Me.事由_tb.Name = "事由_tb"
72
-        Me.事由_tb.Size = New System.Drawing.Size(689, 69)
81
+        Me.事由_tb.Size = New System.Drawing.Size(367, 69)
73 82
         Me.事由_tb.TabIndex = 800
74 83
         '
75 84
         'Label7
@@ -77,7 +86,7 @@ Partial Class 歷史休假紀錄
77 86
         Me.Label7.AutoSize = True
78 87
         Me.Label7.Location = New System.Drawing.Point(132, 58)
79 88
         Me.Label7.Name = "Label7"
80
-        Me.Label7.Size = New System.Drawing.Size(44, 16)
89
+        Me.Label7.Size = New System.Drawing.Size(43, 16)
81 90
         Me.Label7.TabIndex = 799
82 91
         Me.Label7.Text = "事    由"
83 92
         '
@@ -94,7 +103,7 @@ Partial Class 歷史休假紀錄
94 103
         Me.Label6.AutoSize = True
95 104
         Me.Label6.Location = New System.Drawing.Point(374, 7)
96 105
         Me.Label6.Name = "Label6"
97
-        Me.Label6.Size = New System.Drawing.Size(56, 16)
106
+        Me.Label6.Size = New System.Drawing.Size(55, 16)
98 107
         Me.Label6.TabIndex = 797
99 108
         Me.Label6.Text = "特假日期"
100 109
         '
@@ -111,7 +120,7 @@ Partial Class 歷史休假紀錄
111 120
         Me.Label4.AutoSize = True
112 121
         Me.Label4.Location = New System.Drawing.Point(374, 33)
113 122
         Me.Label4.Name = "Label4"
114
-        Me.Label4.Size = New System.Drawing.Size(56, 16)
123
+        Me.Label4.Size = New System.Drawing.Size(55, 16)
115 124
         Me.Label4.TabIndex = 795
116 125
         Me.Label4.Text = "員工編號"
117 126
         '
@@ -120,7 +129,7 @@ Partial Class 歷史休假紀錄
120 129
         Me.申請人_tb.Enabled = False
121 130
         Me.申請人_tb.Location = New System.Drawing.Point(182, 30)
122 131
         Me.申請人_tb.Name = "申請人_tb"
123
-        Me.申請人_tb.Size = New System.Drawing.Size(186, 23)
132
+        Me.申請人_tb.Size = New System.Drawing.Size(71, 23)
124 133
         Me.申請人_tb.TabIndex = 794
125 134
         '
126 135
         'Label3
@@ -128,16 +137,16 @@ Partial Class 歷史休假紀錄
128 137
         Me.Label3.AutoSize = True
129 138
         Me.Label3.Location = New System.Drawing.Point(132, 33)
130 139
         Me.Label3.Name = "Label3"
131
-        Me.Label3.Size = New System.Drawing.Size(44, 16)
140
+        Me.Label3.Size = New System.Drawing.Size(43, 16)
132 141
         Me.Label3.TabIndex = 793
133 142
         Me.Label3.Text = "申請人"
134 143
         '
135 144
         'Label1
136 145
         '
137 146
         Me.Label1.AutoSize = True
138
-        Me.Label1.Location = New System.Drawing.Point(565, 32)
147
+        Me.Label1.Location = New System.Drawing.Point(259, 33)
139 148
         Me.Label1.Name = "Label1"
140
-        Me.Label1.Size = New System.Drawing.Size(32, 16)
149
+        Me.Label1.Size = New System.Drawing.Size(31, 16)
141 150
         Me.Label1.TabIndex = 792
142 151
         Me.Label1.Text = "類別"
143 152
         '
@@ -146,9 +155,9 @@ Partial Class 歷史休假紀錄
146 155
         Me.請假類別_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
147 156
         Me.請假類別_cb.FormattingEnabled = True
148 157
         Me.請假類別_cb.Items.AddRange(New Object() {"特休", "病假", "婚嫁", "喪假", "事假"})
149
-        Me.請假類別_cb.Location = New System.Drawing.Point(617, 29)
158
+        Me.請假類別_cb.Location = New System.Drawing.Point(297, 30)
150 159
         Me.請假類別_cb.Name = "請假類別_cb"
151
-        Me.請假類別_cb.Size = New System.Drawing.Size(254, 24)
160
+        Me.請假類別_cb.Size = New System.Drawing.Size(71, 24)
152 161
         Me.請假類別_cb.TabIndex = 791
153 162
         '
154 163
         '月份_cb
@@ -176,7 +185,7 @@ Partial Class 歷史休假紀錄
176 185
         Me.Label16.AutoSize = True
177 186
         Me.Label16.Location = New System.Drawing.Point(259, 7)
178 187
         Me.Label16.Name = "Label16"
179
-        Me.Label16.Size = New System.Drawing.Size(32, 16)
188
+        Me.Label16.Size = New System.Drawing.Size(31, 16)
180 189
         Me.Label16.TabIndex = 788
181 190
         Me.Label16.Text = "月份"
182 191
         '
@@ -185,23 +194,23 @@ Partial Class 歷史休假紀錄
185 194
         Me.Label17.AutoSize = True
186 195
         Me.Label17.Location = New System.Drawing.Point(133, 7)
187 196
         Me.Label17.Name = "Label17"
188
-        Me.Label17.Size = New System.Drawing.Size(41, 16)
197
+        Me.Label17.Size = New System.Drawing.Size(40, 16)
189 198
         Me.Label17.TabIndex = 787
190 199
         Me.Label17.Text = "年   份"
191 200
         '
192 201
         '人員_dgv
193 202
         '
194
-        DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
195
-        Me.人員_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
203
+        DataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
204
+        Me.人員_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle8
196 205
         Me.人員_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
197 206
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
198 207
         Me.人員_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
199 208
         Me.人員_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
200
-        Me.人員_dgv.Location = New System.Drawing.Point(651, 162)
209
+        Me.人員_dgv.Location = New System.Drawing.Point(3, 36)
201 210
         Me.人員_dgv.Name = "人員_dgv"
202 211
         Me.人員_dgv.RowHeadersWidth = 5
203 212
         Me.人員_dgv.RowTemplate.Height = 24
204
-        Me.人員_dgv.Size = New System.Drawing.Size(186, 96)
213
+        Me.人員_dgv.Size = New System.Drawing.Size(80, 38)
205 214
         Me.人員_dgv.TabIndex = 786
206 215
         Me.人員_dgv.Visible = False
207 216
         '
@@ -215,13 +224,67 @@ Partial Class 歷史休假紀錄
215 224
         Me.PictureBox1.TabIndex = 803
216 225
         Me.PictureBox1.TabStop = False
217 226
         '
227
+        'PictureBox2
228
+        '
229
+        Me.PictureBox2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
230
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
231
+        Me.PictureBox2.BackgroundImage = Global.HSKIN_MIS_SYS.My.Resources.Resources.Picture
232
+        Me.PictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
233
+        Me.PictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
234
+        Me.PictureBox2.Location = New System.Drawing.Point(688, 2)
235
+        Me.PictureBox2.Name = "PictureBox2"
236
+        Me.PictureBox2.Size = New System.Drawing.Size(392, 594)
237
+        Me.PictureBox2.TabIndex = 1408
238
+        Me.PictureBox2.TabStop = False
239
+        '
240
+        'Panel1
241
+        '
242
+        Me.Panel1.Controls.Add(Me.圖片流水號_tb)
243
+        Me.Panel1.Controls.Add(Me.資料指定圖庫_tb)
244
+        Me.Panel1.Controls.Add(Me.人員_dgv)
245
+        Me.Panel1.Location = New System.Drawing.Point(110, 175)
246
+        Me.Panel1.Name = "Panel1"
247
+        Me.Panel1.Size = New System.Drawing.Size(200, 100)
248
+        Me.Panel1.TabIndex = 1409
249
+        '
250
+        '圖片流水號_tb
251
+        '
252
+        Me.圖片流水號_tb.Enabled = False
253
+        Me.圖片流水號_tb.Location = New System.Drawing.Point(98, 7)
254
+        Me.圖片流水號_tb.Name = "圖片流水號_tb"
255
+        Me.圖片流水號_tb.Size = New System.Drawing.Size(94, 23)
256
+        Me.圖片流水號_tb.TabIndex = 1648
257
+        '
258
+        '資料指定圖庫_tb
259
+        '
260
+        Me.資料指定圖庫_tb.Enabled = False
261
+        Me.資料指定圖庫_tb.Location = New System.Drawing.Point(3, 7)
262
+        Me.資料指定圖庫_tb.Name = "資料指定圖庫_tb"
263
+        Me.資料指定圖庫_tb.Size = New System.Drawing.Size(94, 23)
264
+        Me.資料指定圖庫_tb.TabIndex = 1647
265
+        '
266
+        '假期統計_dgv
267
+        '
268
+        Me.假期統計_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
269
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
270
+        Me.假期統計_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
271
+        Me.假期統計_dgv.BackgroundColor = System.Drawing.Color.White
272
+        Me.假期統計_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
273
+        Me.假期統計_dgv.Location = New System.Drawing.Point(551, 3)
274
+        Me.假期統計_dgv.Name = "假期統計_dgv"
275
+        Me.假期統計_dgv.RowHeadersWidth = 5
276
+        Me.假期統計_dgv.RowTemplate.Height = 24
277
+        Me.假期統計_dgv.Size = New System.Drawing.Size(135, 120)
278
+        Me.假期統計_dgv.TabIndex = 1412
279
+        '
218 280
         '歷史休假紀錄
219 281
         '
220 282
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
221 283
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
222
-        Me.ClientSize = New System.Drawing.Size(881, 600)
284
+        Me.ClientSize = New System.Drawing.Size(1083, 600)
285
+        Me.Controls.Add(Me.假期統計_dgv)
286
+        Me.Controls.Add(Me.PictureBox2)
223 287
         Me.Controls.Add(Me.PictureBox1)
224
-        Me.Controls.Add(Me.月清單_DGV)
225 288
         Me.Controls.Add(Me.事由_tb)
226 289
         Me.Controls.Add(Me.Label7)
227 290
         Me.Controls.Add(Me.請假日期_tb)
@@ -236,7 +299,8 @@ Partial Class 歷史休假紀錄
236 299
         Me.Controls.Add(Me.年份_cb)
237 300
         Me.Controls.Add(Me.Label16)
238 301
         Me.Controls.Add(Me.Label17)
239
-        Me.Controls.Add(Me.人員_dgv)
302
+        Me.Controls.Add(Me.月清單_DGV)
303
+        Me.Controls.Add(Me.Panel1)
240 304
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
241 305
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
242 306
         Me.Name = "歷史休假紀錄"
@@ -245,6 +309,10 @@ Partial Class 歷史休假紀錄
245 309
         CType(Me.月清單_DGV, System.ComponentModel.ISupportInitialize).EndInit()
246 310
         CType(Me.人員_dgv, System.ComponentModel.ISupportInitialize).EndInit()
247 311
         CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
312
+        CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).EndInit()
313
+        Me.Panel1.ResumeLayout(False)
314
+        Me.Panel1.PerformLayout()
315
+        CType(Me.假期統計_dgv, System.ComponentModel.ISupportInitialize).EndInit()
248 316
         Me.ResumeLayout(False)
249 317
         Me.PerformLayout()
250 318
 
@@ -267,4 +335,9 @@ Partial Class 歷史休假紀錄
267 335
     Friend WithEvents Label16 As Label
268 336
     Friend WithEvents Label17 As Label
269 337
     Friend WithEvents 人員_dgv As DataGridView
338
+    Friend WithEvents PictureBox2 As PictureBox
339
+    Friend WithEvents Panel1 As Panel
340
+    Friend WithEvents 圖片流水號_tb As TextBox
341
+    Friend WithEvents 資料指定圖庫_tb As TextBox
342
+    Friend WithEvents 假期統計_dgv As DataGridView
270 343
 End Class

+ 28
- 4
GRAMS-SYS/02、休假管理/歷史休假紀錄.vb Ver arquivo

@@ -1,4 +1,6 @@
1
-Public Class 歷史休假紀錄
1
+Imports System.IO
2
+
3
+Public Class 歷史休假紀錄
2 4
     ReadOnly ds, ds1 As New DataSet
3 5
     Private Sub 讀取人員資料表()
4 6
         人員_dgv.DataSource = Nothing : ds.Clear()
@@ -27,8 +29,17 @@
27 29
         da.Fill(ds1) : 月清單_DGV.DataSource = ds1.Tables(0) : conn.Close()
28 30
 
29 31
         月清單_DGV.Columns(0).FillWeight = 80 : 月清單_DGV.Columns(1).FillWeight = 40 : 月清單_DGV.Columns(2).FillWeight = 90 : 月清單_DGV.Columns(3).FillWeight = 65
30
-        月清單_DGV.Columns(4).FillWeight = 55 : 月清單_DGV.Columns(5).FillWeight = 200 : 月清單_DGV.Columns(6).FillWeight = 80 : 月清單_DGV.Columns(7).FillWeight = 80
31
-        月清單_DGV.Columns(8).FillWeight = 80
32
+        月清單_DGV.Columns(4).FillWeight = 55 : 月清單_DGV.Columns(5).FillWeight = 150 : 月清單_DGV.Columns(6).FillWeight = 60 : 月清單_DGV.Columns(7).FillWeight = 80
33
+        月清單_DGV.Columns(8).FillWeight = 80 : 月清單_DGV.Columns("圖片資料庫").Visible = False : 月清單_DGV.Columns("圖片編號").Visible = False
34
+    End Sub
35
+    Private Sub Set_假期統計()
36
+        Dim ds As New DataSet
37
+        假期統計_dgv.DataSource = Nothing : ds.Clear()
38
+        假期統計_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
39
+        假期統計_dgv.ColumnHeadersHeight = 25
40
+        假期統計_dgv.AllowUserToAddRows = False
41
+        PA = 員工編號_tb.Text : PA1 = 請假日期_tb.Text : SQL_休假統計()
42
+        da.Fill(ds) : 假期統計_dgv.DataSource = ds.Tables(0) : conn.Close()
32 43
     End Sub
33 44
     Private Sub 歷史休假紀錄_Load(sender As Object, e As EventArgs) Handles MyBase.Load
34 45
         年份_下拉表單資料載入()
@@ -52,7 +63,20 @@
52 63
             Else
53 64
                 員工編號_tb.Text = 月清單_DGV("編號", e.RowIndex).Value.ToString : 申請人_tb.Text = 月清單_DGV("姓名", e.RowIndex).Value.ToString
54 65
                 請假日期_tb.Text = 月清單_DGV("日期", e.RowIndex).Value.ToString : 事由_tb.Text = 月清單_DGV("事由", e.RowIndex).Value.ToString
55
-            End If
66
+                請假類別_cb.Text = 月清單_DGV("請假類別", e.RowIndex).Value.ToString
67
+                資料指定圖庫_tb.Text = 月清單_DGV("圖片資料庫", e.RowIndex).Value.ToString : 圖片流水號_tb.Text = 月清單_DGV("圖片編號", e.RowIndex).Value.ToString
68
+                '------------驗貨報告讀取--------------------------------------------------------------------------------------------
69
+                If 資料指定圖庫_tb.Text <> "" And 圖片流水號_tb.Text <> "" Then
70
+                    圖片庫 = 資料指定圖庫_tb.Text : SQL_連線字串_圖片資料庫() : PA2 = 圖片流水號_tb.Text
71
+                    SQL_請假圖() : PictureBox2.Image = Nothing
72
+                    While dr.Read() = True
73
+                        Dim unused As Byte() = New Byte(-1) {} : Dim bytes As Byte() = DirectCast(dr.Item("圖片"), Byte())
74
+                        Dim oStream As New MemoryStream(bytes) : PictureBox2.Image = Bitmap.FromStream(oStream)
75
+                    End While : conn.Close() : PictureBox2.SizeMode = 4
76
+                Else
77
+                    PictureBox2.Image = Nothing
78
+                End If
79
+            End If : Set_假期統計()
56 80
         End If
57 81
     End Sub
58 82
     Private Sub 月清單_DGV_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 月清單_DGV.RowPostPaint

+ 13
- 9
GRAMS-SYS/03、加班管理/加班審核.Designer.vb Ver arquivo

@@ -51,8 +51,9 @@ Partial Class 加班審核
51 51
         '
52 52
         '月清單_DGV
53 53
         '
54
-        Me.月清單_DGV.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
55
-            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
54
+        Me.月清單_DGV.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
55
+            Or System.Windows.Forms.AnchorStyles.Left) _
56
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
56 57
         Me.月清單_DGV.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
57 58
         Me.月清單_DGV.BackgroundColor = System.Drawing.Color.White
58 59
         Me.月清單_DGV.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
@@ -60,7 +61,7 @@ Partial Class 加班審核
60 61
         Me.月清單_DGV.Name = "月清單_DGV"
61 62
         Me.月清單_DGV.RowHeadersWidth = 5
62 63
         Me.月清單_DGV.RowTemplate.Height = 24
63
-        Me.月清單_DGV.Size = New System.Drawing.Size(1163, 518)
64
+        Me.月清單_DGV.Size = New System.Drawing.Size(994, 518)
64 65
         Me.月清單_DGV.TabIndex = 816
65 66
         '
66 67
         '事由_tb
@@ -152,11 +153,13 @@ Partial Class 加班審核
152 153
         '
153 154
         '加班核准_bt
154 155
         '
156
+        Me.加班核准_bt.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
157
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
155 158
         Me.加班核准_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
156 159
         Me.加班核准_bt.ForeColor = System.Drawing.Color.Blue
157 160
         Me.加班核准_bt.Location = New System.Drawing.Point(915, 2)
158 161
         Me.加班核准_bt.Name = "加班核准_bt"
159
-        Me.加班核准_bt.Size = New System.Drawing.Size(248, 37)
162
+        Me.加班核准_bt.Size = New System.Drawing.Size(79, 37)
160 163
         Me.加班核准_bt.TabIndex = 817
161 164
         Me.加班核准_bt.Text = "加班核准"
162 165
         Me.加班核准_bt.UseVisualStyleBackColor = True
@@ -217,11 +220,13 @@ Partial Class 加班審核
217 220
         '
218 221
         '加班未准_bt
219 222
         '
223
+        Me.加班未准_bt.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
224
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
220 225
         Me.加班未准_bt.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
221 226
         Me.加班未准_bt.ForeColor = System.Drawing.Color.Red
222 227
         Me.加班未准_bt.Location = New System.Drawing.Point(915, 38)
223 228
         Me.加班未准_bt.Name = "加班未准_bt"
224
-        Me.加班未准_bt.Size = New System.Drawing.Size(248, 37)
229
+        Me.加班未准_bt.Size = New System.Drawing.Size(79, 37)
225 230
         Me.加班未准_bt.TabIndex = 824
226 231
         Me.加班未准_bt.Text = "加班未准"
227 232
         Me.加班未准_bt.UseVisualStyleBackColor = True
@@ -257,13 +262,12 @@ Partial Class 加班審核
257 262
         '
258 263
         'PictureBox1
259 264
         '
260
-        Me.PictureBox1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
261
-            Or System.Windows.Forms.AnchorStyles.Left) _
265
+        Me.PictureBox1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
262 266
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
263 267
         Me.PictureBox1.BackgroundImage = Global.HSKIN_MIS_SYS.My.Resources.Resources.Picture
264 268
         Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
265 269
         Me.PictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
266
-        Me.PictureBox1.Location = New System.Drawing.Point(1167, 3)
270
+        Me.PictureBox1.Location = New System.Drawing.Point(998, 3)
267 271
         Me.PictureBox1.Name = "PictureBox1"
268 272
         Me.PictureBox1.Size = New System.Drawing.Size(366, 592)
269 273
         Me.PictureBox1.TabIndex = 1406
@@ -273,7 +277,7 @@ Partial Class 加班審核
273 277
         '
274 278
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
275 279
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
276
-        Me.ClientSize = New System.Drawing.Size(1536, 600)
280
+        Me.ClientSize = New System.Drawing.Size(1367, 600)
277 281
         Me.Controls.Add(Me.PictureBox1)
278 282
         Me.Controls.Add(Me.默認核准_bt)
279 283
         Me.Controls.Add(Me.DTP2_tb)

+ 2
- 2
GRAMS-SYS/03、加班管理/加班審核.vb Ver arquivo

@@ -11,9 +11,9 @@ Public Class 加班審核
11 11
         da.Fill(ds1) : 月清單_DGV.DataSource = ds1.Tables(0) : conn.Close()
12 12
 
13 13
         月清單_DGV.Columns(1).Visible = False
14
-        月清單_DGV.Columns(0).FillWeight = 60 : 月清單_DGV.Columns(2).FillWeight = 90 : 月清單_DGV.Columns(3).FillWeight = 60 : 月清單_DGV.Columns(4).FillWeight = 90
14
+        月清單_DGV.Columns(0).FillWeight = 60 : 月清單_DGV.Columns(2).FillWeight = 90 : 月清單_DGV.Columns(3).FillWeight = 60 : 月清單_DGV.Columns(4).Visible = False
15 15
         月清單_DGV.Columns(5).FillWeight = 100 : 月清單_DGV.Columns(6).FillWeight = 200 : 月清單_DGV.Columns(7).FillWeight = 80 : 月清單_DGV.Columns(8).FillWeight = 90
16
-        月清單_DGV.Columns(9).FillWeight = 80 : 月清單_DGV.Columns(10).FillWeight = 90 : 月清單_DGV.Columns(11).FillWeight = 60 : 月清單_DGV.Columns(12).Visible = False
16
+        月清單_DGV.Columns(9).FillWeight = 80 : 月清單_DGV.Columns(10).FillWeight = 90 : 月清單_DGV.Columns(11).Visible = False : 月清單_DGV.Columns(12).Visible = False
17 17
         月清單_DGV.Columns(13).Visible = False
18 18
         For I As Integer = 0 To 月清單_DGV.Rows.Count - 1
19 19
             If 月清單_DGV.Rows(I).Cells("星期").Value.ToString = "星期六" Then : 月清單_DGV.Rows(I).DefaultCellStyle.BackColor = Color.LightPink

+ 8
- 8
GRAMS-SYS/03、加班管理/加班申請.Designer.vb Ver arquivo

@@ -81,7 +81,7 @@ Partial Class 加班申請
81 81
         Me.月清單_DGV.Name = "月清單_DGV"
82 82
         Me.月清單_DGV.RowHeadersWidth = 5
83 83
         Me.月清單_DGV.RowTemplate.Height = 24
84
-        Me.月清單_DGV.Size = New System.Drawing.Size(789, 486)
84
+        Me.月清單_DGV.Size = New System.Drawing.Size(520, 486)
85 85
         Me.月清單_DGV.TabIndex = 818
86 86
         '
87 87
         '事由_tb
@@ -92,7 +92,7 @@ Partial Class 加班申請
92 92
         Me.事由_tb.Location = New System.Drawing.Point(194, 51)
93 93
         Me.事由_tb.Multiline = True
94 94
         Me.事由_tb.Name = "事由_tb"
95
-        Me.事由_tb.Size = New System.Drawing.Size(740, 59)
95
+        Me.事由_tb.Size = New System.Drawing.Size(471, 59)
96 96
         Me.事由_tb.TabIndex = 816
97 97
         '
98 98
         'Label7
@@ -283,7 +283,7 @@ Partial Class 加班申請
283 283
         Me.視窗2_pl.Controls.Add(Me.Panel3)
284 284
         Me.視窗2_pl.Controls.Add(Me.Label2)
285 285
         Me.視窗2_pl.Controls.Add(Me.CanceL2_bt)
286
-        Me.視窗2_pl.Location = New System.Drawing.Point(363, 62)
286
+        Me.視窗2_pl.Location = New System.Drawing.Point(249, 81)
287 287
         Me.視窗2_pl.Name = "視窗2_pl"
288 288
         Me.視窗2_pl.Size = New System.Drawing.Size(527, 479)
289 289
         Me.視窗2_pl.TabIndex = 1403
@@ -388,10 +388,9 @@ Partial Class 加班申請
388 388
         '
389 389
         'Panel5
390 390
         '
391
+        Me.Panel5.Controls.Add(Me.視窗2_pl)
391 392
         Me.Panel5.Controls.Add(Me.PictureBox1)
392 393
         Me.Panel5.Controls.Add(Me.刪除_bt)
393
-        Me.Panel5.Controls.Add(Me.Panel1)
394
-        Me.Panel5.Controls.Add(Me.視窗2_pl)
395 394
         Me.Panel5.Controls.Add(Me.人員_dgv)
396 395
         Me.Panel5.Controls.Add(Me.圖片導入系統_bt)
397 396
         Me.Panel5.Controls.Add(Me.Label17)
@@ -408,10 +407,11 @@ Partial Class 加班申請
408 407
         Me.Panel5.Controls.Add(Me.申請人_tb)
409 408
         Me.Panel5.Controls.Add(Me.Label6)
410 409
         Me.Panel5.Controls.Add(Me.月清單_DGV)
410
+        Me.Panel5.Controls.Add(Me.Panel1)
411 411
         Me.Panel5.Dock = System.Windows.Forms.DockStyle.Fill
412 412
         Me.Panel5.Location = New System.Drawing.Point(0, 0)
413 413
         Me.Panel5.Name = "Panel5"
414
-        Me.Panel5.Size = New System.Drawing.Size(1285, 600)
414
+        Me.Panel5.Size = New System.Drawing.Size(1016, 600)
415 415
         Me.Panel5.TabIndex = 1404
416 416
         '
417 417
         'PictureBox1
@@ -421,7 +421,7 @@ Partial Class 加班申請
421 421
         Me.PictureBox1.BackgroundImage = Global.HSKIN_MIS_SYS.My.Resources.Resources.Picture
422 422
         Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
423 423
         Me.PictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
424
-        Me.PictureBox1.Location = New System.Drawing.Point(935, 51)
424
+        Me.PictureBox1.Location = New System.Drawing.Point(666, 51)
425 425
         Me.PictureBox1.Name = "PictureBox1"
426 426
         Me.PictureBox1.Size = New System.Drawing.Size(345, 545)
427 427
         Me.PictureBox1.TabIndex = 1405
@@ -464,7 +464,7 @@ Partial Class 加班申請
464 464
         '
465 465
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
466 466
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
467
-        Me.ClientSize = New System.Drawing.Size(1285, 600)
467
+        Me.ClientSize = New System.Drawing.Size(1016, 600)
468 468
         Me.Controls.Add(Me.Panel5)
469 469
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
470 470
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)

+ 6
- 4
GRAMS-SYS/03、加班管理/加班申請.vb Ver arquivo

@@ -11,6 +11,8 @@ Public Class 加班申請
11 11
         SQL_考勤明細表_人員()
12 12
         da.Fill(ds) : 人員_dgv.DataSource = ds.Tables(0) : conn.Close()
13 13
         人員_dgv.Columns(0).FillWeight = 70 : 人員_dgv.Columns(1).Visible = False : 人員_dgv.Columns(2).FillWeight = 100 : 人員_dgv.Columns(3).Visible = False
14
+        人員_dgv.Columns(4).Visible = False : 人員_dgv.Columns(5).Visible = False : 人員_dgv.Columns(6).Visible = False : 人員_dgv.Columns(7).Visible = False
15
+        人員_dgv.Columns(8).Visible = False : 人員_dgv.Columns(9).Visible = False
14 16
         For i As Integer = 0 To 人員_dgv.Rows.Count - 1
15 17
             人員_dgv.Rows(i).Cells("No.").Value = i + 1
16 18
         Next
@@ -29,9 +31,9 @@ Public Class 加班申請
29 31
         PA = 員工編號_tb.Text : PA1 = 年份_cb.Text : PA2 = 月份_cb.Text : SQL_加班申請()
30 32
         da.Fill(ds1) : 月清單_DGV.DataSource = ds1.Tables(0) : conn.Close()
31 33
 
32
-        月清單_DGV.Columns(0).FillWeight = 80 : 月清單_DGV.Columns(1).FillWeight = 60 : 月清單_DGV.Columns(2).FillWeight = 90 : 月清單_DGV.Columns(3).FillWeight = 170
33
-        月清單_DGV.Columns(4).FillWeight = 70 : 月清單_DGV.Columns(5).FillWeight = 80 : 月清單_DGV.Columns(6).FillWeight = 90 : 月清單_DGV.Columns(7).FillWeight = 80
34
-        月清單_DGV.Columns(8).FillWeight = 90 : 月清單_DGV.Columns(9).Visible = False : 月清單_DGV.Columns(10).Visible = False
34
+        月清單_DGV.Columns(0).FillWeight = 80 : 月清單_DGV.Columns(1).FillWeight = 60 : 月清單_DGV.Columns(2).FillWeight = 110 : 月清單_DGV.Columns(3).FillWeight = 150
35
+        月清單_DGV.Columns(4).FillWeight = 50 : 月清單_DGV.Columns(5).Visible = False : 月清單_DGV.Columns(6).Visible = False : 月清單_DGV.Columns(7).Visible = False
36
+        月清單_DGV.Columns(8).Visible = False : 月清單_DGV.Columns(9).Visible = False : 月清單_DGV.Columns(10).Visible = False
35 37
         For I As Integer = 0 To 月清單_DGV.Rows.Count - 1
36 38
             If 月清單_DGV.Rows(I).Cells("星期").Value.ToString = "星期六" Then : 月清單_DGV.Rows(I).DefaultCellStyle.BackColor = Color.LightPink
37 39
             ElseIf 月清單_DGV.Rows(I).Cells("星期").Value.ToString = "星期日" Then : 月清單_DGV.Rows(I).DefaultCellStyle.BackColor = Color.LightPink
@@ -112,7 +114,7 @@ Public Class 加班申請
112 114
                     End If
113 115
                     Set_加班明細() : MsgBox("圖片導入完成")
114 116
                     Dim image As Image = Image.FromFile(檔案路徑2_tb.Text)
115
-                    PictureBox1.Image = image
117
+                    PictureBox1.Image = image : PictureBox1.SizeMode = 4
116 118
                 End If
117 119
             End If
118 120
             檔案路徑2_tb.Text = ""

+ 37
- 35
GRAMS-SYS/04、考勤管理/到離職管理.Designer.vb Ver arquivo

@@ -22,7 +22,7 @@ Partial Class 到離職管理
22 22
     '請勿使用程式碼編輯器進行修改。
23 23
     <System.Diagnostics.DebuggerStepThrough()>
24 24
     Private Sub InitializeComponent()
25
-        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
25
+        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26 26
         Me.月清單_DGV = New System.Windows.Forms.DataGridView()
27 27
         Me.申請_bt = New System.Windows.Forms.Button()
28 28
         Me.事由_tb = New System.Windows.Forms.TextBox()
@@ -50,22 +50,23 @@ Partial Class 到離職管理
50 50
             Or System.Windows.Forms.AnchorStyles.Left) _
51 51
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
52 52
         Me.月清單_DGV.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
53
+        Me.月清單_DGV.BackgroundColor = System.Drawing.Color.White
53 54
         Me.月清單_DGV.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
54
-        Me.月清單_DGV.Location = New System.Drawing.Point(201, 116)
55
+        Me.月清單_DGV.Location = New System.Drawing.Point(192, 98)
55 56
         Me.月清單_DGV.Name = "月清單_DGV"
56 57
         Me.月清單_DGV.RowHeadersWidth = 5
57 58
         Me.月清單_DGV.RowTemplate.Height = 24
58
-        Me.月清單_DGV.Size = New System.Drawing.Size(670, 439)
59
+        Me.月清單_DGV.Size = New System.Drawing.Size(521, 470)
59 60
         Me.月清單_DGV.TabIndex = 818
60 61
         '
61 62
         '申請_bt
62 63
         '
63
-        Me.申請_bt.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
64
+        Me.申請_bt.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
64 65
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
65 66
         Me.申請_bt.Font = New System.Drawing.Font("微軟正黑體", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
66
-        Me.申請_bt.Location = New System.Drawing.Point(201, 561)
67
+        Me.申請_bt.Location = New System.Drawing.Point(192, 569)
67 68
         Me.申請_bt.Name = "申請_bt"
68
-        Me.申請_bt.Size = New System.Drawing.Size(670, 29)
69
+        Me.申請_bt.Size = New System.Drawing.Size(521, 29)
69 70
         Me.申請_bt.TabIndex = 817
70 71
         Me.申請_bt.Text = "申請"
71 72
         Me.申請_bt.UseVisualStyleBackColor = True
@@ -74,25 +75,25 @@ Partial Class 到離職管理
74 75
         '
75 76
         Me.事由_tb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
76 77
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
77
-        Me.事由_tb.Location = New System.Drawing.Point(250, 66)
78
+        Me.事由_tb.Location = New System.Drawing.Point(236, 52)
78 79
         Me.事由_tb.Multiline = True
79 80
         Me.事由_tb.Name = "事由_tb"
80
-        Me.事由_tb.Size = New System.Drawing.Size(621, 44)
81
+        Me.事由_tb.Size = New System.Drawing.Size(477, 44)
81 82
         Me.事由_tb.TabIndex = 816
82 83
         '
83 84
         'Label7
84 85
         '
85 86
         Me.Label7.AutoSize = True
86
-        Me.Label7.Location = New System.Drawing.Point(212, 69)
87
+        Me.Label7.Location = New System.Drawing.Point(198, 55)
87 88
         Me.Label7.Name = "Label7"
88
-        Me.Label7.Size = New System.Drawing.Size(32, 16)
89
+        Me.Label7.Size = New System.Drawing.Size(31, 16)
89 90
         Me.Label7.TabIndex = 815
90 91
         Me.Label7.Text = "事由"
91 92
         '
92 93
         '特假日期_tb
93 94
         '
94 95
         Me.特假日期_tb.Enabled = False
95
-        Me.特假日期_tb.Location = New System.Drawing.Point(504, 10)
96
+        Me.特假日期_tb.Location = New System.Drawing.Point(490, 2)
96 97
         Me.特假日期_tb.Name = "特假日期_tb"
97 98
         Me.特假日期_tb.Size = New System.Drawing.Size(113, 23)
98 99
         Me.特假日期_tb.TabIndex = 814
@@ -100,16 +101,16 @@ Partial Class 到離職管理
100 101
         'Label6
101 102
         '
102 103
         Me.Label6.AutoSize = True
103
-        Me.Label6.Location = New System.Drawing.Point(442, 14)
104
+        Me.Label6.Location = New System.Drawing.Point(428, 6)
104 105
         Me.Label6.Name = "Label6"
105
-        Me.Label6.Size = New System.Drawing.Size(56, 16)
106
+        Me.Label6.Size = New System.Drawing.Size(55, 16)
106 107
         Me.Label6.TabIndex = 813
107 108
         Me.Label6.Text = "休假日期"
108 109
         '
109 110
         '員工編號_tb
110 111
         '
111 112
         Me.員工編號_tb.Enabled = False
112
-        Me.員工編號_tb.Location = New System.Drawing.Point(504, 39)
113
+        Me.員工編號_tb.Location = New System.Drawing.Point(490, 27)
113 114
         Me.員工編號_tb.Name = "員工編號_tb"
114 115
         Me.員工編號_tb.Size = New System.Drawing.Size(113, 23)
115 116
         Me.員工編號_tb.TabIndex = 812
@@ -117,16 +118,16 @@ Partial Class 到離職管理
117 118
         'Label4
118 119
         '
119 120
         Me.Label4.AutoSize = True
120
-        Me.Label4.Location = New System.Drawing.Point(442, 42)
121
+        Me.Label4.Location = New System.Drawing.Point(428, 30)
121 122
         Me.Label4.Name = "Label4"
122
-        Me.Label4.Size = New System.Drawing.Size(56, 16)
123
+        Me.Label4.Size = New System.Drawing.Size(55, 16)
123 124
         Me.Label4.TabIndex = 811
124 125
         Me.Label4.Text = "員工編號"
125 126
         '
126 127
         '申請人_tb
127 128
         '
128 129
         Me.申請人_tb.Enabled = False
129
-        Me.申請人_tb.Location = New System.Drawing.Point(250, 39)
130
+        Me.申請人_tb.Location = New System.Drawing.Point(236, 28)
130 131
         Me.申請人_tb.Name = "申請人_tb"
131 132
         Me.申請人_tb.Size = New System.Drawing.Size(186, 23)
132 133
         Me.申請人_tb.TabIndex = 810
@@ -134,18 +135,18 @@ Partial Class 到離職管理
134 135
         'Label3
135 136
         '
136 137
         Me.Label3.AutoSize = True
137
-        Me.Label3.Location = New System.Drawing.Point(200, 42)
138
+        Me.Label3.Location = New System.Drawing.Point(186, 30)
138 139
         Me.Label3.Name = "Label3"
139
-        Me.Label3.Size = New System.Drawing.Size(44, 16)
140
+        Me.Label3.Size = New System.Drawing.Size(43, 16)
140 141
         Me.Label3.TabIndex = 809
141 142
         Me.Label3.Text = "申請人"
142 143
         '
143 144
         'Label1
144 145
         '
145 146
         Me.Label1.AutoSize = True
146
-        Me.Label1.Location = New System.Drawing.Point(650, 42)
147
+        Me.Label1.Location = New System.Drawing.Point(606, 30)
147 148
         Me.Label1.Name = "Label1"
148
-        Me.Label1.Size = New System.Drawing.Size(32, 16)
149
+        Me.Label1.Size = New System.Drawing.Size(31, 16)
149 150
         Me.Label1.TabIndex = 808
150 151
         Me.Label1.Text = "類別"
151 152
         '
@@ -154,9 +155,9 @@ Partial Class 到離職管理
154 155
         Me.請假類別_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
155 156
         Me.請假類別_cb.FormattingEnabled = True
156 157
         Me.請假類別_cb.Items.AddRange(New Object() {"未到", "離職"})
157
-        Me.請假類別_cb.Location = New System.Drawing.Point(685, 38)
158
+        Me.請假類別_cb.Location = New System.Drawing.Point(641, 26)
158 159
         Me.請假類別_cb.Name = "請假類別_cb"
159
-        Me.請假類別_cb.Size = New System.Drawing.Size(186, 24)
160
+        Me.請假類別_cb.Size = New System.Drawing.Size(72, 24)
160 161
         Me.請假類別_cb.TabIndex = 807
161 162
         '
162 163
         '月份_cb
@@ -164,7 +165,7 @@ Partial Class 到離職管理
164 165
         Me.月份_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
165 166
         Me.月份_cb.FormattingEnabled = True
166 167
         Me.月份_cb.Items.AddRange(New Object() {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"})
167
-        Me.月份_cb.Location = New System.Drawing.Point(365, 11)
168
+        Me.月份_cb.Location = New System.Drawing.Point(351, 3)
168 169
         Me.月份_cb.Name = "月份_cb"
169 170
         Me.月份_cb.Size = New System.Drawing.Size(71, 24)
170 171
         Me.月份_cb.TabIndex = 806
@@ -174,7 +175,7 @@ Partial Class 到離職管理
174 175
         Me.年份_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
175 176
         Me.年份_cb.FormattingEnabled = True
176 177
         Me.年份_cb.Items.AddRange(New Object() {"2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030"})
177
-        Me.年份_cb.Location = New System.Drawing.Point(250, 11)
178
+        Me.年份_cb.Location = New System.Drawing.Point(236, 3)
178 179
         Me.年份_cb.Name = "年份_cb"
179 180
         Me.年份_cb.Size = New System.Drawing.Size(71, 24)
180 181
         Me.年份_cb.TabIndex = 805
@@ -182,43 +183,45 @@ Partial Class 到離職管理
182 183
         'Label16
183 184
         '
184 185
         Me.Label16.AutoSize = True
185
-        Me.Label16.Location = New System.Drawing.Point(327, 14)
186
+        Me.Label16.Location = New System.Drawing.Point(313, 6)
186 187
         Me.Label16.Name = "Label16"
187
-        Me.Label16.Size = New System.Drawing.Size(32, 16)
188
+        Me.Label16.Size = New System.Drawing.Size(31, 16)
188 189
         Me.Label16.TabIndex = 804
189 190
         Me.Label16.Text = "月份"
190 191
         '
191 192
         'Label17
192 193
         '
193 194
         Me.Label17.AutoSize = True
194
-        Me.Label17.Location = New System.Drawing.Point(212, 14)
195
+        Me.Label17.Location = New System.Drawing.Point(198, 6)
195 196
         Me.Label17.Name = "Label17"
196
-        Me.Label17.Size = New System.Drawing.Size(32, 16)
197
+        Me.Label17.Size = New System.Drawing.Size(31, 16)
197 198
         Me.Label17.TabIndex = 803
198 199
         Me.Label17.Text = "年份"
199 200
         '
200 201
         '人員_dgv
201 202
         '
202
-        DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
203
-        Me.人員_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
203
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
204
+        Me.人員_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
204 205
         Me.人員_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
205 206
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
206 207
         Me.人員_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
208
+        Me.人員_dgv.BackgroundColor = System.Drawing.Color.White
207 209
         Me.人員_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
208
-        Me.人員_dgv.Location = New System.Drawing.Point(9, 14)
210
+        Me.人員_dgv.Location = New System.Drawing.Point(2, 1)
209 211
         Me.人員_dgv.Name = "人員_dgv"
210 212
         Me.人員_dgv.RowHeadersWidth = 5
211 213
         Me.人員_dgv.RowTemplate.Height = 24
212
-        Me.人員_dgv.Size = New System.Drawing.Size(186, 576)
214
+        Me.人員_dgv.Size = New System.Drawing.Size(186, 597)
213 215
         Me.人員_dgv.TabIndex = 802
214 216
         '
215 217
         '到離職管理
216 218
         '
217 219
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
218 220
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
219
-        Me.ClientSize = New System.Drawing.Size(881, 600)
221
+        Me.ClientSize = New System.Drawing.Size(719, 600)
220 222
         Me.Controls.Add(Me.月清單_DGV)
221 223
         Me.Controls.Add(Me.申請_bt)
224
+        Me.Controls.Add(Me.人員_dgv)
222 225
         Me.Controls.Add(Me.事由_tb)
223 226
         Me.Controls.Add(Me.Label7)
224 227
         Me.Controls.Add(Me.特假日期_tb)
@@ -233,7 +236,6 @@ Partial Class 到離職管理
233 236
         Me.Controls.Add(Me.年份_cb)
234 237
         Me.Controls.Add(Me.Label16)
235 238
         Me.Controls.Add(Me.Label17)
236
-        Me.Controls.Add(Me.人員_dgv)
237 239
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
238 240
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
239 241
         Me.Name = "到離職管理"

+ 7
- 11
GRAMS-SYS/04、考勤管理/到離職管理.vb Ver arquivo

@@ -9,6 +9,8 @@
9 9
         SQL_考勤明細表_人員()
10 10
         da.Fill(ds) : 人員_dgv.DataSource = ds.Tables(0) : conn.Close()
11 11
         人員_dgv.Columns(0).FillWeight = 70 : 人員_dgv.Columns(1).FillWeight = 80 : 人員_dgv.Columns(2).FillWeight = 100 : 人員_dgv.Columns(3).Visible = False
12
+        人員_dgv.Columns(4).Visible = False : 人員_dgv.Columns(5).Visible = False : 人員_dgv.Columns(6).Visible = False : 人員_dgv.Columns(7).Visible = False
13
+        人員_dgv.Columns(8).Visible = False : 人員_dgv.Columns(9).Visible = False
12 14
         For i As Integer = 0 To 人員_dgv.Rows.Count - 1
13 15
             人員_dgv.Rows(i).Cells("No.").Value = i + 1
14 16
         Next
@@ -27,7 +29,8 @@
27 29
         PA = 員工編號_tb.Text : PA1 = 年份_cb.Text : PA2 = 月份_cb.Text : SQL_國定假日設定_月份考勤()
28 30
         da.Fill(ds1) : 月清單_DGV.DataSource = ds1.Tables(0) : conn.Close()
29 31
 
30
-        月清單_DGV.Columns(0).FillWeight = 80 : 月清單_DGV.Columns(1).FillWeight = 80 : 月清單_DGV.Columns(2).FillWeight = 90 : 月清單_DGV.Columns(3).FillWeight = 90
32
+        月清單_DGV.Columns(0).FillWeight = 100 : 月清單_DGV.Columns(1).FillWeight = 80 : 月清單_DGV.Columns(2).FillWeight = 90 : 月清單_DGV.Columns(3).FillWeight = 90
33
+        月清單_DGV.Columns("圖片資料庫").Visible = False : 月清單_DGV.Columns("圖片編號").Visible = False : 月清單_DGV.Columns("申請時數").Visible = False
31 34
         For I As Integer = 0 To 月清單_DGV.Rows.Count - 1
32 35
             If 月清單_DGV.Rows(I).Cells("星期").Value.ToString = "星期六" Then : 月清單_DGV.Rows(I).DefaultCellStyle.BackColor = Color.LightPink
33 36
             ElseIf 月清單_DGV.Rows(I).Cells("星期").Value.ToString = "星期日" Then : 月清單_DGV.Rows(I).DefaultCellStyle.BackColor = Color.LightPink
@@ -57,16 +60,9 @@
57 60
     End Sub
58 61
     Private Sub 月清單_DGV_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles 月清單_DGV.CellClick
59 62
         If e.RowIndex = -1 Then : Else
60
-            If 月清單_DGV.Rows(e.RowIndex).Cells("星期").Value.ToString = "星期六" Or 月清單_DGV.Rows(e.RowIndex).Cells("星期").Value.ToString = "星期日" Or
61
-                月清單_DGV.Rows(e.RowIndex).Cells("請假類別").Value.ToString = "國定假日" Then
62
-                MsgBox("星期六/星期日或國定假日不可以申請休假!!")
63
-                特假日期_tb.Text = ""
64
-                事由_tb.Text = ""
65
-            Else
66
-                特假日期_tb.Text = 月清單_DGV("日期", e.RowIndex).Value.ToString
67
-                事由_tb.Text = 月清單_DGV("事由", e.RowIndex).Value.ToString
68
-                生效 = 月清單_DGV("是否生效", e.RowIndex).Value.ToString
69
-            End If
63
+            特假日期_tb.Text = 月清單_DGV("日期", e.RowIndex).Value.ToString
64
+            事由_tb.Text = 月清單_DGV("事由", e.RowIndex).Value.ToString
65
+            生效 = 月清單_DGV("是否生效", e.RowIndex).Value.ToString
70 66
         End If
71 67
     End Sub
72 68
     Private Sub 申請_bt_Click(sender As Object, e As EventArgs) Handles 申請_bt.Click

+ 635
- 158
GRAMS-SYS/04、考勤管理/考勤明細表.Designer.vb
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 89
- 27
GRAMS-SYS/04、考勤管理/考勤明細表.vb Ver arquivo

@@ -16,9 +16,14 @@ Public Class 考勤明細表
16 16
         SQL_考勤明細表_人員()
17 17
         da.Fill(ds) : 人員_dgv.DataSource = ds.Tables(0) : conn.Close()
18 18
         人員_dgv.Columns(0).FillWeight = 70 : 人員_dgv.Columns(1).Visible = False : 人員_dgv.Columns(2).FillWeight = 100 : 人員_dgv.Columns(3).Visible = False
19
+        人員_dgv.Columns(4).Visible = False : 人員_dgv.Columns(5).Visible = False : 人員_dgv.Columns(6).Visible = False : 人員_dgv.Columns(7).Visible = False
20
+        人員_dgv.Columns(8).Visible = False : 人員_dgv.Columns(9).Visible = False
19 21
         For i As Integer = 0 To 人員_dgv.Rows.Count - 1
20 22
             人員_dgv.Rows(i).Cells("No.").Value = i + 1
21 23
         Next
24
+    End Sub
25
+    Private Sub Set_假期統計()
26
+
22 27
     End Sub
23 28
     Private Sub Set_考勤明細()
24 29
         月清單_dgv.DataSource = Nothing : ds1.Clear()
@@ -28,13 +33,14 @@ Public Class 考勤明細表
28 33
         PA = 編號 : PA1 = 年份_cb.Text : PA2 = 月份_cb.Text : SQL_考勤明細表_月份考勤()
29 34
         da.Fill(ds1) : 月清單_dgv.DataSource = ds1.Tables(0) : conn.Close()
30 35
 
31
-        月清單_dgv.Columns(0).FillWeight = 100 : 月清單_dgv.Columns(1).FillWeight = 60 : 月清單_dgv.Columns(2).FillWeight = 90 : 月清單_dgv.Columns(3).FillWeight = 80
32
-        月清單_dgv.Columns(4).FillWeight = 60 : 月清單_dgv.Columns(5).Visible = False : 月清單_dgv.Columns(6).Visible = False : 月清單_dgv.Columns(7).Visible = False
33
-        月清單_dgv.Columns(8).FillWeight = 100 : 月清單_dgv.Columns(9).FillWeight = 100 : 月清單_dgv.Columns(10).FillWeight = 60 : 月清單_dgv.Columns(11).FillWeight = 100
34
-        月清單_dgv.Columns(12).FillWeight = 100 : 月清單_dgv.Columns(13).FillWeight = 60 : 月清單_dgv.Columns(14).FillWeight = 100 : 月清單_dgv.Columns(15).FillWeight = 100
36
+        月清單_dgv.Columns(0).FillWeight = 100 : 月清單_dgv.Columns(1).FillWeight = 60 : 月清單_dgv.Columns(2).FillWeight = 90 : 月清單_dgv.Columns(3).FillWeight = 100
37
+        月清單_dgv.Columns(4).FillWeight = 80 : 月清單_dgv.Columns(5).Visible = False : 月清單_dgv.Columns(6).Visible = False : 月清單_dgv.Columns(7).Visible = False
38
+        月清單_dgv.Columns(8).FillWeight = 80 : 月清單_dgv.Columns(9).FillWeight = 80 : 月清單_dgv.Columns(10).FillWeight = 60 : 月清單_dgv.Columns(11).FillWeight = 80
39
+        月清單_dgv.Columns(12).FillWeight = 80 : 月清單_dgv.Columns(13).FillWeight = 60 : 月清單_dgv.Columns(14).FillWeight = 80 : 月清單_dgv.Columns(15).FillWeight = 80
35 40
         月清單_dgv.Columns(16).FillWeight = 60 : 月清單_dgv.Columns(17).FillWeight = 60 : 月清單_dgv.Columns(18).Visible = False : 月清單_dgv.Columns(19).FillWeight = 60
36 41
         月清單_dgv.Columns(20).FillWeight = 60 : 月清單_dgv.Columns(21).FillWeight = 40 : 月清單_dgv.Columns(22).FillWeight = 40 : 月清單_dgv.Columns(23).FillWeight = 100
37 42
         月清單_dgv.Columns(24).FillWeight = 80 : 月清單_dgv.Columns(25).FillWeight = 150 : 月清單_dgv.Columns("休息1").Visible = False : 月清單_dgv.Columns("休息2").Visible = False
43
+        月清單_dgv.Columns("半天").Visible = False : 月清單_dgv.Columns("班別").Visible = False : 月清單_dgv.Columns("最後下診").Visible = False
38 44
         讀取打卡時間1() : 讀取打卡時間2()
39 45
         Dim S2, F2 As String
40 46
         For I As Integer = 0 To 月清單_dgv.Rows.Count - 1
@@ -356,6 +362,32 @@ Public Class 考勤明細表
356 362
 
357 363
         加班總_tb.Text = Format((加班時9 + (加班時10 / 60)) + (加班時11 + (加班時12 / 60)) + 加班時8 + 加班時21 +
358 364
                                  (加班時17 + 加班時19 + 加班時23 + 加班時25 + (加班時18 + 加班時20 + 加班時24 + 加班時26) / 60), "#,##0.00")
365
+
366
+        If 時薪制_ch.Checked = True Then
367
+            月薪_tb.Text = Strings.Format((CDbl(時薪_tb.Text) * CDbl(常日總_tb.Text)), "#,##0.0")
368
+        Else
369
+            時薪_tb.Text = Strings.Format((CDbl(月薪_tb.Text) / 30 / 8), "#,##0.0")
370
+        End If
371
+
372
+        Dim ds As New DataSet
373
+        假期統計_dgv.DataSource = Nothing : ds.Clear()
374
+        假期統計_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
375
+        假期統計_dgv.ColumnHeadersHeight = 25
376
+        假期統計_dgv.AllowUserToAddRows = False
377
+        PA = 編號 : PA1 = 年份_cb.Text & "/" & 月份_cb.Text : SQL_休假統計1()
378
+        da.Fill(ds) : 假期統計_dgv.DataSource = ds.Tables(0) : conn.Close()
379
+
380
+        第1段加班費1_tb.Text = Strings.Format(((CDbl(當月平日一段_tb.Text) + CDbl(一段假日加_tb.Text)) * CDbl(時薪_tb.Text) * 1.34), "#,##0.0")
381
+        第2段加班費1_tb.Text = Strings.Format(((CDbl(當月平日二段_tb.Text) + CDbl(二段假日加_tb.Text)) * CDbl(時薪_tb.Text) * 1.67), "#,##0.0")
382
+        第3段加班費1_tb.Text = Strings.Format((CDbl(國假日加_tb.Text) * CDbl(時薪_tb.Text) * 2), "#,##0.0")
383
+        加班費1_tb.Text = Strings.Format((CDbl(第1段加班費1_tb.Text) + CDbl(第2段加班費1_tb.Text) + CDbl(第3段加班費1_tb.Text)), "#,##0.0")
384
+        應付小計1_tb.Text = Strings.Format((CDbl(月薪_tb.Text) + CDbl(加班費1_tb.Text) + CDbl(主管加級_tb.Text) + CDbl(職務加級_tb.Text)), "#,##0.0")
385
+
386
+        第1段加班費2_tb.Text = Strings.Format(((CDbl(當月平日一段1_tb.Text) + CDbl(一段假日加1_tb.Text)) * CDbl(時薪_tb.Text) * 1.34), "#,##0.0")
387
+        第2段加班費2_tb.Text = Strings.Format(((CDbl(當月平日二段1_tb.Text) + CDbl(二段假日加1_tb.Text)) * CDbl(時薪_tb.Text) * 1.67), "#,##0.0")
388
+        第3段加班費2_tb.Text = Strings.Format((CDbl(國假日加1_tb.Text) * CDbl(時薪_tb.Text) * 2), "#,##0.0")
389
+        加班費2_tb.Text = Strings.Format((CDbl(第1段加班費2_tb.Text) + CDbl(第2段加班費2_tb.Text) + CDbl(第3段加班費2_tb.Text)), "#,##0.0")
390
+        應付小計2_tb.Text = Strings.Format((CDbl(月薪_tb.Text) + CDbl(加班費2_tb.Text) + CDbl(主管加級_tb.Text) + CDbl(職務加級_tb.Text)), "#,##0.0")
359 391
     End Sub
360 392
     Private Sub Set_時薪制()
361 393
         If 時薪制_ch.Checked = False Then
@@ -474,25 +506,32 @@ Public Class 考勤明細表
474 506
         conn.Close()
475 507
     End Sub
476 508
     Private Sub 考勤明細表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
477
-        Me.MdiParent = GRAMS_SYS : Me.WindowState = 2 : Me.AutoScroll = True
509
+        'Me.MdiParent = GRAMS_SYS : Me.WindowState = 2 : Me.AutoScroll = True
478 510
         年份_下拉表單資料載入() : 讀取班別()
479 511
         年份_cb.Text = Year(Today) : 月份_cb.SelectedIndex = Month(Today) - 1
480 512
         PA1 = 年份_cb.Text : PA2 = 月份_cb.Text
481 513
         讀取日期()
482 514
         If CC(16) = False Then
483 515
             考勤資料編輯_bt.Enabled = False : 時薪制_ch.Enabled = False : 彈性工時_ch.Enabled = False
484
-            人員_dgv.Enabled = False
516
+            人員_dgv.Enabled = False : Panel5.Visible = False
485 517
             姓名_tb.Text = gUserName : 資料數 = 31
486 518
             For i As Integer = 0 To 人員_dgv.Rows.Count - 1 : If 姓名_tb.Text = 人員_dgv("姓名", i).Value.ToString Then : 時薪制_ch.Checked = 人員_dgv("CC18", i).Value : End If : Next
487 519
             SQL_考勤明細表_讀取編號() : If dr.Read() Then : 編號 = dr("DIN") : End If
488
-            Set_考勤明細() : Set_考勤流水() : GRAMS_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
520
+            Set_考勤明細() : PA = 編號 : PA1 = 年份_cb.Text : PA2 = 月份_cb.Text : Set_考勤流水() : GRAMS_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
489 521
         End If
490 522
     End Sub
491 523
     Private Sub 人員_dgv_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles 人員_dgv.CellClick
492 524
         If e.RowIndex = -1 Then : Else
493 525
             編號 = 人員_dgv("編號", e.RowIndex).Value.ToString : 姓名_tb.Text = 人員_dgv("姓名", e.RowIndex).Value.ToString
494 526
             時薪制_ch.Checked = 人員_dgv("CC18", e.RowIndex).Value
495
-            資料數 = 31 : Set_考勤明細() : Set_考勤流水() : GRAMS_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
527
+            月薪_tb.Text = Strings.Format(CDbl(人員_dgv("月薪", e.RowIndex).Value.ToString), "#,##0.0")
528
+            時薪_tb.Text = Strings.Format(CDbl(人員_dgv("時薪", e.RowIndex).Value.ToString), "#,##0.0")
529
+            主管加級_tb.Text = Strings.Format(CDbl(人員_dgv("主管加級", e.RowIndex).Value.ToString), "#,##0.0")
530
+            職務加級_tb.Text = Strings.Format(CDbl(人員_dgv("職務加級", e.RowIndex).Value.ToString), "#,##0.0")
531
+            健保費_tb.Text = Strings.Format(CDbl(人員_dgv("健保費", e.RowIndex).Value.ToString), "#,##0.0")
532
+            勞保費_tb.Text = Strings.Format(CDbl(人員_dgv("勞保費", e.RowIndex).Value.ToString), "#,##0.0")
533
+            資料數 = 31 : Set_考勤明細() : PA = 編號 : PA1 = 年份_cb.Text : PA2 = 月份_cb.Text : Set_考勤流水() : GRAMS_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
534
+
496 535
         End If
497 536
     End Sub
498 537
     Private Sub 考勤流水_dgv_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles 考勤流水_dgv.CellClick
@@ -507,25 +546,45 @@ Public Class 考勤明細表
507 546
             時間_tb.Text = Strings.Left(月清單_dgv("日期", e.RowIndex).Value, 4) & "-" & Strings.Mid(月清單_dgv("日期", e.RowIndex).Value, 6, 2) &
508 547
                            "-" & Strings.Right(月清單_dgv("日期", e.RowIndex).Value, 2)
509 548
             If e.ColumnIndex = 8 Or e.ColumnIndex = 9 Or e.ColumnIndex = 11 Or e.ColumnIndex = 12 Or e.ColumnIndex = 14 Or e.ColumnIndex = 15 Then
510
-                時間_tb.Text = 時間_tb.Text & " " & 月清單_dgv(e.ColumnIndex, e.RowIndex).Value
511
-                For i As Integer = 0 To 考勤流水_dgv.Rows.Count - 1
512
-                    If Len(時間_tb.Text) > 11 Then
513
-                        If 時間_tb.Text = 考勤流水_dgv("打卡時間", i).Value.ToString Then
514
-                            ID_tb.Text = 考勤流水_dgv("ID", i).Value : PA3 = 考勤流水_dgv("ID", i).Value : PA6 = 考勤流水_dgv("打卡時間", i).Value.ToString : Exit For
515
-                        End If
516
-                    ElseIf Len(時間_tb.Text) = 11 Then
517
-                        If Strings.Left(時間_tb.Text, 10) = Strings.Left(考勤流水_dgv("打卡時間", i).Value.ToString, 10) Then
518
-                            ID_tb.Text = 考勤流水_dgv("ID", i).Value : PA3 = 考勤流水_dgv("ID", i).Value : PA6 = 考勤流水_dgv("打卡時間", i).Value.ToString : Exit For
549
+                If 月清單_dgv(e.ColumnIndex, e.RowIndex).Value <> "" Then
550
+                    時間_tb.Text = 時間_tb.Text & " " & 月清單_dgv(e.ColumnIndex, e.RowIndex).Value
551
+                    For i As Integer = 0 To 考勤流水_dgv.Rows.Count - 1
552
+                        If Len(時間_tb.Text) > 11 Then
553
+                            If 時間_tb.Text = 考勤流水_dgv("打卡時間", i).Value.ToString Then
554
+                                ID_tb.Text = 考勤流水_dgv("ID", i).Value : PA3 = 考勤流水_dgv("ID", i).Value : PA6 = 考勤流水_dgv("打卡時間", i).Value.ToString : Exit For
555
+                            End If
556
+                        ElseIf Len(時間_tb.Text) = 11 Then
557
+                            If Strings.Left(時間_tb.Text, 10) = Strings.Left(考勤流水_dgv("打卡時間", i).Value.ToString, 10) Then
558
+                                ID_tb.Text = 考勤流水_dgv("ID", i).Value : PA3 = 考勤流水_dgv("ID", i).Value : PA6 = 考勤流水_dgv("打卡時間", i).Value.ToString : Exit For
559
+                            End If
519 560
                         End If
561
+                    Next
562
+                    If ID_tb.Text = "" Then
563
+                        If e.ColumnIndex = 8 Then : PA6 = 時間_tb.Text & " 08:00:00"
564
+                        ElseIf e.ColumnIndex = 9 Then : PA6 = 時間_tb.Text & " 12:00:00"
565
+                        ElseIf e.ColumnIndex = 11 Then : PA6 = 時間_tb.Text & " 13:00:00"
566
+                        ElseIf e.ColumnIndex = 12 Then : PA6 = 時間_tb.Text & " 17:00:00"
567
+                        ElseIf e.ColumnIndex = 14 Then : PA6 = 時間_tb.Text & " 18:00:00"
568
+                        ElseIf e.ColumnIndex = 15 Then : PA6 = 時間_tb.Text & " 20:00:00"
569
+                        End If : PA3 = ""
570
+                    End If
571
+                Else
572
+                    If ID_tb.Text = "" Then
573
+                        If e.ColumnIndex = 8 Then : PA6 = 時間_tb.Text & " 08:00:00"
574
+                        ElseIf e.ColumnIndex = 9 Then : PA6 = 時間_tb.Text & " 12:00:00"
575
+                        ElseIf e.ColumnIndex = 11 Then : PA6 = 時間_tb.Text & " 13:00:00"
576
+                        ElseIf e.ColumnIndex = 12 Then : PA6 = 時間_tb.Text & " 17:00:00"
577
+                        ElseIf e.ColumnIndex = 14 Then : PA6 = 時間_tb.Text & " 18:00:00"
578
+                        ElseIf e.ColumnIndex = 15 Then : PA6 = 時間_tb.Text & " 20:00:00"
579
+                        End If : PA3 = ""
520 580
                     End If
521
-                Next
522
-                If ID_tb.Text = "" Then
523
-                    ID_tb.Text = 考勤流水_dgv("ID", 0).Value : PA3 = 考勤流水_dgv("ID", 0).Value : PA6 = 考勤流水_dgv("打卡時間", 0).Value.ToString
524 581
                 End If
582
+                考勤明細表_編輯.時間_dtp.Value = PA6 : 考勤明細表_編輯.姓名_tb.Text = 姓名_tb.Text
583
+                考勤明細表_編輯.ID_lb.Text = PA3 : 考勤明細表_編輯.ID1_lb.Text = 編號
525 584
             Else
526 585
                 時間_tb.Text = "" : ID_tb.Text = ""
527 586
             End If
528
-        End If
587
+        End If : 考勤明細表_編輯.BringToFront()
529 588
     End Sub
530 589
     Private Sub 月清單_dgv_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 月清單_dgv.RowPostPaint
531 590
         For I As Integer = 0 To 月清單_dgv.Rows.Count - 1
@@ -554,17 +613,20 @@ Public Class 考勤明細表
554 613
         End If
555 614
     End Sub
556 615
     Private Sub 考勤資料編輯_bt_Click(sender As Object, e As EventArgs) Handles 考勤資料編輯_bt.Click
557
-        If PA6 <> "" And PA3 <> "" And IsNumeric(PA3) <> False Then
616
+        If PA6 <> "" Then
558 617
             PA4 = PA6 : PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = Strings.Mid(PA6, 9, 2)
559
-            PA5 = 姓名_tb.Text : PA7 = 編號
560
-            考勤明細表_編輯.ShowDialog()
561
-
562
-            PA = 編號 : PA1 = 年份_cb.Text : PA2 = 月份_cb.Text
563
-            Set_考勤流水() : 資料數 = 31 : Set_考勤明細() : GRAMS_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
618
+            PA5 = 姓名_tb.Text : PA7 = 編號 : 考勤明細表_編輯.Show() : 考勤重讀()
564 619
         Else
565 620
             MsgBox("請選擇右下方的時間,做為修改的依據!!")
566 621
         End If
567 622
     End Sub
623
+    Private Sub 考勤重讀()
624
+        PA = 編號 : PA1 = 年份_cb.Text : PA2 = 月份_cb.Text
625
+        Set_考勤流水() : 資料數 = 31 : Set_考勤明細() : GRAMS_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
626
+    End Sub
627
+    Private Sub R_bt_Click(sender As Object, e As EventArgs) Handles R_bt.Click
628
+        考勤重讀()
629
+    End Sub
568 630
     Private Sub 排班資料_bt_Click(sender As Object, e As EventArgs) Handles 排班資料_bt.Click
569 631
         PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 姓名_tb.Text : 個人班表.Close() : 個人班表.Show()
570 632
     End Sub

+ 7
- 9
GRAMS-SYS/04、考勤管理/考勤明細表_編輯.Designer.vb Ver arquivo

@@ -49,7 +49,7 @@ Partial Class 考勤明細表_編輯
49 49
         Me.Label2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
50 50
         Me.Label2.Location = New System.Drawing.Point(9, 11)
51 51
         Me.Label2.Name = "Label2"
52
-        Me.Label2.Size = New System.Drawing.Size(32, 16)
52
+        Me.Label2.Size = New System.Drawing.Size(31, 16)
53 53
         Me.Label2.TabIndex = 778
54 54
         Me.Label2.Text = "姓名"
55 55
         '
@@ -68,18 +68,17 @@ Partial Class 考勤明細表_編輯
68 68
         '
69 69
         Me.ID_lb.AutoSize = True
70 70
         Me.ID_lb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
71
-        Me.ID_lb.Location = New System.Drawing.Point(11, 40)
71
+        Me.ID_lb.Location = New System.Drawing.Point(3, 40)
72 72
         Me.ID_lb.Name = "ID_lb"
73
-        Me.ID_lb.Size = New System.Drawing.Size(24, 16)
73
+        Me.ID_lb.Size = New System.Drawing.Size(23, 16)
74 74
         Me.ID_lb.TabIndex = 788
75 75
         Me.ID_lb.Text = "XX"
76
-        Me.ID_lb.Visible = False
77 76
         '
78 77
         '修改該筆資料_bt
79 78
         '
80 79
         Me.修改該筆資料_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
81 80
         Me.修改該筆資料_bt.ForeColor = System.Drawing.Color.Green
82
-        Me.修改該筆資料_bt.Location = New System.Drawing.Point(136, 37)
81
+        Me.修改該筆資料_bt.Location = New System.Drawing.Point(140, 37)
83 82
         Me.修改該筆資料_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
84 83
         Me.修改該筆資料_bt.Name = "修改該筆資料_bt"
85 84
         Me.修改該筆資料_bt.Size = New System.Drawing.Size(91, 39)
@@ -103,7 +102,7 @@ Partial Class 考勤明細表_編輯
103 102
         '
104 103
         Me.新增資料_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
105 104
         Me.新增資料_bt.ForeColor = System.Drawing.Color.Blue
106
-        Me.新增資料_bt.Location = New System.Drawing.Point(42, 37)
105
+        Me.新增資料_bt.Location = New System.Drawing.Point(46, 37)
107 106
         Me.新增資料_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
108 107
         Me.新增資料_bt.Name = "新增資料_bt"
109 108
         Me.新增資料_bt.Size = New System.Drawing.Size(91, 39)
@@ -115,12 +114,11 @@ Partial Class 考勤明細表_編輯
115 114
         '
116 115
         Me.ID1_lb.AutoSize = True
117 116
         Me.ID1_lb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
118
-        Me.ID1_lb.Location = New System.Drawing.Point(11, 56)
117
+        Me.ID1_lb.Location = New System.Drawing.Point(3, 56)
119 118
         Me.ID1_lb.Name = "ID1_lb"
120
-        Me.ID1_lb.Size = New System.Drawing.Size(24, 16)
119
+        Me.ID1_lb.Size = New System.Drawing.Size(23, 16)
121 120
         Me.ID1_lb.TabIndex = 791
122 121
         Me.ID1_lb.Text = "XX"
123
-        Me.ID1_lb.Visible = False
124 122
         '
125 123
         '考勤明細表_編輯
126 124
         '

+ 11
- 3
GRAMS-SYS/04、考勤管理/考勤明細表_編輯.vb Ver arquivo

@@ -6,12 +6,20 @@
6 6
         ID1_lb.Text = PA7
7 7
     End Sub
8 8
     Private Sub 修改該筆資料_bt_Click(sender As Object, e As EventArgs) Handles 修改該筆資料_bt.Click
9
-        PA4 = ID_lb.Text : PA3 = 時間_dtp.Text : SQL_時間修改() : MsgBox("修改成功!") : Me.Close()
9
+        If ID_lb.Text = "" Then
10
+            MsgBox("該考勤位置沒有資料可以修改!!")
11
+        Else
12
+            PA4 = ID_lb.Text : PA3 = 時間_dtp.Text : SQL_時間修改() : MsgBox("修改成功!") : 考勤明細表.R_bt.PerformClick()
13
+        End If
10 14
     End Sub
11 15
     Private Sub 刪除該筆資料_bt_Click(sender As Object, e As EventArgs) Handles 刪除該筆資料_bt.Click
12
-        PA4 = ID_lb.Text : PA3 = 時間_dtp.Text : SQL_時間刪除() : MsgBox("刪除成功!") : Me.Close()
16
+        If ID_lb.Text = "" Then
17
+            MsgBox("該考勤位置沒有資料可以刪除!!")
18
+        Else
19
+            PA4 = ID_lb.Text : PA3 = 時間_dtp.Text : SQL_時間刪除() : MsgBox("刪除成功!") : 考勤明細表.R_bt.PerformClick()
20
+        End If
13 21
     End Sub
14 22
     Private Sub 新增資料_bt_Click(sender As Object, e As EventArgs) Handles 新增資料_bt.Click
15
-        PA4 = ID1_lb.Text : PA3 = 時間_dtp.Text : SQL_時間新增() : MsgBox("新增成功!") : Me.Close()
23
+        PA4 = ID1_lb.Text : PA3 = 時間_dtp.Text : SQL_時間新增() : MsgBox("新增成功!") : 考勤明細表.R_bt.PerformClick()
16 24
     End Sub
17 25
 End Class

+ 171
- 227
GRAMS-SYS/10、系統管理/系統設定.Designer.vb Ver arquivo

@@ -55,18 +55,7 @@ Partial Class 系統設定
55 55
         Me.Label4 = New System.Windows.Forms.Label()
56 56
         Me.FTP資料夾_wb = New System.Windows.Forms.WebBrowser()
57 57
         Me.GroupBox2 = New System.Windows.Forms.GroupBox()
58
-        Me.GroupBox3 = New System.Windows.Forms.GroupBox()
59
-        Me.Label6 = New System.Windows.Forms.Label()
60
-        Me.Label5 = New System.Windows.Forms.Label()
61
-        Me.Label1 = New System.Windows.Forms.Label()
62
-        Me.晚_tb = New System.Windows.Forms.TextBox()
63
-        Me.中_tb = New System.Windows.Forms.TextBox()
64
-        Me.早_tb = New System.Windows.Forms.TextBox()
65
-        Me.診別_tb = New System.Windows.Forms.TextBox()
66
-        Me.星期_tb = New System.Windows.Forms.TextBox()
67
-        Me.時間修改_bt = New System.Windows.Forms.Button()
68
-        Me.門診_dgv = New System.Windows.Forms.DataGridView()
69
-        Me.料庫_dgv = New System.Windows.Forms.DataGridView()
58
+        Me.FTP_dgv = New System.Windows.Forms.DataGridView()
70 59
         Me.GroupBox6 = New System.Windows.Forms.GroupBox()
71 60
         Me.位置_tb = New System.Windows.Forms.TextBox()
72 61
         Me.資料庫刪除_tb = New System.Windows.Forms.Button()
@@ -76,9 +65,6 @@ Partial Class 系統設定
76 65
         Me.帳號_tb = New System.Windows.Forms.TextBox()
77 66
         Me.地址_tb = New System.Windows.Forms.TextBox()
78 67
         Me.資料庫新增_tb = New System.Windows.Forms.Button()
79
-        Me.日期_dtp = New System.Windows.Forms.DateTimePicker()
80
-        Me.新增門診_bt = New System.Windows.Forms.Button()
81
-        Me.刪除門診_bt = New System.Windows.Forms.Button()
82 68
         Me.ID_tb = New System.Windows.Forms.TextBox()
83 69
         Me.時段_tb = New System.Windows.Forms.TextBox()
84 70
         Me.時段1_tb = New System.Windows.Forms.TextBox()
@@ -105,19 +91,32 @@ Partial Class 系統設定
105 91
         Me.職務_dgv = New System.Windows.Forms.DataGridView()
106 92
         Me.職務_tb = New System.Windows.Forms.TextBox()
107 93
         Me.GroupBox5 = New System.Windows.Forms.GroupBox()
94
+        Me.GroupBox3 = New System.Windows.Forms.GroupBox()
95
+        Me.適應症_tb = New System.Windows.Forms.TextBox()
96
+        Me.適應症_dgv = New System.Windows.Forms.DataGridView()
97
+        Me.適應症_刪除_bt = New System.Windows.Forms.Button()
98
+        Me.適應症_修改_bt = New System.Windows.Forms.Button()
99
+        Me.適應症_新增_bt = New System.Windows.Forms.Button()
100
+        Me.適應症_編號_tb = New System.Windows.Forms.TextBox()
101
+        Me.Panel1 = New System.Windows.Forms.Panel()
102
+        Me.Panel2 = New System.Windows.Forms.Panel()
103
+        Me.Panel3 = New System.Windows.Forms.Panel()
108 104
         Me.GroupBox4.SuspendLayout()
109 105
         CType(Me.年份_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
110 106
         Me.GroupBox1.SuspendLayout()
111 107
         CType(Me.資料夾清單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
112 108
         Me.GroupBox2.SuspendLayout()
113
-        Me.GroupBox3.SuspendLayout()
114
-        CType(Me.門診_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
115
-        CType(Me.料庫_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
109
+        CType(Me.FTP_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
116 110
         Me.GroupBox6.SuspendLayout()
117 111
         CType(Me.時段_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
118 112
         Me.GroupBox7.SuspendLayout()
119 113
         CType(Me.職務_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
120 114
         Me.GroupBox5.SuspendLayout()
115
+        Me.GroupBox3.SuspendLayout()
116
+        CType(Me.適應症_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
117
+        Me.Panel1.SuspendLayout()
118
+        Me.Panel2.SuspendLayout()
119
+        Me.Panel3.SuspendLayout()
121 120
         Me.SuspendLayout()
122 121
         '
123 122
         'GroupBox4
@@ -233,23 +232,21 @@ Partial Class 系統設定
233 232
         '
234 233
         '本機資料夾_wb
235 234
         '
236
-        Me.本機資料夾_wb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
237
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
238
-        Me.本機資料夾_wb.Location = New System.Drawing.Point(5, 74)
235
+        Me.本機資料夾_wb.Dock = System.Windows.Forms.DockStyle.Fill
236
+        Me.本機資料夾_wb.Location = New System.Drawing.Point(0, 0)
239 237
         Me.本機資料夾_wb.MinimumSize = New System.Drawing.Size(20, 20)
240 238
         Me.本機資料夾_wb.Name = "本機資料夾_wb"
241
-        Me.本機資料夾_wb.Size = New System.Drawing.Size(321, 187)
239
+        Me.本機資料夾_wb.Size = New System.Drawing.Size(323, 191)
242 240
         Me.本機資料夾_wb.TabIndex = 690
243 241
         Me.本機資料夾_wb.Url = New System.Uri("", System.UriKind.Relative)
244 242
         '
245 243
         'FTP執行檔_wb
246 244
         '
247
-        Me.FTP執行檔_wb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
248
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
249
-        Me.FTP執行檔_wb.Location = New System.Drawing.Point(5, 284)
245
+        Me.FTP執行檔_wb.Dock = System.Windows.Forms.DockStyle.Fill
246
+        Me.FTP執行檔_wb.Location = New System.Drawing.Point(0, 0)
250 247
         Me.FTP執行檔_wb.MinimumSize = New System.Drawing.Size(20, 20)
251 248
         Me.FTP執行檔_wb.Name = "FTP執行檔_wb"
252
-        Me.FTP執行檔_wb.Size = New System.Drawing.Size(324, 151)
249
+        Me.FTP執行檔_wb.Size = New System.Drawing.Size(323, 150)
253 250
         Me.FTP執行檔_wb.TabIndex = 689
254 251
         Me.FTP執行檔_wb.Url = New System.Uri("", System.UriKind.Relative)
255 252
         '
@@ -285,16 +282,16 @@ Partial Class 系統設定
285 282
         '
286 283
         'GroupBox1
287 284
         '
285
+        Me.GroupBox1.Controls.Add(Me.Panel1)
288 286
         Me.GroupBox1.Controls.Add(Me.Label2)
289 287
         Me.GroupBox1.Controls.Add(Me.資料庫版本號_lb)
290 288
         Me.GroupBox1.Controls.Add(Me.版本號_tb)
291 289
         Me.GroupBox1.Controls.Add(Me.修改1_bt)
292 290
         Me.GroupBox1.Controls.Add(Me.Label13)
293
-        Me.GroupBox1.Controls.Add(Me.FTP執行檔_wb)
294 291
         Me.GroupBox1.Controls.Add(Me.讀取資料夾路徑_bt)
295
-        Me.GroupBox1.Controls.Add(Me.本機資料夾_wb)
296 292
         Me.GroupBox1.Controls.Add(Me.Label12)
297
-        Me.GroupBox1.Location = New System.Drawing.Point(259, 2)
293
+        Me.GroupBox1.Controls.Add(Me.Panel2)
294
+        Me.GroupBox1.Location = New System.Drawing.Point(454, 2)
298 295
         Me.GroupBox1.Name = "GroupBox1"
299 296
         Me.GroupBox1.Size = New System.Drawing.Size(334, 442)
300 297
         Me.GroupBox1.TabIndex = 695
@@ -387,13 +384,11 @@ Partial Class 系統設定
387 384
         '
388 385
         'FTP資料夾_wb
389 386
         '
390
-        Me.FTP資料夾_wb.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
391
-            Or System.Windows.Forms.AnchorStyles.Left) _
392
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
393
-        Me.FTP資料夾_wb.Location = New System.Drawing.Point(3, 221)
387
+        Me.FTP資料夾_wb.Dock = System.Windows.Forms.DockStyle.Fill
388
+        Me.FTP資料夾_wb.Location = New System.Drawing.Point(0, 0)
394 389
         Me.FTP資料夾_wb.MinimumSize = New System.Drawing.Size(20, 20)
395 390
         Me.FTP資料夾_wb.Name = "FTP資料夾_wb"
396
-        Me.FTP資料夾_wb.Size = New System.Drawing.Size(533, 81)
391
+        Me.FTP資料夾_wb.Size = New System.Drawing.Size(531, 82)
397 392
         Me.FTP資料夾_wb.TabIndex = 696
398 393
         Me.FTP資料夾_wb.Url = New System.Uri("", System.UriKind.Relative)
399 394
         '
@@ -401,7 +396,6 @@ Partial Class 系統設定
401 396
         '
402 397
         Me.GroupBox2.Controls.Add(Me.資料夾名稱_tb)
403 398
         Me.GroupBox2.Controls.Add(Me.指定_tb)
404
-        Me.GroupBox2.Controls.Add(Me.FTP資料夾_wb)
405 399
         Me.GroupBox2.Controls.Add(Me.刪除_bt)
406 400
         Me.GroupBox2.Controls.Add(Me.Label4)
407 401
         Me.GroupBox2.Controls.Add(Me.修改_bt)
@@ -409,151 +403,27 @@ Partial Class 系統設定
409 403
         Me.GroupBox2.Controls.Add(Me.新增_bt)
410 404
         Me.GroupBox2.Controls.Add(Me.指定頁面_tb)
411 405
         Me.GroupBox2.Controls.Add(Me.備註_tb)
412
-        Me.GroupBox2.Location = New System.Drawing.Point(592, 135)
406
+        Me.GroupBox2.Controls.Add(Me.Panel3)
407
+        Me.GroupBox2.Location = New System.Drawing.Point(787, 135)
413 408
         Me.GroupBox2.Name = "GroupBox2"
414 409
         Me.GroupBox2.Size = New System.Drawing.Size(541, 309)
415 410
         Me.GroupBox2.TabIndex = 706
416 411
         Me.GroupBox2.TabStop = False
417 412
         Me.GroupBox2.Text = "FTP資料夾管理"
418 413
         '
419
-        'GroupBox3
420
-        '
421
-        Me.GroupBox3.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
422
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
423
-        Me.GroupBox3.Controls.Add(Me.刪除門診_bt)
424
-        Me.GroupBox3.Controls.Add(Me.新增門診_bt)
425
-        Me.GroupBox3.Controls.Add(Me.日期_dtp)
426
-        Me.GroupBox3.Controls.Add(Me.Label6)
427
-        Me.GroupBox3.Controls.Add(Me.Label5)
428
-        Me.GroupBox3.Controls.Add(Me.Label1)
429
-        Me.GroupBox3.Controls.Add(Me.晚_tb)
430
-        Me.GroupBox3.Controls.Add(Me.中_tb)
431
-        Me.GroupBox3.Controls.Add(Me.早_tb)
432
-        Me.GroupBox3.Controls.Add(Me.診別_tb)
433
-        Me.GroupBox3.Controls.Add(Me.星期_tb)
434
-        Me.GroupBox3.Controls.Add(Me.時間修改_bt)
435
-        Me.GroupBox3.Controls.Add(Me.門診_dgv)
436
-        Me.GroupBox3.Location = New System.Drawing.Point(1132, 2)
437
-        Me.GroupBox3.Name = "GroupBox3"
438
-        Me.GroupBox3.Size = New System.Drawing.Size(520, 442)
439
-        Me.GroupBox3.TabIndex = 707
440
-        Me.GroupBox3.TabStop = False
441
-        Me.GroupBox3.Text = "門診資料"
442
-        '
443
-        'Label6
444
-        '
445
-        Me.Label6.AutoSize = True
446
-        Me.Label6.Location = New System.Drawing.Point(443, 20)
447
-        Me.Label6.Name = "Label6"
448
-        Me.Label6.Size = New System.Drawing.Size(19, 16)
449
-        Me.Label6.TabIndex = 694
450
-        Me.Label6.Text = "晚"
451
-        '
452
-        'Label5
453
-        '
454
-        Me.Label5.AutoSize = True
455
-        Me.Label5.Location = New System.Drawing.Point(342, 21)
456
-        Me.Label5.Name = "Label5"
457
-        Me.Label5.Size = New System.Drawing.Size(19, 16)
458
-        Me.Label5.TabIndex = 693
459
-        Me.Label5.Text = "中"
460
-        '
461
-        'Label1
462
-        '
463
-        Me.Label1.AutoSize = True
464
-        Me.Label1.Location = New System.Drawing.Point(242, 21)
465
-        Me.Label1.Name = "Label1"
466
-        Me.Label1.Size = New System.Drawing.Size(19, 16)
467
-        Me.Label1.TabIndex = 692
468
-        Me.Label1.Text = "早"
469
-        '
470
-        '晚_tb
471
-        '
472
-        Me.晚_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
473
-        Me.晚_tb.Location = New System.Drawing.Point(411, 40)
474
-        Me.晚_tb.Margin = New System.Windows.Forms.Padding(5)
475
-        Me.晚_tb.Name = "晚_tb"
476
-        Me.晚_tb.Size = New System.Drawing.Size(101, 23)
477
-        Me.晚_tb.TabIndex = 691
478
-        '
479
-        '中_tb
480
-        '
481
-        Me.中_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
482
-        Me.中_tb.Location = New System.Drawing.Point(311, 40)
483
-        Me.中_tb.Margin = New System.Windows.Forms.Padding(5)
484
-        Me.中_tb.Name = "中_tb"
485
-        Me.中_tb.Size = New System.Drawing.Size(101, 23)
486
-        Me.中_tb.TabIndex = 690
487
-        '
488
-        '早_tb
489
-        '
490
-        Me.早_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
491
-        Me.早_tb.Location = New System.Drawing.Point(211, 40)
492
-        Me.早_tb.Margin = New System.Windows.Forms.Padding(5)
493
-        Me.早_tb.Name = "早_tb"
494
-        Me.早_tb.Size = New System.Drawing.Size(101, 23)
495
-        Me.早_tb.TabIndex = 689
496
-        '
497
-        '診別_tb
498
-        '
499
-        Me.診別_tb.Enabled = False
500
-        Me.診別_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
501
-        Me.診別_tb.Location = New System.Drawing.Point(110, 40)
502
-        Me.診別_tb.Margin = New System.Windows.Forms.Padding(5)
503
-        Me.診別_tb.Name = "診別_tb"
504
-        Me.診別_tb.Size = New System.Drawing.Size(101, 23)
505
-        Me.診別_tb.TabIndex = 688
506
-        '
507
-        '星期_tb
508
-        '
509
-        Me.星期_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
510
-        Me.星期_tb.Location = New System.Drawing.Point(4, 40)
511
-        Me.星期_tb.Margin = New System.Windows.Forms.Padding(5)
512
-        Me.星期_tb.Name = "星期_tb"
513
-        Me.星期_tb.Size = New System.Drawing.Size(101, 23)
514
-        Me.星期_tb.TabIndex = 687
515
-        '
516
-        '時間修改_bt
517
-        '
518
-        Me.時間修改_bt.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
519
-        Me.時間修改_bt.ForeColor = System.Drawing.Color.DarkGreen
520
-        Me.時間修改_bt.Location = New System.Drawing.Point(133, 14)
521
-        Me.時間修改_bt.Name = "時間修改_bt"
522
-        Me.時間修改_bt.Size = New System.Drawing.Size(39, 25)
523
-        Me.時間修改_bt.TabIndex = 225
524
-        Me.時間修改_bt.Text = "修改"
525
-        Me.時間修改_bt.UseVisualStyleBackColor = True
526
-        '
527
-        '門診_dgv
414
+        'FTP_dgv
528 415
         '
529 416
         DataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
530
-        Me.門診_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle8
531
-        Me.門診_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
532
-            Or System.Windows.Forms.AnchorStyles.Left) _
533
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
534
-        Me.門診_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
535
-        Me.門診_dgv.BackgroundColor = System.Drawing.Color.White
536
-        Me.門診_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
537
-        Me.門診_dgv.Location = New System.Drawing.Point(4, 64)
538
-        Me.門診_dgv.Name = "門診_dgv"
539
-        Me.門診_dgv.RowHeadersWidth = 5
540
-        Me.門診_dgv.RowTemplate.Height = 24
541
-        Me.門診_dgv.Size = New System.Drawing.Size(510, 372)
542
-        Me.門診_dgv.TabIndex = 223
543
-        '
544
-        '料庫_dgv
545
-        '
546
-        DataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
547
-        Me.料庫_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle9
548
-        Me.料庫_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
549
-        Me.料庫_dgv.BackgroundColor = System.Drawing.Color.White
550
-        Me.料庫_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
551
-        Me.料庫_dgv.Location = New System.Drawing.Point(6, 69)
552
-        Me.料庫_dgv.Name = "料庫_dgv"
553
-        Me.料庫_dgv.RowHeadersWidth = 5
554
-        Me.料庫_dgv.RowTemplate.Height = 24
555
-        Me.料庫_dgv.Size = New System.Drawing.Size(529, 55)
556
-        Me.料庫_dgv.TabIndex = 709
417
+        Me.FTP_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle8
418
+        Me.FTP_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
419
+        Me.FTP_dgv.BackgroundColor = System.Drawing.Color.White
420
+        Me.FTP_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
421
+        Me.FTP_dgv.Location = New System.Drawing.Point(6, 69)
422
+        Me.FTP_dgv.Name = "FTP_dgv"
423
+        Me.FTP_dgv.RowHeadersWidth = 5
424
+        Me.FTP_dgv.RowTemplate.Height = 24
425
+        Me.FTP_dgv.Size = New System.Drawing.Size(529, 55)
426
+        Me.FTP_dgv.TabIndex = 709
557 427
         '
558 428
         'GroupBox6
559 429
         '
@@ -565,8 +435,8 @@ Partial Class 系統設定
565 435
         Me.GroupBox6.Controls.Add(Me.帳號_tb)
566 436
         Me.GroupBox6.Controls.Add(Me.地址_tb)
567 437
         Me.GroupBox6.Controls.Add(Me.資料庫新增_tb)
568
-        Me.GroupBox6.Controls.Add(Me.料庫_dgv)
569
-        Me.GroupBox6.Location = New System.Drawing.Point(592, 2)
438
+        Me.GroupBox6.Controls.Add(Me.FTP_dgv)
439
+        Me.GroupBox6.Location = New System.Drawing.Point(787, 2)
570 440
         Me.GroupBox6.Name = "GroupBox6"
571 441
         Me.GroupBox6.Size = New System.Drawing.Size(541, 133)
572 442
         Me.GroupBox6.TabIndex = 710
@@ -636,37 +506,6 @@ Partial Class 系統設定
636 506
         Me.資料庫新增_tb.Text = "新增"
637 507
         Me.資料庫新增_tb.UseVisualStyleBackColor = True
638 508
         '
639
-        '日期_dtp
640
-        '
641
-        Me.日期_dtp.CustomFormat = "yyyy/MM/dd"
642
-        Me.日期_dtp.Format = System.Windows.Forms.DateTimePickerFormat.Custom
643
-        Me.日期_dtp.Location = New System.Drawing.Point(5, 15)
644
-        Me.日期_dtp.Name = "日期_dtp"
645
-        Me.日期_dtp.Size = New System.Drawing.Size(88, 23)
646
-        Me.日期_dtp.TabIndex = 695
647
-        '
648
-        '新增門診_bt
649
-        '
650
-        Me.新增門診_bt.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
651
-        Me.新增門診_bt.ForeColor = System.Drawing.Color.Blue
652
-        Me.新增門診_bt.Location = New System.Drawing.Point(94, 14)
653
-        Me.新增門診_bt.Name = "新增門診_bt"
654
-        Me.新增門診_bt.Size = New System.Drawing.Size(39, 25)
655
-        Me.新增門診_bt.TabIndex = 696
656
-        Me.新增門診_bt.Text = "新增"
657
-        Me.新增門診_bt.UseVisualStyleBackColor = True
658
-        '
659
-        '刪除門診_bt
660
-        '
661
-        Me.刪除門診_bt.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
662
-        Me.刪除門診_bt.ForeColor = System.Drawing.Color.Red
663
-        Me.刪除門診_bt.Location = New System.Drawing.Point(172, 14)
664
-        Me.刪除門診_bt.Name = "刪除門診_bt"
665
-        Me.刪除門診_bt.Size = New System.Drawing.Size(39, 25)
666
-        Me.刪除門診_bt.TabIndex = 697
667
-        Me.刪除門診_bt.Text = "刪除"
668
-        Me.刪除門診_bt.UseVisualStyleBackColor = True
669
-        '
670 509
         'ID_tb
671 510
         '
672 511
         Me.ID_tb.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
@@ -897,8 +736,8 @@ Partial Class 系統設定
897 736
         '
898 737
         '職務_dgv
899 738
         '
900
-        DataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
901
-        Me.職務_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle10
739
+        DataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
740
+        Me.職務_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle9
902 741
         Me.職務_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
903 742
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
904 743
         Me.職務_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
@@ -932,16 +771,122 @@ Partial Class 系統設定
932 771
         Me.GroupBox5.TabStop = False
933 772
         Me.GroupBox5.Text = "工作職務"
934 773
         '
774
+        'GroupBox3
775
+        '
776
+        Me.GroupBox3.Controls.Add(Me.適應症_編號_tb)
777
+        Me.GroupBox3.Controls.Add(Me.適應症_tb)
778
+        Me.GroupBox3.Controls.Add(Me.適應症_dgv)
779
+        Me.GroupBox3.Controls.Add(Me.適應症_刪除_bt)
780
+        Me.GroupBox3.Controls.Add(Me.適應症_修改_bt)
781
+        Me.GroupBox3.Controls.Add(Me.適應症_新增_bt)
782
+        Me.GroupBox3.Location = New System.Drawing.Point(259, 2)
783
+        Me.GroupBox3.Name = "GroupBox3"
784
+        Me.GroupBox3.Size = New System.Drawing.Size(196, 442)
785
+        Me.GroupBox3.TabIndex = 718
786
+        Me.GroupBox3.TabStop = False
787
+        Me.GroupBox3.Text = "適應症資料"
788
+        '
789
+        '適應症_tb
790
+        '
791
+        Me.適應症_tb.Location = New System.Drawing.Point(55, 17)
792
+        Me.適應症_tb.Name = "適應症_tb"
793
+        Me.適應症_tb.Size = New System.Drawing.Size(136, 23)
794
+        Me.適應症_tb.TabIndex = 229
795
+        '
796
+        '適應症_dgv
797
+        '
798
+        DataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
799
+        Me.適應症_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle10
800
+        Me.適應症_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
801
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
802
+        Me.適應症_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
803
+        Me.適應症_dgv.BackgroundColor = System.Drawing.Color.White
804
+        Me.適應症_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
805
+        Me.適應症_dgv.Location = New System.Drawing.Point(4, 122)
806
+        Me.適應症_dgv.Name = "適應症_dgv"
807
+        Me.適應症_dgv.RowHeadersWidth = 5
808
+        Me.適應症_dgv.RowTemplate.Height = 24
809
+        Me.適應症_dgv.Size = New System.Drawing.Size(187, 314)
810
+        Me.適應症_dgv.TabIndex = 227
811
+        '
812
+        '適應症_刪除_bt
813
+        '
814
+        Me.適應症_刪除_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
815
+        Me.適應症_刪除_bt.ForeColor = System.Drawing.Color.Red
816
+        Me.適應症_刪除_bt.Location = New System.Drawing.Point(3, 94)
817
+        Me.適應症_刪除_bt.Name = "適應症_刪除_bt"
818
+        Me.適應症_刪除_bt.Size = New System.Drawing.Size(187, 25)
819
+        Me.適應症_刪除_bt.TabIndex = 226
820
+        Me.適應症_刪除_bt.Text = "刪除"
821
+        Me.適應症_刪除_bt.UseVisualStyleBackColor = True
822
+        '
823
+        '適應症_修改_bt
824
+        '
825
+        Me.適應症_修改_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
826
+        Me.適應症_修改_bt.ForeColor = System.Drawing.Color.DarkGreen
827
+        Me.適應症_修改_bt.Location = New System.Drawing.Point(3, 67)
828
+        Me.適應症_修改_bt.Name = "適應症_修改_bt"
829
+        Me.適應症_修改_bt.Size = New System.Drawing.Size(187, 25)
830
+        Me.適應症_修改_bt.TabIndex = 225
831
+        Me.適應症_修改_bt.Text = "修改"
832
+        Me.適應症_修改_bt.UseVisualStyleBackColor = True
833
+        '
834
+        '適應症_新增_bt
835
+        '
836
+        Me.適應症_新增_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
837
+        Me.適應症_新增_bt.ForeColor = System.Drawing.Color.Blue
838
+        Me.適應症_新增_bt.Location = New System.Drawing.Point(3, 41)
839
+        Me.適應症_新增_bt.Name = "適應症_新增_bt"
840
+        Me.適應症_新增_bt.Size = New System.Drawing.Size(187, 25)
841
+        Me.適應症_新增_bt.TabIndex = 224
842
+        Me.適應症_新增_bt.Text = "新增"
843
+        Me.適應症_新增_bt.UseVisualStyleBackColor = True
844
+        '
845
+        '適應症_編號_tb
846
+        '
847
+        Me.適應症_編號_tb.Enabled = False
848
+        Me.適應症_編號_tb.Location = New System.Drawing.Point(5, 17)
849
+        Me.適應症_編號_tb.Name = "適應症_編號_tb"
850
+        Me.適應症_編號_tb.Size = New System.Drawing.Size(50, 23)
851
+        Me.適應症_編號_tb.TabIndex = 230
852
+        '
853
+        'Panel1
854
+        '
855
+        Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
856
+        Me.Panel1.Controls.Add(Me.本機資料夾_wb)
857
+        Me.Panel1.Location = New System.Drawing.Point(5, 68)
858
+        Me.Panel1.Name = "Panel1"
859
+        Me.Panel1.Size = New System.Drawing.Size(325, 193)
860
+        Me.Panel1.TabIndex = 695
861
+        '
862
+        'Panel2
863
+        '
864
+        Me.Panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
865
+        Me.Panel2.Controls.Add(Me.FTP執行檔_wb)
866
+        Me.Panel2.Location = New System.Drawing.Point(5, 284)
867
+        Me.Panel2.Name = "Panel2"
868
+        Me.Panel2.Size = New System.Drawing.Size(325, 152)
869
+        Me.Panel2.TabIndex = 696
870
+        '
871
+        'Panel3
872
+        '
873
+        Me.Panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
874
+        Me.Panel3.Controls.Add(Me.FTP資料夾_wb)
875
+        Me.Panel3.Location = New System.Drawing.Point(3, 219)
876
+        Me.Panel3.Name = "Panel3"
877
+        Me.Panel3.Size = New System.Drawing.Size(533, 84)
878
+        Me.Panel3.TabIndex = 706
879
+        '
935 880
         '系統設定
936 881
         '
937 882
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
938 883
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
939 884
         Me.BackColor = System.Drawing.Color.White
940 885
         Me.ClientSize = New System.Drawing.Size(1656, 861)
886
+        Me.Controls.Add(Me.GroupBox3)
941 887
         Me.Controls.Add(Me.GroupBox7)
942 888
         Me.Controls.Add(Me.GroupBox6)
943 889
         Me.Controls.Add(Me.GroupBox5)
944
-        Me.Controls.Add(Me.GroupBox3)
945 890
         Me.Controls.Add(Me.GroupBox2)
946 891
         Me.Controls.Add(Me.GroupBox1)
947 892
         Me.Controls.Add(Me.GroupBox4)
@@ -958,10 +903,7 @@ Partial Class 系統設定
958 903
         CType(Me.資料夾清單_dgv, System.ComponentModel.ISupportInitialize).EndInit()
959 904
         Me.GroupBox2.ResumeLayout(False)
960 905
         Me.GroupBox2.PerformLayout()
961
-        Me.GroupBox3.ResumeLayout(False)
962
-        Me.GroupBox3.PerformLayout()
963
-        CType(Me.門診_dgv, System.ComponentModel.ISupportInitialize).EndInit()
964
-        CType(Me.料庫_dgv, System.ComponentModel.ISupportInitialize).EndInit()
906
+        CType(Me.FTP_dgv, System.ComponentModel.ISupportInitialize).EndInit()
965 907
         Me.GroupBox6.ResumeLayout(False)
966 908
         Me.GroupBox6.PerformLayout()
967 909
         CType(Me.時段_dgv, System.ComponentModel.ISupportInitialize).EndInit()
@@ -970,6 +912,12 @@ Partial Class 系統設定
970 912
         CType(Me.職務_dgv, System.ComponentModel.ISupportInitialize).EndInit()
971 913
         Me.GroupBox5.ResumeLayout(False)
972 914
         Me.GroupBox5.PerformLayout()
915
+        Me.GroupBox3.ResumeLayout(False)
916
+        Me.GroupBox3.PerformLayout()
917
+        CType(Me.適應症_dgv, System.ComponentModel.ISupportInitialize).EndInit()
918
+        Me.Panel1.ResumeLayout(False)
919
+        Me.Panel2.ResumeLayout(False)
920
+        Me.Panel3.ResumeLayout(False)
973 921
         Me.ResumeLayout(False)
974 922
 
975 923
     End Sub
@@ -1001,18 +949,7 @@ Partial Class 系統設定
1001 949
     Friend WithEvents Label4 As Label
1002 950
     Friend WithEvents FTP資料夾_wb As WebBrowser
1003 951
     Friend WithEvents GroupBox2 As GroupBox
1004
-    Friend WithEvents GroupBox3 As GroupBox
1005
-    Friend WithEvents 晚_tb As TextBox
1006
-    Friend WithEvents 中_tb As TextBox
1007
-    Friend WithEvents 早_tb As TextBox
1008
-    Friend WithEvents 診別_tb As TextBox
1009
-    Friend WithEvents 星期_tb As TextBox
1010
-    Friend WithEvents 時間修改_bt As Button
1011
-    Friend WithEvents 門診_dgv As DataGridView
1012
-    Friend WithEvents Label6 As Label
1013
-    Friend WithEvents Label5 As Label
1014
-    Friend WithEvents Label1 As Label
1015
-    Friend WithEvents 料庫_dgv As DataGridView
952
+    Friend WithEvents FTP_dgv As DataGridView
1016 953
     Friend WithEvents GroupBox6 As GroupBox
1017 954
     Friend WithEvents 資料庫刪除_tb As Button
1018 955
     Friend WithEvents 資料庫修改_tb As Button
@@ -1022,9 +959,6 @@ Partial Class 系統設定
1022 959
     Friend WithEvents 密碼_tb As TextBox
1023 960
     Friend WithEvents 帳號_tb As TextBox
1024 961
     Friend WithEvents 地址_tb As TextBox
1025
-    Friend WithEvents 刪除門診_bt As Button
1026
-    Friend WithEvents 新增門診_bt As Button
1027
-    Friend WithEvents 日期_dtp As DateTimePicker
1028 962
     Friend WithEvents ID_tb As TextBox
1029 963
     Friend WithEvents 時段_tb As TextBox
1030 964
     Friend WithEvents 時段1_tb As TextBox
@@ -1051,4 +985,14 @@ Partial Class 系統設定
1051 985
     Friend WithEvents 職務_dgv As DataGridView
1052 986
     Friend WithEvents 職務_tb As TextBox
1053 987
     Friend WithEvents GroupBox5 As GroupBox
988
+    Friend WithEvents GroupBox3 As GroupBox
989
+    Friend WithEvents 適應症_tb As TextBox
990
+    Friend WithEvents 適應症_dgv As DataGridView
991
+    Friend WithEvents 適應症_刪除_bt As Button
992
+    Friend WithEvents 適應症_修改_bt As Button
993
+    Friend WithEvents 適應症_新增_bt As Button
994
+    Friend WithEvents Panel1 As Panel
995
+    Friend WithEvents Panel2 As Panel
996
+    Friend WithEvents Panel3 As Panel
997
+    Friend WithEvents 適應症_編號_tb As TextBox
1054 998
 End Class

+ 60
- 72
GRAMS-SYS/10、系統管理/系統設定.vb Ver arquivo

@@ -1,62 +1,61 @@
1 1
 Public Class 系統設定
2
-    ReadOnly ds, ds1, ds6, ds3, ds7, ds2 As New DataSet
2
+    Private Sub Set_適應症設定()
3
+        Dim ds2 As New DataSet
4
+        適應症_dgv.DataSource = Nothing : ds2.Clear()
5
+        適應症_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
6
+        適應症_dgv.ColumnHeadersHeight = 25 : 適應症_dgv.AllowUserToAddRows = False
7
+        SQL_適應症設定()
8
+        da.Fill(ds2) : 適應症_dgv.DataSource = ds2.Tables(0) : conn.Close()
9
+        適應症_dgv.Columns(0).FillWeight = 30
10
+    End Sub
3 11
     Private Sub Set_時段設定()
12
+        Dim ds2 As New DataSet
4 13
         時段_dgv.DataSource = Nothing : ds2.Clear()
5 14
         時段_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
6
-        時段_dgv.ColumnHeadersHeight = 25
7
-        時段_dgv.AllowUserToAddRows = False
15
+        時段_dgv.ColumnHeadersHeight = 25 : 時段_dgv.AllowUserToAddRows = False
8 16
         SQL_時段設定()
9 17
         da.Fill(ds2) : 時段_dgv.DataSource = ds2.Tables(0) : conn.Close()
10 18
         時段_dgv.Columns(0).FillWeight = 100
11 19
     End Sub
12 20
     Private Sub Set_FTP資料庫管理清單()
13
-        料庫_dgv.DataSource = Nothing : ds7.Clear()
14
-        料庫_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
15
-        料庫_dgv.ColumnHeadersHeight = 25
16
-        料庫_dgv.AllowUserToAddRows = False
21
+        Dim ds7 As New DataSet
22
+        FTP_dgv.DataSource = Nothing : ds7.Clear()
23
+        FTP_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
24
+        FTP_dgv.ColumnHeadersHeight = 25 : FTP_dgv.AllowUserToAddRows = False
17 25
         SQL_FTP資料庫管理()
18
-        da.Fill(ds7) : 料庫_dgv.DataSource = ds7.Tables(0) : conn.Close()
19
-        料庫_dgv.Columns(0).FillWeight = 100
26
+        da.Fill(ds7) : FTP_dgv.DataSource = ds7.Tables(0) : conn.Close()
27
+        FTP_dgv.Columns(0).FillWeight = 100
20 28
     End Sub
21 29
     Private Sub Set_年度清單()
30
+        Dim ds1 As New DataSet
22 31
         年份_dgv.DataSource = Nothing : ds1.Clear()
23 32
         年份_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
24
-        年份_dgv.ColumnHeadersHeight = 25
25
-        年份_dgv.AllowUserToAddRows = False
33
+        年份_dgv.ColumnHeadersHeight = 25 : 年份_dgv.AllowUserToAddRows = False
26 34
         SQL_年份清單()
27 35
         da.Fill(ds1) : 年份_dgv.DataSource = ds1.Tables(0) : conn.Close()
28 36
         年份_dgv.Columns(0).FillWeight = 100
29 37
     End Sub
30 38
     Private Sub Set_FTP資料夾清單()
39
+        Dim ds As New DataSet
31 40
         資料夾清單_dgv.DataSource = Nothing : ds.Clear()
32 41
         資料夾清單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
33
-        資料夾清單_dgv.ColumnHeadersHeight = 25
34
-        資料夾清單_dgv.AllowUserToAddRows = False
42
+        資料夾清單_dgv.ColumnHeadersHeight = 25 : 資料夾清單_dgv.AllowUserToAddRows = False
35 43
         SQL_FTP資料夾路徑分配()
36 44
         da.Fill(ds) : 資料夾清單_dgv.DataSource = ds.Tables(0) : conn.Close()
37 45
         資料夾清單_dgv.Columns(0).Width = 70 : 資料夾清單_dgv.Columns(1).Width = 200 : 資料夾清單_dgv.Columns(2).Width = 200 : 資料夾清單_dgv.Columns(3).Width = 70
38 46
     End Sub
39
-    Private Sub Set_門診資料()
40
-        門診_dgv.DataSource = Nothing : ds6.Clear()
41
-        門診_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
42
-        門診_dgv.ColumnHeadersHeight = 50
43
-        門診_dgv.AllowUserToAddRows = False
44
-        SQL_門診資料()
45
-        da.Fill(ds6) : 門診_dgv.DataSource = ds6.Tables(0) : conn.Close()
46
-        門診_dgv.Columns(0).FillWeight = 70 : 門診_dgv.Columns(1).FillWeight = 50 : 門診_dgv.Columns(2).FillWeight = 40
47
-    End Sub
48 47
     Private Sub Set_工作職務()
48
+        Dim ds3 As New DataSet
49 49
         職務_dgv.DataSource = Nothing : ds3.Clear()
50 50
         職務_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
51
-        職務_dgv.ColumnHeadersHeight = 25
52
-        職務_dgv.AllowUserToAddRows = False
51
+        職務_dgv.ColumnHeadersHeight = 25 : 職務_dgv.AllowUserToAddRows = False
53 52
         SQL_工作職務()
54 53
         da.Fill(ds3) : 職務_dgv.DataSource = ds3.Tables(0) : conn.Close()
55 54
         職務_dgv.Columns(0).FillWeight = 100
56 55
     End Sub
57 56
     Private Sub 系統設定_Load(sender As Object, e As EventArgs) Handles MyBase.Load
58 57
         Me.AutoScroll = True
59
-        Set_年度清單() : Set_FTP資料夾清單() : Set_門診資料() : Set_工作職務() : Set_FTP資料庫管理清單() : Set_時段設定()
58
+        Set_年度清單() : Set_FTP資料夾清單() : Set_工作職務() : Set_適應症設定() : Set_FTP資料庫管理清單() : Set_時段設定()
60 59
         Target1 = Target : FTP資料夾_wb.Url = New Uri(Target1)
61 60
 
62 61
         SQL_系統版本號驗證()
@@ -69,13 +68,6 @@
69 68
             年份_tb.Text = 年份_dgv("年份", e.RowIndex).Value.ToString
70 69
         End If
71 70
     End Sub
72
-    Private Sub 門診_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 門診_dgv.CellClick
73
-        If e.RowIndex = -1 Then : Else
74
-            中_tb.Text = 門診_dgv("中", e.RowIndex).Value.ToString : 早_tb.Text = 門診_dgv("早", e.RowIndex).Value.ToString
75
-            星期_tb.Text = 門診_dgv("星期", e.RowIndex).Value.ToString : 診別_tb.Text = 門診_dgv("診別", e.RowIndex).Value.ToString
76
-            晚_tb.Text = 門診_dgv("晚", e.RowIndex).Value.ToString : 日期_dtp.Value = 門診_dgv("日期", e.RowIndex).Value.ToString
77
-        End If
78
-    End Sub
79 71
     Private Sub 資料夾清單_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 資料夾清單_dgv.CellClick
80 72
         If e.RowIndex = -1 Then : Else
81 73
             資料夾名稱_tb.Text = 資料夾清單_dgv("資料夾名稱", e.RowIndex).Value.ToString : 指定頁面_tb.Text = 資料夾清單_dgv("指定頁面", e.RowIndex).Value.ToString
@@ -87,11 +79,16 @@
87 79
             職務_tb.Text = 職務_dgv("職務", e.RowIndex).Value.ToString
88 80
         End If
89 81
     End Sub
90
-    Private Sub 料庫_dgv_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles 料庫_dgv.CellClick
82
+    Private Sub 適應症_dgv_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles 適應症_dgv.CellClick
91 83
         If e.RowIndex = -1 Then : Else
92
-            地址_tb.Text = 料庫_dgv("FTP地址", e.RowIndex).Value.ToString : 帳號_tb.Text = 料庫_dgv("FTP帳號", e.RowIndex).Value.ToString
93
-            密碼_tb.Text = 料庫_dgv("FTP密碼", e.RowIndex).Value.ToString : 地區_tb.Text = 料庫_dgv("地區", e.RowIndex).Value.ToString
94
-            位置_tb.Text = 料庫_dgv("FTP物理位置", e.RowIndex).Value.ToString
84
+            適應症_編號_tb.Text = 適應症_dgv(0, e.RowIndex).Value.ToString : 適應症_tb.Text = 適應症_dgv(1, e.RowIndex).Value.ToString
85
+        End If
86
+    End Sub
87
+    Private Sub FTP_dgvCellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles FTP_dgv.CellClick
88
+        If e.RowIndex = -1 Then : Else
89
+            地址_tb.Text = FTP_dgv("FTP地址", e.RowIndex).Value.ToString : 帳號_tb.Text = FTP_dgv("FTP帳號", e.RowIndex).Value.ToString
90
+            密碼_tb.Text = FTP_dgv("FTP密碼", e.RowIndex).Value.ToString : 地區_tb.Text = FTP_dgv("地區", e.RowIndex).Value.ToString
91
+            位置_tb.Text = FTP_dgv("FTP物理位置", e.RowIndex).Value.ToString
95 92
         End If
96 93
     End Sub
97 94
     Private Sub 時段_dgv_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles 時段_dgv.CellClick
@@ -225,6 +222,33 @@
225 222
             End If
226 223
         End If
227 224
     End Sub
225
+    Private Sub 適應症_新增_bt_Click(sender As Object, e As EventArgs) Handles 適應症_新增_bt.Click
226
+        SQL_查詢最後一筆適應症()
227
+        If dr.Read() Then : 適應症_編號_tb.Text = dr("編號").ToString : Else : 適應症_編號_tb.Text = "0" : End If : conn.Close()
228
+        Dim NUM1 As Integer
229
+        NUM1 = Double.Parse(Strings.Right(適應症_編號_tb.Text, 2)) + 1
230
+        If NUM1 < 10 Then : 適應症_編號_tb.Text = "N" & "0" & NUM1
231
+        ElseIf NUM1 > 9 And NUM1 < 100 Then : 適應症_編號_tb.Text = "N" & NUM1 : End If
232
+        SQL_適應症新增() : Set_適應症設定() : conn.Close() : MsgBox("新增完成")
233
+    End Sub
234
+    Private Sub 適應症_修改_bt_Click(sender As Object, e As EventArgs) Handles 適應症_修改_bt.Click
235
+        If 適應症_編號_tb.Text = "" Then
236
+            MsgBox("沒有選擇修改內容")
237
+        Else
238
+            PA = 適應症_編號_tb.Text : PA1 = 適應症_tb.Text
239
+            SQL_適應症修改() : Set_適應症設定() : conn.Close() : MsgBox("修改完成")
240
+        End If
241
+    End Sub
242
+    Private Sub 適應症_刪除_bt_Click(sender As Object, e As EventArgs) Handles 適應症_刪除_bt.Click
243
+        If 適應症_編號_tb.Text = "" Then
244
+            MsgBox("沒有選擇刪除內容")
245
+        Else
246
+            Dim cc As MsgBoxResult = MsgBox("確定要刪除該筆資料?", MsgBoxStyle.OkCancel)
247
+            If cc = MsgBoxResult.Ok Then
248
+                SQL_適應症刪除() : conn.Close() : Set_適應症設定() : MsgBox("刪除完成")
249
+            End If
250
+        End If
251
+    End Sub
228 252
     '---------------------FTP資料夾管理-----------------------------------------------------------------------------------------------------------------
229 253
     Private Sub 新增_bt_Click(sender As Object, e As EventArgs) Handles 新增_bt.Click
230 254
         SQL_FTP資料夾管理新增() : conn.Close() : Set_FTP資料夾清單()
@@ -246,40 +270,4 @@
246 270
     Private Sub 讀取資料夾路徑_bt_Click(sender As Object, e As EventArgs) Handles 讀取資料夾路徑_bt.Click
247 271
         If FolderBrowserDialog1.ShowDialog = DialogResult.OK Then : 本機資料夾_wb.Navigate(FolderBrowserDialog1.SelectedPath) : End If
248 272
     End Sub
249
-    Private Sub 時間修改_bt_Click(sender As Object, e As EventArgs) Handles 時間修改_bt.Click
250
-        If 星期_tb.Text = "" Or 診別_tb.Text = "" Then : MsgBox("沒有選擇修改內容") : Else
251
-            PA = 早_tb.Text : PA1 = 中_tb.Text : PA2 = 晚_tb.Text : PA3 = 星期_tb.Text : PA4 = 診別_tb.Text : PA5 = 日期_dtp.Text
252
-            SQL_門診修改() : Set_門診資料() : conn.Close() : MsgBox("修改完成")
253
-        End If
254
-    End Sub
255
-    Private Sub 新增門診_bt_Click(sender As Object, e As EventArgs) Handles 新增門診_bt.Click
256
-        If 星期_tb.Text = "" Or 診別_tb.Text = "" Then : MsgBox("沒有選擇新增內容") : Else
257
-            PA = 早_tb.Text : PA1 = 中_tb.Text : PA2 = 晚_tb.Text : PA3 = 星期_tb.Text : PA4 = 診別_tb.Text : PA5 = 日期_dtp.Text
258
-            SQL_門診資料_讀取()
259
-            If dr.Read Then : MsgBox("已有資料,無法新增!!")
260
-            Else : SQL_新增門診() : Set_門診資料() : conn.Close() : MsgBox("新增完成") : End If
261
-        End If
262
-    End Sub
263
-    Private Sub 刪除門診_bt_Click(sender As Object, e As EventArgs) Handles 刪除門診_bt.Click
264
-        If 星期_tb.Text = "" Or 診別_tb.Text = "" Then : MsgBox("沒有選擇刪除內容") : Else
265
-            PA = 早_tb.Text : PA1 = 中_tb.Text : PA2 = 晚_tb.Text : PA3 = 星期_tb.Text : PA4 = 診別_tb.Text : PA5 = 日期_dtp.Text
266
-            SQL_刪除門診() : Set_門診資料() : conn.Close() : MsgBox("刪除完成")
267
-        End If
268
-    End Sub
269
-    Private Sub 日期_dtp_ValueChanged(sender As Object, e As EventArgs) Handles 日期_dtp.ValueChanged
270
-        Dim selectedDate As DateTime = 日期_dtp.Value : 星期_tb.Text = GetWeekDays(selectedDate)
271
-    End Sub
272
-    Private Function GetWeekDays(selectedDate As DateTime) As String
273
-        Dim dayOfWeek As DayOfWeek = selectedDate.DayOfWeek : Dim weekDayString As String = ""
274
-        Select Case dayOfWeek
275
-            Case DayOfWeek.Sunday : weekDayString = "星期日"
276
-            Case DayOfWeek.Monday : weekDayString = "星期一"
277
-            Case DayOfWeek.Tuesday : weekDayString = "星期二"
278
-            Case DayOfWeek.Wednesday : weekDayString = "星期三"
279
-            Case DayOfWeek.Thursday : weekDayString = "星期四"
280
-            Case DayOfWeek.Friday : weekDayString = "星期五"
281
-            Case DayOfWeek.Saturday : weekDayString = "星期六"
282
-        End Select
283
-        Return weekDayString
284
-    End Function
285 273
 End Class

+ 25
- 16
GRAMS-SYS/HSKIN-MIS-SYS.Designer.vb Ver arquivo

@@ -77,6 +77,7 @@ Partial Class GRAMS_SYS
77 77
         Me.FTP清單_dgv = New System.Windows.Forms.DataGridView()
78 78
         Me.加班單_dgv = New System.Windows.Forms.DataGridView()
79 79
         Me.休假單_dgv = New System.Windows.Forms.DataGridView()
80
+        Me.薪資資料設定_tsm = New System.Windows.Forms.ToolStripMenuItem()
80 81
         Me.MenuStrip.SuspendLayout()
81 82
         Me.StatusStrip.SuspendLayout()
82 83
         CType(Me.FTP清單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
@@ -242,39 +243,39 @@ Partial Class GRAMS_SYS
242 243
         '
243 244
         Me.加班申請_tsm.Image = Global.HSKIN_MIS_SYS.My.Resources.Resources.pen
244 245
         Me.加班申請_tsm.Name = "加班申請_tsm"
245
-        Me.加班申請_tsm.Size = New System.Drawing.Size(180, 22)
246
+        Me.加班申請_tsm.Size = New System.Drawing.Size(175, 22)
246 247
         Me.加班申請_tsm.Text = "加班申請"
247 248
         '
248 249
         '加班核准_tsm
249 250
         '
250 251
         Me.加班核准_tsm.Image = Global.HSKIN_MIS_SYS.My.Resources.Resources.check
251 252
         Me.加班核准_tsm.Name = "加班核准_tsm"
252
-        Me.加班核准_tsm.Size = New System.Drawing.Size(180, 22)
253
+        Me.加班核准_tsm.Size = New System.Drawing.Size(175, 22)
253 254
         Me.加班核准_tsm.Text = "加班核准"
254 255
         '
255 256
         '加班申請資料_tsm
256 257
         '
257 258
         Me.加班申請資料_tsm.Image = Global.HSKIN_MIS_SYS.My.Resources.Resources.Report
258 259
         Me.加班申請資料_tsm.Name = "加班申請資料_tsm"
259
-        Me.加班申請資料_tsm.Size = New System.Drawing.Size(180, 22)
260
+        Me.加班申請資料_tsm.Size = New System.Drawing.Size(175, 22)
260 261
         Me.加班申請資料_tsm.Text = "加班申請-歷史資料"
261 262
         '
262 263
         'ToolStripSeparator2
263 264
         '
264 265
         Me.ToolStripSeparator2.Name = "ToolStripSeparator2"
265
-        Me.ToolStripSeparator2.Size = New System.Drawing.Size(177, 6)
266
+        Me.ToolStripSeparator2.Size = New System.Drawing.Size(172, 6)
266 267
         '
267 268
         '醫師下診時間紀錄_tsm
268 269
         '
269 270
         Me.醫師下診時間紀錄_tsm.Image = Global.HSKIN_MIS_SYS.My.Resources.Resources.check_icon
270 271
         Me.醫師下診時間紀錄_tsm.Name = "醫師下診時間紀錄_tsm"
271
-        Me.醫師下診時間紀錄_tsm.Size = New System.Drawing.Size(180, 22)
272
+        Me.醫師下診時間紀錄_tsm.Size = New System.Drawing.Size(175, 22)
272 273
         Me.醫師下診時間紀錄_tsm.Text = "醫師下診時間紀錄"
273 274
         Me.醫師下診時間紀錄_tsm.TextAlign = System.Drawing.ContentAlignment.MiddleRight
274 275
         '
275 276
         '考勤管理_tsm
276 277
         '
277
-        Me.考勤管理_tsm.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.考勤明細表_tsm, Me.ToolStripSeparator3, Me.到離職管理_tsm})
278
+        Me.考勤管理_tsm.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.考勤明細表_tsm, Me.ToolStripSeparator3, Me.到離職管理_tsm, Me.薪資資料設定_tsm})
278 279
         Me.考勤管理_tsm.Image = Global.HSKIN_MIS_SYS.My.Resources.Resources.Report
279 280
         Me.考勤管理_tsm.Name = "考勤管理_tsm"
280 281
         Me.考勤管理_tsm.Size = New System.Drawing.Size(83, 20)
@@ -284,19 +285,19 @@ Partial Class GRAMS_SYS
284 285
         '
285 286
         Me.考勤明細表_tsm.Image = Global.HSKIN_MIS_SYS.My.Resources.Resources.Report
286 287
         Me.考勤明細表_tsm.Name = "考勤明細表_tsm"
287
-        Me.考勤明細表_tsm.Size = New System.Drawing.Size(134, 22)
288
+        Me.考勤明細表_tsm.Size = New System.Drawing.Size(180, 22)
288 289
         Me.考勤明細表_tsm.Text = "考勤明細表"
289 290
         '
290 291
         'ToolStripSeparator3
291 292
         '
292 293
         Me.ToolStripSeparator3.Name = "ToolStripSeparator3"
293
-        Me.ToolStripSeparator3.Size = New System.Drawing.Size(131, 6)
294
+        Me.ToolStripSeparator3.Size = New System.Drawing.Size(177, 6)
294 295
         '
295 296
         '到離職管理_tsm
296 297
         '
297 298
         Me.到離職管理_tsm.Image = Global.HSKIN_MIS_SYS.My.Resources.Resources.pen
298 299
         Me.到離職管理_tsm.Name = "到離職管理_tsm"
299
-        Me.到離職管理_tsm.Size = New System.Drawing.Size(134, 22)
300
+        Me.到離職管理_tsm.Size = New System.Drawing.Size(180, 22)
300 301
         Me.到離職管理_tsm.Text = "到離職管理"
301 302
         '
302 303
         '業務管理系統_tsm
@@ -311,47 +312,47 @@ Partial Class GRAMS_SYS
311 312
         '
312 313
         Me.業績獎金計算表_tsm.Image = Global.HSKIN_MIS_SYS.My.Resources.Resources.Report
313 314
         Me.業績獎金計算表_tsm.Name = "業績獎金計算表_tsm"
314
-        Me.業績獎金計算表_tsm.Size = New System.Drawing.Size(170, 22)
315
+        Me.業績獎金計算表_tsm.Size = New System.Drawing.Size(180, 22)
315 316
         Me.業績獎金計算表_tsm.Text = "業績獎金計算表"
316 317
         '
317 318
         '產品銷售分析表_tsm
318 319
         '
319 320
         Me.產品銷售分析表_tsm.Image = Global.HSKIN_MIS_SYS.My.Resources.Resources.Report
320 321
         Me.產品銷售分析表_tsm.Name = "產品銷售分析表_tsm"
321
-        Me.產品銷售分析表_tsm.Size = New System.Drawing.Size(170, 22)
322
+        Me.產品銷售分析表_tsm.Size = New System.Drawing.Size(180, 22)
322 323
         Me.產品銷售分析表_tsm.Text = "產品銷售分析表"
323 324
         '
324 325
         '來客資料分析表_tsm
325 326
         '
326 327
         Me.來客資料分析表_tsm.Image = Global.HSKIN_MIS_SYS.My.Resources.Resources.Report
327 328
         Me.來客資料分析表_tsm.Name = "來客資料分析表_tsm"
328
-        Me.來客資料分析表_tsm.Size = New System.Drawing.Size(170, 22)
329
+        Me.來客資料分析表_tsm.Size = New System.Drawing.Size(180, 22)
329 330
         Me.來客資料分析表_tsm.Text = "來客資料分析表"
330 331
         '
331 332
         '人員貢獻分析表_tsm
332 333
         '
333 334
         Me.人員貢獻分析表_tsm.Image = Global.HSKIN_MIS_SYS.My.Resources.Resources.Report
334 335
         Me.人員貢獻分析表_tsm.Name = "人員貢獻分析表_tsm"
335
-        Me.人員貢獻分析表_tsm.Size = New System.Drawing.Size(170, 22)
336
+        Me.人員貢獻分析表_tsm.Size = New System.Drawing.Size(180, 22)
336 337
         Me.人員貢獻分析表_tsm.Text = "人員貢獻分析表"
337 338
         '
338 339
         'ToolStripSeparator24
339 340
         '
340 341
         Me.ToolStripSeparator24.Name = "ToolStripSeparator24"
341
-        Me.ToolStripSeparator24.Size = New System.Drawing.Size(167, 6)
342
+        Me.ToolStripSeparator24.Size = New System.Drawing.Size(177, 6)
342 343
         '
343 344
         '業務系統資料管理_tsm
344 345
         '
345 346
         Me.業務系統資料管理_tsm.Image = Global.HSKIN_MIS_SYS.My.Resources.Resources.Sys_Command
346 347
         Me.業務系統資料管理_tsm.Name = "業務系統資料管理_tsm"
347
-        Me.業務系統資料管理_tsm.Size = New System.Drawing.Size(170, 22)
348
+        Me.業務系統資料管理_tsm.Size = New System.Drawing.Size(180, 22)
348 349
         Me.業務系統資料管理_tsm.Text = "業務系統資料管理"
349 350
         '
350 351
         '交易明細表導入_tsm
351 352
         '
352 353
         Me.交易明細表導入_tsm.Image = Global.HSKIN_MIS_SYS.My.Resources.Resources.pen
353 354
         Me.交易明細表導入_tsm.Name = "交易明細表導入_tsm"
354
-        Me.交易明細表導入_tsm.Size = New System.Drawing.Size(170, 22)
355
+        Me.交易明細表導入_tsm.Size = New System.Drawing.Size(180, 22)
355 356
         Me.交易明細表導入_tsm.Text = "交易明細表導入"
356 357
         '
357 358
         '系統設定_tsm
@@ -452,6 +453,13 @@ Partial Class GRAMS_SYS
452 453
         Me.休假單_dgv.TabIndex = 667
453 454
         Me.休假單_dgv.Visible = False
454 455
         '
456
+        '薪資資料設定_tsm
457
+        '
458
+        Me.薪資資料設定_tsm.Image = Global.HSKIN_MIS_SYS.My.Resources.Resources.Sys_Command
459
+        Me.薪資資料設定_tsm.Name = "薪資資料設定_tsm"
460
+        Me.薪資資料設定_tsm.Size = New System.Drawing.Size(180, 22)
461
+        Me.薪資資料設定_tsm.Text = "薪資資料設定"
462
+        '
455 463
         'GRAMS_SYS
456 464
         '
457 465
         Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 12.0!)
@@ -535,4 +543,5 @@ Partial Class GRAMS_SYS
535 543
     Friend WithEvents 醫生班表修改_tsm As ToolStripMenuItem
536 544
     Friend WithEvents 人員排班條件設定_tsm As ToolStripMenuItem
537 545
     Friend WithEvents 個人班表_tsm As ToolStripMenuItem
546
+    Friend WithEvents 薪資資料設定_tsm As ToolStripMenuItem
538 547
 End Class

+ 5
- 0
GRAMS-SYS/HSKIN-MIS-SYS.vb Ver arquivo

@@ -158,6 +158,11 @@ Public Class GRAMS_SYS
158 158
     Private Sub 加班核准_tsm_Click(sender As Object, e As EventArgs) Handles 加班核准_tsm.Click
159 159
         PA = "" : 加班審核.ShowDialog()
160 160
     End Sub
161
+
162
+    Private Sub 薪資資料設定ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 薪資資料設定_tsm.Click
163
+        PA = "" : 薪資資料設定.ShowDialog()
164
+    End Sub
165
+
161 166
     Private Sub 業績獎金計算表_tsm_Click(sender As Object, e As EventArgs) Handles 業績獎金計算表_tsm.Click
162 167
         PA = "" : 業績獎金計算表.Show() : 業績獎金計算表.BringToFront()
163 168
     End Sub

+ 9
- 0
GRAMS-SYS/HSKIN-MIS-SYS.vbproj Ver arquivo

@@ -152,6 +152,12 @@
152 152
     <Compile Include="04、考勤管理\到離職管理.vb">
153 153
       <SubType>Form</SubType>
154 154
     </Compile>
155
+    <Compile Include="04、考勤管理\薪資資料設定.Designer.vb">
156
+      <DependentUpon>薪資資料設定.vb</DependentUpon>
157
+    </Compile>
158
+    <Compile Include="04、考勤管理\薪資資料設定.vb">
159
+      <SubType>Form</SubType>
160
+    </Compile>
155 161
     <Compile Include="05、業務管理\交易明細表導入.Designer.vb">
156 162
       <DependentUpon>交易明細表導入.vb</DependentUpon>
157 163
     </Compile>
@@ -320,6 +326,9 @@
320 326
     <EmbeddedResource Include="04、考勤管理\到離職管理.resx">
321 327
       <DependentUpon>到離職管理.vb</DependentUpon>
322 328
     </EmbeddedResource>
329
+    <EmbeddedResource Include="04、考勤管理\薪資資料設定.resx">
330
+      <DependentUpon>薪資資料設定.vb</DependentUpon>
331
+    </EmbeddedResource>
323 332
     <EmbeddedResource Include="05、業務管理\交易明細表導入.resx">
324 333
       <DependentUpon>交易明細表導入.vb</DependentUpon>
325 334
     </EmbeddedResource>

BIN
GRAMS-SYS/bin/Debug/HSKIN-MIS-SYS.exe Ver arquivo


BIN
GRAMS-SYS/bin/Debug/HSKIN-MIS-SYS.pdb Ver arquivo


BIN
GRAMS-SYS/obj/Debug/HSKIN-MIS-SYS.exe Ver arquivo


BIN
GRAMS-SYS/obj/Debug/HSKIN-MIS-SYS.pdb Ver arquivo


+ 1
- 1
GRAMS-SYS/obj/Debug/HSKIN-MIS-SYS.vbproj.CoreCompileInputs.cache Ver arquivo

@@ -1 +1 @@
1
-40ceea424cdcff551684f1732d6325c50cede1a38cbceb2701498ba6abb51315
1
+4b90ba3bcfb68eab8df0ab9bb90a50c657e56da5fab66d4ca7111a798af18b0b

+ 1
- 0
GRAMS-SYS/obj/Debug/HSKIN-MIS-SYS.vbproj.FileListAbsolute.txt Ver arquivo

@@ -111,3 +111,4 @@ D:\工巧明\HSKIN\HSKIN-MIS-SYS\GRAMS-SYS\bin\Debug\HSKIN-MIS-SYS.pdb
111 111
 D:\工巧明\HSKIN\HSKIN-MIS-SYS\GRAMS-SYS\bin\Debug\HSKIN-MIS-SYS.xml
112 112
 D:\工巧明\HSKIN\HSKIN-MIS-SYS\GRAMS-SYS\obj\Debug\HSKIN_MIS_SYS.醫生班表設定.resources
113 113
 D:\工巧明\HSKIN\HSKIN-MIS-SYS\GRAMS-SYS\obj\Debug\HSKIN_MIS_SYS.人員排班條件設定.resources
114
+D:\工巧明\HSKIN\HSKIN-MIS-SYS\GRAMS-SYS\obj\Debug\HSKIN_MIS_SYS.薪資資料設定.resources

BIN
GRAMS-SYS/obj/Debug/HSKIN-MIS-SYS.vbproj.GenerateResource.cache Ver arquivo


Carregando…
Cancelar
Salvar