<%
'
'    Filename: fac_authgroepdisciplinegrid.asp
'    Generated with CodeCharge 2.0.5
'    ASP 2.0 & Templates.ccp build 11/30/2001
'

'-------------------------------
' 
' fac_authgroepdisciplinegrid CustomIncludes Event begin
%>
<!-- #INCLUDE FILE="Common.asp" -->
<%
' fac_authgroepdisciplinegrid CustomIncludes Event end


'===============================
' Save Page and File Name available into variables
'-------------------------------
sFileName = "fac_authgroepdisciplinegrid.asp"
sTemplateFileName = "fac_authgroepdisciplinegrid.html"
'===============================


'===============================
' fac_authgroepdisciplinegrid CustomSecurity Event begin
checkAutorisation("WEB_FACMSU")
' fac_authgroepdisciplinegrid CustomSecurity Event end
'===============================

'===============================
' fac_authgroepdisciplinegrid Open Event begin
if getParam("fac_groep_key") <> "" then
  fldFAC_GROEP_KEY = getParam("fac_groep_key")
end if

if getParam("fac_functie_key") <> "" then
  fldFAC_FUNCTIE_KEY = getParam("fac_functie_key")
end if

if getParam("fac_functie_module") <> "" then
  fldFAC_FUNCTIE_MODULE = getParam("fac_functie_module")
end if
' fac_authgroepdisciplinegrid Open Event end
'===============================


'===============================
'Save the name of the form and type of action into the variables
'-------------------------------
sAction = GetParam("FormAction")
sForm = GetParam("FormName")
'===============================

' fac_authgroepdisciplinegrid Show begin

'===============================
' Display page
'-------------------------------
' Load HTML template for this page
'-------------------------------
LoadTemplate sAppPath & sTemplateFileName, "main"
'-------------------------------
' Load HTML template of Header and Footer
'-------------------------------
'-------------------------------
SetVar "FileName", sFileName


'-------------------------------
' Step through each form
'-------------------------------
FunctieInfo_Show
GroepDisciplineSearch_Show
GroepDisciplineGrid_Show
'-------------------------------
' Process page templates
'-------------------------------
Parse "main", False
'-------------------------------
' Output the page to the browser
'-------------------------------
Response.write PrintVar("main")

' fac_authgroepdisciplinegrid Show end

'-------------------------------
' Destroy all object variables
'-------------------------------

' fac_authgroepdisciplinegrid Close Event begin
' fac_authgroepdisciplinegrid Close Event end

cn.Close
Set cn = Nothing
UnloadTemplate
'===============================

'===============================
' Display Grid Form
'-------------------------------
Sub GroepDisciplineGrid_Show()
'-------------------------------
' Initialize variables  
'-------------------------------
  Dim rs
  Dim sWhere : sWhere = ""
  Dim sOrder : sOrder = ""
  Dim sSQL : sSQL = ""
  Dim sFormTitle: sFormTitle = "Disciplines voor functie"
  Dim HasParam : HasParam = false
  Dim iSort : iSort = ""
  Dim iSorted : iSorted = ""
  Dim sDirection : sDirection = ""
  Dim sSortParams : sSortParams = ""
  Dim iRecordsPerPage : iRecordsPerPage = 50
  Dim iCounter : iCounter = 0
  Dim iPage : iPage = 0
  Dim bEof : bEof = False
  Dim iTmpI : iTmpI = 0
  Dim iTmpJ : iTmpJ = 0
  Dim sCountSQL : sCountSQL = ""

  SetVar "TransitParams", "FAC_FUNCTIE_KEY=" & ToURL(GetParam("FAC_FUNCTIE_KEY")) & "&FAC_FUNCTIE_MODULE=" & ToURL(GetParam("FAC_FUNCTIE_MODULE")) & "&FAC_FUNCTIE_MODULE_FILTER=" & ToURL(GetParam("FAC_FUNCTIE_MODULE_FILTER")) & "&FAC_GROEP_KEY=" & ToURL(GetParam("FAC_GROEP_KEY")) & "&INS_SRTDISCIPLINE_KEY=" & ToURL(GetParam("INS_SRTDISCIPLINE_KEY")) & "&sFAC_GROEP_UPPER=" & ToURL(GetParam("sFAC_GROEP_UPPER")) & "&"
  SetVar "FormParams", "FAC_FUNCTIE_KEY=" & ToURL(GetParam("FAC_FUNCTIE_KEY")) & "&FAC_FUNCTIE_MODULE=" & ToURL(GetParam("FAC_FUNCTIE_MODULE")) & "&FAC_FUNCTIE_MODULE_FILTER=" & ToURL(GetParam("FAC_FUNCTIE_MODULE_FILTER")) & "&FAC_GROEP_KEY=" & ToURL(GetParam("FAC_GROEP_KEY")) & "&INS_SRTDISCIPLINE_KEY=" & ToURL(GetParam("INS_SRTDISCIPLINE_KEY")) & "&sFAC_GROEP_UPPER=" & ToURL(GetParam("sFAC_GROEP_UPPER")) & "&"

