dossier_view.pt : ajout documents attachés

This commit is contained in:
2018-12-01 14:36:06 +01:00
parent 811f47aea2
commit 99324f02c8
456 changed files with 64685 additions and 3 deletions

View File

@@ -0,0 +1,97 @@
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class FrmEditions
Inherits System.Windows.Forms.Form
'Form remplace la méthode Dispose pour nettoyer la liste des composants.
<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
'Requise par le Concepteur Windows Form
Private components As System.ComponentModel.IContainer
'REMARQUE : la procédure suivante est requise par le Concepteur Windows Form
'Elle peut être modifiée à l'aide du Concepteur Windows Form.
'Ne la modifiez pas à l'aide de l'éditeur de code.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.LV_ETATS = New System.Windows.Forms.ListView()
Me.intitule = CType(New System.Windows.Forms.ColumnHeader(), System.Windows.Forms.ColumnHeader)
Me.nom = CType(New System.Windows.Forms.ColumnHeader(), System.Windows.Forms.ColumnHeader)
Me.code = CType(New System.Windows.Forms.ColumnHeader(), System.Windows.Forms.ColumnHeader)
Me.dates = CType(New System.Windows.Forms.ColumnHeader(), System.Windows.Forms.ColumnHeader)
Me.Label1 = New System.Windows.Forms.Label()
Me.SuspendLayout()
'
'LV_ETATS
'
Me.LV_ETATS.Columns.AddRange(New System.Windows.Forms.ColumnHeader() {Me.intitule, Me.nom, Me.code, Me.dates})
Me.LV_ETATS.FullRowSelect = True
Me.LV_ETATS.GridLines = True
Me.LV_ETATS.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable
Me.LV_ETATS.Location = New System.Drawing.Point(12, 13)
Me.LV_ETATS.Margin = New System.Windows.Forms.Padding(12, 9, 12, 9)
Me.LV_ETATS.Name = "LV_ETATS"
Me.LV_ETATS.Size = New System.Drawing.Size(685, 509)
Me.LV_ETATS.TabIndex = 0
Me.LV_ETATS.UseCompatibleStateImageBehavior = False
Me.LV_ETATS.View = System.Windows.Forms.View.Details
'
'intitule
'
Me.intitule.Text = "Intitulé de l'état"
Me.intitule.Width = 337
'
'nom
'
Me.nom.Text = "Nom"
Me.nom.Width = 261
'
'code
'
Me.code.Text = "Code"
Me.code.Width = 1
'
'dates
'
Me.dates.Text = "Dates"
'
'Label1
'
Me.Label1.AutoSize = True
Me.Label1.Location = New System.Drawing.Point(12, 531)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(282, 16)
Me.Label1.TabIndex = 1
Me.Label1.Text = "(Entrée ou double-clic pour sélectionner l'état)"
'
'FrmEditions
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(8.0!, 16.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(705, 553)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.LV_ETATS)
Me.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Margin = New System.Windows.Forms.Padding(4)
Me.Name = "FrmEditions"
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
Me.Text = "Choix de l'état à imprimer"
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
Friend WithEvents LV_ETATS As System.Windows.Forms.ListView
Friend WithEvents nom As System.Windows.Forms.ColumnHeader
Friend WithEvents code As System.Windows.Forms.ColumnHeader
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents intitule As System.Windows.Forms.ColumnHeader
Friend WithEvents dates As System.Windows.Forms.ColumnHeader
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,72 @@
Public Class FrmEditions
' Paramètre de connexion à ODBC
Private ctDSN_AEM As String = "DSN=bd_aem;"
Private szSQL As String
Private rs As ADODB.Recordset
Private Sub FrmEditions_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim nb As Integer = 0
' effacer la listview
LV_ETATS.Items.Clear()
' Lire les états disponibles dans la rubrique
szSQL = "SELECT * FROM p_etats ORDER BY libelle;"
GetRecordset(ctDSN_AEM, szSQL, rs)
Do While Not rs.EOF
LV_ETATS.Items.Add(rs.Fields("libelle").Value)
LV_ETATS.Items(nb).SubItems.Add(nv(rs.Fields("nom_rpt").Value))
LV_ETATS.Items(nb).SubItems.Add(nv(rs.Fields("code").Value))
LV_ETATS.Items(nb).SubItems.Add(nv(rs.Fields("dates").Value))
' Get the next record
rs.MoveNext()
nb = nb + 1
Loop
' Close the recordset AND connection.
rs.Close()
End Sub
Private Sub LV_ETATS_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles LV_ETATS.DoubleClick
' un état est-il sélectionné ?
If LV_ETATS.SelectedItems.Count <= 0 Then
Exit Sub
End If
Dim noRPT As String = LV_ETATS.SelectedItems(0).SubItems(2).Text
Dim szNomRPT As String = LV_ETATS.SelectedItems(0).SubItems(1).Text
' Sélection de DATES ?
If LV_ETATS.SelectedItems(0).SubItems(3).Text = "OUI" Then
frmDates.ShowDialog()
' dates saisies ?
If frmDates.pSelection.Length > 0 Then
FrmViewReport.pParamRPT = frmDates.pSelection
Else
Exit Sub
End If
Else
FrmViewReport.pParamRPT = ""
End If
' édition de l'état RPT
FrmViewReport.pCodeEtat = noRPT
FrmViewReport.ShowDialog()
End Sub
Private Sub LV_ETATS_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles LV_ETATS.KeyDown
' touche Enter = DoubleClick
If e.KeyCode = Keys.Enter Then
LV_ETATS_DoubleClick(sender, e)
End If
End Sub
End Class

