You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ITSM/.svn/pristine/1c/1c68c87e3dd15e60fd14b4926d8...

140 lines
6.2 KiB

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML xmlns:MSHelp="http://msdn.microsoft.com/mshelp" DIR="LTR"><HEAD>
<meta name="GENERATOR" content="VBdocman .NET - documentation generator; http://www.vbdocman.com">
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=UTF-8">
<TITLE>clsApplikationTree.Load_Treedata (System.String, System.Boolean, System.Boolean) -Methode</TITLE>
<xml>
<MSHelp:TOCTitle Title="clsApplikationTree.Load_Treedata (System.String, System.Boolean, System.Boolean) -Methode"/>
<MSHelp:RLTitle Title="clsApplikationTree.Load_Treedata (System.String, System.Boolean, System.Boolean) -Methode"/>
<MSHelp:Keyword Index="A" Term="topic_00000000000006B6"/>
<MSHelp:Keyword Index="K" Term="clsApplikationTree.Load_Treedata (System.String, System.Boolean, System.Boolean) -Methode"/>
<MSHelp:Keyword Index="K" Term="Vertragsverwaltung.TKB.VV.Applikation.clsApplikationTree.Load_Treedata -Methode"/>
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.TKB.VV.Applikation.clsApplikationTree.Load_Treedata"/>
<MSHelp:Keyword Index="F" Term="clsApplikationTree.Load_Treedata (System.String, System.Boolean, System.Boolean)"/>
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.TKB.VV.Applikation.clsApplikationTree.clsApplikationTree.Load_Treedata (System.String, System.Boolean, System.Boolean)"/>
<MSHelp:Attr Name="DevLang" Value="VB"/>
<MSHelp:Attr Name="DevLangVers" Value="kbLangVB"/>
<MSHelp:Attr Name="DocSet" Value="Visual Basic"/>
<MSHelp:Attr Name="DocSet" Value="Visual Studio"/>
<MSHelp:Attr Name="DocSet" Value="VSM"/>
<MSHelp:Attr Name="Product" Value="VB"/>
<MSHelp:Attr Name="ProductVers" Value="kbVBp700"/>
<MSHelp:Attr Name="Product" Value="VSA"/>
<MSHelp:Attr Name="ProductVers" Value="kbVSA"/>
<MSHelp:Attr Name="Technology" Value="ManagedCode"/>
<MSHelp:Attr Name="TechnologyVers" Value="kbManagedCode"/>
<MSHelp:Attr Name="TopicType" Value="kbSyntax"/>
<MSHelp:Attr Name="TargetOS" Value="Windows"/>
<MSHelp:Attr Name="Locale" Value="kbEnglish"/>
</xml>
<META name="rtfFileName" content="">
<META NAME="save" CONTENT="history">
<!--CSS_START-->
<SCRIPT SRC="MSHelp/scripts/dtuelink.js"></SCRIPT>
<!--CSS_END-->
<SCRIPT language="JavaScript">
function indent(level) {
for (i=1; i<=level; i++) {
document.write("&nbsp;&nbsp;&nbsp;");
}
}
</SCRIPT>
</HEAD>
<body topmargin=0 id="bodyID" class = "dtBODY"><!--NONSCROLLING BANNER START-->
<div id="nsbanner">
<div id="bannerrow1">
<TABLE CLASS="bannerparthead" CELLSPACING=0>
<TR ID="hdr">
<TD CLASS="runninghead" nowrap>Vertragsverwaltung-Klassenbibliothek</TD>
<TD CLASS="product" nowrap>&nbsp;</TD>
</TR>
</TABLE>
</div>
<div id="TitleRow">
<H1 class="dtH1"><A NAME="topic_00000000000006B6"></A>clsApplikationTree.Load_Treedata (System.String, System.Boolean, System.Boolean) -Methode</H1>
</div></div>
<!--NONSCROLLING BANNER END-->
<DIV id="nstext" valign="bottom"><!---->
<PRE class="syntax"><SPAN class="lang">[Visual&nbsp;Basic]
</SPAN><B>Private Function Load_Treedata( _&nbsp;<br> ByVal <i>Suchstring</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a>, _&nbsp;<br> ByVal <i>nuraktive</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemBooleanClassTopic.htm">Boolean</a>, _&nbsp;<br> ByVal <i>Archivobjekte</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemBooleanClassTopic.htm">Boolean</a> _&nbsp;<br>) As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemDataDataTableClassTopic.htm">DataTable</a></B></PRE>
<H4 class="dtH4">Parameter</H4>
<dl>
<dt><i>Suchstring</i></dt>
<dd></dd>
<dt><i>nuraktive</i></dt>
<dd></dd>
<dt><i>Archivobjekte</i></dt>
<dd></dd>
</dl>
<H4 class="dtH4">Quellcode</H4>
<pre class="code"><SPAN class="lang">[Visual&nbsp;Basic]</SPAN>
Private Function Load_Treedata(ByVal Suchstring As String, ByVal nuraktive As Boolean, ByVal Archivobjekte As Boolean) As DataTable&nbsp;<br> Treedata.Tables.Clear()&nbsp;<br> Dim selectcommand As New SqlCommand&nbsp;<br> Dim connection As New SqlConnection()&nbsp;<br> Dim da As New SqlDataAdapter(&quot;&quot;, connection)&nbsp;<br>&nbsp;<br> selectcommand.CommandText = &quot;sp_get_applstruktur_suche&quot;&nbsp;<br> selectcommand.Parameters.Add(&quot;@Mitarbeiternr&quot;, SqlDbType.Int, 4)&nbsp;<br> selectcommand.Parameters.Add(&quot;@suchstring&quot;, SqlDbType.VarChar, 255)&nbsp;<br> selectcommand.Parameters.Add(&quot;@NurAktive&quot;, SqlDbType.Int, 4)&nbsp;<br> selectcommand.Parameters.Add(&quot;@arcobject&quot;, SqlDbType.Int, 4)&nbsp;<br> selectcommand.Parameters(0).Value = Globals.clsmitarbeiter.iMitarbeiternr.Value&nbsp;<br> selectcommand.Parameters(1).Value = Suchstring&nbsp;<br> If nuraktive = True Then&nbsp;<br> selectcommand.Parameters(2).Value = 1&nbsp;<br> Else&nbsp;<br> selectcommand.Parameters(2).Value = 0&nbsp;<br> End If&nbsp;<br> If Archivobjekte = True Then&nbsp;<br> selectcommand.Parameters(3).Value = 1&nbsp;<br> End If&nbsp;<br>&nbsp;<br> selectcommand.CommandType = CommandType.StoredProcedure&nbsp;<br> selectcommand.Connection = connection&nbsp;<br> Try&nbsp;<br> connection.ConnectionString = Globals.sConnectionString&nbsp;<br> connection.Open()&nbsp;<br> da.SelectCommand = selectcommand&nbsp;<br> da.Fill(Treedata, &quot;Tree&quot;)&nbsp;<br> Catch ex As Exception&nbsp;<br> Finally&nbsp;<br> connection.Close()&nbsp;<br> da.Dispose()&nbsp;<br> selectcommand.Dispose()&nbsp;<br> End Try&nbsp;<br>&nbsp;<br> End Function
</pre>
<H4 class="dtH4">Forderungen</H4>
<P><b class="le">Plattformen:&nbsp;</b>Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition</P>
<H4 class="dtH4">Siehe auch</H4>
<p>
<a href="topic_00000000000006B2.html">clsApplikationTree</a>
</p>
<DIV CLASS="footer">
<HR>
Generated by VBdocman .NET
<p>
</div></div>
</BODY>
</HTML>