'-------------------------------
' Build WHERE statement
'-------------------------------
  pINS_SRTDISCIPLINE_KEY = GetParam("INS_SRTDISCIPLINE_KEY")
  if IsNumeric(pINS_SRTDISCIPLINE_KEY) and not isEmpty(pINS_SRTDISCIPLINE_KEY) then pINS_SRTDISCIPLINE_KEY = ToSQL(pINS_SRTDISCIPLINE_KEY, "Number") else pINS_SRTDISCIPLINE_KEY = Empty
  if not isEmpty(pINS_SRTDISCIPLINE_KEY) then
    HasParam = true
    sWhere = sWhere & "I.INS_SRTDISCIPLINE_KEY=" & pINS_SRTDISCIPLINE_KEY
  end if


  if HasParam then
    sWhere = " WHERE (ins_discipline_verwijder is null and ins_discipline_module like '%"&replace(fldFAC_FUNCTIE_MODULE, "'", "''")&"%') AND (" & sWhere & ")"
  else
    sWhere = " WHERE ins_discipline_verwijder is null and ins_discipline_module like '%"&replace(fldFAC_FUNCTIE_MODULE, "'", "''")&"%'"
  end if
  
'-------------------------------
' Build ORDER BY statement
'-------------------------------
  sOrder = " order by I.INS_DISCIPLINE_OMSCHRIJVING Asc"
  iSort = GetParam("FormGroepDisciplineGrid_Sorting")
  iSorted = GetParam("FormGroepDisciplineGrid_Sorted")
  sDirection = ""
  if IsEmpty(iSort) then
    SetVar "Form_Sorting", ""
  else
    if iSort = iSorted then 
      SetVar "Form_Sorting", ""
      sDirection = " DESC"
      sSortParams = "FormGroepDisciplineGrid_Sorting=" & iSort & "&FormGroepDisciplineGrid_Sorted=" & iSort & "&"
    else
      SetVar "Form_Sorting", iSort
      sDirection = " ASC"
      sSortParams = "FormGroepDisciplineGrid_Sorting=" & iSort & "&FormGroepDisciplineGrid_Sorted=" & "&"
    end if
    if iSort = 1 then sOrder = " order by I.INS_DISCIPLINE_KEY" & sDirection
    if iSort = 2 then sOrder = " order by I.INS_SRTDISCIPLINE_KEY" & sDirection
    if iSort = 3 then sOrder = " order by I.INS_DISCIPLINE_OMSCHRIJVING" & sDirection
  end if

'-------------------------------
' Build base SQL statement
'-------------------------------
  sSQL = "select I.INS_DISCIPLINE_KEY as I_INS_DISCIPLINE_KEY, " & _
    "I.INS_DISCIPLINE_MODULE as I_INS_DISCIPLINE_MODULE, " & _
    "I.INS_DISCIPLINE_OMSCHRIJVING as I_INS_DISCIPLINE_OMSCHRIJVING, " & _
    "I.INS_SRTDISCIPLINE_KEY as I_INS_SRTDISCIPLINE_KEY " & _
    " from INS_TAB_DISCIPLINE I "
'-------------------------------

'-------------------------------
' GroepDisciplineGrid Open Event begin
'Zoek functie omschrijving op
sqlFunctie = "select fac_functie_omschrijving, fac_functie_min_level from fac_functie where fac_functie_key = " & ToSQL(fldFAC_FUNCTIE_KEY, "Number")
openrs rsFunctie,sqlFunctie
if not rsFunctie.EOF then
  sFormTitle = sFormTitle & " <i>"& ToHTML(getValue(rsFunctie,"fac_functie_omschrijving"))&"</i>"
