MDM Auswertung, Fakt, etc.
This commit is contained in:
15
SDL/mdm/usrCntlMDMAuswertungen.Designer.vb
generated
15
SDL/mdm/usrCntlMDMAuswertungen.Designer.vb
generated
@@ -189,6 +189,7 @@ Partial Class usrCntlMDMAuswertungen
|
||||
Me.btnContractdaten = New System.Windows.Forms.Button()
|
||||
Me.Button15 = New System.Windows.Forms.Button()
|
||||
Me.pnl = New System.Windows.Forms.Panel()
|
||||
Me.cbxExcel = New System.Windows.Forms.CheckBox()
|
||||
Me.GroupBox1.SuspendLayout()
|
||||
Me.GroupBox2.SuspendLayout()
|
||||
CType(Me.pic, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
@@ -1839,6 +1840,7 @@ Partial Class usrCntlMDMAuswertungen
|
||||
'
|
||||
'GroupBox17
|
||||
'
|
||||
Me.GroupBox17.Controls.Add(Me.cbxExcel)
|
||||
Me.GroupBox17.Controls.Add(Me.Label55)
|
||||
Me.GroupBox17.Controls.Add(Me.Button16)
|
||||
Me.GroupBox17.Location = New System.Drawing.Point(6, 367)
|
||||
@@ -2068,6 +2070,18 @@ Partial Class usrCntlMDMAuswertungen
|
||||
Me.pnl.Size = New System.Drawing.Size(1057, 54)
|
||||
Me.pnl.TabIndex = 26
|
||||
'
|
||||
'cbxExcel
|
||||
'
|
||||
Me.cbxExcel.AutoSize = True
|
||||
Me.cbxExcel.Checked = True
|
||||
Me.cbxExcel.CheckState = System.Windows.Forms.CheckState.Checked
|
||||
Me.cbxExcel.Location = New System.Drawing.Point(150, 36)
|
||||
Me.cbxExcel.Name = "cbxExcel"
|
||||
Me.cbxExcel.Size = New System.Drawing.Size(68, 17)
|
||||
Me.cbxExcel.TabIndex = 56
|
||||
Me.cbxExcel.Text = "als Excel"
|
||||
Me.cbxExcel.UseVisualStyleBackColor = True
|
||||
'
|
||||
'usrCntlMDMAuswertungen
|
||||
'
|
||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||
@@ -2306,4 +2320,5 @@ Partial Class usrCntlMDMAuswertungen
|
||||
Friend WithEvents PictureBox6 As PictureBox
|
||||
Friend WithEvents Label63 As Label
|
||||
Friend WithEvents Button19 As Button
|
||||
Friend WithEvents cbxExcel As CheckBox
|
||||
End Class
|
||||
|
||||
@@ -1342,93 +1342,28 @@ Public Class usrCntlMDMAuswertungen
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
dgv.DataSource = dt
|
||||
If cbxExcel.Checked Then
|
||||
|
||||
VERAG_PROG_ALLGEMEIN.cProgramFunctions.genExcelFromDT_NEW(dt)
|
||||
Else
|
||||
|
||||
dgv.DataSource = dt
|
||||
|
||||
If dgv IsNot Nothing Then
|
||||
frm.Size = New Size(1400, 1000)
|
||||
dgv.Size = New Size(frm.Size.Width - 50, frm.Size.Height - 50)
|
||||
dgv.Dock = DockStyle.Fill
|
||||
dgv.Anchor = AnchorStyles.Left
|
||||
dgv.Anchor = AnchorStyles.Top
|
||||
dgv.ReadOnly = True
|
||||
frm.Controls.Add(dgv)
|
||||
frm.StartPosition = FormStartPosition.CenterScreen
|
||||
frm.ShowDialog()
|
||||
End If
|
||||
|
||||
|
||||
If dgv IsNot Nothing Then
|
||||
frm.Size = New Size(1400, 1000)
|
||||
dgv.Size = New Size(frm.Size.Width - 50, frm.Size.Height - 50)
|
||||
dgv.Dock = DockStyle.Fill
|
||||
dgv.Anchor = AnchorStyles.Left
|
||||
dgv.Anchor = AnchorStyles.Top
|
||||
dgv.ReadOnly = True
|
||||
frm.Controls.Add(dgv)
|
||||
frm.StartPosition = FormStartPosition.CenterScreen
|
||||
frm.ShowDialog()
|
||||
End If
|
||||
|
||||
|
||||
|
||||
'Dim print As New frmPrintLayout
|
||||
'print.Text = "ASFINAG"
|
||||
|
||||
'Dim rpt As New rptASFINAG_TransaktionenSumary
|
||||
|
||||
'rpt.DataSource = dt
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
'Dim sum = 0
|
||||
'rpt.lblUeberschrift.Text = "ASFINAG Transaktionssummen " & CDate(dat_Sum_Bis.Value.ToShortDateString)
|
||||
'rpt.lblSachbearbeiter.Text = VERAG_PROG_ALLGEMEIN.cAllgemein.USRNAME
|
||||
|
||||
'rpt.Label10.Visible = False
|
||||
'Label1.Text = "Dateiname"
|
||||
'Label8.Text = "Erstellungsdatum"
|
||||
''Dim cnt As Integer = 0
|
||||
'rpt.lblDat.Text = Now.ToLongDateString
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
'Dim sumNetto As Double = 0
|
||||
'Dim sumMWST As Double = 0
|
||||
'Dim sumBrutto As Double = 0
|
||||
|
||||
'Dim sumperKdNrNetto As Double = 0
|
||||
'Dim sumperKdNrMWST As Double = 0
|
||||
'Dim sumperKdNrBrutto As Double = 0
|
||||
|
||||
|
||||
'AddHandler rpt.Detail.Format, Sub()
|
||||
|
||||
|
||||
' rpt.lblKundennr.Text = SQL.isDbnullEmpty(rpt.Fields.Item("PKFileName").Value, "")
|
||||
' rpt.lblName1.Text = SQL.isDbnullEmpty(rpt.Fields.Item("FileCreationDate").Value, "")
|
||||
' rpt.lblKartennr.Text = SQL.isDbnullEmpty(rpt.Fields.Item("Abrechnungsdatum").Value, "")
|
||||
|
||||
' rpt.lblNetto.Text = SQL.isDbnullEmptyDbl(rpt.Fields.Item("Nettobetrag").Value, 2, "")
|
||||
' rpt.lblMWST.Text = SQL.isDbnullEmptyDbl(rpt.Fields.Item("Umsatzsteuer").Value, 2, "")
|
||||
' rpt.lblBrutto.Text = SQL.isDbnullEmptyDbl(rpt.Fields.Item("Bruttobetrag").Value, 2, "")
|
||||
|
||||
|
||||
' rpt.lblSumNet.Visible = False
|
||||
' rpt.lblSumVat.Visible = False
|
||||
' rpt.lblSumBrt.Visible = False
|
||||
|
||||
' sumNetto += SQL.isDbnullEmptyDbl(rpt.Fields.Item("Nettobetrag").Value, 4, 0)
|
||||
' sumMWST += SQL.isDbnullEmptyDbl(rpt.Fields.Item("Umsatzsteuer").Value, 4, 0)
|
||||
' sumBrutto += SQL.isDbnullEmptyDbl(rpt.Fields.Item("Bruttobetrag").Value, 4, 0)
|
||||
|
||||
|
||||
' End Sub
|
||||
|
||||
|
||||
'AddHandler rpt.ReportFooter1.Format, Sub()
|
||||
|
||||
' rpt.lblSumNetto.Text = sumNetto.ToString("N2")
|
||||
' rpt.lblSumMwst.Text = sumMWST.ToString("N2")
|
||||
' rpt.lblSumBrutto.Text = sumBrutto.ToString("N2")
|
||||
|
||||
' End Sub
|
||||
|
||||
'print.Viewer.LoadDocument(rpt)
|
||||
'print.Viewer.ViewType = GrapeCity.Viewer.Common.Model.ViewType.Continuous
|
||||
'print.Show()
|
||||
|
||||
|
||||
Catch ex As System.Exception
|
||||
|
||||
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name)
|
||||
|
||||
@@ -1583,7 +1583,7 @@ Public Class usrcntlFremdrechnungen
|
||||
Case "UTA"
|
||||
Dim DS_Import As New VERAG_PROG_ALLGEMEIN.cDATENSERVER("MDM", "MDM_DATEN", aktLieferant & "_MANUELL", Now.Year, interneKundenNr, interneKundenNr & "_" & ReNr & "_" & LieferlandISO2)
|
||||
|
||||
If DS_Import.uploadDataToDATENSERVERFileDialog(, ".pdf", , "PDF") <> "" Then
|
||||
If DS_Import.uploadDataToDATENSERVERFileDialog(, ".pdf", , "PDF") Then
|
||||
SQL.doSQL("Update [tblUTAImportNew] SET [daId]=" & DS_Import.da_id & ", daIdgesetztDatum = getdate(), PDFsetmanually = getdate() where Rechnungsnummer_pro_Lieferland = '" & ReNr & "' AND cast(Rechnungsdatum as Date) = '" & CDate(ReDat).ToShortDateString & "' AND Kundennummer =" & KundenNr & " and Lieferland_ISO2 ='" & LieferlandISO2 & "' and daId is null", "FMZOLL")
|
||||
MsgBox("Dokument gesetzt! -> " & ReNr & " " & CDate(ReDat).ToShortDateString)
|
||||
SET_SDL(aktLieferant)
|
||||
|
||||
Reference in New Issue
Block a user