LeistungenFIBU, Abrechungsmaske, ZE-Buttons, creditsafe, bugfix PLOSE (bei Rechnungsausgang)
This commit is contained in:
@@ -743,8 +743,8 @@ Public Class cRechnungsausgang
|
||||
l.SteuerpflichtigerBetrag = l.Preis
|
||||
l.Preis = l.Preis
|
||||
Else
|
||||
Dim steuersatz = SQL.DLookup("Steuertabelle.[Steuersatz %] ", "[Kunden] inner join Steuertabelle on Steuertabelle.Steuerschlüssel=kunden.Steuerschlüssel", "KundenNr='" & Me.RechnungsKundenNr & "'",, "0")
|
||||
L.SteuerfreierBetrag = l.Preis + (l.Preis * steuersatz)
|
||||
Dim steuersatz = SQL.DLookup("Steuertabelle.[Steuersatz %] ", "[Kunden] inner join Steuertabelle on Steuertabelle.Steuerschlüssel=kunden.Steuerschlüssel", "KundenNr='" & Me.RechnungsKundenNr & "'", "FMZOLL", "0")
|
||||
l.SteuerfreierBetrag = l.Preis + (l.Preis * steuersatz)
|
||||
l.Preis = l.Preis + (l.Preis * steuersatz)
|
||||
End If
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ Public Class frmMitarbeitersuche
|
||||
Dim timas As New cTimasAPI("timas")
|
||||
Dim requestDone As Boolean = False
|
||||
Dim MA As cMitarbeiter = Nothing
|
||||
Dim online As Boolean = False
|
||||
|
||||
Sub New()
|
||||
|
||||
@@ -221,6 +222,7 @@ Public Class frmMitarbeitersuche
|
||||
pnlMotto.Visible = False
|
||||
pic.BackgroundImage = My.Resources.personGray_m
|
||||
picGeschlecht.Visible = False
|
||||
'pnlZeiten.Visible = False
|
||||
End Sub
|
||||
|
||||
Private Sub btnClose_Click(sender As Object, e As EventArgs) Handles btnClose.Click
|
||||
@@ -402,19 +404,34 @@ Public Class frmMitarbeitersuche
|
||||
|
||||
Else
|
||||
|
||||
Dim resultCode As Integer = IIf(cbxHomeoffice.Checked, 3, 0)
|
||||
|
||||
If MA.mit_nname.ToLower = "celan" Then 'aktuell Hardcoded, wenn Zeit ist dynamisch (per SQL-tbl)
|
||||
|
||||
Dim f As New frmZEButtons(art)
|
||||
f.ShowDialog()
|
||||
|
||||
If f.DialogResult = DialogResult.OK AndAlso f.resultCode >= 0 Then
|
||||
resultCode = f.resultCode
|
||||
Else
|
||||
Exit Sub
|
||||
End If
|
||||
End If
|
||||
|
||||
|
||||
'normales kommen/gehen
|
||||
Dim a As MsgBoxResult = MsgBox(IIf(cbxHomeoffice.Checked, "Homeoffice", "Büro") & vbNewLine & sender.text & " für " & VERAG_PROG_ALLGEMEIN.cAllgemein.USRKURZNAME & vbNewLine & Now.ToString(), vbYesNo)
|
||||
If a = vbYes Then
|
||||
Dim info
|
||||
timas.setTimeEntry(cAllgemein.MITARBEITER, Now, info, art, IIf(cbxHomeoffice.Checked, 3, 0))
|
||||
MsgBox(info)
|
||||
Thread.Sleep(2000) 'warten bis Eintrag in Timas-DB
|
||||
requestDone = False
|
||||
initTimasData()
|
||||
If a = vbYes Then
|
||||
Dim info
|
||||
timas.setTimeEntry(cAllgemein.MITARBEITER, Now, info, art, resultCode)
|
||||
MsgBox(info)
|
||||
Thread.Sleep(2000) 'warten bis Eintrag in Timas-DB
|
||||
requestDone = False
|
||||
initTimasData()
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
|
||||
End If
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
@@ -441,7 +458,7 @@ Public Class frmMitarbeitersuche
|
||||
End If
|
||||
lblStatusZE.Visible = True
|
||||
Dim checkEntry As Boolean = timas.getTimeEntries(MA.mit_timasId, dtZeiten,, requestDone)
|
||||
|
||||
online = checkEntry
|
||||
If requestDone Then
|
||||
If checkEntry Then
|
||||
'PictureBox9.Image = VERAG_PROG_ALLGEMEIN.My.Resources.Resources.uhr_green
|
||||
|
||||
241
VERAG_PROG_ALLGEMEIN/Mitarbeiterverzeichnis/frmZEButtons.Designer.vb
generated
Normal file
241
VERAG_PROG_ALLGEMEIN/Mitarbeiterverzeichnis/frmZEButtons.Designer.vb
generated
Normal file
@@ -0,0 +1,241 @@
|
||||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
||||
Partial Class frmZEButtons
|
||||
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.pnlButtons = New System.Windows.Forms.Panel()
|
||||
Me.btnVergGehen = New System.Windows.Forms.Button()
|
||||
Me.btnVergKommen = New System.Windows.Forms.Button()
|
||||
Me.btnFOGehen = New System.Windows.Forms.Button()
|
||||
Me.btnFOKommen = New System.Windows.Forms.Button()
|
||||
Me.Label1 = New System.Windows.Forms.Label()
|
||||
Me.lblkommen = New System.Windows.Forms.Label()
|
||||
Me.btnATTGehen = New System.Windows.Forms.Button()
|
||||
Me.btnATTKommen = New System.Windows.Forms.Button()
|
||||
Me.btnIMEXGehen = New System.Windows.Forms.Button()
|
||||
Me.btnIMEXKommen = New System.Windows.Forms.Button()
|
||||
Me.pnlButtons.SuspendLayout()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'pnlButtons
|
||||
'
|
||||
Me.pnlButtons.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
|
||||
Me.pnlButtons.BackColor = System.Drawing.Color.Cornsilk
|
||||
Me.pnlButtons.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
|
||||
Me.pnlButtons.Controls.Add(Me.btnVergGehen)
|
||||
Me.pnlButtons.Controls.Add(Me.btnVergKommen)
|
||||
Me.pnlButtons.Controls.Add(Me.btnFOGehen)
|
||||
Me.pnlButtons.Controls.Add(Me.btnFOKommen)
|
||||
Me.pnlButtons.Controls.Add(Me.Label1)
|
||||
Me.pnlButtons.Controls.Add(Me.lblkommen)
|
||||
Me.pnlButtons.Controls.Add(Me.btnATTGehen)
|
||||
Me.pnlButtons.Controls.Add(Me.btnATTKommen)
|
||||
Me.pnlButtons.Controls.Add(Me.btnIMEXGehen)
|
||||
Me.pnlButtons.Controls.Add(Me.btnIMEXKommen)
|
||||
Me.pnlButtons.Location = New System.Drawing.Point(1, 1)
|
||||
Me.pnlButtons.Name = "pnlButtons"
|
||||
Me.pnlButtons.Size = New System.Drawing.Size(235, 229)
|
||||
Me.pnlButtons.TabIndex = 23
|
||||
'
|
||||
'btnVergGehen
|
||||
'
|
||||
Me.btnVergGehen.BackColor = System.Drawing.Color.White
|
||||
Me.btnVergGehen.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
|
||||
Me.btnVergGehen.DialogResult = System.Windows.Forms.DialogResult.OK
|
||||
Me.btnVergGehen.Enabled = False
|
||||
Me.btnVergGehen.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.btnVergGehen.Image = Global.VERAG_PROG_ALLGEMEIN.My.Resources.Resources.ze_gehen
|
||||
Me.btnVergGehen.ImageAlign = System.Drawing.ContentAlignment.TopRight
|
||||
Me.btnVergGehen.Location = New System.Drawing.Point(132, 168)
|
||||
Me.btnVergGehen.Name = "btnVergGehen"
|
||||
Me.btnVergGehen.Size = New System.Drawing.Size(90, 45)
|
||||
Me.btnVergGehen.TabIndex = 132
|
||||
Me.btnVergGehen.Text = "VERAG"
|
||||
Me.btnVergGehen.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
|
||||
Me.btnVergGehen.UseVisualStyleBackColor = False
|
||||
'
|
||||
'btnVergKommen
|
||||
'
|
||||
Me.btnVergKommen.BackColor = System.Drawing.Color.White
|
||||
Me.btnVergKommen.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
|
||||
Me.btnVergKommen.DialogResult = System.Windows.Forms.DialogResult.OK
|
||||
Me.btnVergKommen.Enabled = False
|
||||
Me.btnVergKommen.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.btnVergKommen.Image = Global.VERAG_PROG_ALLGEMEIN.My.Resources.Resources.ze_kommen
|
||||
Me.btnVergKommen.ImageAlign = System.Drawing.ContentAlignment.TopLeft
|
||||
Me.btnVergKommen.Location = New System.Drawing.Point(20, 168)
|
||||
Me.btnVergKommen.Name = "btnVergKommen"
|
||||
Me.btnVergKommen.Size = New System.Drawing.Size(106, 45)
|
||||
Me.btnVergKommen.TabIndex = 131
|
||||
Me.btnVergKommen.Text = "VERAG"
|
||||
Me.btnVergKommen.TextAlign = System.Drawing.ContentAlignment.MiddleRight
|
||||
Me.btnVergKommen.UseVisualStyleBackColor = False
|
||||
'
|
||||
'btnFOGehen
|
||||
'
|
||||
Me.btnFOGehen.BackColor = System.Drawing.Color.White
|
||||
Me.btnFOGehen.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
|
||||
Me.btnFOGehen.DialogResult = System.Windows.Forms.DialogResult.OK
|
||||
Me.btnFOGehen.Enabled = False
|
||||
Me.btnFOGehen.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.btnFOGehen.Image = Global.VERAG_PROG_ALLGEMEIN.My.Resources.Resources.ze_gehen
|
||||
Me.btnFOGehen.ImageAlign = System.Drawing.ContentAlignment.TopRight
|
||||
Me.btnFOGehen.Location = New System.Drawing.Point(132, 117)
|
||||
Me.btnFOGehen.Name = "btnFOGehen"
|
||||
Me.btnFOGehen.Size = New System.Drawing.Size(90, 45)
|
||||
Me.btnFOGehen.TabIndex = 130
|
||||
Me.btnFOGehen.Text = "FO"
|
||||
Me.btnFOGehen.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
|
||||
Me.btnFOGehen.UseVisualStyleBackColor = False
|
||||
'
|
||||
'btnFOKommen
|
||||
'
|
||||
Me.btnFOKommen.BackColor = System.Drawing.Color.White
|
||||
Me.btnFOKommen.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
|
||||
Me.btnFOKommen.DialogResult = System.Windows.Forms.DialogResult.OK
|
||||
Me.btnFOKommen.Enabled = False
|
||||
Me.btnFOKommen.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.btnFOKommen.Image = Global.VERAG_PROG_ALLGEMEIN.My.Resources.Resources.ze_kommen
|
||||
Me.btnFOKommen.ImageAlign = System.Drawing.ContentAlignment.TopLeft
|
||||
Me.btnFOKommen.Location = New System.Drawing.Point(20, 117)
|
||||
Me.btnFOKommen.Name = "btnFOKommen"
|
||||
Me.btnFOKommen.Size = New System.Drawing.Size(106, 45)
|
||||
Me.btnFOKommen.TabIndex = 129
|
||||
Me.btnFOKommen.Text = "FO"
|
||||
Me.btnFOKommen.TextAlign = System.Drawing.ContentAlignment.MiddleRight
|
||||
Me.btnFOKommen.UseVisualStyleBackColor = False
|
||||
'
|
||||
'Label1
|
||||
'
|
||||
Me.Label1.AutoSize = True
|
||||
Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||
Me.Label1.Location = New System.Drawing.Point(145, -1)
|
||||
Me.Label1.Name = "Label1"
|
||||
Me.Label1.Size = New System.Drawing.Size(50, 13)
|
||||
Me.Label1.TabIndex = 128
|
||||
Me.Label1.Text = "GEHEN"
|
||||
'
|
||||
'lblkommen
|
||||
'
|
||||
Me.lblkommen.AutoSize = True
|
||||
Me.lblkommen.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||
Me.lblkommen.Location = New System.Drawing.Point(43, -1)
|
||||
Me.lblkommen.Name = "lblkommen"
|
||||
Me.lblkommen.Size = New System.Drawing.Size(61, 13)
|
||||
Me.lblkommen.TabIndex = 127
|
||||
Me.lblkommen.Text = "KOMMEN"
|
||||
'
|
||||
'btnATTGehen
|
||||
'
|
||||
Me.btnATTGehen.BackColor = System.Drawing.Color.White
|
||||
Me.btnATTGehen.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
|
||||
Me.btnATTGehen.DialogResult = System.Windows.Forms.DialogResult.OK
|
||||
Me.btnATTGehen.Enabled = False
|
||||
Me.btnATTGehen.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.btnATTGehen.Image = Global.VERAG_PROG_ALLGEMEIN.My.Resources.Resources.ze_gehen
|
||||
Me.btnATTGehen.ImageAlign = System.Drawing.ContentAlignment.TopRight
|
||||
Me.btnATTGehen.Location = New System.Drawing.Point(132, 66)
|
||||
Me.btnATTGehen.Name = "btnATTGehen"
|
||||
Me.btnATTGehen.Size = New System.Drawing.Size(90, 45)
|
||||
Me.btnATTGehen.TabIndex = 126
|
||||
Me.btnATTGehen.Text = "ATILLA"
|
||||
Me.btnATTGehen.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
|
||||
Me.btnATTGehen.UseVisualStyleBackColor = False
|
||||
'
|
||||
'btnATTKommen
|
||||
'
|
||||
Me.btnATTKommen.BackColor = System.Drawing.Color.White
|
||||
Me.btnATTKommen.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
|
||||
Me.btnATTKommen.DialogResult = System.Windows.Forms.DialogResult.OK
|
||||
Me.btnATTKommen.Enabled = False
|
||||
Me.btnATTKommen.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.btnATTKommen.Image = Global.VERAG_PROG_ALLGEMEIN.My.Resources.Resources.ze_kommen
|
||||
Me.btnATTKommen.ImageAlign = System.Drawing.ContentAlignment.TopLeft
|
||||
Me.btnATTKommen.Location = New System.Drawing.Point(20, 66)
|
||||
Me.btnATTKommen.Name = "btnATTKommen"
|
||||
Me.btnATTKommen.Size = New System.Drawing.Size(106, 45)
|
||||
Me.btnATTKommen.TabIndex = 125
|
||||
Me.btnATTKommen.Text = "ATILLA"
|
||||
Me.btnATTKommen.TextAlign = System.Drawing.ContentAlignment.MiddleRight
|
||||
Me.btnATTKommen.UseVisualStyleBackColor = False
|
||||
'
|
||||
'btnIMEXGehen
|
||||
'
|
||||
Me.btnIMEXGehen.BackColor = System.Drawing.Color.White
|
||||
Me.btnIMEXGehen.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
|
||||
Me.btnIMEXGehen.DialogResult = System.Windows.Forms.DialogResult.OK
|
||||
Me.btnIMEXGehen.Enabled = False
|
||||
Me.btnIMEXGehen.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.btnIMEXGehen.Image = Global.VERAG_PROG_ALLGEMEIN.My.Resources.Resources.ze_gehen
|
||||
Me.btnIMEXGehen.ImageAlign = System.Drawing.ContentAlignment.TopRight
|
||||
Me.btnIMEXGehen.Location = New System.Drawing.Point(132, 15)
|
||||
Me.btnIMEXGehen.Name = "btnIMEXGehen"
|
||||
Me.btnIMEXGehen.Size = New System.Drawing.Size(90, 45)
|
||||
Me.btnIMEXGehen.TabIndex = 124
|
||||
Me.btnIMEXGehen.Text = "IMEX"
|
||||
Me.btnIMEXGehen.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
|
||||
Me.btnIMEXGehen.UseVisualStyleBackColor = False
|
||||
'
|
||||
'btnIMEXKommen
|
||||
'
|
||||
Me.btnIMEXKommen.BackColor = System.Drawing.Color.White
|
||||
Me.btnIMEXKommen.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
|
||||
Me.btnIMEXKommen.DialogResult = System.Windows.Forms.DialogResult.OK
|
||||
Me.btnIMEXKommen.Enabled = False
|
||||
Me.btnIMEXKommen.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.btnIMEXKommen.Image = Global.VERAG_PROG_ALLGEMEIN.My.Resources.Resources.ze_kommen
|
||||
Me.btnIMEXKommen.ImageAlign = System.Drawing.ContentAlignment.TopLeft
|
||||
Me.btnIMEXKommen.Location = New System.Drawing.Point(20, 15)
|
||||
Me.btnIMEXKommen.Name = "btnIMEXKommen"
|
||||
Me.btnIMEXKommen.Size = New System.Drawing.Size(106, 45)
|
||||
Me.btnIMEXKommen.TabIndex = 123
|
||||
Me.btnIMEXKommen.Text = "IMEX"
|
||||
Me.btnIMEXKommen.TextAlign = System.Drawing.ContentAlignment.MiddleRight
|
||||
Me.btnIMEXKommen.UseVisualStyleBackColor = False
|
||||
'
|
||||
'frmZEButtons
|
||||
'
|
||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||
Me.ClientSize = New System.Drawing.Size(236, 232)
|
||||
Me.Controls.Add(Me.pnlButtons)
|
||||
Me.Name = "frmZEButtons"
|
||||
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||
Me.Text = "Zeiterfassung"
|
||||
Me.pnlButtons.ResumeLayout(False)
|
||||
Me.pnlButtons.PerformLayout()
|
||||
Me.ResumeLayout(False)
|
||||
|
||||
End Sub
|
||||
|
||||
Friend WithEvents pnlButtons As Windows.Forms.Panel
|
||||
Friend WithEvents btnIMEXGehen As Windows.Forms.Button
|
||||
Friend WithEvents btnIMEXKommen As Windows.Forms.Button
|
||||
Friend WithEvents btnATTKommen As Windows.Forms.Button
|
||||
Friend WithEvents Label1 As Windows.Forms.Label
|
||||
Friend WithEvents lblkommen As Windows.Forms.Label
|
||||
Friend WithEvents btnATTGehen As Windows.Forms.Button
|
||||
Friend WithEvents btnVergGehen As Windows.Forms.Button
|
||||
Friend WithEvents btnVergKommen As Windows.Forms.Button
|
||||
Friend WithEvents btnFOGehen As Windows.Forms.Button
|
||||
Friend WithEvents btnFOKommen As Windows.Forms.Button
|
||||
End Class
|
||||
120
VERAG_PROG_ALLGEMEIN/Mitarbeiterverzeichnis/frmZEButtons.resx
Normal file
120
VERAG_PROG_ALLGEMEIN/Mitarbeiterverzeichnis/frmZEButtons.resx
Normal 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>
|
||||
43
VERAG_PROG_ALLGEMEIN/Mitarbeiterverzeichnis/frmZEButtons.vb
Normal file
43
VERAG_PROG_ALLGEMEIN/Mitarbeiterverzeichnis/frmZEButtons.vb
Normal file
@@ -0,0 +1,43 @@
|
||||
Public Class frmZEButtons
|
||||
|
||||
Dim art As String
|
||||
Public resultCode As Integer = -1
|
||||
|
||||
Sub New(art As String)
|
||||
Me.art = art
|
||||
InitializeComponent()
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub btnZEKommen_Click(sender As Object, e As EventArgs) Handles btnIMEXKommen.Click, btnIMEXGehen.Click, btnATTGehen.Click, btnATTKommen.Click, btnVergGehen.Click, btnVergKommen.Click, btnFOGehen.Click, btnFOKommen.Click
|
||||
Select Case sender.name
|
||||
Case "btnIMEXKommen" : resultCode = 19
|
||||
Case "btnIMEXGehen" : resultCode = 19
|
||||
Case "btnATTKommen" : resultCode = 18
|
||||
Case "btnATTGehen" : resultCode = 18
|
||||
Case "btnVergKommen" : resultCode = 0
|
||||
Case "btnVergGehen" : resultCode = 0
|
||||
Case "btnFOKommen" : resultCode = 20
|
||||
Case "btnFOGehen" : resultCode = 20
|
||||
End Select
|
||||
End Sub
|
||||
|
||||
Private Sub frmZEButtons_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||
|
||||
Select Case art
|
||||
Case "in"
|
||||
btnIMEXKommen.Enabled = True
|
||||
btnATTKommen.Enabled = True
|
||||
btnFOKommen.Enabled = True
|
||||
btnVergKommen.Enabled = True
|
||||
Case "out"
|
||||
btnIMEXGehen.Enabled = True
|
||||
btnATTGehen.Enabled = True
|
||||
btnFOGehen.Enabled = True
|
||||
btnVergGehen.Enabled = True
|
||||
Case Else
|
||||
|
||||
End Select
|
||||
|
||||
End Sub
|
||||
End Class
|
||||
@@ -298,6 +298,75 @@ Public Class cCreditSafeAPI
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
Shared Function getCompanieEvents(company As Company, ByRef dataTable As DataTable) As String
|
||||
|
||||
VERAG_PROG_ALLGEMEIN.cChilkat_Helper.UnlockCilkat()
|
||||
|
||||
Dim failureDesc As String
|
||||
Dim myUrl As String = API_STRING & "/v1/monitoring/companies/" & company.creditSafeId & "/events"
|
||||
Dim jsonRespString = SendGetRequestWithAuthHeader(myUrl, company, "application/json", "GET", token, failureDesc)
|
||||
|
||||
|
||||
Dim json As New Chilkat.JsonObject
|
||||
Dim success As Boolean = json.Load(jsonRespString)
|
||||
If (success <> True) Then
|
||||
Debug.WriteLine(json.LastErrorText)
|
||||
Return "Verbindungsfehler"
|
||||
End If
|
||||
|
||||
Dim num As Integer = json.SizeOfArray("data")
|
||||
If num = 0 Then
|
||||
Return json.StringOf("totalCount")
|
||||
End If
|
||||
|
||||
Dim companieData As Chilkat.JsonArray = json.ArrayOf("data")
|
||||
If (json.LastMethodSuccess = False) Then
|
||||
Return "data not found."
|
||||
End If
|
||||
|
||||
Dim numCompanies As Integer = companieData.Size
|
||||
|
||||
For i = 0 To 1
|
||||
|
||||
|
||||
Dim j As Integer = 0
|
||||
While j < numCompanies
|
||||
|
||||
Dim compObj As Chilkat.JsonObject = companieData.ObjectAt(j)
|
||||
|
||||
Dim index = companieData.FindString("eventId", False)
|
||||
|
||||
Dim dateTime As New Chilkat.CkDateTime
|
||||
Dim dt As New Chilkat.DtObj
|
||||
Dim getAsLocal As Boolean = False
|
||||
|
||||
success = compObj.DateOf("eventDate", dateTime)
|
||||
success = compObj.DateOf("createdDate", dateTime)
|
||||
Debug.WriteLine(dateTime.GetAsTimestamp(getAsLocal))
|
||||
|
||||
|
||||
Dim R As DataRow = dataTable.NewRow
|
||||
R("eventId") = compObj.StringOf("eventId")
|
||||
R("companyId") = compObj.StringOf("companyId")
|
||||
R("portfolioId") = compObj.StringOf("portfolioId")
|
||||
R("ruleName") = compObj.StringOf("ruleName")
|
||||
R("localEventCode") = compObj.StringOf("localEventCode")
|
||||
R("globalEventCode") = compObj.StringOf("globalEventCode")
|
||||
R("newValue") = compObj.StringOf("newValue")
|
||||
R("oldValue") = compObj.StringOf("oldValue")
|
||||
R("eventDate") = dateTime.GetAsTimestamp(getAsLocal)
|
||||
R("createdDate") = dateTime.GetAsTimestamp(getAsLocal)
|
||||
dataTable.Rows.Add(R)
|
||||
|
||||
j = j + 1
|
||||
End While
|
||||
Next
|
||||
|
||||
Return "Anzahl gefundener Datensätze: " & numCompanies
|
||||
|
||||
End Function
|
||||
|
||||
Shared Function getReport(ByRef company As Company, withPDF As Boolean) As String 'Shared Function getReport(ByRef company As Company, withPDF As Boolean, ByRef bytes As Byte()) As String
|
||||
Dim failureDesc As String = ""
|
||||
Dim myUrl As String = API_STRING & "/v1/companies/" & company.creditSafeId & "/"
|
||||
|
||||
@@ -400,6 +400,12 @@
|
||||
<Compile Include="Mitarbeiterverzeichnis\frmUeberstundenliste.vb">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Mitarbeiterverzeichnis\frmZEButtons.Designer.vb">
|
||||
<DependentUpon>frmZEButtons.vb</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Mitarbeiterverzeichnis\frmZEButtons.vb">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="My Project\Resources.Designer.vb">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
@@ -794,6 +800,9 @@
|
||||
<EmbeddedResource Include="Mitarbeiterverzeichnis\frmUeberstundenliste.resx">
|
||||
<DependentUpon>frmUeberstundenliste.vb</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Mitarbeiterverzeichnis\frmZEButtons.resx">
|
||||
<DependentUpon>frmZEButtons.vb</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="My Project\Resources.resx">
|
||||
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
|
||||
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
||||
|
||||
Reference in New Issue
Block a user