LeistungenFIBU, Abrechungsmaske, ZE-Buttons, creditsafe, bugfix PLOSE (bei Rechnungsausgang)

This commit is contained in:
2024-06-20 10:01:00 +02:00
parent e928df34a0
commit fe4b4304bc
23 changed files with 1646 additions and 53 deletions

View File

@@ -0,0 +1,482 @@
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
Partial Class frmLeistundenFIBUKonten
Inherits System.Windows.Forms.Form
'Das Formular überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
<System.Diagnostics.DebuggerNonUserCode()>
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
Finally
MyBase.Dispose(disposing)
End Try
End Sub
'Wird vom Windows Form-Designer benötigt.
Private components As System.ComponentModel.IContainer
'Hinweis: Die folgende Prozedur ist für den Windows Form-Designer erforderlich.
'Das Bearbeiten ist mit dem Windows Form-Designer möglich.
'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
<System.Diagnostics.DebuggerStepThrough()>
Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container()
Me.mainPanel = New System.Windows.Forms.Panel()
Me.txtDrittland = New VERAG_PROG_ALLGEMEIN.MyTextBox()
Me.Label7 = New System.Windows.Forms.Label()
Me.txtEUstfrei = New VERAG_PROG_ALLGEMEIN.MyTextBox()
Me.Label6 = New System.Windows.Forms.Label()
Me.txtEUstpfl = New VERAG_PROG_ALLGEMEIN.MyTextBox()
Me.Label5 = New System.Windows.Forms.Label()
Me.txtInlandstfrei = New VERAG_PROG_ALLGEMEIN.MyTextBox()
Me.Label1 = New System.Windows.Forms.Label()
Me.txtInlandstpfl = New VERAG_PROG_ALLGEMEIN.MyTextBox()
Me.Label9 = New System.Windows.Forms.Label()
Me.lblWordcount = New System.Windows.Forms.Label()
Me.cboLeistung = New VERAG_PROG_ALLGEMEIN.MyComboBox()
Me.Label2 = New System.Windows.Forms.Label()
Me.btnSave = New System.Windows.Forms.Button()
Me.btnAdd = New System.Windows.Forms.Button()
Me.btnDelete = New System.Windows.Forms.Button()
Me.pnlTop = New System.Windows.Forms.Panel()
Me.cbxLeistungSelected = New VERAG_PROG_ALLGEMEIN.MyComboBox()
Me.Label8 = New System.Windows.Forms.Label()
Me.txtSuche = New VERAG_PROG_ALLGEMEIN.MyTextBox()
Me.Label18 = New System.Windows.Forms.Label()
Me.lblWarning = New System.Windows.Forms.Label()
Me.Label4 = New System.Windows.Forms.Label()
Me.Label3 = New System.Windows.Forms.Label()
Me.cbxFirma = New VERAG_PROG_ALLGEMEIN.MyComboBox()
Me.dgvSachkonten = New VERAG_PROG_ALLGEMEIN.MyDatagridview(Me.components)
Me.mainPanel.SuspendLayout()
Me.pnlTop.SuspendLayout()
CType(Me.dgvSachkonten, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'mainPanel
'
Me.mainPanel.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.mainPanel.Controls.Add(Me.txtDrittland)
Me.mainPanel.Controls.Add(Me.Label7)
Me.mainPanel.Controls.Add(Me.txtEUstfrei)
Me.mainPanel.Controls.Add(Me.Label6)
Me.mainPanel.Controls.Add(Me.txtEUstpfl)
Me.mainPanel.Controls.Add(Me.Label5)
Me.mainPanel.Controls.Add(Me.txtInlandstfrei)
Me.mainPanel.Controls.Add(Me.Label1)
Me.mainPanel.Controls.Add(Me.txtInlandstpfl)
Me.mainPanel.Controls.Add(Me.Label9)
Me.mainPanel.Controls.Add(Me.lblWordcount)
Me.mainPanel.Controls.Add(Me.cboLeistung)
Me.mainPanel.Controls.Add(Me.Label2)
Me.mainPanel.Controls.Add(Me.btnSave)
Me.mainPanel.Location = New System.Drawing.Point(1, 648)
Me.mainPanel.Name = "mainPanel"
Me.mainPanel.Size = New System.Drawing.Size(1283, 77)
Me.mainPanel.TabIndex = 101
'
'txtDrittland
'
Me.txtDrittland._DateTimeOnly = False
Me.txtDrittland._numbersOnly = True
Me.txtDrittland._numbersOnlyKommastellen = ""
Me.txtDrittland._numbersOnlyTrennzeichen = False
Me.txtDrittland._Prozent = False
Me.txtDrittland._ShortDateNew = False
Me.txtDrittland._ShortDateOnly = False
Me.txtDrittland._TimeOnly = False
Me.txtDrittland._TimeOnly_Seconds = False
Me.txtDrittland._value = ""
Me.txtDrittland._Waehrung = False
Me.txtDrittland._WaehrungZeichen = False
Me.txtDrittland.ForeColor = System.Drawing.Color.Black
Me.txtDrittland.Location = New System.Drawing.Point(800, 38)
Me.txtDrittland.MaxLineLength = 4
Me.txtDrittland.MaxLines_Warning = ""
Me.txtDrittland.MaxLines_Warning_Label = Nothing
Me.txtDrittland.Name = "txtDrittland"
Me.txtDrittland.Size = New System.Drawing.Size(120, 20)
Me.txtDrittland.TabIndex = 45
'
'Label7
'
Me.Label7.AutoSize = True
Me.Label7.Location = New System.Drawing.Point(797, 15)
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(46, 13)
Me.Label7.TabIndex = 44
Me.Label7.Text = "Drittland"
'
'txtEUstfrei
'
Me.txtEUstfrei._DateTimeOnly = False
Me.txtEUstfrei._numbersOnly = True
Me.txtEUstfrei._numbersOnlyKommastellen = ""
Me.txtEUstfrei._numbersOnlyTrennzeichen = False
Me.txtEUstfrei._Prozent = False
Me.txtEUstfrei._ShortDateNew = False
Me.txtEUstfrei._ShortDateOnly = False
Me.txtEUstfrei._TimeOnly = False
Me.txtEUstfrei._TimeOnly_Seconds = False
Me.txtEUstfrei._value = ""
Me.txtEUstfrei._Waehrung = False
Me.txtEUstfrei._WaehrungZeichen = False
Me.txtEUstfrei.ForeColor = System.Drawing.Color.Black
Me.txtEUstfrei.Location = New System.Drawing.Point(662, 38)
Me.txtEUstfrei.MaxLineLength = 4
Me.txtEUstfrei.MaxLines_Warning = ""
Me.txtEUstfrei.MaxLines_Warning_Label = Nothing
Me.txtEUstfrei.Name = "txtEUstfrei"
Me.txtEUstfrei.Size = New System.Drawing.Size(120, 20)
Me.txtEUstfrei.TabIndex = 43
'
'Label6
'
Me.Label6.AutoSize = True
Me.Label6.Location = New System.Drawing.Point(659, 15)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(70, 13)
Me.Label6.TabIndex = 42
Me.Label6.Text = "EU Steuerfrei"
'
'txtEUstpfl
'
Me.txtEUstpfl._DateTimeOnly = False
Me.txtEUstpfl._numbersOnly = True
Me.txtEUstpfl._numbersOnlyKommastellen = ""
Me.txtEUstpfl._numbersOnlyTrennzeichen = False
Me.txtEUstpfl._Prozent = False
Me.txtEUstpfl._ShortDateNew = False
Me.txtEUstpfl._ShortDateOnly = False
Me.txtEUstpfl._TimeOnly = False
Me.txtEUstpfl._TimeOnly_Seconds = False
Me.txtEUstpfl._value = ""
Me.txtEUstpfl._Waehrung = False
Me.txtEUstpfl._WaehrungZeichen = False
Me.txtEUstpfl.ForeColor = System.Drawing.Color.Black
Me.txtEUstpfl.Location = New System.Drawing.Point(517, 38)
Me.txtEUstpfl.MaxLineLength = 4
Me.txtEUstpfl.MaxLines_Warning = ""
Me.txtEUstpfl.MaxLines_Warning_Label = Nothing
Me.txtEUstpfl.Name = "txtEUstpfl"
Me.txtEUstpfl.Size = New System.Drawing.Size(120, 20)
Me.txtEUstpfl.TabIndex = 41
'
'Label5
'
Me.Label5.AutoSize = True
Me.Label5.Location = New System.Drawing.Point(514, 15)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(92, 13)
Me.Label5.TabIndex = 40
Me.Label5.Text = "EU Steuerpflichtig"
'
'txtInlandstfrei
'
Me.txtInlandstfrei._DateTimeOnly = False
Me.txtInlandstfrei._numbersOnly = True
Me.txtInlandstfrei._numbersOnlyKommastellen = ""
Me.txtInlandstfrei._numbersOnlyTrennzeichen = False
Me.txtInlandstfrei._Prozent = False
Me.txtInlandstfrei._ShortDateNew = False
Me.txtInlandstfrei._ShortDateOnly = False
Me.txtInlandstfrei._TimeOnly = False
Me.txtInlandstfrei._TimeOnly_Seconds = False
Me.txtInlandstfrei._value = ""
Me.txtInlandstfrei._Waehrung = False
Me.txtInlandstfrei._WaehrungZeichen = False
Me.txtInlandstfrei.ForeColor = System.Drawing.Color.Black
Me.txtInlandstfrei.Location = New System.Drawing.Point(374, 38)
Me.txtInlandstfrei.MaxLineLength = 4
Me.txtInlandstfrei.MaxLines_Warning = ""
Me.txtInlandstfrei.MaxLines_Warning_Label = Nothing
Me.txtInlandstfrei.Name = "txtInlandstfrei"
Me.txtInlandstfrei.Size = New System.Drawing.Size(120, 20)
Me.txtInlandstfrei.TabIndex = 39
'
'Label1
'
Me.Label1.AutoSize = True
Me.Label1.Location = New System.Drawing.Point(371, 15)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(84, 13)
Me.Label1.TabIndex = 38
Me.Label1.Text = "Inland Steuerfrei"
'
'txtInlandstpfl
'
Me.txtInlandstpfl._DateTimeOnly = False
Me.txtInlandstpfl._numbersOnly = True
Me.txtInlandstpfl._numbersOnlyKommastellen = ""
Me.txtInlandstpfl._numbersOnlyTrennzeichen = False
Me.txtInlandstpfl._Prozent = False
Me.txtInlandstpfl._ShortDateNew = False
Me.txtInlandstpfl._ShortDateOnly = False
Me.txtInlandstpfl._TimeOnly = False
Me.txtInlandstpfl._TimeOnly_Seconds = False
Me.txtInlandstpfl._value = ""
Me.txtInlandstpfl._Waehrung = False
Me.txtInlandstpfl._WaehrungZeichen = False
Me.txtInlandstpfl.ForeColor = System.Drawing.Color.Black
Me.txtInlandstpfl.Location = New System.Drawing.Point(225, 38)
Me.txtInlandstpfl.MaxLineLength = 4
Me.txtInlandstpfl.MaxLines_Warning = ""
Me.txtInlandstpfl.MaxLines_Warning_Label = Nothing
Me.txtInlandstpfl.Name = "txtInlandstpfl"
Me.txtInlandstpfl.Size = New System.Drawing.Size(120, 20)
Me.txtInlandstpfl.TabIndex = 37
'
'Label9
'
Me.Label9.AutoSize = True
Me.Label9.Location = New System.Drawing.Point(222, 15)
Me.Label9.Name = "Label9"
Me.Label9.Size = New System.Drawing.Size(106, 13)
Me.Label9.TabIndex = 36
Me.Label9.Text = "Inland Steuerpflichtig"
'
'lblWordcount
'
Me.lblWordcount.AutoSize = True
Me.lblWordcount.Location = New System.Drawing.Point(1199, 398)
Me.lblWordcount.Name = "lblWordcount"
Me.lblWordcount.Size = New System.Drawing.Size(0, 13)
Me.lblWordcount.TabIndex = 32
'
'cboLeistung
'
Me.cboLeistung._allowedValuesFreiText = Nothing
Me.cboLeistung._allowFreiText = False
Me.cboLeistung._value = ""
Me.cboLeistung.DropDownWidth = 120
Me.cboLeistung.FormattingEnabled = True
Me.cboLeistung.Location = New System.Drawing.Point(28, 38)
Me.cboLeistung.Name = "cboLeistung"
Me.cboLeistung.Size = New System.Drawing.Size(159, 21)
Me.cboLeistung.TabIndex = 24
'
'Label2
'
Me.Label2.AutoSize = True
Me.Label2.Location = New System.Drawing.Point(25, 16)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(47, 13)
Me.Label2.TabIndex = 23
Me.Label2.Text = "Leistung"
'
'btnSave
'
Me.btnSave.Location = New System.Drawing.Point(1202, 44)
Me.btnSave.Name = "btnSave"
Me.btnSave.Size = New System.Drawing.Size(75, 23)
Me.btnSave.TabIndex = 10
Me.btnSave.Text = "Speichern"
Me.btnSave.UseVisualStyleBackColor = True
'
'btnAdd
'
Me.btnAdd.BackgroundImage = Global.SDL.My.Resources.Resources.plus
Me.btnAdd.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
Me.btnAdd.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btnAdd.Location = New System.Drawing.Point(1237, 622)
Me.btnAdd.Name = "btnAdd"
Me.btnAdd.Size = New System.Drawing.Size(24, 20)
Me.btnAdd.TabIndex = 103
Me.btnAdd.UseVisualStyleBackColor = True
'
'btnDelete
'
Me.btnDelete.BackgroundImage = Global.SDL.My.Resources.Resources.del
Me.btnDelete.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
Me.btnDelete.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btnDelete.Location = New System.Drawing.Point(1260, 622)
Me.btnDelete.Name = "btnDelete"
Me.btnDelete.Size = New System.Drawing.Size(24, 20)
Me.btnDelete.TabIndex = 102
Me.btnDelete.UseVisualStyleBackColor = True
'
'pnlTop
'
Me.pnlTop.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(54, Byte), Integer), CType(CType(128, Byte), Integer))
Me.pnlTop.Controls.Add(Me.cbxLeistungSelected)
Me.pnlTop.Controls.Add(Me.Label8)
Me.pnlTop.Controls.Add(Me.txtSuche)
Me.pnlTop.Controls.Add(Me.Label18)
Me.pnlTop.Controls.Add(Me.lblWarning)
Me.pnlTop.Controls.Add(Me.Label4)
Me.pnlTop.Controls.Add(Me.Label3)
Me.pnlTop.Controls.Add(Me.cbxFirma)
Me.pnlTop.Dock = System.Windows.Forms.DockStyle.Top
Me.pnlTop.Location = New System.Drawing.Point(0, 0)
Me.pnlTop.Name = "pnlTop"
Me.pnlTop.Size = New System.Drawing.Size(1295, 48)
Me.pnlTop.TabIndex = 100
'
'cbxLeistungSelected
'
Me.cbxLeistungSelected._allowedValuesFreiText = Nothing
Me.cbxLeistungSelected._allowFreiText = False
Me.cbxLeistungSelected._value = ""
Me.cbxLeistungSelected.DropDownWidth = 120
Me.cbxLeistungSelected.FormattingEnabled = True
Me.cbxLeistungSelected.Location = New System.Drawing.Point(994, 18)
Me.cbxLeistungSelected.Name = "cbxLeistungSelected"
Me.cbxLeistungSelected.Size = New System.Drawing.Size(127, 21)
Me.cbxLeistungSelected.TabIndex = 37
'
'Label8
'
Me.Label8.AutoSize = True
Me.Label8.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label8.ForeColor = System.Drawing.Color.White
Me.Label8.Location = New System.Drawing.Point(991, 2)
Me.Label8.Name = "Label8"
Me.Label8.Size = New System.Drawing.Size(55, 13)
Me.Label8.TabIndex = 36
Me.Label8.Text = "Leistung"
'
'txtSuche
'
Me.txtSuche._DateTimeOnly = False
Me.txtSuche._numbersOnly = False
Me.txtSuche._numbersOnlyKommastellen = ""
Me.txtSuche._numbersOnlyTrennzeichen = True
Me.txtSuche._Prozent = False
Me.txtSuche._ShortDateNew = False
Me.txtSuche._ShortDateOnly = False
Me.txtSuche._TimeOnly = False
Me.txtSuche._TimeOnly_Seconds = False
Me.txtSuche._value = Nothing
Me.txtSuche._Waehrung = False
Me.txtSuche._WaehrungZeichen = False
Me.txtSuche.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.txtSuche.ForeColor = System.Drawing.Color.Black
Me.txtSuche.Location = New System.Drawing.Point(663, 19)
Me.txtSuche.MaxLineLength = -1
Me.txtSuche.MaxLines_Warning = ""
Me.txtSuche.MaxLines_Warning_Label = Nothing
Me.txtSuche.Name = "txtSuche"
Me.txtSuche.Size = New System.Drawing.Size(314, 20)
Me.txtSuche.TabIndex = 34
'
'Label18
'
Me.Label18.AutoSize = True
Me.Label18.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label18.ForeColor = System.Drawing.Color.White
Me.Label18.Location = New System.Drawing.Point(660, 4)
Me.Label18.Name = "Label18"
Me.Label18.Size = New System.Drawing.Size(43, 13)
Me.Label18.TabIndex = 33
Me.Label18.Text = "Suche"
'
'lblWarning
'
Me.lblWarning.AutoSize = True
Me.lblWarning.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblWarning.ForeColor = System.Drawing.Color.Red
Me.lblWarning.Location = New System.Drawing.Point(166, 13)
Me.lblWarning.Name = "lblWarning"
Me.lblWarning.Size = New System.Drawing.Size(0, 13)
Me.lblWarning.TabIndex = 14
'
'Label4
'
Me.Label4.AutoSize = True
Me.Label4.Font = New System.Drawing.Font("Microsoft Sans Serif", 16.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label4.ForeColor = System.Drawing.Color.White
Me.Label4.Location = New System.Drawing.Point(10, 13)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(198, 26)
Me.Label4.TabIndex = 0
Me.Label4.Text = "FIBU Sachkonten"
'
'Label3
'
Me.Label3.AutoSize = True
Me.Label3.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label3.ForeColor = System.Drawing.Color.White
Me.Label3.Location = New System.Drawing.Point(1152, 3)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(37, 13)
Me.Label3.TabIndex = 5
Me.Label3.Text = "Firma"
'
'cbxFirma
'
Me.cbxFirma._allowedValuesFreiText = Nothing
Me.cbxFirma._allowFreiText = False
Me.cbxFirma._value = ""
Me.cbxFirma.DropDownWidth = 150
Me.cbxFirma.Enabled = False
Me.cbxFirma.FormattingEnabled = True
Me.cbxFirma.Location = New System.Drawing.Point(1155, 19)
Me.cbxFirma.Name = "cbxFirma"
Me.cbxFirma.Size = New System.Drawing.Size(128, 21)
Me.cbxFirma.TabIndex = 13
'
'dgvSachkonten
'
Me.dgvSachkonten.AKTUALISIERUNGS_INTERVALL = -1
Me.dgvSachkonten.AllowUserToAddRows = False
Me.dgvSachkonten.AllowUserToDeleteRows = False
Me.dgvSachkonten.BackgroundColor = System.Drawing.Color.White
Me.dgvSachkonten.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
Me.dgvSachkonten.Location = New System.Drawing.Point(0, 54)
Me.dgvSachkonten.Name = "dgvSachkonten"
Me.dgvSachkonten.Size = New System.Drawing.Size(1283, 588)
Me.dgvSachkonten.TabIndex = 104
'
'frmLeistundenFIBUKonten
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(1295, 727)
Me.Controls.Add(Me.mainPanel)
Me.Controls.Add(Me.btnAdd)
Me.Controls.Add(Me.btnDelete)
Me.Controls.Add(Me.pnlTop)
Me.Controls.Add(Me.dgvSachkonten)
Me.Name = "frmLeistundenFIBUKonten"
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.Text = "FIBU Konten"
Me.mainPanel.ResumeLayout(False)
Me.mainPanel.PerformLayout()
Me.pnlTop.ResumeLayout(False)
Me.pnlTop.PerformLayout()
CType(Me.dgvSachkonten, System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
End Sub
Friend WithEvents mainPanel As Panel
Friend WithEvents btnSave As Button
Friend WithEvents btnAdd As Button
Friend WithEvents btnDelete As Button
Friend WithEvents pnlTop As Panel
Friend WithEvents lblWarning As Label
Friend WithEvents Label4 As Label
Friend WithEvents Label3 As Label
Friend WithEvents cbxFirma As VERAG_PROG_ALLGEMEIN.MyComboBox
Friend WithEvents dgvSachkonten As VERAG_PROG_ALLGEMEIN.MyDatagridview
Friend WithEvents cboLeistung As VERAG_PROG_ALLGEMEIN.MyComboBox
Friend WithEvents Label2 As Label
Friend WithEvents txtSuche As VERAG_PROG_ALLGEMEIN.MyTextBox
Friend WithEvents Label18 As Label
Friend WithEvents lblWordcount As Label
Friend WithEvents Label9 As Label
Friend WithEvents txtInlandstpfl As VERAG_PROG_ALLGEMEIN.MyTextBox
Friend WithEvents txtDrittland As VERAG_PROG_ALLGEMEIN.MyTextBox
Friend WithEvents Label7 As Label
Friend WithEvents txtEUstfrei As VERAG_PROG_ALLGEMEIN.MyTextBox
Friend WithEvents Label6 As Label
Friend WithEvents txtEUstpfl As VERAG_PROG_ALLGEMEIN.MyTextBox
Friend WithEvents Label5 As Label
Friend WithEvents txtInlandstfrei As VERAG_PROG_ALLGEMEIN.MyTextBox
Friend WithEvents Label1 As Label
Friend WithEvents cbxLeistungSelected As VERAG_PROG_ALLGEMEIN.MyComboBox
Friend WithEvents Label8 As Label
End Class

View File

@@ -0,0 +1,120 @@
<?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>
</root>

View File

@@ -0,0 +1,280 @@
Imports System.Windows.Controls
Imports com.sun.org.apache.xalan.internal
Imports GrapeCity.ActiveReports.SectionReportModel
Imports Microsoft.Office.Interop
Imports VERAG_PROG_ALLGEMEIN
Public Class frmLeistundenFIBUKonten
Dim lfibu As New cLeistungFIBU
Dim editall As Boolean = False
Sub New(permission As Boolean)
InitializeComponent()
editall = permission
End Sub
Private Sub frmLeistundenFIBUKonten_Load(sender As Object, e As EventArgs) Handles MyBase.Load
cbxLeistungSelected.Items.Clear()
cbxLeistungSelected.fillWithSQL("SELECT [LeistungsNr] ,[LeistungsBez] FROM [Leistungen] ", True, "FMZOLL", True)
cboLeistung.Items.AddRange(cbxLeistungSelected.Items.Cast(Of VERAG_PROG_ALLGEMEIN.MyListItem).ToArray())
Dim listofFirmen = cFirmen.LOAD_LIST
cbxFirma.Items.Clear()
cbxFirma.fillWithSQL("SELECT Firma_ID, Firma_Bez FROM [tblFirma]", True, "FMZOLL", True)
cbxFirma.changeItem(VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA_ID)
cbxFirma.Enabled = editall
btnDelete.Enabled = editall
initDGVSachkonten(cbxFirma._value)
End Sub
Private Sub initDGVSachkonten(Optional firmaID As Integer = 0, Optional searchparam As String = "", Optional leistungsNr As Integer = 0)
lblWarning.Text = ""
Dim SQLString As String = "SELECT l.LeistungsNr, l.LeistungsBez, fibu.SachkontoInlandSteuerpflichtig, fibu.SachkontoInlandSteuerfrei, fibu.SachkontoEUSteuerpflichtig, fibu.SachkontoEUSteuerfrei, fibu.Sachkonto3Land, fibu.Firma_ID, fibu.letzteAenderungUser, fibu.letzteAenderung FROM [VERAG].[dbo].[LeistungenBUKonten] as FIBU inner join Leistungen as l on l.LeistungsNr = FIBU.LeistungsNr where 1 = 1"
Dim SQLWHere = ""
If firmaID > 0 Then
SQLWHere &= " AND FIBU.Firma_ID = " & firmaID & ""
End If
If searchparam <> "" Then
SQLWHere &= " AND (FIBU.SachkontoInlandSteuerpflichtig like '%" & searchparam & "%' OR FIBU.SachkontoInlandSteuerfrei like '%" & searchparam & "%' OR FIBU.SachkontoEUSteuerpflichtig like '%" & searchparam & "%' OR FIBU.SachkontoEUSteuerfrei like '%" & searchparam & "%' OR FIBU.Sachkonto3Land like '%" & searchparam & "%')"
End If
If leistungsNr > 0 Then
SQLWHere &= " AND (FIBU.LeistungsNr = " & leistungsNr & ")"
End If
dgvSachkonten.SET_SQL(SQLString & SQLWHere, "FMZOLL", ,)
dgvSachkonten.LOAD()
If dgvSachkonten.Columns.Count < 1 Then Exit Sub
With dgvSachkonten
.MultiSelect = False
.RowHeadersVisible = False
.ReadOnly = True
.SelectionMode = DataGridViewSelectionMode.FullRowSelect
.Columns("LeistungsNr").HeaderText = "LeistungsNr"
.Columns("LeistungsBez").HeaderText = "Bezeichnung"
.Columns("LeistungsBez").AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill
.Columns("SachkontoInlandSteuerpflichtig").Width = 100
.Columns("SachkontoInlandSteuerpflichtig").HeaderText = "Inland Stpfl."
.Columns("SachkontoInlandSteuerfrei").Width = 100
.Columns("SachkontoInlandSteuerfrei").HeaderText = "Inland Stfrei."
.Columns("SachkontoEUSteuerpflichtig").Width = 100
.Columns("SachkontoEUSteuerpflichtig").HeaderText = "EU Stpfl."
.Columns("SachkontoEUSteuerfrei").Width = 100
.Columns("SachkontoEUSteuerfrei").HeaderText = "EU Stfrei."
.Columns("Sachkonto3Land").Width = 100
.Columns("Sachkonto3Land").HeaderText = "Drittland"
.Columns("Firma_ID").HeaderText = "Firma"
.Columns("letzteAenderungUser").HeaderText = "letzte Änderung durch"
.Columns("letzteAenderung").HeaderText = "letzte Änderung"
If .RowCount = 0 Then Me.Cursor = Cursors.Default : Exit Sub
End With
For Each row As DataGridViewRow In dgvSachkonten.Rows
If row.Cells("Firma_ID").Value IsNot DBNull.Value AndAlso IsNumeric(row.Cells("Firma_ID").Value) Then
If CInt(row.Cells("Firma_ID").Value) > 0 Then
Dim tmpFirma = New VERAG_PROG_ALLGEMEIN.cFirmen(row.Cells("Firma_ID").Value)
End If
End If
Next
End Sub
Private Sub btnAdd_Click(sender As Object, e As EventArgs) Handles btnAdd.Click
If checkIfFirmaIsFilled(True) = False Then Exit Sub
If Not mainPanel.Enabled Then mainPanel.Enabled = True
For Each contr As Windows.Forms.Control In mainPanel.Controls
If (contr.GetType.FullName = "System.Windows.Forms.TextBox" Or contr.GetType.FullName = "VERAG_PROG_ALLGEMEIN.MyTextBox") Then contr.Text = ""
Next
cboLeistung.changeItem("")
End Sub
Private Sub btnDelete_Click(sender As Object, e As EventArgs) Handles btnDelete.Click
If dgvSachkonten.SelectedRows.Count > 0 Then
Dim lfibu As New cLeistungFIBU(dgvSachkonten.SelectedRows(0).Cells("LeistungsNr").Value, dgvSachkonten.SelectedRows(0).Cells("Firma_ID").Value)
If vbYes = MsgBox("Möchten Sie diesen Sachkontenzuweisung für LeistungsNr " & lfibu.LeistungsNr & " für Firma " & lfibu.Firma_ID & " wirklich löschen?", vbYesNo) Then
lfibu.DELETE()
initDGVSachkonten(cbxFirma._value)
End If
End If
End Sub
Private Function checkNrIsValid(LeistungsNrID As Integer) As Boolean
If dgvSachkonten.Rows.Count = 0 Then Return True
If checkIfFirmaIsFilled(False) = False Then Return False
For Each row As DataGridViewRow In dgvSachkonten.Rows
If Not IsDBNull(row.Cells("LeistungsNr").Value) AndAlso Not IsDBNull(row.Cells("Firma_ID").Value) Then
If row.Cells("LeistungsNr").Value = LeistungsNrID AndAlso row.Cells("Firma_ID").Value = cbxFirma._value Then
Return False
End If
End If
Next
Return True
End Function
Private Sub dgvSachkonten_SelectionChanged(sender As Object, e As EventArgs) Handles dgvSachkonten.SelectionChanged
Try
If dgvSachkonten.SelectedRows.Count < 1 Then
mainPanel.Enabled = False
Exit Sub
Else
mainPanel.Enabled = True
End If
lfibu = New cLeistungFIBU(dgvSachkonten.SelectedRows(0).Cells("LeistungsNr").Value, dgvSachkonten.SelectedRows(0).Cells("Firma_ID").Value)
txtInlandstpfl.Text = lfibu.SachkontoInlandSteuerpflichtig
txtInlandstfrei.Text = lfibu.SachkontoInlandSteuerfrei
txtEUstpfl.Text = lfibu.SachkontoEUSteuerpflichtig
txtEUstfrei.Text = lfibu.SachkontoEUSteuerfrei
txtDrittland.Text = lfibu.Sachkonto3Land
cboLeistung.changeItem(lfibu.LeistungsNr)
Catch ex As Exception
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name)
End Try
End Sub
Private Sub btnSave_Click(sender As Object, e As EventArgs) Handles btnSave.Click
Try
checkIfFirmaIsFilled(False)
Dim txtKS As New cLeistungFIBU()
If checkFields() = False Then Exit Sub
txtKS.LeistungsNr = cboLeistung._value
txtKS.SachkontoInlandSteuerpflichtig = txtInlandstpfl.Text
txtKS.SachkontoInlandSteuerfrei = txtInlandstfrei.Text
txtKS.SachkontoEUSteuerpflichtig = txtEUstpfl.Text
txtKS.SachkontoEUSteuerfrei = txtEUstfrei.Text
txtKS.Sachkonto3Land = txtDrittland.Text
txtKS.Firma_ID = cbxFirma._value
txtKS.letzteAenderung = DateTime.Now
txtKS.letzteAenderungUser = VERAG_PROG_ALLGEMEIN.cAllgemein.USRKURZNAME
txtKS.SAVE()
dgvSachkonten.GetOrder()
initDGVSachkonten(cbxFirma._value)
dgvSachkonten.SetOrder()
Catch ex As Exception
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name)
End Try
End Sub
Private Sub cbxFirma_SelectedValueChanged(sender As Object, e As EventArgs) Handles cbxFirma.SelectedValueChanged
Try
dgvSachkonten.GetOrder()
initDGVSachkonten(IIf(cbxFirma._value <> "", cbxFirma._value, -1), txtSuche.Text)
dgvSachkonten.SetOrder()
Catch ex As Exception
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name)
End Try
End Sub
Private Function checkIfFirmaIsFilled(initialSave As Boolean, Optional setWarning As Boolean = True)
If cbxFirma._value = "" Then
If ((dgvSachkonten.SelectedRows(0).Cells("Firma_ID").Value Is DBNull.Value Or dgvSachkonten.SelectedRows(0).Cells("Firma_ID").Value < 0) Or initialSave = True) Then 'And initialSave = False ???
If setWarning Then
lblWarning.Text = "Bitte Firma auswählen!"
Else
lblWarning.Text = ""
End If
Return False
End If
lblWarning.Text = ""
Return True
End If
Return True
End Function
Private Function checkFields() As Boolean
If cboLeistung._value <> "" AndAlso checkNrIsValid(cboLeistung._value) Then
lblWarning.Text = ""
Return True
Else
lblWarning.Text = "LeistungsNr setzen!"
Return False
End If
End Function
Private Sub txtSuche_KeyDown(sender As Object, e As KeyEventArgs) Handles txtSuche.KeyDown
If e.KeyCode = Keys.Enter Then
initDGVSachkonten(IIf(cbxFirma._value <> "", cbxFirma._value, -1), txtSuche.Text)
e.Handled = True
End If
End Sub
End Class