Rev 18144 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
7035 | bpr | 1 | !set t=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheets |
15826 | guerimand | 2 | !set wlist=!getscoreweight |
7665 | bpr | 3 | !set sevlist=!record 0 of wimshome/log/classes/$wims_class/sheets/.severity |
7035 | bpr | 4 | !set aclist= |
7665 | bpr | 5 | !set formula_list=!record 0 of adm/class/sheetformula |
6 | !set scoremax=!line 1 of $sevlist |
||
10922 | bpr | 7 | !set tmp=!defof DF_SEVERITY in wimshome/public_html/bases/sys/define.conf |
8 | !distribute words $tmp into bidon,tmp_s,tmp_ss |
||
7035 | bpr | 9 | !for i=1 to $t |
13901 | bpr | 10 | !set s_$i=!record $i of wimshome/log/classes/$wims_class/sheets/.sheets |
11 | !set sev_$i=!line $i + 1 of $sevlist |
||
12 | !distribute word $(sev_$i) into w_$i,s,ss |
||
13 | !default w_$i=1 |
||
14 | !bound s between integer 0 and 6 default $tmp_s |
||
15 | !bound ss between integer 0 and 2 default $tmp_ss |
||
16 | !set f_$i=!item $s+1 of $formula_list |
||
17 | !set f_$i=!replace internal I by I$ss in $(f_$i) |
||
18 | !set a_=!line 1 of $(s_$i) |
||
18149 | bpr | 19 | !! ------test if sheet is hidden for this user/in general |
20 | !set tmp_sheetstatus=!getsheetstatus sheet=$i |
||
21 | !if $tmp_sheetstatus iswordof 1 2 |
||
22 | !set aclist=!append item $i to $aclist |
||
18144 | bpr | 23 | !endif |
18149 | bpr | 24 | !! ------ download techvarvalue for individual sheet |
15769 | guerimand | 25 | !set h_=!line 10 of $(s_$i) |
26 | !if $h_!=$empty |
||
27 | !set indivtechval_$i=!defof user_techvar_$(h_) in $userdef |
||
28 | !else |
||
29 | !reset indivtechval_$i |
||
30 | !endif |
||
31 | !! ------ end individual sheet |
||
7035 | bpr | 32 | !next i |
18144 | bpr | 33 | !reset tmp tmp_s tmp_ss |
7035 | bpr | 34 | !set n=!itemcnt $aclist |