SLP 求SLP TEMPLATE修改

本文由 testing 在 2021-09-18 發表於 "WebSAMS 討論區" 討論區

  1. 55062742

    testing
    Expand Collapse

    文章:
    118
    讚:
    0
    本人嘗試使用R-SLP008-CE 列印學生學習概覽,在其他學習經歷內是顯示學生的課外活動紀錄,但是格式不太合適,每個項目距離太遠
    例如
    ______________________
    音樂學會
    Muisic Club


    _______________________
    視覺藝術學會
    Visual Arts

    請問可否透過修改程式以達至以下效果.

    ______________________
    音樂學會
    Muisic Club_____________
    視覺藝術學會
    Visual Arts
    這是有關程式{@prog_short_txt}
    select {?printLanguage}
    case 'chinese':
    if ({?accessToEngOrChiContent} = 't') then
    (
    if isNULL({Command.ch_activity}) or {Command.ch_activity}='' then
    (if (isNULL({Command.en_activity}) or {Command.en_activity}='') then '' else {Command.en_activity}+' ') +{Command.bi_prog_short_ch_des}
    else
    (if (isNULL({Command.ch_activity}) or {Command.ch_activity}='') then '' else {Command.ch_activity}+' ') + {Command.bi_prog_short_ch_des}
    )
    else
    (
    (if (isNULL({Command.ch_activity}) or {Command.ch_activity}='') then '' else {Command.ch_activity}+' ') +{Command.prog_short_ch_des}
    )
    case 'english':
    if ({?accessToEngOrChiContent} = 't') then
    (
    if isNULL({Command.en_activity}) or {Command.en_activity}='' then
    (if (isNULL({Command.ch_activity}) or {Command.ch_activity}='') then '' else {Command.ch_activity}+' ')+{Command.bi_prog_short_en_des}
    else
    (if (isNULL({Command.en_activity}) or {Command.en_activity}='') then '' else {Command.en_activity}+' ')+{Command.bi_prog_short_en_des}
    )
    else
    (
    (if (isNULL({Command.en_activity}) or {Command.en_activity}='') then '' else {Command.en_activity}+' ')+{Command.prog_short_en_des}
    )
    case 'both':
    ((if (isNULL({Command.ch_activity}) or {Command.ch_activity}='') then '' else {Command.ch_activity}+' ')+{Command.prog_short_ch_des})+chr(13)+((if (isNULL({Command.en_activity}) or {Command.en_activity}='') then '' else {Command.en_activity}+' ')+{Command.prog_short_en_des})
    default:
    ((if (isNULL({Command.ch_activity}) or {Command.ch_activity}='') then '' else {Command.ch_activity}+' ')+{Command.prog_short_ch_des})+chr(13)+((if (isNULL({Command.en_activity}) or {Command.en_activity}='') then '' else {Command.en_activity}+' ')+{Command.prog_short_en_des})


    {@prog_long_txt}
    select {?printLanguage}
    case 'chinese':
    if ((isnull({Command.long_chi_des}) = true or {Command.long_chi_des} = '') and {?accessToEngOrChiContent} = 't')
    then {Command.long_en_des}
    else {Command.long_chi_des}
    case 'english':
    if ((isnull({Command.long_en_des}) = true or {Command.long_en_des} = '') and {?accessToEngOrChiContent} = 't')
    then {Command.long_chi_des}
    else {Command.long_en_des}
    case 'both':
    {Command.long_chi_des}+chr(13)+{Command.long_en_des}
    default:
    {Command.long_chi_des}+chr(13)+{Command.long_en_des}

    謝謝幫忙.
     
    #1 testing, 2021-09-18
  2. 57873296

    edb-rn
    Expand Collapse

    文章:
    430
    讚:
    0
    老師,請參考以下,

    需要 修改 2 個 Sub-Report,

    ole.rpt,ole2.rpt。

    打開 Sub-Report 後,

    會見到 公式 {@prog_short_txt} {@prog_long_txt} 的行距 比較闊,

    需要 人手拉位, 收窄行距。

    並且,將橫線 刪去,

    最後,不剔選 "Can Grow" (向下伸延)。
     

    附件文件:

  3. 55062742

    testing
    Expand Collapse

    文章:
    118
    讚:
    0
    謝謝詳細的回覆.感謝.
     
    #3 testing, 2021-09-23
  4. 55062742

    testing
    Expand Collapse

    文章:
    118
    讚:
    0
    另外有一個困難是關於匯入問題, 我們是使用eclass 處理SLP內的獎項資料,
    不知道如何可以把ECA的資料由websams 系統匯入eclass內呢? 謝謝.
     
    #4 testing, 2021-09-23
  5. 57873296

    edb-rn
    Expand Collapse

    文章:
    430
    讚:
    0
  6. 55062742

    testing
    Expand Collapse

    文章:
    118
    讚:
    0
    謝謝轉寄以往有關資料,
    但是文件的SQL不能執行,不知道是否要修改.

    select
    a.schyear,
    a.duration,
    '#' || s.regno 'RegNo',
    c.ch_des 'Activities/Services Name',
    d.ch_des 'Post',
    e.ch_des 'Performance',
    (case when a.naatype='E' then 'Activities'
    when a.naatype='S' then 'Services' end) 'Type'
    from wsadmin.vw_stu_lateststudent s
    join wsadmin.tb_naa_studentnaa b
    on s.suid=b.suid and s.stuid=b.stuid
    join wsadmin.tb_naa_naaoffered a
    on a.suid=b.suid and a.naaofferedid=b.naaofferedid and s.schyear=a.schyear
    left outer join wsadmin.tb_hse_common c
    on a.suid=c.suid and a.naacode=c.code_id and ((c.tb_id='ECACD' and a.naatype='E') or (c.tb_id='SEVPST' and a.naatype='S'))
    left outer join wsadmin.tb_hse_common d
    on a.suid=d.suid and b.naapostcode=d.code_id and d.tb_id='ECAPST'
    left outer join wsadmin.tb_hse_common e
    on a.suid=e.suid and b.naaperfcode=e.code_id and e.tb_id='ECAPFM'
    where s.schyear=? and a.naatype in ('E', 'S')
    order by a.naatype, s.regno
     
    #6 testing, 2021-09-24
  7. 55062742

    testing
    Expand Collapse

    文章:
    118
    讚:
    0
    已成功把距離拉近,不知道如何修改可以刪去英文的資料,
    例如
    ______________________
    音樂學會

    視覺藝術學會
     
    #7 testing, 2021-09-27
  8. 57873296

    edb-rn
    Expand Collapse

    文章:
    430
    讚:
    0
    老師,請參考以下,

    在 R-SLP008-CE 列印學生學習概覽 Template,

    畫面 有列印 "語言" 選項。

    如果 選只列印 "中文",

    就不會顯示英文的資料。
     

    附件文件:

  9. 55062742

    testing
    Expand Collapse

    文章:
    118
    讚:
    0
    謝謝提供解決方法,當讀取只列印"中文"時
    文件內所有的資料也只會出中文.包括考績內的科目及課外活動資料,
    但是我們希望只有課外活動資料出中文,考績科目則保持中英文顯示,可否再提供一些解決方法?
     
    #9 testing, 2021-10-04
  10. 57873296

    edb-rn
    Expand Collapse

    文章:
    430
    讚:
    0
    如果只有課外活動資料出中文,考績科目則保持中英文顯示,

    當中涉及 繁複的修改,

    需要改動 Formula 公式內容,

    為了解有關問題,請老師聯絡 貴校的網上校管系統學校聯絡主任。
     
  11. 55062742

    testing
    Expand Collapse

    文章:
    118
    讚:
    0
    好的,謝謝幫忙.
     
    #11 testing, 2021-10-06