View File

@@ -0,0 +1,55 @@
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class FrmViewReport
Inherits System.Windows.Forms.Form
'Form remplace la méthode Dispose pour nettoyer la liste des composants.
<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
'Requise par le Concepteur Windows Form
Private components As System.ComponentModel.IContainer
'REMARQUE : la procédure suivante est requise par le Concepteur Windows Form
'Elle peut être modifiée à l'aide du Concepteur Windows Form.
'Ne la modifiez pas à l'aide de l'éditeur de code.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.CrystalReportViewer1 = New CrystalDecisions.Windows.Forms.CrystalReportViewer()
Me.SuspendLayout()
'
'CrystalReportViewer1
'
Me.CrystalReportViewer1.ActiveViewIndex = -1
Me.CrystalReportViewer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.CrystalReportViewer1.Cursor = System.Windows.Forms.Cursors.Default
Me.CrystalReportViewer1.Dock = System.Windows.Forms.DockStyle.Fill
Me.CrystalReportViewer1.Location = New System.Drawing.Point(0, 0)
Me.CrystalReportViewer1.Name = "CrystalReportViewer1"
Me.CrystalReportViewer1.ShowGroupTreeButton = False
Me.CrystalReportViewer1.Size = New System.Drawing.Size(848, 514)
Me.CrystalReportViewer1.TabIndex = 0
Me.CrystalReportViewer1.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None
'
'FrmViewReport
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(848, 514)
Me.Controls.Add(Me.CrystalReportViewer1)
Me.Name = "FrmViewReport"
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.Text = "FrmViewReport"
Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
Me.ResumeLayout(False)
End Sub
Friend WithEvents CrystalReportViewer1 As CrystalDecisions.Windows.Forms.CrystalReportViewer
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,76 @@
Imports CrystalDecisions.CrystalReports.Engine
Public Class FrmViewReport
Public pCodeEtat As Integer
Public pParamRPT As String
' Paramètre de connexion à ODBC
Private ctDSN_AEM As String = "DSN=bd_aem;"
Private szSQL As String
Private rs As ADODB.Recordset
Private Sub FrmViewReport_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim szCheminRPT As String = ""
Dim szNomRPT As String = ""
Dim szCriteresRPT As String = ""
' lire les infos de l'état
szSQL = "SELECT * FROM P_ETATS WHERE code=" & pCodeEtat
GetRecordset(ctDSN_AEM, szSQL, rs)
If rs.RecordCount < 1 Then
MsgBox("Etat " & pCodeEtat & " : non trouvé dans la table P_ETATS!", MsgBoxStyle.Critical)
Exit Sub
End If
' afficher le nom du RPT sur la barre en-tête
Me.Text = rs.Fields("libelle").Value & " (" & szCheminRPT & ")"
szNomRPT = rs.Fields("nom_rpt").Value
szCheminRPT = "C:\RPTViewer\ETATS\" & rs.Fields("nom_rpt").Value
szCriteresRPT = FormaterSelection(nv(rs.Fields("criteres").Value))
rs.Close()
Dim rpt As New ReportDocument
Try
rpt.Load(szCheminRPT)
Catch ex As Exception
MsgBox(ex.Message & " : " & vbCrLf & szCheminRPT, vbCritical)
Exit Sub
End Try
' définit la sélection
If szCriteresRPT.Length > 0 Then
rpt.RecordSelectionFormula = szCriteresRPT
End If
' definit le(s) paramètre(s) éventuel(s)
If pParamRPT.Length > 0 Then
rpt.SetParameterValue(0, pParamRPT)
End If
' Editer
CrystalReportViewer1.ReportSource = rpt
End Sub
Private Function FormaterSelection(szSelection As String) As String
If szSelection.Length > 0 Then
szSQL = Replace(szSelection, "gDate_debut", Format(gDate_debut, "yyyy/MM/dd"))
szSQL = Replace(szSQL, "gDate_fin", Format(gDate_fin, "yyyy/MM/dd"))
'szSQL = Replace(szSQL, "gUserAgence", gUserAgence)
'szSQL = Replace(szSQL, "gUserCode", gUserCode)
'szSQL = Replace(szSQL, "gCD_CLI", gCD_CLI)
'szSQL = Replace(szSQL, "gMoniteur1", gMoniteur1)
'szSQL = Replace(szSQL, "gMoniteur2", gMoniteur2)
'szSQL = Replace(szSQL, "gNumero", gNumero)
'szSQL = Replace(szSQL, "gTypePlanning", gTypePlanning)
'szSQL = Replace(szSQL, "gSemaine", gSemaine)
'szSQL = Replace(szSQL, "gGroupe", gGroupe)
Else
szSQL = ""
End If
FormaterSelection = szSQL
End Function
End Class