end if
rsFunctie.Close

s_filter = ""
if (getParam("FAC_FUNCTIE_MODULE_FILTER") <> "") then
  s_filter = "&fac_functie_module="& ToURL(getParam("FAC_FUNCTIE_MODULE_FILTER"))
end if
if (getParam("sFAC_GROEP_UPPER") <> "") then
  s_filter = s_filter & "&sFAC_GROEP_UPPER="& ToURL(getParam("sFAC_GROEP_UPPER"))
end if
setvar "Footer","<font class=DataFont><a href=fac_authgroepgrid.asp?fac_groep_key=" & ToURL(fldFAC_GROEP_KEY) &s_filter&">"&FCLTLCL("Terug naar overzicht")&"</a></font>"
' GroepDisciplineGrid Open Event end
'-------------------------------

'-------------------------------
' Assemble full SQL statement
'-------------------------------
  sSQL = sSQL & sWhere & sOrder
  if sCountSQL = "" then
    iTmpI = instr(lcase(sSQL), "select")
    iTmpJ = instr(lcase(sSQL), "from") - 1
    sCountSQL = replace(sSQL, mid(sSQL, iTmpI + 6, iTmpJ - 6), " count(*) ")
    iTmpI = instr(lcase(sCountSQl), "order by")
    if iTmpI > 1 then sCountSQL = left(sCountSQL, iTmpI - 1)
  end if
'-------------------------------

SetVar "FormTitle", sFormTitle

'-------------------------------
' Process the parameters for sorting
'-------------------------------
  SetVar "SortParams", sSortParams
'-------------------------------

'-------------------------------
' Open the recordset
'-------------------------------
  openrs rs, sSQL
'-------------------------------

'-------------------------------
' Process empty recordset
'-------------------------------
  if rs.eof then
    set rs = nothing
    SetVar "DListGroepDisciplineGrid", ""
    Parse "GroepDisciplineGridNoRecords", False
    SetVar "GroepDisciplineGridNavigator", ""
    Parse "FormGroepDisciplineGrid", False
    exit sub
  end if
'-------------------------------

'-------------------------------
' Initialize page counter and records per page
'-------------------------------
  iRecordsPerPage = 50
  iCounter = 0
'-------------------------------

'-------------------------------
' Process page scroller
'-------------------------------
  iPage = GetParam("FormGroepDisciplineGrid_Page")
  openrs rsCount, sCountSQL
  dResult = CLng(rsCount.fields(0).value) / iRecordsPerPage
  iPageCount = int(dResult)
  if iPageCount < dResult then iPageCount = iPageCount + 1
  SetVar "GroepDisciplineGridPageCount", iPageCount
  set rsCount = nothing
  if IsEmpty(iPage) then
    iPage = 1
  else
    if iPage = "last" then iPage = iPageCount
  end if
  while not rs.eof and iCounter < (iPage-1)*iRecordsPerPage
    rs.movenext
    iCounter = iCounter + 1
  wend
  iCounter = 0
'-------------------------------

'-------------------------------
' Display grid based on recordset
'-------------------------------
  while not rs.EOF  and iCounter < iRecordsPerPage
'-------------------------------
' Create field variables based on database fields
'-------------------------------
    fldKOPIEER_URLLink = "fac_authgroep_copy.asp"
    fldKOPIEER_INS_DISCIPLINE_KEY = GetValue(rs, "I_INS_DISCIPLINE_KEY")
    fldKOPIEER_INS_DISCIPLINE_MODULE = GetValue(rs, "I_INS_DISCIPLINE_MODULE")
    fldINS_DISCIPLINE_KEY = GetValue(rs, "I_INS_DISCIPLINE_KEY")
    fldINS_DISCIPLINE_MODULE = GetValue(rs, "I_INS_DISCIPLINE_MODULE")
    fldINS_DISCIPLINE_OMSCHRIJVING_URLLink = "fac_authgroepdisciplinerecord.asp"
    fldINS_DISCIPLINE_OMSCHRIJVING_FAC_GROEPRECHTEN_KEY = GetValue(rs, "I_INS_DISCIPLINE_KEY")
    fldINS_DISCIPLINE_OMSCHRIJVING_INS_DISCIPLINE_KEY = GetValue(rs, "I_INS_DISCIPLINE_KEY")
    fldINS_DISCIPLINE_OMSCHRIJVING = GetValue(rs, "I_INS_DISCIPLINE_OMSCHRIJVING")
    fldINS_SRTDISCIPLINE_KEY = GetValue(rs, "I_INS_SRTDISCIPLINE_KEY")
    fldKOPIEER= ""&FCLTLCL("Kopieer")&""
