Projektdateien hinzufügen.
6
AvisoTV/App.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
|
||||
</startup>
|
||||
</configuration>
|
||||
201
AvisoTV/AvisoTV.vbproj
Normal file
@@ -0,0 +1,201 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||
<ProductVersion>
|
||||
</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{3B5EAEB2-0477-4899-A893-3049DD458B9B}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<StartupObject>AvisoTV.My.MyApplication</StartupObject>
|
||||
<RootNamespace>AvisoTV</RootNamespace>
|
||||
<AssemblyName>AvisoTV</AssemblyName>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<MyType>WindowsForms</MyType>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile>
|
||||
</TargetFrameworkProfile>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<DefineDebug>true</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DocumentationFile>AvisoTV.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<DefineDebug>false</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DocumentationFile>AvisoTV.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionExplicit>On</OptionExplicit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionCompare>Binary</OptionCompare>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionStrict>On</OptionStrict>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionInfer>On</OptionInfer>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>aviso_tv.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationManifest>My Project\app.manifest</ApplicationManifest>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Import Include="Microsoft.VisualBasic" />
|
||||
<Import Include="System" />
|
||||
<Import Include="System.Collections" />
|
||||
<Import Include="System.Collections.Generic" />
|
||||
<Import Include="System.Data" />
|
||||
<Import Include="System.Drawing" />
|
||||
<Import Include="System.Diagnostics" />
|
||||
<Import Include="System.Windows.Forms" />
|
||||
<Import Include="System.Linq" />
|
||||
<Import Include="System.Xml.Linq" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="frmAnzeige.vb">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmAnzeige.Designer.vb">
|
||||
<DependentUpon>frmAnzeige.vb</DependentUpon>
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||
<Compile Include="My Project\Application.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Application.myapp</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="My Project\Resources.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="My Project\Settings.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="frmAnzeige.resx">
|
||||
<DependentUpon>frmAnzeige.vb</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="My Project\Resources.resx">
|
||||
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
|
||||
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="My Project\app.manifest" />
|
||||
<None Include="My Project\Application.myapp">
|
||||
<Generator>MyApplicationCodeGenerator</Generator>
|
||||
<LastGenOutput>Application.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
<None Include="My Project\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<CustomToolNamespace>My</CustomToolNamespace>
|
||||
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\SDL\SDL\VERAG_PROG_ALLGEMEIN\VERAG_PROG_ALLGEMEIN.vbproj">
|
||||
<Project>{a3b497bd-842c-4a2b-b398-ed1976849df1}</Project>
|
||||
<Name>VERAG_PROG_ALLGEMEIN</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Gemeinsames\Gemeinsames.vbproj">
|
||||
<Project>{110C923B-CB02-4FD0-AF24-95E0F0EEEFF5}</Project>
|
||||
<Name>Gemeinsames</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\disconnect.png" />
|
||||
<Content Include="aviso_tv.ico" />
|
||||
<None Include="Resources\Verag-AG-Logopng.png" />
|
||||
<None Include="Resources\Atilla Logo_10cm.jpg" />
|
||||
<None Include="Resources\Atilla.png" />
|
||||
<None Include="Resources\waitLKW.png" />
|
||||
<None Include="Resources\passport.png" />
|
||||
<None Include="Resources\urgent.jpg" />
|
||||
<None Include="Resources\urgent_qu.png" />
|
||||
<None Include="Resources\urgent.png" />
|
||||
<None Include="Resources\IMEX-LOGO_simple.png" />
|
||||
<Content Include="tv.ico" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include=".NETFramework,Version=v4.0,Profile=Client">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Microsoft .NET Framework 4 Client Profile %28x86 und x64%29</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Windows Installer 3.1</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
38
AvisoTV/My Project/Application.Designer.vb
generated
Normal file
@@ -0,0 +1,38 @@
|
||||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' Dieser Code wurde von einem Tool generiert.
|
||||
' Laufzeitversion:4.0.30319.42000
|
||||
'
|
||||
' Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||
' der Code erneut generiert wird.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
|
||||
Namespace My
|
||||
|
||||
'HINWEIS: Diese Datei wird automatisch generiert. Ändern Sie sie nicht direkt. Zum Ändern
|
||||
' oder bei in dieser Datei auftretenden Buildfehlern wechseln Sie zum Projekt-Designer.
|
||||
' (Wechseln Sie dazu zu den Projekteigenschaften, oder doppelklicken Sie auf den Knoten "Mein Projekt" im
|
||||
' Projektmappen-Explorer). Nehmen Sie auf der Registerkarte "Anwendung" entsprechende Änderungen vor.
|
||||
'
|
||||
Partial Friend Class MyApplication
|
||||
|
||||
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
|
||||
Public Sub New()
|
||||
MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
|
||||
Me.IsSingleInstance = false
|
||||
Me.EnableVisualStyles = true
|
||||
Me.SaveMySettingsOnExit = true
|
||||
Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
|
||||
End Sub
|
||||
|
||||
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
|
||||
Protected Overrides Sub OnCreateMainForm()
|
||||
Me.MainForm = Global.AvisoTV.frmAnzeige
|
||||
End Sub
|
||||
End Class
|
||||
End Namespace
|
||||
10
AvisoTV/My Project/Application.myapp
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-16"?>
|
||||
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<MySubMain>true</MySubMain>
|
||||
<MainForm>frmAnzeige</MainForm>
|
||||
<SingleInstance>false</SingleInstance>
|
||||
<ShutdownMode>0</ShutdownMode>
|
||||
<EnableVisualStyles>true</EnableVisualStyles>
|
||||
<AuthenticationMode>0</AuthenticationMode>
|
||||
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
||||
</MyApplicationData>
|
||||
35
AvisoTV/My Project/AssemblyInfo.vb
Normal file
@@ -0,0 +1,35 @@
|
||||
Imports System
|
||||
Imports System.Reflection
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
' Allgemeine Informationen über eine Assembly werden über die folgenden
|
||||
' Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
||||
' die mit einer Assembly verknüpft sind.
|
||||
|
||||
' Die Werte der Assemblyattribute überprüfen
|
||||
|
||||
<Assembly: AssemblyTitle("AvisoTV")>
|
||||
<Assembly: AssemblyDescription("")>
|
||||
<Assembly: AssemblyCompany("")>
|
||||
<Assembly: AssemblyProduct("AvisoTV")>
|
||||
<Assembly: AssemblyCopyright("Copyright © 2013")>
|
||||
<Assembly: AssemblyTrademark("")>
|
||||
|
||||
<Assembly: ComVisible(False)>
|
||||
|
||||
'Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
|
||||
<Assembly: Guid("ea8a9d2d-e792-4779-91c9-70ef153ea964")>
|
||||
|
||||
' Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
||||
'
|
||||
' Hauptversion
|
||||
' Nebenversion
|
||||
' Buildnummer
|
||||
' Revision
|
||||
'
|
||||
' Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
||||
' übernehmen, indem Sie "*" eingeben:
|
||||
' <Assembly: AssemblyVersion("1.0.*")>
|
||||
|
||||
<Assembly: AssemblyVersion("1.0.0.9")>
|
||||
<Assembly: AssemblyFileVersion("1.0.0.9")>
|
||||
179
AvisoTV/My Project/Resources.Designer.vb
generated
Normal file
@@ -0,0 +1,179 @@
|
||||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' Dieser Code wurde von einem Tool generiert.
|
||||
' Laufzeitversion:4.0.30319.42000
|
||||
'
|
||||
' Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||
' der Code erneut generiert wird.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
Imports System
|
||||
|
||||
Namespace My.Resources
|
||||
|
||||
'Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
|
||||
'-Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
|
||||
'Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
|
||||
'mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
|
||||
'''<summary>
|
||||
''' Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
||||
'''</summary>
|
||||
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
||||
Friend Module Resources
|
||||
|
||||
Private resourceMan As Global.System.Resources.ResourceManager
|
||||
|
||||
Private resourceCulture As Global.System.Globalization.CultureInfo
|
||||
|
||||
'''<summary>
|
||||
''' Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
|
||||
'''</summary>
|
||||
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
||||
Get
|
||||
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
||||
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("AvisoTV.Resources", GetType(Resources).Assembly)
|
||||
resourceMan = temp
|
||||
End If
|
||||
Return resourceMan
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
|
||||
''' Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
|
||||
'''</summary>
|
||||
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Friend Property Culture() As Global.System.Globalization.CultureInfo
|
||||
Get
|
||||
Return resourceCulture
|
||||
End Get
|
||||
Set
|
||||
resourceCulture = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
'''</summary>
|
||||
Friend ReadOnly Property Atilla() As System.Drawing.Bitmap
|
||||
Get
|
||||
Dim obj As Object = ResourceManager.GetObject("Atilla", resourceCulture)
|
||||
Return CType(obj,System.Drawing.Bitmap)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Sucht eine lokalisierte Zeichenfolge, die Data Source=192.168.0.94\SQLEXPRESS;Initial Catalog=AVISO;Integrated Security=false;User ID=sa;Password=BmWr501956;Pooling=true;Min Pool Size=5;Max Pool Size=200 ähnelt.
|
||||
'''</summary>
|
||||
Friend ReadOnly Property connStr_ATILLA() As String
|
||||
Get
|
||||
Return ResourceManager.GetString("connStr_ATILLA", resourceCulture)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Sucht eine lokalisierte Zeichenfolge, die Data Source=192.168.0.90\DEVSQL;Initial Catalog=AVISO_new;Integrated Security=false;User ID=sa;Password=BmWr501956;Pooling=true;Min Pool Size=5;Max Pool Size=200 ähnelt.
|
||||
'''</summary>
|
||||
Friend ReadOnly Property connStr_DEV() As String
|
||||
Get
|
||||
Return ResourceManager.GetString("connStr_DEV", resourceCulture)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Sucht eine lokalisierte Zeichenfolge, die Data Source=192.168.0.94\SQLEXPRESS;Initial Catalog=AVISO;Integrated Security=false;User ID=sa;Password=BmWr501956;Pooling=true;Min Pool Size=5;Max Pool Size=200 ähnelt.
|
||||
'''</summary>
|
||||
Friend ReadOnly Property connStr_VERAG() As String
|
||||
Get
|
||||
Return ResourceManager.GetString("connStr_VERAG", resourceCulture)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
'''</summary>
|
||||
Friend ReadOnly Property disconnect() As System.Drawing.Bitmap
|
||||
Get
|
||||
Dim obj As Object = ResourceManager.GetObject("disconnect", resourceCulture)
|
||||
Return CType(obj,System.Drawing.Bitmap)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
'''</summary>
|
||||
Friend ReadOnly Property IMEX_LOGO_simple() As System.Drawing.Bitmap
|
||||
Get
|
||||
Dim obj As Object = ResourceManager.GetObject("IMEX_LOGO_simple", resourceCulture)
|
||||
Return CType(obj,System.Drawing.Bitmap)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
'''</summary>
|
||||
Friend ReadOnly Property passport() As System.Drawing.Bitmap
|
||||
Get
|
||||
Dim obj As Object = ResourceManager.GetObject("passport", resourceCulture)
|
||||
Return CType(obj,System.Drawing.Bitmap)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Sucht eine lokalisierte Zeichenfolge, die ähnelt.
|
||||
'''</summary>
|
||||
Friend ReadOnly Property sda() As String
|
||||
Get
|
||||
Return ResourceManager.GetString("sda", resourceCulture)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
'''</summary>
|
||||
Friend ReadOnly Property urgent() As System.Drawing.Bitmap
|
||||
Get
|
||||
Dim obj As Object = ResourceManager.GetObject("urgent", resourceCulture)
|
||||
Return CType(obj,System.Drawing.Bitmap)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
'''</summary>
|
||||
Friend ReadOnly Property urgent_qu() As System.Drawing.Bitmap
|
||||
Get
|
||||
Dim obj As Object = ResourceManager.GetObject("urgent_qu", resourceCulture)
|
||||
Return CType(obj,System.Drawing.Bitmap)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
'''</summary>
|
||||
Friend ReadOnly Property Verag_AG_Logopng() As System.Drawing.Bitmap
|
||||
Get
|
||||
Dim obj As Object = ResourceManager.GetObject("Verag-AG-Logopng", resourceCulture)
|
||||
Return CType(obj,System.Drawing.Bitmap)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
'''</summary>
|
||||
Friend ReadOnly Property waitLKW() As System.Drawing.Bitmap
|
||||
Get
|
||||
Dim obj As Object = ResourceManager.GetObject("waitLKW", resourceCulture)
|
||||
Return CType(obj,System.Drawing.Bitmap)
|
||||
End Get
|
||||
End Property
|
||||
End Module
|
||||
End Namespace
|
||||
157
AvisoTV/My Project/Resources.resx
Normal file
@@ -0,0 +1,157 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="connStr_VERAG" xml:space="preserve">
|
||||
<value>Data Source=192.168.0.94\SQLEXPRESS;Initial Catalog=AVISO;Integrated Security=false;User ID=sa;Password=BmWr501956;Pooling=true;Min Pool Size=5;Max Pool Size=200</value>
|
||||
</data>
|
||||
<data name="connStr_ATILLA" xml:space="preserve">
|
||||
<value>Data Source=192.168.0.94\SQLEXPRESS;Initial Catalog=AVISO;Integrated Security=false;User ID=sa;Password=BmWr501956;Pooling=true;Min Pool Size=5;Max Pool Size=200</value>
|
||||
</data>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="disconnect" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\disconnect.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Verag-AG-Logopng" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Verag-AG-Logopng.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Atilla" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Atilla.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="waitLKW" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\waitLKW.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="connStr_DEV" xml:space="preserve">
|
||||
<value>Data Source=192.168.0.90\DEVSQL;Initial Catalog=AVISO_new;Integrated Security=false;User ID=sa;Password=BmWr501956;Pooling=true;Min Pool Size=5;Max Pool Size=200</value>
|
||||
</data>
|
||||
<data name="passport" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\passport.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="urgent" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\urgent.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="urgent_qu" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\urgent_qu.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sda" xml:space="preserve">
|
||||
<value />
|
||||
</data>
|
||||
<data name="IMEX_LOGO_simple" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\IMEX-LOGO_simple.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
||||
73
AvisoTV/My Project/Settings.Designer.vb
generated
Normal file
@@ -0,0 +1,73 @@
|
||||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' Dieser Code wurde von einem Tool generiert.
|
||||
' Laufzeitversion:4.0.30319.42000
|
||||
'
|
||||
' Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||
' der Code erneut generiert wird.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
|
||||
Namespace My
|
||||
|
||||
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0"), _
|
||||
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Partial Friend NotInheritable Class MySettings
|
||||
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||
|
||||
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
|
||||
|
||||
#Region "Funktion zum automatischen Speichern von My.Settings"
|
||||
#If _MyType = "WindowsForms" Then
|
||||
Private Shared addedHandler As Boolean
|
||||
|
||||
Private Shared addedHandlerLockObject As New Object
|
||||
|
||||
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
|
||||
If My.Application.SaveMySettingsOnExit Then
|
||||
My.Settings.Save()
|
||||
End If
|
||||
End Sub
|
||||
#End If
|
||||
#End Region
|
||||
|
||||
Public Shared ReadOnly Property [Default]() As MySettings
|
||||
Get
|
||||
|
||||
#If _MyType = "WindowsForms" Then
|
||||
If Not addedHandler Then
|
||||
SyncLock addedHandlerLockObject
|
||||
If Not addedHandler Then
|
||||
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
|
||||
addedHandler = True
|
||||
End If
|
||||
End SyncLock
|
||||
End If
|
||||
#End If
|
||||
Return defaultInstance
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
End Namespace
|
||||
|
||||
Namespace My
|
||||
|
||||
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
||||
Friend Module MySettingsProperty
|
||||
|
||||
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
||||
Friend ReadOnly Property Settings() As Global.AvisoTV.My.MySettings
|
||||
Get
|
||||
Return Global.AvisoTV.My.MySettings.Default
|
||||
End Get
|
||||
End Property
|
||||
End Module
|
||||
End Namespace
|
||||
7
AvisoTV/My Project/Settings.settings
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
48
AvisoTV/My Project/app.manifest
Normal file
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<!-- UAC-Manifestoptionen
|
||||
Wenn Sie die Zugangsebene für das Windows-Benutzerkonto ändern möchten, ersetzen Sie den
|
||||
requestedExecutionLevel-Knoten durch eines der folgenden Elemente.
|
||||
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
|
||||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
|
||||
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
|
||||
|
||||
Durch Angeben des requestedExecutionLevel-Knotens wird die Datei- und Registrierungsvirtualisierung deaktiviert.
|
||||
Wenn Sie Datei- und Registrierungsvirtualisierung für Abwärts-
|
||||
kompatibilität verwenden möchten, löschen Sie den requestedExecutionLevel-Knoten.
|
||||
-->
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
|
||||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||
<application>
|
||||
<!-- Eine Liste aller Windows-Versionen, mit denen die Anwendung kompatibel ist. Windows wählt automatisch die am stärksten kompatible Umgebung aus.-->
|
||||
|
||||
<!-- Wenn die Anwendung mit Windows 7 kompatibel ist, heben Sie die Kommentierung des folgenden supportedOS-Knotens auf.-->
|
||||
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>-->
|
||||
|
||||
</application>
|
||||
</compatibility>
|
||||
|
||||
<!-- Designs für allgemeine Windows-Steuerelemente und -Dialogfelder (Windows XP und höher) aktivieren -->
|
||||
<!-- <dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity
|
||||
type="win32"
|
||||
name="Microsoft.Windows.Common-Controls"
|
||||
version="6.0.0.0"
|
||||
processorArchitecture="*"
|
||||
publicKeyToken="6595b64144ccf1df"
|
||||
language="*"
|
||||
/>
|
||||
</dependentAssembly>
|
||||
</dependency>-->
|
||||
|
||||
</asmv1:assembly>
|
||||
BIN
AvisoTV/Resources/Atilla Logo_10cm.jpg
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
AvisoTV/Resources/Atilla.png
Normal file
|
After Width: | Height: | Size: 9.4 KiB |
BIN
AvisoTV/Resources/IMEX-LOGO_simple.png
Normal file
|
After Width: | Height: | Size: 89 KiB |
BIN
AvisoTV/Resources/Verag-AG-Logopng.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
AvisoTV/Resources/disconnect.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
AvisoTV/Resources/passport.png
Normal file
|
After Width: | Height: | Size: 231 KiB |
BIN
AvisoTV/Resources/urgent.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
AvisoTV/Resources/urgent.png
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
BIN
AvisoTV/Resources/urgent_qu.png
Normal file
|
After Width: | Height: | Size: 6.7 KiB |
BIN
AvisoTV/Resources/waitLKW.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
AvisoTV/aviso_tv.ico
Normal file
|
After Width: | Height: | Size: 66 KiB |
1048
AvisoTV/frmAnzeige.Designer.vb
generated
Normal file
1280
AvisoTV/frmAnzeige.resx
Normal file
795
AvisoTV/frmAnzeige.vb
Normal file
@@ -0,0 +1,795 @@
|
||||
Imports System.IO
|
||||
Imports VERAG_PROG_ALLGEMEIN
|
||||
Imports VERAG_PROG_ALLGEMEIN.cMeineFunktionenAVISO
|
||||
|
||||
|
||||
|
||||
Imports System.Data.OleDb
|
||||
Imports System.Data.SqlClient
|
||||
Imports AvisoTV.cUserSettings
|
||||
|
||||
|
||||
Public Class frmAnzeige
|
||||
Dim cptmp As Point
|
||||
Dim displayZeilen As Boolean = False
|
||||
Private AvisoDAL As New cAvisoDAL
|
||||
Private VermerkeDAL As New cVermerkeDAL
|
||||
Private locZeilen As Integer = -1
|
||||
Private Anzahl As Integer
|
||||
Private Grid_aktiv As Boolean = False
|
||||
Private Zähler As Long = 0
|
||||
Private hMerkZeit As Date
|
||||
Private Max_Zeilen As Integer = 8 'maximale Zeilenanzeige pro Seite
|
||||
Private ZeilenStandard As Integer = 8
|
||||
Private Max_Seiten As Integer = 1 'maximale Zeilenanzeige pro Seite
|
||||
Private Aktive_Seite As Integer = 0 'Merker, welche Seite gerade angezeigt wird
|
||||
Private Merk_Ankunftsdatum As Date 'Merker Datum des zuletzt angezeigten LKWs (wegen Umblättern)
|
||||
Private Anzahl_alle As Integer = 0
|
||||
Private Standort As String = "" 'ev. Einschränkung auf Standort
|
||||
|
||||
Private StandortATILLA As Boolean = False
|
||||
Private StandortSUB12 As Boolean = False
|
||||
Private ZeilenATILLA As Integer = 16
|
||||
|
||||
Private Font1 As New Font(FontFamily.GenericSansSerif, 70, FontStyle.Bold)
|
||||
Private Font1_MESS As New Font(FontFamily.GenericSansSerif, 40, FontStyle.Bold)
|
||||
|
||||
Private Font2 As New Font(FontFamily.GenericSansSerif, 70, FontStyle.Bold)
|
||||
Private Font3 As New Font(FontFamily.GenericSansSerif, 44, FontStyle.Bold)
|
||||
Private Font4 As New Font(FontFamily.GenericSansSerif, 44, FontStyle.Bold)
|
||||
Private Font5 As New Font(FontFamily.GenericSansSerif, 30, FontStyle.Bold)
|
||||
Private Font6 As New Font(FontFamily.GenericSansSerif, 30, FontStyle.Bold)
|
||||
Private Font7 As New Font(FontFamily.GenericSansSerif, 30, FontStyle.Bold)
|
||||
|
||||
Dim GridBackgroundColor As Color = Color.FromArgb(240, 245, 255)
|
||||
Dim TESTSYSTEM As Boolean = False
|
||||
Private isloaded As Boolean = False
|
||||
|
||||
Private Sekunden As Integer = 10
|
||||
|
||||
Dim StandortDatei As String = Application.StartupPath & "\Standort.txt"
|
||||
|
||||
Private Sub frmAnzeige_KeyUp(sender As Object, e As KeyEventArgs) Handles Me.KeyUp
|
||||
If e.KeyCode = Keys.PageDown Then
|
||||
Listen_ermitteln()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub frmAnzeige_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
|
||||
' Cursor.Position = Me.PointToScreen(New Point(Me.Width, Me.Height))
|
||||
|
||||
Me.CenterToScreen()
|
||||
StandortATILLA = False
|
||||
|
||||
Me.Left = 0
|
||||
Me.Top = 0
|
||||
Me.Width = 1920
|
||||
Me.Height = 1080
|
||||
|
||||
Me.Text += " " & Application.ProductVersion
|
||||
|
||||
|
||||
'Falls kein File vorhanden, dann werden alle angezeigt
|
||||
If Standort = "" Then
|
||||
|
||||
If Not File.Exists(StandortDatei) Then
|
||||
Standort = ""
|
||||
Else
|
||||
Dim fs As New FileStream(StandortDatei, FileMode.Open, FileAccess.Read)
|
||||
Dim strmReader As New StreamReader(fs)
|
||||
Standort = strmReader.ReadLine
|
||||
fs.Close()
|
||||
End If
|
||||
End If
|
||||
|
||||
If cDatenbankAVISO.GlobalConnection IsNot Nothing Then cDatenbankAVISO.GlobalConnection.Close()
|
||||
cDatenbankAVISO.GlobalConnection = Nothing
|
||||
|
||||
VERAG_PROG_ALLGEMEIN.cAllgemein.TESTSYSTEM = TESTSYSTEM
|
||||
If TESTSYSTEM Then
|
||||
Button2.Text = "Zum Echtsystem wechseln"
|
||||
Else
|
||||
Button2.Text = "Zum Testsystem wechseln"
|
||||
End If
|
||||
|
||||
Panel1.BackColor = Color.FromArgb(0, 54, 128)
|
||||
lblZeit.BackColor = Color.FromArgb(0, 54, 128)
|
||||
lblAnzahl.BackColor = Color.FromArgb(0, 54, 128)
|
||||
lblSeite.BackColor = Color.FromArgb(0, 54, 128)
|
||||
Label11.ForeColor = Color.White
|
||||
lblZeit.ForeColor = Color.White
|
||||
Panel1.ForeColor = Color.White
|
||||
lblAnzahl.ForeColor = Color.White
|
||||
lblSeite.ForeColor = Color.White
|
||||
|
||||
VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA = "VERAG"
|
||||
'Standort Atilla bekommt Sonderanzeige
|
||||
If Standort = "ATILLA" Then
|
||||
VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA = "ATILLA"
|
||||
StandortATILLA = True
|
||||
ZeilenStandard = ZeilenATILLA
|
||||
'jetzt noch Standort auf leer setzen, damit alles angezeigt wird
|
||||
Standort = ""
|
||||
ElseIf Standort = "IMEX" Then
|
||||
VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA = "IMEX"
|
||||
Panel1.BackColor = Color.Gold
|
||||
Panel1.BackColor = Color.Gold
|
||||
lblZeit.BackColor = Color.Gold
|
||||
lblAnzahl.BackColor = Color.Gold
|
||||
lblSeite.BackColor = Color.Gold
|
||||
|
||||
Label11.ForeColor = Color.Black
|
||||
lblZeit.ForeColor = Color.Black
|
||||
Panel1.ForeColor = Color.Black
|
||||
lblAnzahl.ForeColor = Color.Black
|
||||
lblSeite.ForeColor = Color.Black
|
||||
|
||||
'gridAnkunft.BackgroundColor = Color.FromArgb(255, 255, 240)
|
||||
GridBackgroundColor = Color.FromArgb(255, 255, 240)
|
||||
|
||||
|
||||
End If
|
||||
|
||||
gridAnkunft.AlternatingRowsDefaultCellStyle.BackColor = GridBackgroundColor
|
||||
'Standort Suben12 bekommt Sonderanzeige
|
||||
If Standort = "SUB12" Then
|
||||
Max_Zeilen = 12
|
||||
ZeilenStandard = 12
|
||||
StandortSUB12 = True
|
||||
'jetzt noch Standort anpassen, damit alles angezeigt wird
|
||||
Standort = "SUB"
|
||||
End If
|
||||
|
||||
If Standort = "VERAG_ALLE" Then
|
||||
Standort = ""
|
||||
End If
|
||||
|
||||
|
||||
|
||||
|
||||
Merk_Ankunftsdatum = LeerDatum
|
||||
|
||||
Listen_ermitteln()
|
||||
|
||||
loadsettings()
|
||||
initSettings()
|
||||
|
||||
|
||||
'Timer starten
|
||||
hMerkZeit = Now
|
||||
Timer1.Enabled = True
|
||||
|
||||
End Sub
|
||||
|
||||
WithEvents timerRemove As New Timer
|
||||
|
||||
|
||||
|
||||
|
||||
Private Sub timerRemove_Tick(sender As Object, e As EventArgs) Handles timerRemove.Tick
|
||||
Exit Sub
|
||||
For Each c As Control In Me.Controls
|
||||
'MsgBox(c.Name)
|
||||
If c.Name.Contains("TMPpic") Then
|
||||
'MsgBox(c.Name)
|
||||
Me.Controls.Remove(c)
|
||||
End If
|
||||
Next
|
||||
End Sub
|
||||
|
||||
|
||||
Dim contrnamecnt As Integer = 0
|
||||
Public Sub Listen_ermitteln()
|
||||
Dim connok As Boolean = False
|
||||
Try
|
||||
Dim conn As SqlConnection = cDatenbankAVISO.GetNewOpenConnectionWithoutError()
|
||||
If conn Is Nothing Then
|
||||
picConnectionProblem.Visible = True
|
||||
Else
|
||||
picConnectionProblem.Visible = False
|
||||
connok = True
|
||||
conn.Close()
|
||||
End If
|
||||
' End Using
|
||||
'conn.Close()
|
||||
Catch ex As Exception
|
||||
'MsgBox("what " & ex.Message)
|
||||
End Try
|
||||
|
||||
If connok Then
|
||||
clmnBuero.Visible = StandortATILLA
|
||||
clmnImEx.Visible = (Standort = "WAI")
|
||||
|
||||
If Aktive_Seite <= Max_Seiten Then Aktive_Seite += 1 'nächste Seite anzeigen
|
||||
|
||||
If Aktive_Seite > Max_Seiten Then
|
||||
Merk_Ankunftsdatum = LeerDatum 'falls letzte Seite angezeigt, dann wieder von vorne anfangen
|
||||
Aktive_Seite = 1
|
||||
End If
|
||||
Dim buero As String = ""
|
||||
If StandortATILLA Then
|
||||
buero = " , Buero "
|
||||
End If
|
||||
Dim stat_tmp As String = cGlobal.Status_Ankunft.ToString
|
||||
Dim ank_tmp As String = " AND Ankunft > " & SQLDatumZeitSekunden(Merk_Ankunftsdatum)
|
||||
|
||||
If False Then 'alle Staten
|
||||
stat_tmp = "3,99,4,5,0"
|
||||
ank_tmp = ""
|
||||
End If
|
||||
|
||||
Dim where As String = " WHERE "
|
||||
Dim hSQL As String = "SELECT AvisoID, Status, UPPER(LKW_Nr) as LKW_Nr, Ankunft, Dauer, letzterMitarbeiter, LKW_fertig " & buero & " , AvisoTVHinweis, ImEx FROM Aviso "
|
||||
where &= " Status IN( " & stat_tmp & ") AND Firma= '" & VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA & "' "
|
||||
If Standort <> "" Then where &= " AND Grenzstelle = '" & Standort.Replace("IMEX", "SUB") & "'" 'nur die IMEX-LKW in SUB anzeigen
|
||||
hSQL &= where
|
||||
hSQL += ank_tmp & " ORDER BY CASE " &
|
||||
" when [Status] =3 then 1 " &
|
||||
" when [Status] =99 then 2 " &
|
||||
" when [Status] =4 then 3 " &
|
||||
" when [Status] =5 then 4 " &
|
||||
" when [Status] =0 then 4 " &
|
||||
" END , Ankunft"
|
||||
' MsgBox(hSQL)
|
||||
'Anzahl der Aviso mit Status Ankunft ermitteln
|
||||
Dim CheckAnzahl As String = "SELECT AvisoID FROM Aviso " & where 'WHERE Status IN( " & stat_tmp & ") "
|
||||
' If Standort <> "" Then CheckAnzahl += " AND Grenzstelle = '" & Standort.Replace("IMEX", "SUB") & "'"
|
||||
Anzahl_alle = AvisoDAL.Anzahl_Aviso_ermitteln(CheckAnzahl)
|
||||
lblAnzahl.Text = Anzahl_alle.ToString
|
||||
Max_Seiten = VarToInt(Fix(Anzahl_alle / ZeilenStandard))
|
||||
If Anzahl_alle Mod ZeilenStandard <> 0 Then Max_Seiten += 1
|
||||
'Max_Seiten = (Anzahl_alle Mod 8) + 1
|
||||
|
||||
|
||||
timerRemove.enabled = True
|
||||
contrnamecnt = 0
|
||||
Dim anz As Integer = 0
|
||||
Try
|
||||
Dim conn As SqlConnection = cDatenbankAVISO.GetNewOpenConnectionWithoutError()
|
||||
removeControls()
|
||||
' MsgBox(hSQL)
|
||||
'If IsNothing(conn) Then Exit Sub 'Fehler bei DB-Zugriff - Anzeige nicht aktualisieren
|
||||
Using cmd As New SqlCommand(hSQL, conn)
|
||||
' MsgBox(conn.ConnectionString)
|
||||
Dim dr = cmd.ExecuteReader()
|
||||
'MsgBox(cmd.Connection.ConnectionString)
|
||||
If Not IsNothing(dr) Then
|
||||
gridAnkunft.Rows.Clear() 'Ansicht löschen
|
||||
|
||||
While dr.Read()
|
||||
' MsgBox(VarToStr(dr.Item("LKW_Nr")))
|
||||
anz += 1
|
||||
Dim LKW_Nr As String = VarToStr(dr.Item("LKW_Nr"))
|
||||
Dim hAnkunft As String = Format(CDate(VarToDate((dr.Item("Ankunft")))), "dd.MM. HH:mm")
|
||||
Dim hDauer As Long = DateDiff(DateInterval.Minute, CDate(VarToDate((dr.Item("Ankunft")))), Now)
|
||||
Dim Dauer As String = Minuten_auf_Text(hDauer)
|
||||
Dim hMitarbeiter As String = VarToStr(dr.Item("LetzterMitarbeiter"))
|
||||
Dim ImEx As String = VarToStr(dr.Item("ImEx"))
|
||||
|
||||
If StandortATILLA Or Standort = "IMEX" Then
|
||||
'bei Mitarbeiter nur User aus letzter Bearbeiter rausfiltern
|
||||
Dim x As String = ""
|
||||
Dim n As Integer = 0
|
||||
While n < hMitarbeiter.Length
|
||||
If hMitarbeiter.Substring(n, 1) <> "/" Then
|
||||
x += hMitarbeiter.Substring(n, 1)
|
||||
Else
|
||||
Exit While
|
||||
End If
|
||||
n += 1
|
||||
End While
|
||||
hMitarbeiter = x
|
||||
End If
|
||||
|
||||
Dim hFertig As String = ""
|
||||
' If VarToBool(dr.Item("LKW_fertig")) Then hFertig = "OK"
|
||||
|
||||
If VarToStr(dr.Item("AvisoTVHinweis")) <> "" Then
|
||||
hFertig = VarToStr(dr.Item("AvisoTVHinweis"))
|
||||
ElseIf VarToBool(dr.Item("LKW_fertig")) Then
|
||||
hFertig = "OK"
|
||||
End If
|
||||
|
||||
If anz <= Max_Zeilen Then
|
||||
|
||||
If StandortATILLA Then
|
||||
Dim hBuero As String = VarToStr(dr.Item("buero"))
|
||||
gridAnkunft.Rows.Add(hFertig, LKW_Nr, hAnkunft, Dauer, hMitarbeiter, hBuero)
|
||||
ElseIf Standort = "WAI" Then
|
||||
If ImEx = "IMPORT" Then ImEx = "IM"
|
||||
If ImEx = "EXPORT" Then ImEx = "EX"
|
||||
' MsgBox(ImEx)
|
||||
gridAnkunft.Rows.Add(hFertig, LKW_Nr, hAnkunft, Dauer, hMitarbeiter, "", ImEx)
|
||||
Else
|
||||
gridAnkunft.Rows.Add(hFertig, LKW_Nr, hAnkunft, Dauer, hMitarbeiter)
|
||||
End If
|
||||
|
||||
If ImEx <> "" Then
|
||||
Dim r As DataGridViewRow = gridAnkunft.Rows(gridAnkunft.RowCount - 1)
|
||||
r.Cells("clmnImEx").Style.ForeColor = Color.White
|
||||
If ImEx = "IM" Then r.Cells("clmnImEx").Style.BackColor = Color.Green
|
||||
If ImEx = "EX" Then r.Cells("clmnImEx").Style.BackColor = Color.Blue
|
||||
End If
|
||||
|
||||
If VarToStr(dr.Item("AvisoTVHinweis")) <> "" Then
|
||||
Dim r As DataGridViewRow = gridAnkunft.Rows(gridAnkunft.RowCount - 1)
|
||||
r.Cells(0).Style.ForeColor = Color.Red
|
||||
r.Cells(1).Style.ForeColor = Color.Red
|
||||
r.Cells(0).Style.Font = Font1_MESS
|
||||
Dim doimage As Image = Nothing
|
||||
Select Case r.Cells(0).Value.ToString
|
||||
Case "PASSPORT" : doimage = My.Resources.passport : r.Cells(0).Value = "PASSPORT" ' r.Cells(0).Value = "PASS"
|
||||
Case "DOKUMENT" : doimage = My.Resources.passport : r.Cells(0).Value = "PROBLEM" ' r.Cells(0).Value = "PASS"
|
||||
Case "URGENT" : doimage = My.Resources.urgent_qu : r.Cells(0).Value = "PROBLEM"
|
||||
End Select
|
||||
|
||||
doimage = Nothing
|
||||
If doimage IsNot Nothing Then
|
||||
r.Cells(0).Style.Alignment = DataGridViewContentAlignment.MiddleRight
|
||||
|
||||
|
||||
|
||||
Dim pic As New PictureBox
|
||||
pic.Location = getLocation(gridAnkunft, r)
|
||||
pic.BackColor = r.Cells(0).Style.BackColor
|
||||
pic.Image = doimage
|
||||
|
||||
pic.Height = r.Cells(0).Size.Height - 2 : pic.Width = pic.Height
|
||||
pic.SizeMode = PictureBoxSizeMode.Zoom
|
||||
pic.Name = "TMPpic" & contrnamecnt
|
||||
|
||||
Me.Controls.Add(pic)
|
||||
'Me.Controls(pic.Name).BringToFront()
|
||||
pic.BringToFront()
|
||||
contrnamecnt += 1
|
||||
' MsgBox(pic.Name)
|
||||
End If
|
||||
End If
|
||||
|
||||
Merk_Ankunftsdatum = CDate(VarToDate((dr.Item("Ankunft")))).AddSeconds(1)
|
||||
' lblZeile1.Text = Merk_Ankunftsdatum.ToShortDateString & Merk_Ankunftsdatum.ToShortTimeString
|
||||
' lblZeile1.Refresh()
|
||||
End If
|
||||
End While
|
||||
End If
|
||||
dr.Close()
|
||||
End Using
|
||||
Catch ex As Exception
|
||||
MsgBox("ERR: " & ex.Message)
|
||||
MsgBox("ERR: " & ex.StackTrace)
|
||||
End Try
|
||||
|
||||
'Ermitteln
|
||||
If Max_Seiten > 0 Then
|
||||
lblSeite.Text = Aktive_Seite.ToString & "/" & Max_Seiten.ToString
|
||||
Else
|
||||
lblSeite.Text = "0/0"
|
||||
End If
|
||||
|
||||
'Infotext auslesen
|
||||
Dim AvisoTVDAL As New cAvisoTVDAL
|
||||
Dim AvisoTV As New cAvisoTV
|
||||
AvisoTV = AvisoTVDAL.LesenAvisoTV(1, "")
|
||||
displayZeilen = False
|
||||
If Not IsNothing(AvisoTV) Then
|
||||
' MsgBox(lblZeile1.Text)
|
||||
displayZeilen = True
|
||||
lblZeile1.Text = AvisoTV.FixeZeile1.Trim
|
||||
lblZeile2.Text = AvisoTV.FixeZeile2.Trim
|
||||
End If
|
||||
|
||||
lblZeit.Text = Format(Now, "dd.MM. HH:mm:ss")
|
||||
|
||||
End If
|
||||
For Each c As Control In gridAnkunft.Parent.Controls
|
||||
If c.Name.ToString.Contains("TMPpic") Then
|
||||
c.BringToFront()
|
||||
End If
|
||||
Next
|
||||
gridAnkunft.ClearSelection() 'wenn erste Zeile Markiert, Problem mit Farblicher Darstellung
|
||||
End Sub
|
||||
|
||||
Sub removeControls()
|
||||
For Each c As Control In Me.Controls
|
||||
'MsgBox(c.Name)
|
||||
If c.Name.Contains("TMPpic") Then
|
||||
'MsgBox(c.Name)
|
||||
Me.Controls.Remove(c)
|
||||
End If
|
||||
Next
|
||||
End Sub
|
||||
|
||||
Function getLocation(d As DataGridView, r As DataGridViewRow) As Point
|
||||
Dim CellRectangle1 As Rectangle = d.GetCellDisplayRectangle(0, d.RowCount - 1, False)
|
||||
CellRectangle1.X += d.Left
|
||||
CellRectangle1.Y += d.Top + r.Height
|
||||
Return PointToScreen(New Point(CellRectangle1.X, CellRectangle1.Y - r.Cells(0).Size.Height))
|
||||
End Function
|
||||
|
||||
Private Sub dataGridView1_CellPainting(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellPaintingEventArgs) Handles gridAnkunft.CellPainting
|
||||
Exit Sub
|
||||
If e.ColumnIndex = 0 Then
|
||||
If gridAnkunft.Rows(e.RowIndex).Cells(0).Value.ToString = "" Then
|
||||
'Dim newImage As Image = Image.FromFile("Images/image.jpg")
|
||||
Dim maskImage As Image = My.Resources.waitLKW
|
||||
' e.Graphics.DrawImage(newImage, e.CellBounds.Left + 2, e.CellBounds.Top + 2, 26, 26)
|
||||
e.Graphics.DrawImage(maskImage, e.CellBounds.Left, e.CellBounds.Top, 30, 30)
|
||||
e.Handled = True
|
||||
Else
|
||||
e.Handled = False
|
||||
End If
|
||||
End If
|
||||
If False Then
|
||||
For Each r As DataGridViewRow In gridAnkunft.Rows
|
||||
If r.Cells(0).Value.ToString = "" Then
|
||||
'Dim newImage As Image = Image.FromFile("Images/image.jpg")
|
||||
Dim maskImage As Image = My.Resources.waitLKW
|
||||
' e.Graphics.DrawImage(newImage, e.CellBounds.Left + 2, e.CellBounds.Top + 2, 26, 26)
|
||||
Dim c As DataGridViewCell = r.Cells(0)
|
||||
gridAnkunft.CreateGraphics.DrawImage(maskImage, c.ContentBounds.Left, c.ContentBounds.Top, 30, 30)
|
||||
' e.Handled = True
|
||||
Else
|
||||
'e.Handled = False
|
||||
End If
|
||||
Next
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
|
||||
lblZeit.Text = Format(Now, "dd.MM. HH:mm:ss")
|
||||
lblZeit.Refresh()
|
||||
If DateDiff(DateInterval.Second, hMerkZeit, Now) > Sekunden Then 'aktualisieren alle xx Sekunden
|
||||
If Not grpTestAnzeige.Visible Then
|
||||
If Cursor.Position = cptmp Then
|
||||
Cursor.Position = Me.PointToScreen(New Point(0, Me.Height))
|
||||
End If
|
||||
cptmp = Cursor.Position
|
||||
End If
|
||||
Listen_ermitteln()
|
||||
hMerkZeit = Now
|
||||
' MsgBox("now")
|
||||
|
||||
If (lblZeile1.Text & lblZeile1.Text).Trim = String.Empty Then displayZeilen = False : 'wenn alles leer
|
||||
If displayZeilen Then
|
||||
lblZeile1.Visible = Not lblZeile1.Visible
|
||||
lblZeile2.Visible = Not lblZeile2.Visible
|
||||
Else
|
||||
lblZeile1.Visible = False
|
||||
lblZeile2.Visible = False
|
||||
End If
|
||||
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub gridAnkunft_DoubleClick(sender As Object, e As System.EventArgs) Handles gridAnkunft.DoubleClick
|
||||
|
||||
txtBreite.Text = Me.Width.ToString
|
||||
txtHöhe.Text = Me.Height.ToString
|
||||
|
||||
grpTestAnzeige.Visible = True
|
||||
End Sub
|
||||
|
||||
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
|
||||
grpTestAnzeige.Visible = False
|
||||
Cursor.Position = Me.PointToScreen(New Point(Me.Width, Me.Height))
|
||||
End Sub
|
||||
Sub initSettings()
|
||||
initZeilen()
|
||||
|
||||
Select Case Standort
|
||||
Case "ATILLA" : picVERAG.Image = My.Resources.Atilla 'Atilla such su
|
||||
Case "IMEX" : picVERAG.Image = My.Resources.IMEX_LOGO_simple
|
||||
Case Else : picVERAG.Image = My.Resources.Verag_AG_Logopng
|
||||
End Select
|
||||
If StandortATILLA Then picVERAG.Image = My.Resources.Atilla
|
||||
|
||||
'If StandortATILLA Then
|
||||
' picVERAG.Image = My.Resources.Atilla
|
||||
'Else
|
||||
' picVERAG.Image = My.Resources.Verag_AG_Logopng
|
||||
'End If
|
||||
|
||||
If txtBreite.Text <> "" Then
|
||||
If VarToInt(txtBreite.Text) < 800 Then
|
||||
MsgBox("Breite ist zu klein - mind. 800")
|
||||
txtBreite.Focus()
|
||||
Exit Sub
|
||||
End If
|
||||
Me.Width = VarToInt(txtBreite.Text)
|
||||
End If
|
||||
|
||||
If txtHöhe.Text <> "" Then
|
||||
If VarToInt(txtHöhe.Text) < 600 Then
|
||||
MsgBox("Höhe ist zu klein - mind. 600")
|
||||
txtHöhe.Focus()
|
||||
Exit Sub
|
||||
End If
|
||||
Me.Height = VarToInt(txtHöhe.Text)
|
||||
End If
|
||||
|
||||
If txtSchrift1.Text <> "" Then
|
||||
If VarToInt(txtSchrift1.Text) < 10 Then
|
||||
MsgBox("Schrift1 ist zu klein - mind. 10")
|
||||
txtSchrift1.Focus()
|
||||
Exit Sub
|
||||
End If
|
||||
Font1 = New Font(FontFamily.GenericSansSerif, VarToInt(txtSchrift1.Text), FontStyle.Bold)
|
||||
End If
|
||||
|
||||
If txtSchrift1_MESS.Text <> "" Then
|
||||
If VarToInt(txtSchrift1_MESS.Text) < 10 Then
|
||||
MsgBox("Schrift1 ist zu klein - mind. 10")
|
||||
txtSchrift1_MESS.Focus()
|
||||
Exit Sub
|
||||
End If
|
||||
Font1_MESS = New Font(FontFamily.GenericSansSerif, VarToInt(txtSchrift1_MESS.Text), FontStyle.Bold)
|
||||
End If
|
||||
|
||||
If txtSchrift2.Text <> "" Then
|
||||
If VarToInt(txtSchrift2.Text) < 10 Then
|
||||
MsgBox("Schrift2 ist zu klein - mind. 10")
|
||||
txtSchrift2.Focus()
|
||||
Exit Sub
|
||||
End If
|
||||
Font2 = New Font(FontFamily.GenericSansSerif, VarToInt(txtSchrift2.Text), FontStyle.Bold)
|
||||
End If
|
||||
|
||||
If txtSchrift3.Text <> "" Then
|
||||
If VarToInt(txtSchrift3.Text) < 10 Then
|
||||
MsgBox("Schrift3 ist zu klein - mind. 10")
|
||||
txtSchrift3.Focus()
|
||||
Exit Sub
|
||||
End If
|
||||
Font3 = New Font(FontFamily.GenericSansSerif, VarToInt(txtSchrift3.Text), FontStyle.Bold)
|
||||
End If
|
||||
|
||||
If txtSekunden.Text <> "" Then
|
||||
If VarToInt(txtSekunden.Text) < 10 Then
|
||||
MsgBox("Resfresh unter 10 Sekunden ist nicht erlaubt.")
|
||||
txtSekunden.Focus()
|
||||
Exit Sub
|
||||
End If
|
||||
End If
|
||||
|
||||
If txtSchrift4.Text <> "" Then Font4 = New Font(FontFamily.GenericSansSerif, VarToInt(txtSchrift4.Text), FontStyle.Bold)
|
||||
If txtSchrift5.Text <> "" Then Font5 = New Font(FontFamily.GenericSansSerif, VarToInt(txtSchrift5.Text), FontStyle.Bold)
|
||||
If txtSchrift6.Text <> "" Then Font6 = New Font(FontFamily.GenericSansSerif, VarToInt(txtSchrift6.Text), FontStyle.Bold)
|
||||
If txtSchrift7.Text <> "" Then Font7 = New Font(FontFamily.GenericSansSerif, VarToInt(txtSchrift7.Text), FontStyle.Bold)
|
||||
|
||||
gridAnkunft.Columns(0).DefaultCellStyle.Font = Font1
|
||||
gridAnkunft.Columns(1).DefaultCellStyle.Font = Font2
|
||||
gridAnkunft.Columns(2).DefaultCellStyle.Font = Font3
|
||||
gridAnkunft.Columns(3).DefaultCellStyle.Font = Font4
|
||||
gridAnkunft.Columns(4).DefaultCellStyle.Font = Font5
|
||||
|
||||
If StandortATILLA And gridAnkunft.Columns("clmnBuero") IsNot Nothing Then
|
||||
gridAnkunft.Columns("clmnBuero").Width = CInt(IIf(IsNumeric(txtBreite6.Text), txtBreite6.Text, 50))
|
||||
gridAnkunft.Columns("clmnBuero").DefaultCellStyle.Font = Font6
|
||||
gridAnkunft.Columns("clmnBuero").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
|
||||
End If
|
||||
|
||||
If Standort = "WAI" And gridAnkunft.Columns("clmnImEx") IsNot Nothing Then
|
||||
' MsgBox(IIf(IsNumeric(txtBreite7.Text), txtBreite7.Text, 30))
|
||||
gridAnkunft.Columns("clmnImEx").Width = CInt(IIf(IsNumeric(txtBreite7.Text), txtBreite7.Text, 50))
|
||||
gridAnkunft.Columns("clmnImEx").DefaultCellStyle.Font = Font7
|
||||
gridAnkunft.Columns("clmnImEx").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
|
||||
End If
|
||||
|
||||
|
||||
If txtBreite1.Text <> "" Then gridAnkunft.Columns(0).Width = CInt(txtBreite1.Text)
|
||||
If txtBreite2.Text <> "" Then gridAnkunft.Columns(1).Width = CInt(txtBreite2.Text)
|
||||
If txtBreite3.Text <> "" Then gridAnkunft.Columns(2).Width = CInt(txtBreite3.Text)
|
||||
If txtBreite4.Text <> "" Then gridAnkunft.Columns(3).Width = CInt(txtBreite4.Text)
|
||||
gridAnkunft.Columns(4).AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill
|
||||
|
||||
|
||||
'gridAnkunft.Columns(4).Width = Me.Width - gridAnkunft.Columns(0).Width - gridAnkunft.Columns(1).Width - gridAnkunft.Columns(2).Width - gridAnkunft.Columns(3).Width - 20
|
||||
'txtBreite5.Text = gridAnkunft.Columns(4).Width.ToString
|
||||
|
||||
If txtSekunden.Text <> "" Then
|
||||
Sekunden = VarToInt(txtSekunden.Text.Trim)
|
||||
If Sekunden < 10 Then Sekunden = 10
|
||||
End If
|
||||
savesettings()
|
||||
|
||||
|
||||
End Sub
|
||||
|
||||
Sub initZeilen()
|
||||
' MsgBox(gridAnkunft.Rows(0).Cells(0).Size.Height)
|
||||
If gridAnkunft.RowCount > 0 Then
|
||||
ZeilenStandard = CInt(gridAnkunft.Height / gridAnkunft.Rows(0).Cells(0).Size.Height) - 1
|
||||
Else
|
||||
ZeilenStandard = 8
|
||||
End If
|
||||
Max_Zeilen = ZeilenStandard
|
||||
'MsgBox(ZeilenStandard)
|
||||
Aktive_Seite = 0
|
||||
Merk_Ankunftsdatum = LeerDatum
|
||||
Listen_ermitteln()
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub btnTestAnzeige_Click(sender As System.Object, e As System.EventArgs) Handles btnTestAnzeige.Click
|
||||
isloaded = False
|
||||
initSettings()
|
||||
grpTestAnzeige.Visible = False
|
||||
End Sub
|
||||
|
||||
Private Sub btnTestSystem_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
|
||||
TESTSYSTEM = Not TESTSYSTEM
|
||||
frmAnzeige_Load(Me, New EventArgs)
|
||||
End Sub
|
||||
|
||||
|
||||
|
||||
Sub loadsettings()
|
||||
For Each c In grpTestAnzeige.Controls
|
||||
If c.GetType.Name = "TextBox" Then
|
||||
Dim p As String = getProperty(DirectCast(c, TextBox).Name)
|
||||
If p <> "" Then DirectCast(c, TextBox).Text = p
|
||||
End If
|
||||
Next
|
||||
End Sub
|
||||
|
||||
Sub savesettings()
|
||||
If txtBreite.Text <> "" Then setProperty("txtBreite", txtBreite.Text)
|
||||
If txtHöhe.Text <> "" Then setProperty("txtHöhe", txtHöhe.Text)
|
||||
If txtSchrift1.Text <> "" Then setProperty("txtSchrift1", txtSchrift1.Text)
|
||||
If txtSchrift1_MESS.Text <> "" Then setProperty("txtSchrift1_MESS", txtSchrift1_MESS.Text)
|
||||
|
||||
If txtSchrift2.Text <> "" Then setProperty("txtSchrift2", txtSchrift2.Text)
|
||||
If txtSchrift3.Text <> "" Then setProperty("txtSchrift3", txtSchrift3.Text)
|
||||
If txtSchrift4.Text <> "" Then setProperty("txtSchrift4", txtSchrift4.Text)
|
||||
If txtSchrift5.Text <> "" Then setProperty("txtSchrift5", txtSchrift5.Text)
|
||||
If txtSchrift6.Text <> "" Then setProperty("txtSchrift6", txtSchrift6.Text)
|
||||
If txtSchrift7.Text <> "" Then setProperty("txtSchrift7", txtSchrift7.Text)
|
||||
If txtBreite1.Text <> "" Then setProperty("txtBreite1", txtBreite1.Text)
|
||||
If txtBreite2.Text <> "" Then setProperty("txtBreite2", txtBreite2.Text)
|
||||
If txtBreite3.Text <> "" Then setProperty("txtBreite3", txtBreite3.Text)
|
||||
If txtBreite4.Text <> "" Then setProperty("txtBreite4", txtBreite4.Text)
|
||||
If txtBreite5.Text <> "" Then setProperty("txtBreite5", txtBreite5.Text)
|
||||
If txtBreite6.Text <> "" Then setProperty("txtBreite6", txtBreite6.Text)
|
||||
If txtBreite7.Text <> "" Then setProperty("txtBreite7", txtBreite7.Text)
|
||||
|
||||
If txtSekunden.Text <> "" Then setProperty("txtSekunden", txtSekunden.Text)
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub lblSeite_Click(sender As Object, e As EventArgs) Handles lblSeite.Click
|
||||
Listen_ermitteln()
|
||||
End Sub
|
||||
|
||||
Private Sub gridAnkunft_Paint(sender As Object, e As PaintEventArgs) Handles gridAnkunft.Paint
|
||||
If Not isloaded Then initZeilen() : isloaded = True
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub frmAnzeige_Shown(sender As Object, e As EventArgs) Handles Me.Shown
|
||||
gridAnkunft.ClearSelection()
|
||||
End Sub
|
||||
|
||||
|
||||
|
||||
Private Sub btnClose_Click(sender As Object, e As EventArgs) Handles btnClose.Click
|
||||
Me.Close()
|
||||
End Sub
|
||||
|
||||
Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.SelectedIndexChanged
|
||||
Standort = ComboBox1.Text
|
||||
cDatenbankAVISO.GlobalConnection = Nothing
|
||||
' Dim fs As New FileStream(StandortDatei, FileMode.Open, FileAccess.Write)
|
||||
Dim strmWriter As New StreamWriter(StandortDatei, False)
|
||||
strmWriter.WriteLine(ComboBox1.Text)
|
||||
strmWriter.Close() ' fs.Close()
|
||||
frmAnzeige_Load(Me, New EventArgs)
|
||||
grpTestAnzeige.Visible = False
|
||||
End Sub
|
||||
|
||||
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
|
||||
Me.WindowState = FormWindowState.Minimized
|
||||
End Sub
|
||||
|
||||
Private Sub txtBreite1_KeyUp(sender As Object, e As KeyEventArgs) Handles txtSchrift1_MESS.KeyUp, txtSekunden.KeyUp,
|
||||
txtSchrift1.KeyUp, txtSchrift2.KeyUp, txtSchrift3.KeyUp, txtSchrift4.KeyUp, txtSchrift5.KeyUp, txtSchrift6.KeyUp, txtSchrift7.KeyUp,
|
||||
txtBreite1.KeyUp, txtBreite2.KeyUp, txtBreite3.KeyUp, txtBreite4.KeyUp, txtBreite5.KeyUp, txtBreite6.KeyUp, txtBreite7.KeyUp
|
||||
|
||||
If e.KeyCode = Keys.Return Then
|
||||
btnTestAnzeige.PerformClick()
|
||||
e.Handled = True
|
||||
e.SuppressKeyPress = True
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Dim secondmonitorSelected As Boolean = False
|
||||
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
|
||||
Dim secondaryMonitor = Screen.AllScreens.FirstOrDefault(Function(x) Not x.Primary)
|
||||
If secondmonitorSelected Then
|
||||
secondaryMonitor = Screen.AllScreens.FirstOrDefault(Function(x) x.Primary) 'Hauptbildschirm
|
||||
End If
|
||||
If secondaryMonitor IsNot Nothing Then
|
||||
Me.WindowState = FormWindowState.Normal
|
||||
Dim newLocation = secondaryMonitor.Bounds.Location
|
||||
newLocation.Offset(0, 0) ' adjust as needed
|
||||
Me.Location = newLocation
|
||||
Me.Refresh()
|
||||
Me.WindowState = FormWindowState.Maximized
|
||||
' Also see Me.Size and Me.Bounds
|
||||
End If
|
||||
secondmonitorSelected = Not secondmonitorSelected
|
||||
End Sub
|
||||
End Class
|
||||
|
||||
|
||||
Public Class cUserSettings
|
||||
|
||||
Shared settings As New List(Of cListUserSettings)
|
||||
Public Shared Sub setProperty(ByVal name As String, ByVal value As String)
|
||||
settings = New List(Of cListUserSettings)
|
||||
loadPropertys()
|
||||
setNewProperty(name, value)
|
||||
writesettings()
|
||||
End Sub
|
||||
|
||||
Public Shared Function getProperty(ByVal name As String) As String
|
||||
settings = New List(Of cListUserSettings)
|
||||
loadPropertys()
|
||||
For Each a In settings
|
||||
If a.name = name Then Return a.value
|
||||
Next
|
||||
Return ""
|
||||
End Function
|
||||
|
||||
|
||||
Shared Sub setNewProperty(ByVal name As String, ByVal value As String)
|
||||
For Each a In settings
|
||||
If a.name = name Then
|
||||
a.value = value
|
||||
Exit Sub
|
||||
End If
|
||||
Next
|
||||
'settings.Add(New Dictionary(name, value))
|
||||
|
||||
settings.Add(New cListUserSettings(name, value))
|
||||
End Sub
|
||||
Shared Sub loadPropertys()
|
||||
Try
|
||||
Using sr As New StreamReader(AppDomain.CurrentDomain.BaseDirectory & "settings.txt")
|
||||
Dim line As String = ""
|
||||
Do While sr.Peek() >= 0
|
||||
line = CStr(sr.ReadLine())
|
||||
If line.Contains(Chr(29)) Then
|
||||
Dim s = line.Split(Chr(29)) 'nach GroupSeperator splitten
|
||||
'If s(0) = name Then Return True
|
||||
settings.Add(New cListUserSettings(s(0), s(1)))
|
||||
End If
|
||||
Loop
|
||||
End Using
|
||||
Catch ex As Exception
|
||||
' MsgBox("FEHLER beim Einlesen der UserSettings.")
|
||||
End Try
|
||||
End Sub
|
||||
Shared Sub writesettings()
|
||||
Try
|
||||
Using sr As New StreamWriter(AppDomain.CurrentDomain.BaseDirectory & "settings.txt", False)
|
||||
For Each a In settings
|
||||
sr.WriteLine(a.name & Chr(29) & a.value)
|
||||
Next
|
||||
End Using
|
||||
Catch ex As Exception
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
|
||||
End Class
|
||||
|
||||
Public Class cListUserSettings
|
||||
Property name As String
|
||||
Property value As String
|
||||
Sub New(ByVal n As String, v As String)
|
||||
name = n
|
||||
value = v
|
||||
End Sub
|
||||
End Class
|
||||
BIN
AvisoTV/tv.ico
Normal file
|
After Width: | Height: | Size: 158 KiB |