Rev 11114 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | |
2 | !if $formula=$empty |
||
11114 | obado | 3 | job= |
4 | !exit |
||
23 | reyssat | 5 | !endif |
6 | |||
11114 | obado | 7 | !set min_maxscore = 1 |
8 | !set max_maxscore = 1000 |
||
9 | |||
10 | !if $formula=prep |
||
23 | reyssat | 11 | !exit |
11114 | obado | 12 | !endif |
13 | |||
14 | !reset formula reg |
||
15 | reg= |
||
11962 | guerimand | 16 | !set tmp=!defof DF_SEVERITY\ |
17 | MAX_WEIGHT\ |
||
18 | MIN_WEIGHT in wimshome/public_html/bases/sys/define.conf |
||
19 | !distribute line $tmp into tmp,max_weight,min_weight |
||
11114 | obado | 20 | !distribute words $tmp into tmp_w,tmp_s,tmp_ss |
21 | !for i=1 to $totsheets |
||
22 | !bound w$i between $min_weight and $max_weight default $tmp_w |
||
10922 | bpr | 23 | !bound s$i between integer 0 and 6 default $tmp_s |
24 | !bound ss$i between integer 0 and 2 default $tmp_ss |
||
7665 | bpr | 25 | reg=!append line $(w$i) $(s$i) $(ss$i) to $reg |
11114 | obado | 26 | !next i |
27 | !reset tmp tmp_w tmp_s tmp_ss |
||
28 | !bound maxscore between integer $min_maxscore and $max_maxscore default 10 |
||
29 | scoremax=$maxscore |
||
30 | defaultformula=$reg |
||
31 | !writefile wimshome/log/classes/$wims_class/sheets/.severity $maxscore\ |
||
23 | reyssat | 32 | $reg |
33 | |||
34 | reg= |
||
35 | !for i=1 to $totexams |
||
11114 | obado | 36 | !bound ew$i between 0 and 100000 default 1 |
37 | reg=!append line $(ew$i) to $reg |
||
23 | reyssat | 38 | !next i |
39 | !writefile wimshome/log/classes/$wims_class/exams/.eseverity $reg |
||
40 | |||
11114 | obado | 41 | !read adm/class/sheetweights |