'-------------------------------
' GroepDisciplineGrid Show begin
'-------------------------------

'-------------------------------
' GroepDisciplineGrid Show Event begin
sqlRechten = "select * from fac_groeprechten where fac_groep_key = " & ToSQL(fldFAC_GROEP_KEY, "Number")&" and fac_functie_key = " & ToSQL(fldFAC_FUNCTIE_KEY, "Number")&" and ins_discipline_key = " & ToSQL(fldINS_DISCIPLINE_KEY, "Number")
openrs rsRechten, sqlRechten
if not rsRechten.EOF then
  'Autorisaties gevonden
  fldFAC_GEBRUIKER_PRS_READ = decode_org_level (getValue(rsRechten,"FAC_GEBRUIKER_PRS_LEVEL_READ"))
  fldFAC_GEBRUIKER_PRS_WRITE = decode_org_level(getValue(rsRechten,"FAC_GEBRUIKER_PRS_LEVEL_WRITE"))
  fldFAC_GEBRUIKER_ALG_READ = decode_pos_level (getValue(rsRechten,"FAC_GEBRUIKER_ALG_LEVEL_READ"))
  fldFAC_GEBRUIKER_ALG_WRITE = decode_pos_level(getValue(rsRechten,"FAC_GEBRUIKER_ALG_LEVEL_WRITE"))
  fldINS_DISCIPLINE_OMSCHRIJVING_FAC_GROEPRECHTEN_KEY = getValue(rsRechten,"FAC_GROEPRECHTEN_KEY")
else
  fldFAC_GEBRUIKER_PRS_READ = FCLTLCL("Geen")
  fldFAC_GEBRUIKER_PRS_WRITE = FCLTLCL("Geen")
  fldFAC_GEBRUIKER_ALG_READ = FCLTLCL("Geen")
  fldFAC_GEBRUIKER_ALG_WRITE = FCLTLCL("Geen")
  fldINS_DISCIPLINE_OMSCHRIJVING_FAC_GROEPRECHTEN_KEY = ""
end if
rsRechten.Close

'Zoek het vakgroeptype op
fldINS_SRTDISCIPLINE_KEY = getSrtDisciplineOmschr(fldINS_DISCIPLINE_KEY)
' GroepDisciplineGrid Show Event end
'-------------------------------

'-------------------------------
' Replace Template fields with database values
'-------------------------------
    
      SetVar "INS_DISCIPLINE_KEY", ToHTML(fldINS_DISCIPLINE_KEY)
      SetVar "INS_DISCIPLINE_MODULE", ToHTML(fldINS_DISCIPLINE_MODULE)
      SetVar "INS_SRTDISCIPLINE_KEY", ToHTML(fldINS_SRTDISCIPLINE_KEY)
      SetVar "INS_DISCIPLINE_OMSCHRIJVING", fldINS_DISCIPLINE_OMSCHRIJVING
      SetVar "INS_DISCIPLINE_OMSCHRIJVING_URLLink", fldINS_DISCIPLINE_OMSCHRIJVING_URLLink
      SetVar "PrmINS_DISCIPLINE_OMSCHRIJVING_FAC_GROEPRECHTEN_KEY", ToURL(fldINS_DISCIPLINE_OMSCHRIJVING_FAC_GROEPRECHTEN_KEY)
      SetVar "PrmINS_DISCIPLINE_OMSCHRIJVING_INS_DISCIPLINE_KEY", ToURL(fldINS_DISCIPLINE_OMSCHRIJVING_INS_DISCIPLINE_KEY)
      SetVar "FAC_GEBRUIKER_PRS_READ", fldFAC_GEBRUIKER_PRS_READ
      SetVar "FAC_GEBRUIKER_PRS_WRITE", fldFAC_GEBRUIKER_PRS_WRITE
      SetVar "FAC_GEBRUIKER_ALG_READ", fldFAC_GEBRUIKER_ALG_READ
      SetVar "FAC_GEBRUIKER_ALG_WRITE", fldFAC_GEBRUIKER_ALG_WRITE
      SetVar "FAC_FUNCTIE_KEY", ToHTML(fldFAC_FUNCTIE_KEY)
      SetVar "KOPIEER", fldKOPIEER
      SetVar "KOPIEER_URLLink", fldKOPIEER_URLLink
      SetVar "PrmKOPIEER_INS_DISCIPLINE_KEY", ToURL(fldKOPIEER_INS_DISCIPLINE_KEY)
      SetVar "PrmKOPIEER_INS_DISCIPLINE_MODULE", ToURL(fldKOPIEER_INS_DISCIPLINE_MODULE)
    Parse "DListGroepDisciplineGrid", True

