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.
614 lines
32 KiB
614 lines
32 KiB
Imports System
|
|
Imports System.IO
|
|
Imports System.Data
|
|
Imports System.Data.SqlTypes
|
|
Imports System.Data.SqlClient
|
|
Imports System.ComponentModel
|
|
Imports UtilityLibrary.Win32
|
|
|
|
Public Class frmDokumenttypInfo
|
|
Inherits System.Windows.Forms.Form
|
|
|
|
#Region " Vom Windows Form Designer generierter Code "
|
|
|
|
Public Sub New()
|
|
MyBase.New()
|
|
|
|
' Dieser Aufruf ist für den Windows Form-Designer erforderlich.
|
|
InitializeComponent()
|
|
|
|
' Initialisierungen nach dem Aufruf InitializeComponent() hinzufügen
|
|
|
|
End Sub
|
|
|
|
' Die Form überschreibt den Löschvorgang der Basisklasse, um Komponenten zu bereinigen.
|
|
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
|
|
If disposing Then
|
|
If Not (components Is Nothing) Then
|
|
components.Dispose()
|
|
End If
|
|
End If
|
|
MyBase.Dispose(disposing)
|
|
End Sub
|
|
|
|
' Für Windows Form-Designer erforderlich
|
|
Private components As System.ComponentModel.IContainer
|
|
|
|
'HINWEIS: Die folgende Prozedur ist für den Windows Form-Designer erforderlich
|
|
'Sie kann mit dem Windows Form-Designer modifiziert werden.
|
|
'Verwenden Sie nicht den Code-Editor zur Bearbeitung.
|
|
Friend WithEvents RichTextBox1 As System.Windows.Forms.RichTextBox
|
|
Friend WithEvents Label1 As System.Windows.Forms.Label
|
|
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
|
|
Friend WithEvents Label2 As System.Windows.Forms.Label
|
|
Friend WithEvents Label3 As System.Windows.Forms.Label
|
|
Friend WithEvents Label4 As System.Windows.Forms.Label
|
|
Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
|
|
Friend WithEvents CheckBox1 As System.Windows.Forms.CheckBox
|
|
Friend WithEvents CheckBox2 As System.Windows.Forms.CheckBox
|
|
Friend WithEvents TabControl1 As System.Windows.Forms.TabControl
|
|
Friend WithEvents TabPage1 As System.Windows.Forms.TabPage
|
|
Friend WithEvents TabPage2 As System.Windows.Forms.TabPage
|
|
Friend WithEvents TabPage3 As System.Windows.Forms.TabPage
|
|
Friend WithEvents ToolBar1 As System.Windows.Forms.ToolBar
|
|
Friend WithEvents ImageList1 As System.Windows.Forms.ImageList
|
|
Friend WithEvents ToolBarButton1 As System.Windows.Forms.ToolBarButton
|
|
Friend WithEvents C1TrueDBGrid1 As C1.Win.C1TrueDBGrid.C1TrueDBGrid
|
|
Friend WithEvents C1TrueDBGrid2 As C1.Win.C1TrueDBGrid.C1TrueDBGrid
|
|
Friend WithEvents C1TrueDBGrid3 As C1.Win.C1TrueDBGrid.C1TrueDBGrid
|
|
Friend WithEvents Label5 As System.Windows.Forms.Label
|
|
Friend WithEvents Label6 As System.Windows.Forms.Label
|
|
Friend WithEvents TextBox3 As System.Windows.Forms.TextBox
|
|
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
|
|
Me.components = New System.ComponentModel.Container()
|
|
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmDokumenttypInfo))
|
|
Dim GridLines1 As C1.Win.C1TrueDBGrid.Util.GridLines = New C1.Win.C1TrueDBGrid.Util.GridLines()
|
|
Dim GridLines2 As C1.Win.C1TrueDBGrid.Util.GridLines = New C1.Win.C1TrueDBGrid.Util.GridLines()
|
|
Dim GridLines3 As C1.Win.C1TrueDBGrid.Util.GridLines = New C1.Win.C1TrueDBGrid.Util.GridLines()
|
|
Me.RichTextBox1 = New System.Windows.Forms.RichTextBox()
|
|
Me.Label1 = New System.Windows.Forms.Label()
|
|
Me.TextBox1 = New System.Windows.Forms.TextBox()
|
|
Me.Label2 = New System.Windows.Forms.Label()
|
|
Me.Label3 = New System.Windows.Forms.Label()
|
|
Me.Label4 = New System.Windows.Forms.Label()
|
|
Me.TextBox2 = New System.Windows.Forms.TextBox()
|
|
Me.CheckBox1 = New System.Windows.Forms.CheckBox()
|
|
Me.CheckBox2 = New System.Windows.Forms.CheckBox()
|
|
Me.TabControl1 = New System.Windows.Forms.TabControl()
|
|
Me.TabPage1 = New System.Windows.Forms.TabPage()
|
|
Me.C1TrueDBGrid1 = New C1.Win.C1TrueDBGrid.C1TrueDBGrid()
|
|
Me.TabPage2 = New System.Windows.Forms.TabPage()
|
|
Me.C1TrueDBGrid2 = New C1.Win.C1TrueDBGrid.C1TrueDBGrid()
|
|
Me.TabPage3 = New System.Windows.Forms.TabPage()
|
|
Me.C1TrueDBGrid3 = New C1.Win.C1TrueDBGrid.C1TrueDBGrid()
|
|
Me.ToolBar1 = New System.Windows.Forms.ToolBar()
|
|
Me.ToolBarButton1 = New System.Windows.Forms.ToolBarButton()
|
|
Me.ImageList1 = New System.Windows.Forms.ImageList(Me.components)
|
|
Me.Label5 = New System.Windows.Forms.Label()
|
|
Me.Label6 = New System.Windows.Forms.Label()
|
|
Me.TextBox3 = New System.Windows.Forms.TextBox()
|
|
Me.TabControl1.SuspendLayout()
|
|
Me.TabPage1.SuspendLayout()
|
|
CType(Me.C1TrueDBGrid1, System.ComponentModel.ISupportInitialize).BeginInit()
|
|
Me.TabPage2.SuspendLayout()
|
|
CType(Me.C1TrueDBGrid2, System.ComponentModel.ISupportInitialize).BeginInit()
|
|
Me.TabPage3.SuspendLayout()
|
|
CType(Me.C1TrueDBGrid3, System.ComponentModel.ISupportInitialize).BeginInit()
|
|
Me.SuspendLayout()
|
|
'
|
|
'RichTextBox1
|
|
'
|
|
Me.RichTextBox1.Anchor = (((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
|
|
Or System.Windows.Forms.AnchorStyles.Left) _
|
|
Or System.Windows.Forms.AnchorStyles.Right)
|
|
Me.RichTextBox1.Location = New System.Drawing.Point(0, 205)
|
|
Me.RichTextBox1.Name = "RichTextBox1"
|
|
Me.RichTextBox1.ReadOnly = True
|
|
Me.RichTextBox1.Size = New System.Drawing.Size(720, 224)
|
|
Me.RichTextBox1.TabIndex = 0
|
|
Me.RichTextBox1.Text = "RichTextBox1"
|
|
'
|
|
'Label1
|
|
'
|
|
Me.Label1.Location = New System.Drawing.Point(0, 48)
|
|
Me.Label1.Name = "Label1"
|
|
Me.Label1.Size = New System.Drawing.Size(136, 16)
|
|
Me.Label1.TabIndex = 1
|
|
Me.Label1.Text = "Vorlagenentwickler:"
|
|
'
|
|
'TextBox1
|
|
'
|
|
Me.TextBox1.BackColor = System.Drawing.Color.White
|
|
Me.TextBox1.Location = New System.Drawing.Point(120, 48)
|
|
Me.TextBox1.Name = "TextBox1"
|
|
Me.TextBox1.ReadOnly = True
|
|
Me.TextBox1.Size = New System.Drawing.Size(216, 20)
|
|
Me.TextBox1.TabIndex = 2
|
|
Me.TextBox1.Text = "TextBox1"
|
|
'
|
|
'Label2
|
|
'
|
|
Me.Label2.Location = New System.Drawing.Point(0, 72)
|
|
Me.Label2.Name = "Label2"
|
|
Me.Label2.Size = New System.Drawing.Size(104, 16)
|
|
Me.Label2.TabIndex = 3
|
|
Me.Label2.Text = "Aufbewahrungsfrist:"
|
|
'
|
|
'Label3
|
|
'
|
|
Me.Label3.Location = New System.Drawing.Point(0, 96)
|
|
Me.Label3.Name = "Label3"
|
|
Me.Label3.Size = New System.Drawing.Size(104, 16)
|
|
Me.Label3.TabIndex = 4
|
|
Me.Label3.Text = "Vertraulich möglich:"
|
|
'
|
|
'Label4
|
|
'
|
|
Me.Label4.Location = New System.Drawing.Point(0, 120)
|
|
Me.Label4.Name = "Label4"
|
|
Me.Label4.Size = New System.Drawing.Size(112, 32)
|
|
Me.Label4.TabIndex = 5
|
|
Me.Label4.Text = "Berechtigungsein-schränkung möglich"
|
|
'
|
|
'TextBox2
|
|
'
|
|
Me.TextBox2.BackColor = System.Drawing.Color.White
|
|
Me.TextBox2.Location = New System.Drawing.Point(120, 72)
|
|
Me.TextBox2.Name = "TextBox2"
|
|
Me.TextBox2.ReadOnly = True
|
|
Me.TextBox2.Size = New System.Drawing.Size(216, 20)
|
|
Me.TextBox2.TabIndex = 6
|
|
Me.TextBox2.Text = "TextBox2"
|
|
'
|
|
'CheckBox1
|
|
'
|
|
Me.CheckBox1.Enabled = False
|
|
Me.CheckBox1.Location = New System.Drawing.Point(120, 96)
|
|
Me.CheckBox1.Name = "CheckBox1"
|
|
Me.CheckBox1.TabIndex = 7
|
|
'
|
|
'CheckBox2
|
|
'
|
|
Me.CheckBox2.Enabled = False
|
|
Me.CheckBox2.Location = New System.Drawing.Point(120, 120)
|
|
Me.CheckBox2.Name = "CheckBox2"
|
|
Me.CheckBox2.TabIndex = 8
|
|
'
|
|
'TabControl1
|
|
'
|
|
Me.TabControl1.Controls.AddRange(New System.Windows.Forms.Control() {Me.TabPage1, Me.TabPage2, Me.TabPage3})
|
|
Me.TabControl1.Location = New System.Drawing.Point(344, 48)
|
|
Me.TabControl1.Name = "TabControl1"
|
|
Me.TabControl1.SelectedIndex = 0
|
|
Me.TabControl1.Size = New System.Drawing.Size(376, 152)
|
|
Me.TabControl1.TabIndex = 9
|
|
'
|
|
'TabPage1
|
|
'
|
|
Me.TabPage1.Controls.AddRange(New System.Windows.Forms.Control() {Me.C1TrueDBGrid1})
|
|
Me.TabPage1.Location = New System.Drawing.Point(4, 22)
|
|
Me.TabPage1.Name = "TabPage1"
|
|
Me.TabPage1.Size = New System.Drawing.Size(368, 126)
|
|
Me.TabPage1.TabIndex = 0
|
|
Me.TabPage1.Text = "Status"
|
|
'
|
|
'C1TrueDBGrid1
|
|
'
|
|
Me.C1TrueDBGrid1.AllowArrows = False
|
|
Me.C1TrueDBGrid1.AllowColMove = False
|
|
Me.C1TrueDBGrid1.AllowColSelect = False
|
|
Me.C1TrueDBGrid1.AllowFilter = False
|
|
Me.C1TrueDBGrid1.AllowRowSizing = C1.Win.C1TrueDBGrid.RowSizingEnum.AllRows
|
|
Me.C1TrueDBGrid1.AllowSort = True
|
|
Me.C1TrueDBGrid1.AllowUpdate = False
|
|
Me.C1TrueDBGrid1.AllowUpdateOnBlur = False
|
|
Me.C1TrueDBGrid1.AlternatingRows = True
|
|
Me.C1TrueDBGrid1.CaptionHeight = 17
|
|
Me.C1TrueDBGrid1.CollapseColor = System.Drawing.Color.Black
|
|
Me.C1TrueDBGrid1.ColumnHeaders = False
|
|
Me.C1TrueDBGrid1.DataChanged = False
|
|
Me.C1TrueDBGrid1.DeadAreaBackColor = System.Drawing.Color.Empty
|
|
Me.C1TrueDBGrid1.Dock = System.Windows.Forms.DockStyle.Fill
|
|
Me.C1TrueDBGrid1.ExpandColor = System.Drawing.Color.Black
|
|
Me.C1TrueDBGrid1.GroupByCaption = "Drag a column header here to group by that column"
|
|
Me.C1TrueDBGrid1.Images.Add(CType(resources.GetObject("resource.Images"), System.Drawing.Bitmap))
|
|
Me.C1TrueDBGrid1.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.DottedCellBorder
|
|
Me.C1TrueDBGrid1.Name = "C1TrueDBGrid1"
|
|
Me.C1TrueDBGrid1.PreviewInfo.Location = New System.Drawing.Point(0, 0)
|
|
Me.C1TrueDBGrid1.PreviewInfo.Size = New System.Drawing.Size(0, 0)
|
|
Me.C1TrueDBGrid1.PreviewInfo.ZoomFactor = 75
|
|
Me.C1TrueDBGrid1.PrintInfo.ShowOptionsDialog = False
|
|
Me.C1TrueDBGrid1.RecordSelectorWidth = 17
|
|
GridLines1.Color = System.Drawing.Color.DarkGray
|
|
GridLines1.Style = C1.Win.C1TrueDBGrid.LineStyleEnum.Single
|
|
Me.C1TrueDBGrid1.RowDivider = GridLines1
|
|
Me.C1TrueDBGrid1.RowHeight = 15
|
|
Me.C1TrueDBGrid1.RowSubDividerColor = System.Drawing.Color.DarkGray
|
|
Me.C1TrueDBGrid1.ScrollTips = False
|
|
Me.C1TrueDBGrid1.Size = New System.Drawing.Size(368, 126)
|
|
Me.C1TrueDBGrid1.TabIndex = 1
|
|
Me.C1TrueDBGrid1.Text = "C1TrueDBGrid1"
|
|
Me.C1TrueDBGrid1.PropBag = "<?xml version=""1.0""?><Blob><Styles type=""C1.Win.C1TrueDBGrid.Design.ContextWrappe" & _
|
|
"r""><Data>Group{AlignVert:Center;Border:None,,0, 0, 0, 0;BackColor:ControlDark;}E" & _
|
|
"ditor{}Style2{}Style5{}Style4{}Style7{}Style6{}EvenRow{BackColor:224, 224, 224;}" & _
|
|
"Selected{ForeColor:HighlightText;BackColor:Highlight;}Style3{}Inactive{ForeColor" & _
|
|
":InactiveCaptionText;BackColor:InactiveCaption;}FilterBar{}Footer{}Caption{Align" & _
|
|
"Horz:Center;}Normal{}HighlightRow{ForeColor:HighlightText;BackColor:Highlight;}S" & _
|
|
"tyle1{}OddRow{}RecordSelector{AlignImage:Center;}Heading{Wrap:True;BackColor:Con" & _
|
|
"trol;Border:Raised,,1, 1, 1, 1;ForeColor:ControlText;AlignVert:Center;}Style8{}S" & _
|
|
"tyle10{AlignHorz:Near;}Style11{}Style12{}Style13{}Style9{}</Data></Styles><Split" & _
|
|
"s><C1.Win.C1TrueDBGrid.MergeView AllowColMove=""False"" AllowColSelect=""False"" Nam" & _
|
|
"e="""" AlternatingRowStyle=""True"" CaptionHeight=""17"" ColumnCaptionHeight=""17"" Colu" & _
|
|
"mnFooterHeight=""17"" MarqueeStyle=""DottedCellBorder"" RecordSelectorWidth=""17"" Def" & _
|
|
"RecSelWidth=""17"" VerticalScrollGroup=""1"" HorizontalScrollGroup=""1""><ClientRect>0" & _
|
|
", 0, 364, 122</ClientRect><BorderSide>0</BorderSide><CaptionStyle parent=""Style2" & _
|
|
""" me=""Style10"" /><EditorStyle parent=""Editor"" me=""Style5"" /><EvenRowStyle parent" & _
|
|
"=""EvenRow"" me=""Style8"" /><FilterBarStyle parent=""FilterBar"" me=""Style13"" /><Foot" & _
|
|
"erStyle parent=""Footer"" me=""Style3"" /><GroupStyle parent=""Group"" me=""Style12"" />" & _
|
|
"<HeadingStyle parent=""Heading"" me=""Style2"" /><HighLightRowStyle parent=""Highligh" & _
|
|
"tRow"" me=""Style7"" /><InactiveStyle parent=""Inactive"" me=""Style4"" /><OddRowStyle " & _
|
|
"parent=""OddRow"" me=""Style9"" /><RecordSelectorStyle parent=""RecordSelector"" me=""S" & _
|
|
"tyle11"" /><SelectedStyle parent=""Selected"" me=""Style6"" /><Style parent=""Normal"" " & _
|
|
"me=""Style1"" /></C1.Win.C1TrueDBGrid.MergeView></Splits><NamedStyles><Style paren" & _
|
|
"t="""" me=""Normal"" /><Style parent=""Normal"" me=""Heading"" /><Style parent=""Heading""" & _
|
|
" me=""Footer"" /><Style parent=""Heading"" me=""Caption"" /><Style parent=""Heading"" me" & _
|
|
"=""Inactive"" /><Style parent=""Normal"" me=""Selected"" /><Style parent=""Normal"" me=""" & _
|
|
"Editor"" /><Style parent=""Normal"" me=""HighlightRow"" /><Style parent=""Normal"" me=""" & _
|
|
"EvenRow"" /><Style parent=""Normal"" me=""OddRow"" /><Style parent=""Heading"" me=""Reco" & _
|
|
"rdSelector"" /><Style parent=""Normal"" me=""FilterBar"" /><Style parent=""Caption"" me" & _
|
|
"=""Group"" /></NamedStyles><vertSplits>1</vertSplits><horzSplits>1</horzSplits><La" & _
|
|
"yout>None</Layout><DefaultRecSelWidth>17</DefaultRecSelWidth><ClientArea>0, 0, 3" & _
|
|
"64, 122</ClientArea></Blob>"
|
|
'
|
|
'TabPage2
|
|
'
|
|
Me.TabPage2.Controls.AddRange(New System.Windows.Forms.Control() {Me.C1TrueDBGrid2})
|
|
Me.TabPage2.Location = New System.Drawing.Point(4, 22)
|
|
Me.TabPage2.Name = "TabPage2"
|
|
Me.TabPage2.Size = New System.Drawing.Size(368, 126)
|
|
Me.TabPage2.TabIndex = 1
|
|
Me.TabPage2.Text = "Funktionen Aufhebung/Löschung"
|
|
'
|
|
'C1TrueDBGrid2
|
|
'
|
|
Me.C1TrueDBGrid2.AllowArrows = False
|
|
Me.C1TrueDBGrid2.AllowColMove = False
|
|
Me.C1TrueDBGrid2.AllowColSelect = False
|
|
Me.C1TrueDBGrid2.AllowFilter = False
|
|
Me.C1TrueDBGrid2.AllowRowSizing = C1.Win.C1TrueDBGrid.RowSizingEnum.AllRows
|
|
Me.C1TrueDBGrid2.AllowSort = True
|
|
Me.C1TrueDBGrid2.AllowUpdate = False
|
|
Me.C1TrueDBGrid2.AllowUpdateOnBlur = False
|
|
Me.C1TrueDBGrid2.AlternatingRows = True
|
|
Me.C1TrueDBGrid2.CaptionHeight = 17
|
|
Me.C1TrueDBGrid2.CollapseColor = System.Drawing.Color.Black
|
|
Me.C1TrueDBGrid2.ColumnHeaders = False
|
|
Me.C1TrueDBGrid2.DataChanged = False
|
|
Me.C1TrueDBGrid2.DeadAreaBackColor = System.Drawing.Color.Empty
|
|
Me.C1TrueDBGrid2.Dock = System.Windows.Forms.DockStyle.Fill
|
|
Me.C1TrueDBGrid2.ExpandColor = System.Drawing.Color.Black
|
|
Me.C1TrueDBGrid2.GroupByCaption = "Drag a column header here to group by that column"
|
|
Me.C1TrueDBGrid2.Images.Add(CType(resources.GetObject("resource.Images1"), System.Drawing.Bitmap))
|
|
Me.C1TrueDBGrid2.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.DottedCellBorder
|
|
Me.C1TrueDBGrid2.Name = "C1TrueDBGrid2"
|
|
Me.C1TrueDBGrid2.PreviewInfo.Location = New System.Drawing.Point(0, 0)
|
|
Me.C1TrueDBGrid2.PreviewInfo.Size = New System.Drawing.Size(0, 0)
|
|
Me.C1TrueDBGrid2.PreviewInfo.ZoomFactor = 75
|
|
Me.C1TrueDBGrid2.PrintInfo.ShowOptionsDialog = False
|
|
Me.C1TrueDBGrid2.RecordSelectorWidth = 17
|
|
GridLines2.Color = System.Drawing.Color.DarkGray
|
|
GridLines2.Style = C1.Win.C1TrueDBGrid.LineStyleEnum.Single
|
|
Me.C1TrueDBGrid2.RowDivider = GridLines2
|
|
Me.C1TrueDBGrid2.RowHeight = 15
|
|
Me.C1TrueDBGrid2.RowSubDividerColor = System.Drawing.Color.DarkGray
|
|
Me.C1TrueDBGrid2.ScrollTips = False
|
|
Me.C1TrueDBGrid2.Size = New System.Drawing.Size(368, 126)
|
|
Me.C1TrueDBGrid2.TabIndex = 2
|
|
Me.C1TrueDBGrid2.Text = "C1TrueDBGrid2"
|
|
Me.C1TrueDBGrid2.PropBag = "<?xml version=""1.0""?><Blob><Styles type=""C1.Win.C1TrueDBGrid.Design.ContextWrappe" & _
|
|
"r""><Data>Group{BackColor:ControlDark;Border:None,,0, 0, 0, 0;AlignVert:Center;}E" & _
|
|
"ditor{}Style2{}Style5{}Style4{}Style7{}Style6{}EvenRow{BackColor:224, 224, 224;}" & _
|
|
"Selected{ForeColor:HighlightText;BackColor:Highlight;}Style3{}Inactive{ForeColor" & _
|
|
":InactiveCaptionText;BackColor:InactiveCaption;}FilterBar{}Footer{}Caption{Align" & _
|
|
"Horz:Center;}Normal{}HighlightRow{ForeColor:HighlightText;BackColor:Highlight;}S" & _
|
|
"tyle9{}OddRow{}RecordSelector{AlignImage:Center;}Heading{Wrap:True;AlignVert:Cen" & _
|
|
"ter;Border:Raised,,1, 1, 1, 1;ForeColor:ControlText;BackColor:Control;}Style8{}S" & _
|
|
"tyle10{AlignHorz:Near;}Style11{}Style12{}Style13{}Style1{}</Data></Styles><Split" & _
|
|
"s><C1.Win.C1TrueDBGrid.MergeView AllowColMove=""False"" AllowColSelect=""False"" Nam" & _
|
|
"e="""" AlternatingRowStyle=""True"" CaptionHeight=""17"" ColumnCaptionHeight=""17"" Colu" & _
|
|
"mnFooterHeight=""17"" MarqueeStyle=""DottedCellBorder"" RecordSelectorWidth=""17"" Def" & _
|
|
"RecSelWidth=""17"" VerticalScrollGroup=""1"" HorizontalScrollGroup=""1""><ClientRect>0" & _
|
|
", 0, 364, 122</ClientRect><BorderSide>0</BorderSide><CaptionStyle parent=""Style2" & _
|
|
""" me=""Style10"" /><EditorStyle parent=""Editor"" me=""Style5"" /><EvenRowStyle parent" & _
|
|
"=""EvenRow"" me=""Style8"" /><FilterBarStyle parent=""FilterBar"" me=""Style13"" /><Foot" & _
|
|
"erStyle parent=""Footer"" me=""Style3"" /><GroupStyle parent=""Group"" me=""Style12"" />" & _
|
|
"<HeadingStyle parent=""Heading"" me=""Style2"" /><HighLightRowStyle parent=""Highligh" & _
|
|
"tRow"" me=""Style7"" /><InactiveStyle parent=""Inactive"" me=""Style4"" /><OddRowStyle " & _
|
|
"parent=""OddRow"" me=""Style9"" /><RecordSelectorStyle parent=""RecordSelector"" me=""S" & _
|
|
"tyle11"" /><SelectedStyle parent=""Selected"" me=""Style6"" /><Style parent=""Normal"" " & _
|
|
"me=""Style1"" /></C1.Win.C1TrueDBGrid.MergeView></Splits><NamedStyles><Style paren" & _
|
|
"t="""" me=""Normal"" /><Style parent=""Normal"" me=""Heading"" /><Style parent=""Heading""" & _
|
|
" me=""Footer"" /><Style parent=""Heading"" me=""Caption"" /><Style parent=""Heading"" me" & _
|
|
"=""Inactive"" /><Style parent=""Normal"" me=""Selected"" /><Style parent=""Normal"" me=""" & _
|
|
"Editor"" /><Style parent=""Normal"" me=""HighlightRow"" /><Style parent=""Normal"" me=""" & _
|
|
"EvenRow"" /><Style parent=""Normal"" me=""OddRow"" /><Style parent=""Heading"" me=""Reco" & _
|
|
"rdSelector"" /><Style parent=""Normal"" me=""FilterBar"" /><Style parent=""Caption"" me" & _
|
|
"=""Group"" /></NamedStyles><vertSplits>1</vertSplits><horzSplits>1</horzSplits><La" & _
|
|
"yout>None</Layout><DefaultRecSelWidth>17</DefaultRecSelWidth><ClientArea>0, 0, 3" & _
|
|
"64, 122</ClientArea></Blob>"
|
|
'
|
|
'TabPage3
|
|
'
|
|
Me.TabPage3.Controls.AddRange(New System.Windows.Forms.Control() {Me.C1TrueDBGrid3})
|
|
Me.TabPage3.Location = New System.Drawing.Point(4, 22)
|
|
Me.TabPage3.Name = "TabPage3"
|
|
Me.TabPage3.Size = New System.Drawing.Size(368, 126)
|
|
Me.TabPage3.TabIndex = 2
|
|
Me.TabPage3.Text = "Funktionen Indexmutation"
|
|
'
|
|
'C1TrueDBGrid3
|
|
'
|
|
Me.C1TrueDBGrid3.AllowArrows = False
|
|
Me.C1TrueDBGrid3.AllowColMove = False
|
|
Me.C1TrueDBGrid3.AllowColSelect = False
|
|
Me.C1TrueDBGrid3.AllowFilter = False
|
|
Me.C1TrueDBGrid3.AllowRowSizing = C1.Win.C1TrueDBGrid.RowSizingEnum.AllRows
|
|
Me.C1TrueDBGrid3.AllowSort = True
|
|
Me.C1TrueDBGrid3.AllowUpdate = False
|
|
Me.C1TrueDBGrid3.AllowUpdateOnBlur = False
|
|
Me.C1TrueDBGrid3.AlternatingRows = True
|
|
Me.C1TrueDBGrid3.CaptionHeight = 17
|
|
Me.C1TrueDBGrid3.CollapseColor = System.Drawing.Color.Black
|
|
Me.C1TrueDBGrid3.ColumnHeaders = False
|
|
Me.C1TrueDBGrid3.DataChanged = False
|
|
Me.C1TrueDBGrid3.DeadAreaBackColor = System.Drawing.Color.Empty
|
|
Me.C1TrueDBGrid3.Dock = System.Windows.Forms.DockStyle.Fill
|
|
Me.C1TrueDBGrid3.ExpandColor = System.Drawing.Color.Black
|
|
Me.C1TrueDBGrid3.GroupByCaption = "Drag a column header here to group by that column"
|
|
Me.C1TrueDBGrid3.Images.Add(CType(resources.GetObject("resource.Images2"), System.Drawing.Bitmap))
|
|
Me.C1TrueDBGrid3.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.DottedCellBorder
|
|
Me.C1TrueDBGrid3.Name = "C1TrueDBGrid3"
|
|
Me.C1TrueDBGrid3.PreviewInfo.Location = New System.Drawing.Point(0, 0)
|
|
Me.C1TrueDBGrid3.PreviewInfo.Size = New System.Drawing.Size(0, 0)
|
|
Me.C1TrueDBGrid3.PreviewInfo.ZoomFactor = 75
|
|
Me.C1TrueDBGrid3.PrintInfo.ShowOptionsDialog = False
|
|
Me.C1TrueDBGrid3.RecordSelectorWidth = 17
|
|
GridLines3.Color = System.Drawing.Color.DarkGray
|
|
GridLines3.Style = C1.Win.C1TrueDBGrid.LineStyleEnum.Single
|
|
Me.C1TrueDBGrid3.RowDivider = GridLines3
|
|
Me.C1TrueDBGrid3.RowHeight = 15
|
|
Me.C1TrueDBGrid3.RowSubDividerColor = System.Drawing.Color.DarkGray
|
|
Me.C1TrueDBGrid3.ScrollTips = False
|
|
Me.C1TrueDBGrid3.Size = New System.Drawing.Size(368, 126)
|
|
Me.C1TrueDBGrid3.TabIndex = 2
|
|
Me.C1TrueDBGrid3.Text = "C1TrueDBGrid3"
|
|
Me.C1TrueDBGrid3.PropBag = "<?xml version=""1.0""?><Blob><Styles type=""C1.Win.C1TrueDBGrid.Design.ContextWrappe" & _
|
|
"r""><Data>Group{BackColor:ControlDark;Border:None,,0, 0, 0, 0;AlignVert:Center;}E" & _
|
|
"ditor{}Style2{}Style5{}Style4{}Style7{}Style6{}EvenRow{BackColor:224, 224, 224;}" & _
|
|
"Selected{ForeColor:HighlightText;BackColor:Highlight;}Style3{}Inactive{ForeColor" & _
|
|
":InactiveCaptionText;BackColor:InactiveCaption;}FilterBar{}Footer{}Caption{Align" & _
|
|
"Horz:Center;}Normal{}HighlightRow{ForeColor:HighlightText;BackColor:Highlight;}S" & _
|
|
"tyle9{}OddRow{}RecordSelector{AlignImage:Center;}Heading{Wrap:True;AlignVert:Cen" & _
|
|
"ter;Border:Raised,,1, 1, 1, 1;ForeColor:ControlText;BackColor:Control;}Style8{}S" & _
|
|
"tyle10{AlignHorz:Near;}Style11{}Style12{}Style13{}Style1{}</Data></Styles><Split" & _
|
|
"s><C1.Win.C1TrueDBGrid.MergeView AllowColMove=""False"" AllowColSelect=""False"" Nam" & _
|
|
"e="""" AlternatingRowStyle=""True"" CaptionHeight=""17"" ColumnCaptionHeight=""17"" Colu" & _
|
|
"mnFooterHeight=""17"" MarqueeStyle=""DottedCellBorder"" RecordSelectorWidth=""17"" Def" & _
|
|
"RecSelWidth=""17"" VerticalScrollGroup=""1"" HorizontalScrollGroup=""1""><ClientRect>0" & _
|
|
", 0, 364, 122</ClientRect><BorderSide>0</BorderSide><CaptionStyle parent=""Style2" & _
|
|
""" me=""Style10"" /><EditorStyle parent=""Editor"" me=""Style5"" /><EvenRowStyle parent" & _
|
|
"=""EvenRow"" me=""Style8"" /><FilterBarStyle parent=""FilterBar"" me=""Style13"" /><Foot" & _
|
|
"erStyle parent=""Footer"" me=""Style3"" /><GroupStyle parent=""Group"" me=""Style12"" />" & _
|
|
"<HeadingStyle parent=""Heading"" me=""Style2"" /><HighLightRowStyle parent=""Highligh" & _
|
|
"tRow"" me=""Style7"" /><InactiveStyle parent=""Inactive"" me=""Style4"" /><OddRowStyle " & _
|
|
"parent=""OddRow"" me=""Style9"" /><RecordSelectorStyle parent=""RecordSelector"" me=""S" & _
|
|
"tyle11"" /><SelectedStyle parent=""Selected"" me=""Style6"" /><Style parent=""Normal"" " & _
|
|
"me=""Style1"" /></C1.Win.C1TrueDBGrid.MergeView></Splits><NamedStyles><Style paren" & _
|
|
"t="""" me=""Normal"" /><Style parent=""Normal"" me=""Heading"" /><Style parent=""Heading""" & _
|
|
" me=""Footer"" /><Style parent=""Heading"" me=""Caption"" /><Style parent=""Heading"" me" & _
|
|
"=""Inactive"" /><Style parent=""Normal"" me=""Selected"" /><Style parent=""Normal"" me=""" & _
|
|
"Editor"" /><Style parent=""Normal"" me=""HighlightRow"" /><Style parent=""Normal"" me=""" & _
|
|
"EvenRow"" /><Style parent=""Normal"" me=""OddRow"" /><Style parent=""Heading"" me=""Reco" & _
|
|
"rdSelector"" /><Style parent=""Normal"" me=""FilterBar"" /><Style parent=""Caption"" me" & _
|
|
"=""Group"" /></NamedStyles><vertSplits>1</vertSplits><horzSplits>1</horzSplits><La" & _
|
|
"yout>None</Layout><DefaultRecSelWidth>17</DefaultRecSelWidth><ClientArea>0, 0, 3" & _
|
|
"64, 122</ClientArea></Blob>"
|
|
'
|
|
'ToolBar1
|
|
'
|
|
Me.ToolBar1.Buttons.AddRange(New System.Windows.Forms.ToolBarButton() {Me.ToolBarButton1})
|
|
Me.ToolBar1.DropDownArrows = True
|
|
Me.ToolBar1.ImageList = Me.ImageList1
|
|
Me.ToolBar1.Name = "ToolBar1"
|
|
Me.ToolBar1.ShowToolTips = True
|
|
Me.ToolBar1.Size = New System.Drawing.Size(720, 25)
|
|
Me.ToolBar1.TabIndex = 10
|
|
'
|
|
'ToolBarButton1
|
|
'
|
|
Me.ToolBarButton1.ImageIndex = 0
|
|
'
|
|
'ImageList1
|
|
'
|
|
Me.ImageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit
|
|
Me.ImageList1.ImageSize = New System.Drawing.Size(16, 16)
|
|
Me.ImageList1.ImageStream = CType(resources.GetObject("ImageList1.ImageStream"), System.Windows.Forms.ImageListStreamer)
|
|
Me.ImageList1.TransparentColor = System.Drawing.Color.Transparent
|
|
'
|
|
'Label5
|
|
'
|
|
Me.Label5.Location = New System.Drawing.Point(0, 184)
|
|
Me.Label5.Name = "Label5"
|
|
Me.Label5.Size = New System.Drawing.Size(160, 23)
|
|
Me.Label5.TabIndex = 11
|
|
Me.Label5.Text = "Allgemeine Beschreibung"
|
|
'
|
|
'Label6
|
|
'
|
|
Me.Label6.Location = New System.Drawing.Point(168, 98)
|
|
Me.Label6.Name = "Label6"
|
|
Me.Label6.Size = New System.Drawing.Size(104, 29)
|
|
Me.Label6.TabIndex = 13
|
|
Me.Label6.Text = "Bearbeitung nach Abschluss:"
|
|
'
|
|
'TextBox3
|
|
'
|
|
Me.TextBox3.BackColor = System.Drawing.Color.White
|
|
Me.TextBox3.Location = New System.Drawing.Point(264, 104)
|
|
Me.TextBox3.Name = "TextBox3"
|
|
Me.TextBox3.ReadOnly = True
|
|
Me.TextBox3.Size = New System.Drawing.Size(72, 20)
|
|
Me.TextBox3.TabIndex = 14
|
|
Me.TextBox3.Text = "TextBox3"
|
|
'
|
|
'frmDokumenttypInfo
|
|
'
|
|
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
|
|
Me.ClientSize = New System.Drawing.Size(720, 429)
|
|
Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.TextBox3, Me.Label6, Me.RichTextBox1, Me.Label5, Me.ToolBar1, Me.TabControl1, Me.CheckBox2, Me.CheckBox1, Me.TextBox2, Me.Label4, Me.Label3, Me.Label2, Me.TextBox1, Me.Label1})
|
|
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
|
|
Me.Name = "frmDokumenttypInfo"
|
|
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
|
Me.Text = "Info Dokumentvorlage -"
|
|
Me.TabControl1.ResumeLayout(False)
|
|
Me.TabPage1.ResumeLayout(False)
|
|
CType(Me.C1TrueDBGrid1, System.ComponentModel.ISupportInitialize).EndInit()
|
|
Me.TabPage2.ResumeLayout(False)
|
|
CType(Me.C1TrueDBGrid2, System.ComponentModel.ISupportInitialize).EndInit()
|
|
Me.TabPage3.ResumeLayout(False)
|
|
CType(Me.C1TrueDBGrid3, System.ComponentModel.ISupportInitialize).EndInit()
|
|
Me.ResumeLayout(False)
|
|
|
|
End Sub
|
|
|
|
#End Region
|
|
Dim t As DataTable
|
|
Dim t1 As DataTable
|
|
Dim t2 As DataTable
|
|
Dim t3 As DataTable
|
|
Dim m_key As Integer
|
|
Property Key() As Integer
|
|
Get
|
|
Return m_key
|
|
End Get
|
|
Set(ByVal Value As Integer)
|
|
m_key = Value
|
|
End Set
|
|
End Property
|
|
|
|
Private Sub frmDokumenttypInfo_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
|
|
Dim s As String
|
|
t = Daten_laden(1)
|
|
Me.TextBox1.Text = t.Rows(0).Item(0)
|
|
s = ""
|
|
Try
|
|
s = LTrim(Str(t.Rows(0).Item(1)))
|
|
Catch
|
|
s = "0"
|
|
End Try
|
|
Try
|
|
If t.Rows(0).Item(4) = "True" Then
|
|
s = s + " Jahre ab Aufhebung des Dokumentes"
|
|
Else
|
|
s = s + " Jahre nach Abschluss des Dokumentes"
|
|
End If
|
|
Catch
|
|
End Try
|
|
Me.TextBox2.Text = s
|
|
|
|
' Me.TextBox2.Text = t.Rows(0).Item(1)
|
|
Me.CheckBox1.Checked = t.Rows(0).Item(2) = True
|
|
Me.CheckBox2.Checked = t.Rows(0).Item(3) = True
|
|
|
|
Try
|
|
Me.TextBox3.Text = "0 Tage"
|
|
Me.TextBox3.Text = Trim(Str(t.Rows(0).Item(5))) + " Tage"
|
|
Catch
|
|
End Try
|
|
|
|
t1 = Daten_laden(2)
|
|
Me.C1TrueDBGrid1.DataSource = t1
|
|
Me.C1TrueDBGrid1.DataMember = t1.TableName
|
|
|
|
t2 = Daten_laden(3)
|
|
Me.C1TrueDBGrid2.DataSource = t2
|
|
Me.C1TrueDBGrid2.DataMember = t2.TableName
|
|
|
|
t3 = Daten_laden(4)
|
|
Me.C1TrueDBGrid3.DataSource = t3
|
|
Me.C1TrueDBGrid3.DataMember = t3.TableName
|
|
|
|
Me.C1TrueDBGrid1.Splits(0).DisplayColumns(0).Width = Me.C1TrueDBGrid1.Width - 60
|
|
Me.C1TrueDBGrid2.Splits(0).DisplayColumns(0).Width = Me.C1TrueDBGrid1.Width - 60
|
|
Me.C1TrueDBGrid3.Splits(0).DisplayColumns(0).Width = Me.C1TrueDBGrid1.Width - 60
|
|
|
|
Me.RichTextBox1.Clear()
|
|
Get_From_DB()
|
|
|
|
End Sub
|
|
|
|
Public Function Get_From_DB()
|
|
Dim connection As New SqlConnection()
|
|
Dim da As New SqlDataAdapter("Select * From dokumenttypbeschreibung where dokumenttypbeschreibungnr=" + Str(Key), connection)
|
|
Dim CB As SqlCommandBuilder = New SqlCommandBuilder(da)
|
|
Dim ds As New DataSet()
|
|
Dim dokname As String
|
|
dokname = Globals.Applikationsdaten.Rows(Globals.AppldataRow).Item("pfad_temporaer_dokumente") + "tmp.rtf"
|
|
Try
|
|
connection.ConnectionString = Globals.sConnectionString
|
|
connection.Open()
|
|
da.Fill(ds, "docbeschreibung")
|
|
Dim myRow As DataRow
|
|
myRow = ds.Tables(0).Rows(0)
|
|
Dim MyData() As Byte
|
|
MyData = myRow.Item(1)
|
|
Dim K As Long
|
|
K = UBound(MyData)
|
|
|
|
Dim fs As New FileStream(dokname, FileMode.OpenOrCreate, FileAccess.Write)
|
|
fs.Write(MyData, 0, K)
|
|
fs.Close()
|
|
fs = Nothing
|
|
Me.RichTextBox1.LoadFile(dokname)
|
|
Catch ex As Exception
|
|
Return False
|
|
Finally
|
|
CB = Nothing
|
|
ds = Nothing
|
|
da = Nothing
|
|
connection.Close()
|
|
connection = Nothing
|
|
End Try
|
|
Return True
|
|
End Function
|
|
|
|
Private Function Daten_laden(ByVal fnkt As Integer) As DataTable
|
|
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
|
Dim dtToReturn As DataTable = New DataTable()
|
|
Dim sdaAdapter As SqlDataAdapter = New SqlDataAdapter(scmCmdToExecute)
|
|
scmCmdToExecute.CommandText = "dbo.sp_dokumenttypinfo"
|
|
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
|
scmCmdToExecute.Connection = conn.scoDBConnection
|
|
Try
|
|
scmCmdToExecute.Parameters.Add(New SqlParameter("@fnkt", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, fnkt))
|
|
scmCmdToExecute.Parameters.Add(New SqlParameter("@dokumenttypnr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, Me.Key))
|
|
sdaAdapter.Fill(dtToReturn)
|
|
Return dtToReturn
|
|
Catch ex As Exception
|
|
' // some error occured. Bubble it to caller and encapsulate Exception object
|
|
Throw New Exception("Dokument_Information_Wert::" & scmCmdToExecute.CommandText & "::Error occured." & ex.Message, ex)
|
|
Finally
|
|
scmCmdToExecute.Dispose()
|
|
sdaAdapter.Dispose()
|
|
End Try
|
|
End Function
|
|
|
|
Private Sub ToolBar1_ButtonClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles ToolBar1.ButtonClick
|
|
Me.Close()
|
|
End Sub
|
|
|
|
Private Sub C1TrueDBGrid2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
|
|
|
End Sub
|
|
End Class
|