View File

@@ -0,0 +1,38 @@
'------------------------------------------------------------------------------
' <auto-generated>
' Ce code a été généré par un outil.
' Version du runtime :4.0.30319.34209
'
' Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
' le code est régénéré.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Namespace My
'REMARQUE : ce fichier étant généré automatiquement, ne le modifiez pas directement. Pour apporter des modifications,
' ou si vous rencontrez des erreurs de build dans ce fichier, accédez au Concepteur de projets
' (allez dans les propriétés du projet ou double-cliquez sur le noeud My project dans
' l'Explorateur de solutions), puis apportez vos modifications sous l'onglet Application.
'
Partial Friend Class MyApplication
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
Public Sub New()
MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
Me.IsSingleInstance = false
Me.EnableVisualStyles = false
Me.SaveMySettingsOnExit = true
Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
End Sub
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
Protected Overrides Sub OnCreateMainForm()
Me.MainForm = Global.RPTViewer.FrmEditions
End Sub
End Class
End Namespace

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<MySubMain>true</MySubMain>
<MainForm>FrmEditions</MainForm>
<SingleInstance>false</SingleInstance>
<ShutdownMode>0</ShutdownMode>
<EnableVisualStyles>false</EnableVisualStyles>
<AuthenticationMode>0</AuthenticationMode>
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
</MyApplicationData>

View File

@@ -0,0 +1,35 @@
Imports System
Imports System.Reflection
Imports System.Runtime.InteropServices
' Les informations générales relatives à un assembly dépendent de
' l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations
' associées à un assembly.
' Passez en revue les valeurs des attributs de l'assembly
<Assembly: AssemblyTitle("RPTViewer")>
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyCompany("Microsoft")>
<Assembly: AssemblyProduct("RPTViewer")>
<Assembly: AssemblyCopyright("Copyright © Microsoft 2016")>
<Assembly: AssemblyTrademark("")>
<Assembly: ComVisible(False)>
'Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM
<Assembly: Guid("39365e3c-f8ad-44ad-86aa-9399a81c0488")>
' Les informations de version pour un assembly se composent des quatre valeurs suivantes :
'
' Version principale
' Version secondaire
' Numéro de build
' Révision
'
' Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut
' en utilisant '*', comme indiqué ci-dessous :
' <Assembly: AssemblyVersion("1.0.*")>
<Assembly: AssemblyVersion("1.0.0.0")>
<Assembly: AssemblyFileVersion("1.0.0.0")>

View File

@@ -0,0 +1,63 @@
'------------------------------------------------------------------------------
' <auto-generated>
' Ce code a été généré par un outil.
' Version du runtime :4.0.30319.34209
'
' Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
' le code est régénéré.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Imports System
Namespace My.Resources
'Cette classe a été générée automatiquement par la classe StronglyTypedResourceBuilder
'à l'aide d'un outil, tel que ResGen ou Visual Studio.
'Pour ajouter ou supprimer un membre, modifiez votre fichier .ResX, puis réexécutez ResGen
'avec l'option /str ou régénérez votre projet VS.
'''<summary>
''' Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées.
'''</summary>
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
Friend Module Resources
Private resourceMan As Global.System.Resources.ResourceManager
Private resourceCulture As Global.System.Globalization.CultureInfo
'''<summary>
''' Retourne l'instance ResourceManager mise en cache utilisée par cette classe.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
Get
If Object.ReferenceEquals(resourceMan, Nothing) Then
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("RPTViewer.Resources", GetType(Resources).Assembly)
resourceMan = temp
End If
Return resourceMan
End Get
End Property
'''<summary>
''' Remplace la propriété CurrentUICulture du thread actuel pour toutes
''' les recherches de ressources à l'aide de cette classe de ressource fortement typée.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Friend Property Culture() As Global.System.Globalization.CultureInfo
Get
Return resourceCulture
End Get
Set
resourceCulture = value
End Set
End Property
End Module
End Namespace

