This commit is contained in:
louiscklaw
2025-02-01 02:03:18 +08:00
parent 8bf2589af5
commit 1d57ae50e9
12 changed files with 125 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

BIN
Book1.xlsx Normal file

Binary file not shown.

91
NOTES.md Normal file
View File

@@ -0,0 +1,91 @@
## requirement
你好中學clerk想整到個別學生考試時間表出到准考證咁嘅樣
會有考生係要特別考試安排,例如
- 加時、每45分鐘要放break 5分鐘、要轉筆作答等
- 我想個solution係可以例個name list入去
- 每科嘅考試原本嘅時間同長度
- 但個VBA要計到哂呢啲加時、放break嘅考試時間
### Tasks (@HKD50 each):
所以其實幾個tasks
1. 計每份卷嘅調整時間 (加時加時及放breaks);
1. output到每個有調整時間嘅考生個人嘅准考證
1. output到每日每份卷響個個房有咩學生要考
## 例子:
### 例1:
例如一般考生數學考2小時15分鐘咁
特別考試安排嘅考生會獲加時25%
即 135*1.25 = 168.75 分鐘
會 round down 至168分鐘作答時間
### 例2:
例如一般考生數學考2小時15分鐘咁
如果呢個考生加時以外仲有「放break」的安排嘅話佢就會每45分鐘暫停一次有個5分鐘嘅小休先再繼續作答
特別考試安排嘅考生會獲加時25%
即 135*1.25 = 168.75 分鐘
咁呢個情況168分鐘作答時間就會斬成咁
45+(5)+45+(5)+45+(5)+18 完卷
## output:
係想出咁樣樣:
### 考生1: (student1_draft.ods)
![Alt text](<_images/Screenshot from 2023-09-15 14-20-01.png>)
- 6月1日 0810-0920 Rm.209 English (I)
- 6月3日 0810-0955 Rm.202 English (III)
- 6月3日 1025-1135 Rm.209 ICT(I)
### 考生2: (student2_draft.ods)
![Alt text](<_images/Screenshot from 2023-09-15 14-20-20.png>)
- 6月1日 0810-0930 Rm.209 English(I)
- 6月3日 0810-0955 Rm.202 English (III)
- Supervised break(s):
- 0855-0900
- 0945-0950
### conversation
2023-Jul-04
你好呀,你比左個訂 (HKD50)
不過基於私隱問題,我唔係咁方便去攞個現有嘅考試證去參考
如果方便的話,你不如手畫,好 rough/簡簡單單 嘅都可以
1. 一個表係張紙度,係張 table 大概嘅樣 (有D咩 field)
2. 一張 form 係張紙度,係張考試證 (想要D咩 field)
將上面呢兩張野影個相比我
我大概整左個樣/logic/process 先,
然後再改好冇?
2023-jun-29 first order
2023-Sep-15
你好呀,唔好意思,你比左個訂 (HKD50)
係關於 "自動砌準考證"。
但係好對唔住我大意跟甩左。
我想問下仲想唔想繼續整落去?
如果唔整落去的話我退番個訂比你。
唔好意思,對唔住係我疏忽。

BIN
_images/Screenshot from 2023-09-15 14-20-01.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
_images/Screenshot from 2023-09-15 14-20-20.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
_output/student1_draft.ods Normal file

Binary file not shown.

BIN
_output/student2_draft.ods Normal file

Binary file not shown.

7
gitUpdate.bat Normal file
View File

@@ -0,0 +1,7 @@
git status .
@pause
git add .
git commit -m"update kumalok,"
start git push

8
improvement.md Normal file
View File

@@ -0,0 +1,8 @@
1. office 2016 / office 2019 ?
1. 我會首先比一個最簡單嘅 excel 表
1. 入面有一個最簡單嘅 vba
1. 首先要令到呢個 excel 表係你度同係我度都行得郁先
1. 咁之後,我會企係呢個 excel 表度再落 code.
1. 咁我會再比份約莫做完嘅 code 你試,你 comment 一下
1. 咁我跟個 comment 改
1. 收貨,禮成

BIN
output.ods Normal file

Binary file not shown.

13
package.json Normal file
View File

@@ -0,0 +1,13 @@
{
"name": "kumalok",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"gitUpdate": "git add . && git commit -m\"update kumalok,\""
},
"keywords": [],
"author": "",
"license": "ISC"
}