neu
This commit is contained in:
56
Aviso/Auswertung/rptStat_VERIMEX_AbklTR.Designer.vb
generated
56
Aviso/Auswertung/rptStat_VERIMEX_AbklTR.Designer.vb
generated
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -46,7 +46,7 @@ Public Class usrctlStatVERIMEX
|
||||
End Select
|
||||
|
||||
With dgvAbfertigungTR
|
||||
Dim sqlstr = "SELECT mit_vname + ' ' + mit_nname as Mitarbeiter ,sum(tblSnd_anzahlHandling) as Sendungen ,count(distinct(avisoid)) as LKW
|
||||
Dim sqlstr = "SELECT mit_vname + ' ' + mit_nname as Mitarbeiter ,sum(tblSnd_anzahlHandling) as Versandscheine ,sum(tblSnd_anzahlHandlingPos) as Positionen ,count(distinct(avisoid)) as LKW
|
||||
FROM [tblSendungen] inner join Aviso on AvisoID = tblSnd_AvisoID inner join admin.dbo.tblMitarbeiter on mit_id=tblSnd_AbfertigungTR_MA
|
||||
" & innerJoinFiliale & "
|
||||
where cast(tblSnd_AbfertigungTR as date) BETWEEN '" & datAbfStatVon.Value & "' and '" & datAbfStatBis.Value & "' and tblSnd_AbfertigungTR_MA is not null
|
||||
@@ -264,27 +264,33 @@ Public Class usrctlStatVERIMEX
|
||||
'Dim cnt As Integer = 0
|
||||
rpt.lblDat.Text = Now.ToLongDateString
|
||||
Dim sumSnd As Integer = 0
|
||||
Dim sumPos As Integer = 0
|
||||
Dim sumLKW As Integer = 0
|
||||
|
||||
|
||||
|
||||
AddHandler rpt.Detail.Format, Sub()
|
||||
'rpt.lblVon.Text = CDate(rpt.Fields.Item("von").Value).ToShortDateString
|
||||
'rpt.lblBis.Text = CDate(rpt.Fields.Item("bis").Value).ToShortDateString
|
||||
rpt.lblAnzSnd.Text = rpt.Fields.Item("Sendungen").Value
|
||||
rpt.Label2.Text = rpt.Fields.Item("Positionen").Value
|
||||
rpt.lblAnzSnd.Text = rpt.Fields.Item("Versandscheine").Value
|
||||
rpt.lblAnzLKW.Text = rpt.Fields.Item("LKW").Value
|
||||
|
||||
rpt.lblMitarbeiter.Text = rpt.Fields.Item("Mitarbeiter").Value
|
||||
|
||||
sumSnd += CInt(rpt.Fields.Item("Sendungen").Value)
|
||||
sumPos += CInt(rpt.Fields.Item("Positionen").Value)
|
||||
sumSnd += CInt(rpt.Fields.Item("Versandscheine").Value)
|
||||
sumLKW += CInt(rpt.Fields.Item("LKW").Value)
|
||||
End Sub
|
||||
AddHandler rpt.GroupHeader1.Format, Sub()
|
||||
' If CheckBox1.Checked Then rpt.lblFiliale.Text = SQL.getValueTxtBySql("SELECT CAST(FilialenNr as varchar (4)) + ' ' + Grenzstelle FROM filialen WHERE FilialenNr='" & rpt.Fields.Item("FilialenNr").Value & "'", "FMZOLL")
|
||||
sumPos = 0
|
||||
sumSnd = 0
|
||||
sumLKW = 0
|
||||
End Sub
|
||||
AddHandler rpt.GroupFooter1.Format, Sub()
|
||||
rpt.lblAnzSndSum.Text = sumSnd
|
||||
rpt.lblAnzPosSum.Text = sumPos
|
||||
rpt.lblAnzLKWSum.Text = sumLKW
|
||||
End Sub
|
||||
|
||||
|
||||
Reference in New Issue
Block a user