View File

@@ -0,0 +1,117 @@
<?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.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: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" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</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" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,73 @@
'------------------------------------------------------------------------------
' <auto-generated>
' Ce code a été généré par un outil.
' Version du runtime :4.0.30319.34209
'
' Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
' le code est régénéré.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Namespace My
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), _
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Partial Friend NotInheritable Class MySettings
Inherits Global.System.Configuration.ApplicationSettingsBase
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
#Region "Fonctionnalité Enregistrement automatique My.Settings"
#If _MyType = "WindowsForms" Then
Private Shared addedHandler As Boolean
Private Shared addedHandlerLockObject As New Object
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
If My.Application.SaveMySettingsOnExit Then
My.Settings.Save()
End If
End Sub
#End If
#End Region
Public Shared ReadOnly Property [Default]() As MySettings
Get
#If _MyType = "WindowsForms" Then
If Not addedHandler Then
SyncLock addedHandlerLockObject
If Not addedHandler Then
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
addedHandler = True
End If
End SyncLock
End If
#End If
Return defaultInstance
End Get
End Property
End Class
End Namespace
Namespace My
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
Friend Module MySettingsProperty
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
Friend ReadOnly Property Settings() As Global.RPTViewer.My.MySettings
Get
Return Global.RPTViewer.My.MySettings.Default
End Get
End Property
End Module
End Namespace

View File

@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View File

@@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "RPTViewer", "RPTViewer.vbproj", "{4474EF8B-FF1F-4145-8E49-03682D656E4A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4474EF8B-FF1F-4145-8E49-03682D656E4A}.Debug|x86.ActiveCfg = Debug|x86
{4474EF8B-FF1F-4145-8E49-03682D656E4A}.Debug|x86.Build.0 = Debug|x86
{4474EF8B-FF1F-4145-8E49-03682D656E4A}.Release|x86.ActiveCfg = Release|x86
{4474EF8B-FF1F-4145-8E49-03682D656E4A}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

Binary file not shown.

View File

