回答編集履歴
1
hanteiの修正
test
CHANGED
@@ -1,7 +1,3 @@
|
|
1
|
-
AとA'の差異がどのくらいあるかのような気がします。
|
2
|
-
|
3
|
-
現状ではAとA'の違いがどのくらいあるかわかりませんので、処理部分をまとめるくらいでしょうか。
|
4
|
-
|
5
1
|
```ここに言語を入力
|
6
2
|
|
7
3
|
sub main()
|
@@ -16,23 +12,31 @@
|
|
16
12
|
|
17
13
|
function hantei(Position as string)
|
18
14
|
|
19
|
-
|
15
|
+
dim rtn as string
|
20
16
|
|
21
|
-
|
17
|
+
if A(position) then rtn = "残業"
|
22
18
|
|
23
|
-
if
|
19
|
+
if B(position) then rtn = "有給"
|
24
20
|
|
25
|
-
if
|
21
|
+
if C(position) then rtn = "出張"
|
26
22
|
|
27
|
-
|
23
|
+
return rtn
|
28
24
|
|
29
|
-
|
25
|
+
end function
|
30
26
|
|
31
|
-
if A' then return "残業"
|
32
27
|
|
33
|
-
if B' then return "有給"
|
34
28
|
|
29
|
+
function A(position as string) as boolean
|
30
|
+
|
31
|
+
select case position
|
32
|
+
|
35
|
-
|
33
|
+
case "上級職":上級職・残業判定
|
34
|
+
|
35
|
+
case "一般職":一般職・残業判定
|
36
|
+
|
37
|
+
end select
|
38
|
+
|
39
|
+
return bln
|
36
40
|
|
37
41
|
end function
|
38
42
|
|
@@ -56,22 +60,8 @@
|
|
56
60
|
|
57
61
|
|
58
62
|
|
59
|
-
まとめられるなら
|
60
|
-
|
61
|
-
```ここに言語を入力
|
62
|
-
|
63
|
-
function hantei(Position as string)
|
64
|
-
|
65
|
-
if A(position) then return "残業"
|
66
|
-
|
67
|
-
if B(position) then return "有給"
|
68
|
-
|
69
|
-
if C(position) then return "出張"
|
70
|
-
|
71
|
-
end function
|
72
|
-
|
73
|
-
```
|
74
|
-
|
75
63
|
のようにするとメンテナンスも楽かなと思います。
|
76
64
|
|
77
65
|
宜しくお願い致します。
|
66
|
+
|
67
|
+
(一部修正しました。)
|