'-------------------------------
' GroepDisciplineGrid Show end
'-------------------------------

'-------------------------------
' Move to the next record and increase record counter
'-------------------------------
    rs.MoveNext
    iCounter = iCounter + 1
  wend
'-------------------------------


'-------------------------------
' GroepDisciplineGrid Navigation begin
'-------------------------------
  bEof = rs.eof
  if rs.eof and iPage = 1 then
	SetVar "GroepDisciplineGridNavigator", ""
  else
    iCounter = 1
    iHasPages = iPage
    iDisplayPages = 0
    iNumberOfPages = 10
    iHasPages = iPageCount
    if (iHasPages - iPage) < int(iNumberOfPages/2) then
      iStartPage = iHasPages - iNumberOfPages
    else
      iStartPage = iPage - iNumberOfPages + int(iNumberOfPages/2)
    end if
    if iStartPage < 0 then iStartPage = 0
    for iPageCount = iStartPage + 1 to iPage - 1
      SetVar "NavigatorPageNumber", iPageCount
      SetVar "NavigatorPageNumberView", iPageCount
      Parse "GroepDisciplineGridNavigatorPages", true
      iDisplayPages = iDisplayPages + 1
    next
    SetVar "NavigatorPageSwitch", "_"
    SetVar "NavigatorPageNumber", iPage
    SetVar "NavigatorPageNumberView", iPage
    Parse "GroepDisciplineGridNavigatorPages", true
    iDisplayPages = iDisplayPages + 1
    SetVar "NavigatorPageSwitch", ""
    iPageCount = iPage + 1
    while iDisplayPages < iNumberOfPages and iStartPage + iDisplayPages < iHasPages
      SetVar "NavigatorPageNumber", iPageCount
      SetVar "NavigatorPageNumberView", iPageCount
      Parse "GroepDisciplineGridNavigatorPages", true
      iDisplayPages = iDisplayPages + 1
      iPageCount = iPageCount + 1
    wend
    if bEof then
      SetVar "GroepDisciplineGridNavigatorLastPage", "_"
    else
      SetVar "NextPage", (iPage + 1)
    end if
    if iPage = 1 then
      SetVar "GroepDisciplineGridNavigatorFirstPage", "_"
    else
      SetVar "PrevPage", (iPage - 1)
    end if
    SetVar "GroepDisciplineGridCurrentPage", iPage
    Parse "GroepDisciplineGridNavigator", False
  end if
'-------------------------------
' GroepDisciplineGrid Navigation end
'-------------------------------

'-------------------------------
' Finish form processing
'-------------------------------
  set rs = nothing
  SetVar "GroepDisciplineGridNoRecords", ""
  Parse "FormGroepDisciplineGrid", False

'-------------------------------
' GroepDisciplineGrid Close Event begin
' GroepDisciplineGrid Close Event end
'-------------------------------
End Sub
'===============================


'===============================
' Display Menu Form
'-------------------------------
Sub FunctieInfo_Show()
  Dim sFormTitle: sFormTitle = ""

'-------------------------------
' FunctieInfo Open Event begin
' FunctieInfo Open Event end
'-------------------------------

'-------------------------------
' Set URLs
'-------------------------------
  fldFAC_FUNCTIE_INFO = ""
'-------------------------------
' FunctieInfo Show begin
'-------------------------------

  SetVar "FormTitle", sFormTitle

'-------------------------------
' FunctieInfo BeforeShow Event begin
if (getParam("fac_functie_key") <> "") then
  tmpsql = "select fac_functie_info from fac_functie where fac_functie_key = " & ToSQL(getParam("fac_functie_key"), "Number")
  openrs tmprs, tmpsql
  if not tmprs.EOF then
    fldFAC_FUNCTIE_INFO = getValue(tmprs,"fac_functie_info")
  end if