@@ -0,0 +1,174 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>
</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{4474EF8B-FF1F-4145-8E49-03682D656E4A}</ProjectGuid>
<OutputType>WinExe</OutputType>
<StartupObject>RPTViewer.My.MyApplication</StartupObject>
<RootNamespace>RPTViewer</RootNamespace>
<AssemblyName>RPTViewer</AssemblyName>
<FileAlignment>512</FileAlignment>
<MyType>WindowsForms</MyType>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<OutputPath>bin\Debug\</OutputPath>
<DocumentationFile>RPTViewer.xml</DocumentationFile>
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DocumentationFile>RPTViewer.xml</DocumentationFile>
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
</PropertyGroup>
<PropertyGroup>
<OptionExplicit>On</OptionExplicit>
</PropertyGroup>
<PropertyGroup>
<OptionCompare>Binary</OptionCompare>
</PropertyGroup>
<PropertyGroup>
<OptionStrict>Off</OptionStrict>
</PropertyGroup>
<PropertyGroup>
<OptionInfer>On</OptionInfer>
</PropertyGroup>
<ItemGroup>
<Reference Include="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.CrystalReports.Engine.dll</HintPath>
</Reference>
<Reference Include="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" />
<Reference Include="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.Shared.dll</HintPath>
</Reference>
<Reference Include="CrystalDecisions.Windows.Forms, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.Windows.Forms.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web.Services" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
</ItemGroup>
<ItemGroup>
<Import Include="Microsoft.VisualBasic" />
<Import Include="System" />
<Import Include="System.Collections" />
<Import Include="System.Collections.Generic" />
<Import Include="System.Data" />
<Import Include="System.Drawing" />
<Import Include="System.Diagnostics" />
<Import Include="System.Windows.Forms" />
<Import Include="System.Linq" />
<Import Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Compile Include="frmDates.Designer.vb">
<DependentUpon>frmDates.vb</DependentUpon>
</Compile>
<Compile Include="frmDates.vb">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmEditions.Designer.vb">
<DependentUpon>FrmEditions.vb</DependentUpon>
</Compile>
<Compile Include="FrmEditions.vb">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmViewReport.designer.vb">
<DependentUpon>FrmViewReport.vb</DependentUpon>
</Compile>
<Compile Include="FrmViewReport.vb">
<SubType>Form</SubType>
</Compile>
<Compile Include="modADO.vb" />
<Compile Include="modGeneral.vb" />
<Compile Include="My Project\AssemblyInfo.vb" />
<Compile Include="My Project\Application.Designer.vb">
<AutoGen>True</AutoGen>
<DependentUpon>Application.myapp</DependentUpon>
</Compile>
<Compile Include="My Project\Resources.Designer.vb">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="My Project\Settings.Designer.vb">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="frmDates.resx">
<DependentUpon>frmDates.vb</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmEditions.resx">
<DependentUpon>FrmEditions.vb</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmViewReport.resx">
<DependentUpon>FrmViewReport.vb</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="My Project\Resources.resx">
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
<CustomToolNamespace>My.Resources</CustomToolNamespace>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="My Project\Application.myapp">
<Generator>MyApplicationCodeGenerator</Generator>
<LastGenOutput>Application.Designer.vb</LastGenOutput>
</None>
<None Include="My Project\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<CustomToolNamespace>My</CustomToolNamespace>
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<COMReference Include="ADODB">
<Guid>{2A75196C-D9EB-4129-B803-931327F72D5C}</Guid>
<VersionMajor>2</VersionMajor>
<VersionMinor>8</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>tlbimp</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
</Project>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<configuration>
<system.diagnostics>
<sources>
<!-- Cette section définit la configuration de l'enregistrement dans le fichier journal de My.Application.Log -->
<source name="DefaultSource" switchName="DefaultSwitch">
<listeners>
<add name="FileLog"/>
<!-- Supprimez les marques de commentaire dans la section suivante pour écrire dans le journal des événements de l'application -->
<!--<add name="EventLog"/>-->
</listeners>
</source>
</sources>
<switches>
<add name="DefaultSwitch" value="Information"/>
</switches>
<sharedListeners>
<add name="FileLog" type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" initializeData="FileLogWriter"/>
<!-- Supprimez les marques de commentaire dans la section suivante et remplacez APPLICATION_NAME par le nom de votre application à écrire dans le journal des événements de l'application -->
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
</sharedListeners>
</system.diagnostics>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<configuration>
<system.diagnostics>
<sources>
<!-- Cette section définit la configuration de l'enregistrement dans le fichier journal de My.Application.Log -->
<source name="DefaultSource" switchName="DefaultSwitch">
<listeners>
<add name="FileLog"/>
<!-- Supprimez les marques de commentaire dans la section suivante pour écrire dans le journal des événements de l'application -->
<!--<add name="EventLog"/>-->
</listeners>
</source>
</sources>
<switches>
<add name="DefaultSwitch" value="Information"/>
</switches>
<sharedListeners>
<add name="FileLog" type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" initializeData="FileLogWriter"/>
<!-- Supprimez les marques de commentaire dans la section suivante et remplacez APPLICATION_NAME par le nom de votre application à écrire dans le journal des événements de l'application -->
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
</sharedListeners>
</system.diagnostics>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<configuration>
<system.diagnostics>
<sources>
<!-- Cette section définit la configuration de l'enregistrement dans le fichier journal de My.Application.Log -->
<source name="DefaultSource" switchName="DefaultSwitch">
<listeners>
<add name="FileLog"/>
<!-- Supprimez les marques de commentaire dans la section suivante pour écrire dans le journal des événements de l'application -->
<!--<add name="EventLog"/>-->
</listeners>
</source>
</sources>
<switches>
<add name="DefaultSwitch" value="Information"/>
</switches>
<sharedListeners>
<add name="FileLog" type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" initializeData="FileLogWriter"/>
<!-- Supprimez les marques de commentaire dans la section suivante et remplacez APPLICATION_NAME par le nom de votre application à écrire dans le journal des événements de l'application -->
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
</sharedListeners>
</system.diagnostics>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>
RPTViewer
</name>
</assembly>
<members>
<member name="P:RPTViewer.My.Resources.Resources.ResourceManager">
<summary>
Retourne l'instance ResourceManager mise en cache utilisée par cette classe.
</summary>
</member><member name="P:RPTViewer.My.Resources.Resources.Culture">
<summary>
Remplace la propriété CurrentUICulture du thread actuel pour toutes
les recherches de ressources à l'aide de cette classe de ressource fortement typée.
</summary>
</member><member name="T:RPTViewer.My.Resources.Resources">
<summary>
Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées.
</summary>
</member>
</members>
</doc>

View File

@@ -0,0 +1,101 @@
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class frmDates
Inherits System.Windows.Forms.Form
'Form remplace la méthode Dispose pour nettoyer la liste des composants.
<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
'Requise par le Concepteur Windows Form
Private components As System.ComponentModel.IContainer
'REMARQUE : la procédure suivante est requise par le Concepteur Windows Form
'Elle peut être modifiée à l'aide du Concepteur Windows Form.
'Ne la modifiez pas à l'aide de l'éditeur de code.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.Label3 = New System.Windows.Forms.Label()
Me.TE_DATE_DEBUT = New System.Windows.Forms.DateTimePicker()
Me.Label4 = New System.Windows.Forms.Label()
Me.TE_DATE_FIN = New System.Windows.Forms.DateTimePicker()
Me.BO_IMPRIMER = New System.Windows.Forms.Button()
Me.SuspendLayout()
'
'Label3
'
Me.Label3.AutoSize = True
Me.Label3.Location = New System.Drawing.Point(23, 35)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(74, 16)
Me.Label3.TabIndex = 5
Me.Label3.Text = "Période du"
'
'TE_DATE_DEBUT
'
Me.TE_DATE_DEBUT.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
Me.TE_DATE_DEBUT.Location = New System.Drawing.Point(103, 30)
Me.TE_DATE_DEBUT.Name = "TE_DATE_DEBUT"
Me.TE_DATE_DEBUT.Size = New System.Drawing.Size(105, 22)
Me.TE_DATE_DEBUT.TabIndex = 6
'
'Label4
'
Me.Label4.AutoSize = True
Me.Label4.Location = New System.Drawing.Point(74, 63)
Me.Label4.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(23, 16)
Me.Label4.TabIndex = 7
Me.Label4.Text = "au"
'
'TE_DATE_FIN
'
Me.TE_DATE_FIN.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
Me.TE_DATE_FIN.Location = New System.Drawing.Point(104, 58)
Me.TE_DATE_FIN.Name = "TE_DATE_FIN"
Me.TE_DATE_FIN.Size = New System.Drawing.Size(105, 22)
Me.TE_DATE_FIN.TabIndex = 8
'
'BO_IMPRIMER
'
Me.BO_IMPRIMER.Location = New System.Drawing.Point(151, 113)
Me.BO_IMPRIMER.Margin = New System.Windows.Forms.Padding(4)
Me.BO_IMPRIMER.Name = "BO_IMPRIMER"
Me.BO_IMPRIMER.Size = New System.Drawing.Size(115, 30)
Me.BO_IMPRIMER.TabIndex = 9
Me.BO_IMPRIMER.Text = "&Imprimer"
Me.BO_IMPRIMER.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText
Me.BO_IMPRIMER.UseVisualStyleBackColor = True
'
'frmDates
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(8.0!, 16.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(281, 153)
Me.Controls.Add(Me.BO_IMPRIMER)
Me.Controls.Add(Me.TE_DATE_FIN)
Me.Controls.Add(Me.Label4)
Me.Controls.Add(Me.TE_DATE_DEBUT)
Me.Controls.Add(Me.Label3)
Me.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Margin = New System.Windows.Forms.Padding(4)
Me.Name = "frmDates"
Me.Text = "SELECTION PERIODE"
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents TE_DATE_DEBUT As System.Windows.Forms.DateTimePicker
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents TE_DATE_FIN As System.Windows.Forms.DateTimePicker
Friend WithEvents BO_IMPRIMER As System.Windows.Forms.Button
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,39 @@
Public Class frmDates
Public pSelection As String
Private Sub frmDates_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If IsDate(gDate_debut) Then
TE_DATE_DEBUT.Value = gDate_debut
If IsDate(gDate_fin) Then
TE_DATE_FIN.Value = gDate_fin
Else
' date de fin = date de début fin de mois
TE_DATE_FIN.Value = TE_DATE_DEBUT.Value.AddMonths(1)
TE_DATE_FIN.Value = TE_DATE_FIN.Value.AddDays(-1)
End If
Else
' période = mois en cours
TE_DATE_DEBUT.Value = CDate(Now.Year.ToString & "/" & Now.Month.ToString & "/01")
TE_DATE_FIN.Value = TE_DATE_DEBUT.Value.AddMonths(1)
TE_DATE_FIN.Value = TE_DATE_FIN.Value.AddDays(-1)
End If
pSelection = ""
End Sub
Private Sub BO_IMPRIMER_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BO_IMPRIMER.Click
If DateDiff("d", TE_DATE_DEBUT.Value, TE_DATE_FIN.Value) < 0 Then
MsgBox("Date début et la Date fin incompatible ...")
TE_DATE_DEBUT.Focus()
Else
' mémoriser les dates saisies
gDate_debut = TE_DATE_DEBUT.Value
gDate_fin = TE_DATE_FIN.Value
pSelection = "du " & Format(TE_DATE_DEBUT.Value, "dd/MM/yyyy") & " au " & Format(TE_DATE_FIN.Value, "dd/MM/yyyy")
Me.Close()
End If
End Sub
End Class

View File

@@ -0,0 +1,274 @@
'
' Fonctions d'acc<63>s <20> la base de donn<6E>es
' par ADO
'
Option Explicit On
Module modADO
Private m_bInsideTransaction As Boolean
Private m_oConnection As ADODB.Connection
'=======================================================================
'Synopsis: This function begins a new transaction
'Function input: none
'Function output: Returns TRUE if the function succeeds
'Remarks
'=======================================================================
Public Function BeginTrans() As Boolean
Dim lErrNo As Long
Dim sErrDesc As String
'assume failure
BeginTrans = False
m_bInsideTransaction = False
'enable error handler
On Error GoTo ErrorHandler
'signal beginning of transaction
m_oConnection.BeginTrans()
'signal transactional success
m_bInsideTransaction = True
'we're out of here
BeginTrans = True
Exit Function
'if we're here there then's been an error so process
ErrorHandler:
MsgBox("Erreur de transaction : " & Err.Number & vbCrLf & Err.Description, MsgBoxStyle.Critical)
End Function
'=======================================================================
'Synopsis: This function closes a previously opened connection
'Function input: none
'Function output: Returns TRUE if the function succeeds
'Remarks
'=======================================================================
Public Function CloseConnection() As Boolean
If Not m_oConnection Is Nothing Then
m_oConnection.Close()
m_oConnection = Nothing
End If
CloseConnection = True
End Function
'=======================================================================
'Synopsis: This function commits a previously begun transaction
'Function input: Connect string which is a registered DSN. If supplied
' then previously established connection is closed
'Function output: Returns TRUE if the function succeeds
'=======================================================================
Public Function CommitTrans() As Boolean
Dim lErrNo As Long
Dim sErrDesc As String
'assume failure
CommitTrans = False
'enable error handler
On Error GoTo ErrorHandler
'commit the transaction
m_oConnection.CommitTrans()
'signal closure of transaction, success of function AND we're out of here
m_bInsideTransaction = False
CommitTrans = True
Exit Function
'if we're here there then's been an error so process
ErrorHandler:
MsgBox("Erreur de commit BD : " & Err.Number & vbCrLf & Err.Description, MsgBoxStyle.Critical)
End Function
'=======================================================================
'Synopsis: This function opens a connection using ADO and
' executes the action query passed to it.
'Function input: Connect string which is a registered DSN
' Query string to be executed.
'Function output: Returns TRUE if the function succeeds
'=======================================================================
Public Function ExecQuery( _
ByVal Connect As String, _
ByVal SQLQuery As String) As Boolean
Dim oConn As ADODB.Connection
Dim lErrNo As Long
Dim sErrDesc As String
'assume failure
ExecQuery = False
'enable error handler
On Error GoTo ErrorHandler
'Get connection
If Connect <> vbNullString Then
oConn = New ADODB.Connection
oConn.Open(Connect)
Else
oConn = m_oConnection
End If
'set up for transaction, execute query, commit transaction, AND clean up
' adExecuteNoRecords = 128
oConn.Execute(SQLQuery, , 128)
If Connect <> vbNullString Then
oConn.Close()
End If
oConn = Nothing
'signal success of function AND we're out of here
ExecQuery = True
Exit Function
'if we're here there then's been an error so process
ErrorHandler:
'Select Case Err.Number
' Case -2147467259
' MsgBox("Cet <20>l<EFBFBD>ment n'est pas vide ou a des prestations. Suppression ou modification impossible", MsgBoxStyle.Critical)
' Case Else
MsgBox("Erreur de requ<71>te BD : " & Err.Number & vbCrLf & Err.Description, MsgBoxStyle.Critical)
'End Select
'close connection, AND raise error
On Error Resume Next
If Connect <> vbNullString Then
oConn.Close()
End If
End Function
'=======================================================================
'Synopsis: Function opens a connection using ADO AND executes
' a query passed to it. This function returns
' records in a DISCONNECTED recordset.
'Function input: Connect string which is a registered DSN
' Query string to be executed.
' A recordset to return records in
'Function output: Returns TRUE if the function succeeds
'=======================================================================
Public Function GetRecordset( _
ByVal Connect As String, _
ByVal SQLQuery As String, _
ByRef Recordset As ADODB.Recordset) As Boolean
'assume failure
GetRecordset = False
'enable error handler
On Error GoTo ErrorHandler
'Get connection AND set up for recordset
OpenConnection(Connect)
'set up query
Recordset = New ADODB.Recordset
Recordset.ActiveConnection = m_oConnection
Recordset.CursorLocation = ADODB.CursorLocationEnum.adUseClient
Recordset.CursorType = ADODB.CursorTypeEnum.adOpenForwardOnly
Recordset.LockType = ADODB.LockTypeEnum.adLockBatchOptimistic
Recordset.StayInSync = False
'execute query AND get recordset
Recordset.Open(SQLQuery)
'clean up
Recordset.ActiveConnection = Nothing
CloseConnection()
'signal success of function AND we're out of here
GetRecordset = True
Exit Function
'if we're here there then's been an error so process
ErrorHandler:
MsgBox("Erreur de lecture BD : " & Err.Number & vbCrLf & Err.Description, MsgBoxStyle.Critical)
End Function
'=======================================================================
'Synopsis: This function creates AND opens a new connection
'Function input: Connect string which is a registered DSN
'Function output: Returns TRUE if the function succeeds
'Remarks
'=======================================================================
Public Function OpenConnection(ByVal Connect As String) As Boolean
Dim lErrNo As Long
Dim sErrDesc As String
'assume failure
OpenConnection = False
'enable error handler
On Error GoTo ErrorHandler
'establish the transaction if DSN specified
If Connect <> vbNullString Then
CloseConnection()
m_oConnection = New ADODB.Connection
m_oConnection.Open(Connect)
End If
'we're out of here
OpenConnection = True
Exit Function
'if we're here there then's been an error so process
ErrorHandler:
MsgBox("Erreur de connection BD : " & Err.Number & vbCrLf & Err.Description, MsgBoxStyle.Critical)
End Function
'=======================================================================
'Synopsis: This function rolls back a previously begun transaction
'
'Function input: Connect string which is a registered DSN. If supplied
' then previously established connection is closed
'Function output: Returns TRUE if the function succeeds
'=======================================================================
Public Function RollbackTrans() As Boolean
Dim lErrNo As Long
Dim sErrDesc As String
'assume failure
RollbackTrans = False
'enable error handler
On Error GoTo ErrorHandler
'roll back the transaction
m_oConnection.RollbackTrans()
'signal closure of transaction, success of function AND we're out of here
m_bInsideTransaction = False
RollbackTrans = True
Exit Function
'if we're here there then's been an error so process
ErrorHandler:
MsgBox("Erreur de Rollback : " & Err.Number & vbCrLf & Err.Description, MsgBoxStyle.Critical)
End Function
End Module

View File

@@ -0,0 +1,16 @@
Module modGeneral
' Paramètres de l'application
Public ctDSN_AEM As String
Public gDate_debut As Date = Now ' Date début de traitement
Public gDate_fin As Date = Now ' Date fin de traitement
'-------------------------------------------------------------------------------------
Public Function nv(ByVal c As Object) As Object
' remplace une chaine NULL en ""
On Error Resume Next
nv = vbNullString & c
End Function
End Module

View File

@@ -0,0 +1,15 @@
C:\DEVFAC14\RPTViewer\obj\x86\Debug\RPTViewer.vbprojResolveAssemblyReference.cache
C:\DEVFAC14\RPTViewer\obj\x86\Debug\Interop.ADODB.dll
C:\DEVFAC14\RPTViewer\obj\x86\Debug\RPTViewer.vbproj.ResolveComReference.cache
C:\DEVFAC14\RPTViewer\obj\x86\Debug\RPTViewer.frmDates.resources
C:\DEVFAC14\RPTViewer\obj\x86\Debug\RPTViewer.FrmEditions.resources
C:\DEVFAC14\RPTViewer\obj\x86\Debug\RPTViewer.FrmViewReport.resources
C:\DEVFAC14\RPTViewer\obj\x86\Debug\RPTViewer.Resources.resources
C:\DEVFAC14\RPTViewer\obj\x86\Debug\RPTViewer.vbproj.GenerateResource.Cache
C:\DEVFAC14\RPTViewer\bin\Debug\RPTViewer.exe.config
C:\DEVFAC14\RPTViewer\bin\Debug\RPTViewer.exe
C:\DEVFAC14\RPTViewer\bin\Debug\RPTViewer.pdb
C:\DEVFAC14\RPTViewer\bin\Debug\RPTViewer.xml
C:\DEVFAC14\RPTViewer\obj\x86\Debug\RPTViewer.exe
C:\DEVFAC14\RPTViewer\obj\x86\Debug\RPTViewer.xml
C:\DEVFAC14\RPTViewer\obj\x86\Debug\RPTViewer.pdb

View File

@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>
RPTViewer
</name>
</assembly>
<members>
<member name="P:RPTViewer.My.Resources.Resources.ResourceManager">
<summary>
Retourne l'instance ResourceManager mise en cache utilisée par cette classe.
</summary>
</member><member name="P:RPTViewer.My.Resources.Resources.Culture">
<summary>
Remplace la propriété CurrentUICulture du thread actuel pour toutes
les recherches de ressources à l'aide de cette classe de ressource fortement typée.
</summary>
</member><member name="T:RPTViewer.My.Resources.Resources">
<summary>
Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées.
</summary>
</member>
</members>
</doc>