end if
' FunctieInfo BeforeShow Event end
'-------------------------------

'-------------------------------
' Show fields
'-------------------------------
  SetVar "FAC_FUNCTIE_INFO", fldFAC_FUNCTIE_INFO
  Parse "FormFunctieInfo", False

'-------------------------------
' FunctieInfo Show end
'-------------------------------
End Sub
'===============================


'===============================
' Display Search Form
'-------------------------------
Sub GroepDisciplineSearch_Show()
  Dim sFormTitle: sFormTitle = ""
  Dim sActionFileName: sActionFileName = "fac_authgroepdisciplinegrid.asp"
  Dim sINS_SRTDISCIPLINE_KEYDisplayValue: sINS_SRTDISCIPLINE_KEYDisplayValue = ""

'-------------------------------
' GroepDisciplineSearch Open Event begin
if fldFAC_FUNCTIE_MODULE <> "" then
  srtDisciplineSql = "select ins_srtdiscipline_key, ins_srtdiscipline_omschrijving "&_
                     "from ins_srtdiscipline "&_
                     "where ins_srtdiscipline_verwijder is null "&_
                     "  and ins_srtdiscipline_module="&ToSQL(fldFAC_FUNCTIE_MODULE,"Text")&" "&_
                     "order by ins_srtdiscipline_omschrijving"
else
  srtDisciplineSql = "select 0,'' "&from_dual
end if
' GroepDisciplineSearch Open Event end
'-------------------------------
      SetVar "FormTitle", sFormTitle
      SetVar "ActionPage", sActionFileName
      SetVar "FAC_FUNCTIE_KEY", ToHTML(GetParam("FAC_FUNCTIE_KEY"))
      SetVar "FAC_GROEP_KEY", ToHTML(GetParam("FAC_GROEP_KEY"))
      SetVar "FAC_FUNCTIE_MODULE", ToHTML(GetParam("FAC_FUNCTIE_MODULE"))
      SetVar "FAC_FUNCTIE_MODULE_FILTER", ToHTML(GetParam("FAC_FUNCTIE_MODULE_FILTER"))
      SetVar "sFAC_GROEP_UPPER", ToHTML(GetParam("sFAC_GROEP_UPPER"))

'-------------------------------
' Set variables with search parameters
'-------------------------------
      fldINS_SRTDISCIPLINE_KEY = GetParam("INS_SRTDISCIPLINE_KEY")

'-------------------------------
' GroepDisciplineSearch Show begin
'-------------------------------


'-------------------------------
' GroepDisciplineSearch Show Event begin
' GroepDisciplineSearch Show Event end
'-------------------------------
      SetVar "GroepDisciplineSearchLBINS_SRTDISCIPLINE_KEY", ""
      SetVar "Selected", ""
      SetVar "ID", ""
      SetVar "Value", sINS_SRTDISCIPLINE_KEYDisplayValue
      Parse "GroepDisciplineSearchLBINS_SRTDISCIPLINE_KEY", True
      openrs rsINS_SRTDISCIPLINE_KEY, ""&srtDisciplineSql&""
      while not rsINS_SRTDISCIPLINE_KEY.EOF
        SetVar "ID", GetValue(rsINS_SRTDISCIPLINE_KEY, 0) : SetVar "Value", GetValue(rsINS_SRTDISCIPLINE_KEY, 1)
        if cstr(GetValue(rsINS_SRTDISCIPLINE_KEY, 0)) = cstr(fldINS_SRTDISCIPLINE_KEY) then SetVar "Selected", "SELECTED" else SetVar "Selected", ""
        Parse "GroepDisciplineSearchLBINS_SRTDISCIPLINE_KEY", True
        rsINS_SRTDISCIPLINE_KEY.MoveNext
      wend
      set rsINS_SRTDISCIPLINE_KEY = nothing
    

'-------------------------------
' GroepDisciplineSearch Show end
'-------------------------------

'-------------------------------
' GroepDisciplineSearch Close Event begin
' GroepDisciplineSearch Close Event end
'-------------------------------
      Parse "FormGroepDisciplineSearch", False
End Sub
'===============================

%>