From ae6492bc76ff10e89f8e25e7d06662d3a64cce05 Mon Sep 17 00:00:00 2001 From: Erwann PHILIPPE Date: Mon, 23 Mar 2026 11:20:28 +0100 Subject: [PATCH] Ajoutez des fichiers projet. --- .gitattributes | 63 + .gitignore | 363 +++ MediaTekDocuments.sln | 25 + MediaTekDocuments/App.config | 16 + MediaTekDocuments/MediaTekDocuments.csproj | 114 + MediaTekDocuments/Program.cs | 20 + MediaTekDocuments/Properties/AssemblyInfo.cs | 36 + .../Properties/Resources.Designer.cs | 70 + MediaTekDocuments/Properties/Resources.resx | 117 + .../Properties/Settings.Designer.cs | 36 + .../Properties/Settings.settings | 14 + .../controller/FrmMediatekController.cs | 100 + MediaTekDocuments/dal/Access.cs | 248 +++ MediaTekDocuments/manager/ApiRest.cs | 96 + MediaTekDocuments/model/Categorie.cs | 28 + MediaTekDocuments/model/Document.cs | 32 + MediaTekDocuments/model/Dvd.cs | 23 + MediaTekDocuments/model/Etat.cs | 19 + MediaTekDocuments/model/Exemplaire.cs | 26 + MediaTekDocuments/model/Genre.cs | 14 + MediaTekDocuments/model/Livre.cs | 25 + MediaTekDocuments/model/LivreDvd.cs | 16 + MediaTekDocuments/model/Public.cs | 14 + MediaTekDocuments/model/Rayon.cs | 14 + MediaTekDocuments/model/Revue.cs | 22 + MediaTekDocuments/packages.config | 4 + .../view/FrmMediatek.Designer.cs | 1975 +++++++++++++++++ MediaTekDocuments/view/FrmMediatek.cs | 1243 +++++++++++ MediaTekDocuments/view/FrmMediatek.resx | 120 + README.md | 77 + 30 files changed, 4970 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 MediaTekDocuments.sln create mode 100644 MediaTekDocuments/App.config create mode 100644 MediaTekDocuments/MediaTekDocuments.csproj create mode 100644 MediaTekDocuments/Program.cs create mode 100644 MediaTekDocuments/Properties/AssemblyInfo.cs create mode 100644 MediaTekDocuments/Properties/Resources.Designer.cs create mode 100644 MediaTekDocuments/Properties/Resources.resx create mode 100644 MediaTekDocuments/Properties/Settings.Designer.cs create mode 100644 MediaTekDocuments/Properties/Settings.settings create mode 100644 MediaTekDocuments/controller/FrmMediatekController.cs create mode 100644 MediaTekDocuments/dal/Access.cs create mode 100644 MediaTekDocuments/manager/ApiRest.cs create mode 100644 MediaTekDocuments/model/Categorie.cs create mode 100644 MediaTekDocuments/model/Document.cs create mode 100644 MediaTekDocuments/model/Dvd.cs create mode 100644 MediaTekDocuments/model/Etat.cs create mode 100644 MediaTekDocuments/model/Exemplaire.cs create mode 100644 MediaTekDocuments/model/Genre.cs create mode 100644 MediaTekDocuments/model/Livre.cs create mode 100644 MediaTekDocuments/model/LivreDvd.cs create mode 100644 MediaTekDocuments/model/Public.cs create mode 100644 MediaTekDocuments/model/Rayon.cs create mode 100644 MediaTekDocuments/model/Revue.cs create mode 100644 MediaTekDocuments/packages.config create mode 100644 MediaTekDocuments/view/FrmMediatek.Designer.cs create mode 100644 MediaTekDocuments/view/FrmMediatek.cs create mode 100644 MediaTekDocuments/view/FrmMediatek.resx create mode 100644 README.md diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1ff0c42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,63 @@ +############################################################################### +# Set default behavior to automatically normalize line endings. +############################################################################### +* text=auto + +############################################################################### +# Set default behavior for command prompt diff. +# +# This is need for earlier builds of msysgit that does not have it on by +# default for csharp files. +# Note: This is only used by command line +############################################################################### +#*.cs diff=csharp + +############################################################################### +# Set the merge driver for project and solution files +# +# Merging from the command prompt will add diff markers to the files if there +# are conflicts (Merging from VS is not affected by the settings below, in VS +# the diff markers are never inserted). Diff markers may cause the following +# file extensions to fail to load in VS. An alternative would be to treat +# these files as binary and thus will always conflict and require user +# intervention with every merge. To do so, just uncomment the entries below +############################################################################### +#*.sln merge=binary +#*.csproj merge=binary +#*.vbproj merge=binary +#*.vcxproj merge=binary +#*.vcproj merge=binary +#*.dbproj merge=binary +#*.fsproj merge=binary +#*.lsproj merge=binary +#*.wixproj merge=binary +#*.modelproj merge=binary +#*.sqlproj merge=binary +#*.wwaproj merge=binary + +############################################################################### +# behavior for image files +# +# image files are treated as binary by default. +############################################################################### +#*.jpg binary +#*.png binary +#*.gif binary + +############################################################################### +# diff behavior for common document formats +# +# Convert binary document formats to text before diffing them. This feature +# is only available from the command line. Turn it on by uncommenting the +# entries below. +############################################################################### +#*.doc diff=astextplain +#*.DOC diff=astextplain +#*.docx diff=astextplain +#*.DOCX diff=astextplain +#*.dot diff=astextplain +#*.DOT diff=astextplain +#*.pdf diff=astextplain +#*.PDF diff=astextplain +#*.rtf diff=astextplain +#*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9491a2f --- /dev/null +++ b/.gitignore @@ -0,0 +1,363 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Oo]ut/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd \ No newline at end of file diff --git a/MediaTekDocuments.sln b/MediaTekDocuments.sln new file mode 100644 index 0000000..0f7c4c5 --- /dev/null +++ b/MediaTekDocuments.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.32413.511 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MediaTekDocuments", "MediaTekDocuments\MediaTekDocuments.csproj", "{75DE903D-6147-4E14-BBE0-FA20CD1F9840}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {75DE903D-6147-4E14-BBE0-FA20CD1F9840}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {75DE903D-6147-4E14-BBE0-FA20CD1F9840}.Debug|Any CPU.Build.0 = Debug|Any CPU + {75DE903D-6147-4E14-BBE0-FA20CD1F9840}.Release|Any CPU.ActiveCfg = Release|Any CPU + {75DE903D-6147-4E14-BBE0-FA20CD1F9840}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {9B2569CA-5E60-4743-9497-FCE8940AD153} + EndGlobalSection +EndGlobal diff --git a/MediaTekDocuments/App.config b/MediaTekDocuments/App.config new file mode 100644 index 0000000..f59bb87 --- /dev/null +++ b/MediaTekDocuments/App.config @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MediaTekDocuments/MediaTekDocuments.csproj b/MediaTekDocuments/MediaTekDocuments.csproj new file mode 100644 index 0000000..b4b29a0 --- /dev/null +++ b/MediaTekDocuments/MediaTekDocuments.csproj @@ -0,0 +1,114 @@ + + + + + Debug + AnyCPU + {75DE903D-6147-4E14-BBE0-FA20CD1F9840} + WinExe + MediaTekDocuments + MediaTekDocuments + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + ..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll + + + + + + + + + + + + + + + + + + + + + + + + + + + Form + + + FrmMediatek.cs + + + + + + + + + + + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + FrmMediatek.cs + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + \ No newline at end of file diff --git a/MediaTekDocuments/Program.cs b/MediaTekDocuments/Program.cs new file mode 100644 index 0000000..8a7d02f --- /dev/null +++ b/MediaTekDocuments/Program.cs @@ -0,0 +1,20 @@ +using MediaTekDocuments.view; +using System; +using System.Windows.Forms; + +namespace MediaTekDocuments +{ + static class Program + { + /// + /// Point d'entrée principal de l'application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new FrmMediatek()); + } + } +} diff --git a/MediaTekDocuments/Properties/AssemblyInfo.cs b/MediaTekDocuments/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..ed2bc55 --- /dev/null +++ b/MediaTekDocuments/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using 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. +[assembly: AssemblyTitle("MediaTekDocuments")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("MediaTekDocuments")] +[assembly: AssemblyCopyright("Copyright © 2022")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly +// aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de +// COM, affectez la valeur true à l'attribut ComVisible sur ce type. +[assembly: ComVisible(false)] + +// Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM +[assembly: Guid("75de903d-6147-4e14-bbe0-fa20cd1f9840")] + +// 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")] diff --git a/MediaTekDocuments/Properties/Resources.Designer.cs b/MediaTekDocuments/Properties/Resources.Designer.cs new file mode 100644 index 0000000..bfa9267 --- /dev/null +++ b/MediaTekDocuments/Properties/Resources.Designer.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// Ce code a été généré par un outil. +// Version du runtime :4.0.30319.42000 +// +// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si +// le code est régénéré. +// +//------------------------------------------------------------------------------ + + +namespace MediaTekDocuments.Properties +{ + /// + /// Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées. + /// + // 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. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Retourne l'instance ResourceManager mise en cache utilisée par cette classe. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MediaTekDocuments.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Remplace la propriété CurrentUICulture du thread actuel pour toutes + /// les recherches de ressources à l'aide de cette classe de ressource fortement typée. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/MediaTekDocuments/Properties/Resources.resx b/MediaTekDocuments/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/MediaTekDocuments/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/MediaTekDocuments/Properties/Settings.Designer.cs b/MediaTekDocuments/Properties/Settings.Designer.cs new file mode 100644 index 0000000..eed3e09 --- /dev/null +++ b/MediaTekDocuments/Properties/Settings.Designer.cs @@ -0,0 +1,36 @@ +//------------------------------------------------------------------------------ +// +// Ce code a été généré par un outil. +// Version du runtime :4.0.30319.42000 +// +// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si +// le code est régénéré. +// +//------------------------------------------------------------------------------ + +namespace MediaTekDocuments.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] + [global::System.Configuration.DefaultSettingValueAttribute("server=localhost;user id=root;database=mediatek86")] + public string mediatek86ConnectionString { + get { + return ((string)(this["mediatek86ConnectionString"])); + } + } + } +} diff --git a/MediaTekDocuments/Properties/Settings.settings b/MediaTekDocuments/Properties/Settings.settings new file mode 100644 index 0000000..350af50 --- /dev/null +++ b/MediaTekDocuments/Properties/Settings.settings @@ -0,0 +1,14 @@ + + + + + + <?xml version="1.0" encoding="utf-16"?> +<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + <ConnectionString>server=localhost;user id=root;database=mediatek86</ConnectionString> + <ProviderName>MySql.Data.MySqlClient</ProviderName> +</SerializableConnectionString> + server=localhost;user id=root;database=mediatek86 + + + \ No newline at end of file diff --git a/MediaTekDocuments/controller/FrmMediatekController.cs b/MediaTekDocuments/controller/FrmMediatekController.cs new file mode 100644 index 0000000..69dfad6 --- /dev/null +++ b/MediaTekDocuments/controller/FrmMediatekController.cs @@ -0,0 +1,100 @@ +using System.Collections.Generic; +using MediaTekDocuments.model; +using MediaTekDocuments.dal; + +namespace MediaTekDocuments.controller +{ + /// + /// Contrôleur lié à FrmMediatek + /// + class FrmMediatekController + { + /// + /// Objet d'accès aux données + /// + private readonly Access access; + + /// + /// Récupération de l'instance unique d'accès aux données + /// + public FrmMediatekController() + { + access = Access.GetInstance(); + } + + /// + /// getter sur la liste des genres + /// + /// Liste d'objets Genre + public List GetAllGenres() + { + return access.GetAllGenres(); + } + + /// + /// getter sur la liste des livres + /// + /// Liste d'objets Livre + public List GetAllLivres() + { + return access.GetAllLivres(); + } + + /// + /// getter sur la liste des Dvd + /// + /// Liste d'objets dvd + public List GetAllDvd() + { + return access.GetAllDvd(); + } + + /// + /// getter sur la liste des revues + /// + /// Liste d'objets Revue + public List GetAllRevues() + { + return access.GetAllRevues(); + } + + /// + /// getter sur les rayons + /// + /// Liste d'objets Rayon + public List GetAllRayons() + { + return access.GetAllRayons(); + } + + /// + /// getter sur les publics + /// + /// Liste d'objets Public + public List GetAllPublics() + { + return access.GetAllPublics(); + } + + + /// + /// récupère les exemplaires d'une revue + /// + /// id de la revue concernée + /// Liste d'objets Exemplaire + public List GetExemplairesRevue(string idDocuement) + { + return access.GetExemplairesRevue(idDocuement); + } + + /// + /// Crée un exemplaire d'une revue dans la bdd + /// + /// L'objet Exemplaire concerné + /// True si la création a pu se faire + public bool CreerExemplaire(Exemplaire exemplaire) + { + return access.CreerExemplaire(exemplaire); + } + } +} diff --git a/MediaTekDocuments/dal/Access.cs b/MediaTekDocuments/dal/Access.cs new file mode 100644 index 0000000..9c5b064 --- /dev/null +++ b/MediaTekDocuments/dal/Access.cs @@ -0,0 +1,248 @@ +using System; +using System.Collections.Generic; +using MediaTekDocuments.model; +using MediaTekDocuments.manager; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.Configuration; +using System.Linq; + +namespace MediaTekDocuments.dal +{ + /// + /// Classe d'accès aux données + /// + public class Access + { + /// + /// adresse de l'API + /// + private static readonly string uriApi = "http://localhost/rest_mediatekdocuments/"; + /// + /// instance unique de la classe + /// + private static Access instance = null; + /// + /// instance de ApiRest pour envoyer des demandes vers l'api et recevoir la réponse + /// + private readonly ApiRest api = null; + /// + /// méthode HTTP pour select + /// + private const string GET = "GET"; + /// + /// méthode HTTP pour insert + /// + private const string POST = "POST"; + /// + /// méthode HTTP pour update + + /// + /// Méthode privée pour créer un singleton + /// initialise l'accès à l'API + /// + private Access() + { + String authenticationString; + try + { + authenticationString = "admin:adminpwd"; + api = ApiRest.GetInstance(uriApi, authenticationString); + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Environment.Exit(0); + } + } + + /// + /// Création et retour de l'instance unique de la classe + /// + /// instance unique de la classe + public static Access GetInstance() + { + if(instance == null) + { + instance = new Access(); + } + return instance; + } + + /// + /// Retourne tous les genres à partir de la BDD + /// + /// Liste d'objets Genre + public List GetAllGenres() + { + IEnumerable lesGenres = TraitementRecup(GET, "genre", null); + return new List(lesGenres); + } + + /// + /// Retourne tous les rayons à partir de la BDD + /// + /// Liste d'objets Rayon + public List GetAllRayons() + { + IEnumerable lesRayons = TraitementRecup(GET, "rayon", null); + return new List(lesRayons); + } + + /// + /// Retourne toutes les catégories de public à partir de la BDD + /// + /// Liste d'objets Public + public List GetAllPublics() + { + IEnumerable lesPublics = TraitementRecup(GET, "public", null); + return new List(lesPublics); + } + + /// + /// Retourne toutes les livres à partir de la BDD + /// + /// Liste d'objets Livre + public List GetAllLivres() + { + List lesLivres = TraitementRecup(GET, "livre", null); + return lesLivres; + } + + /// + /// Retourne toutes les dvd à partir de la BDD + /// + /// Liste d'objets Dvd + public List GetAllDvd() + { + List lesDvd = TraitementRecup(GET, "dvd", null); + return lesDvd; + } + + /// + /// Retourne toutes les revues à partir de la BDD + /// + /// Liste d'objets Revue + public List GetAllRevues() + { + List lesRevues = TraitementRecup(GET, "revue", null); + return lesRevues; + } + + + /// + /// Retourne les exemplaires d'une revue + /// + /// id de la revue concernée + /// Liste d'objets Exemplaire + public List GetExemplairesRevue(string idDocument) + { + String jsonIdDocument = convertToJson("id", idDocument); + List lesExemplaires = TraitementRecup(GET, "exemplaire/" + jsonIdDocument, null); + return lesExemplaires; + } + + /// + /// ecriture d'un exemplaire en base de données + /// + /// exemplaire à insérer + /// true si l'insertion a pu se faire (retour != null) + public bool CreerExemplaire(Exemplaire exemplaire) + { + String jsonExemplaire = JsonConvert.SerializeObject(exemplaire, new CustomDateTimeConverter()); + try + { + List liste = TraitementRecup(POST, "exemplaire", "champs=" + jsonExemplaire); + return (liste != null); + } + catch (Exception ex) + { + Console.WriteLine(ex.Message); + } + return false; + } + + /// + /// Traitement de la récupération du retour de l'api, avec conversion du json en liste pour les select (GET) + /// + /// + /// verbe HTTP (GET, POST, PUT, DELETE) + /// information envoyée dans l'url + /// paramètres à envoyer dans le body, au format "chp1=val1&chp2=val2&..." + /// liste d'objets récupérés (ou liste vide) + private List TraitementRecup (String methode, String message, String parametres) + { + // trans + List liste = new List(); + try + { + JObject retour = api.RecupDistant(methode, message, parametres); + // extraction du code retourné + String code = (String)retour["code"]; + if (code.Equals("200")) + { + // dans le cas du GET (select), récupération de la liste d'objets + if (methode.Equals(GET)) + { + String resultString = JsonConvert.SerializeObject(retour["result"]); + // construction de la liste d'objets à partir du retour de l'api + liste = JsonConvert.DeserializeObject>(resultString, new CustomBooleanJsonConverter()); + } + } + else + { + Console.WriteLine("code erreur = " + code + " message = " + (String)retour["message"]); + } + }catch(Exception e) + { + Console.WriteLine("Erreur lors de l'accès à l'API : "+e.Message); + Environment.Exit(0); + } + return liste; + } + + /// + /// Convertit en json un couple nom/valeur + /// + /// + /// + /// couple au format json + private String convertToJson(Object nom, Object valeur) + { + Dictionary dictionary = new Dictionary(); + dictionary.Add(nom, valeur); + return JsonConvert.SerializeObject(dictionary); + } + + /// + /// Modification du convertisseur Json pour gérer le format de date + /// + private sealed class CustomDateTimeConverter : IsoDateTimeConverter + { + public CustomDateTimeConverter() + { + base.DateTimeFormat = "yyyy-MM-dd"; + } + } + + /// + /// Modification du convertisseur Json pour prendre en compte les booléens + /// classe trouvée sur le site : + /// https://www.thecodebuzz.com/newtonsoft-jsonreaderexception-could-not-convert-string-to-boolean/ + /// + private sealed class CustomBooleanJsonConverter : JsonConverter + { + public override bool ReadJson(JsonReader reader, Type objectType, bool existingValue, bool hasExistingValue, JsonSerializer serializer) + { + return Convert.ToBoolean(reader.ValueType == typeof(string) ? Convert.ToByte(reader.Value) : reader.Value); + } + + public override void WriteJson(JsonWriter writer, bool value, JsonSerializer serializer) + { + serializer.Serialize(writer, value); + } + } + + } +} diff --git a/MediaTekDocuments/manager/ApiRest.cs b/MediaTekDocuments/manager/ApiRest.cs new file mode 100644 index 0000000..261fe9e --- /dev/null +++ b/MediaTekDocuments/manager/ApiRest.cs @@ -0,0 +1,96 @@ +using System; +using System.Net.Http; +using Newtonsoft.Json.Linq; + +namespace MediaTekDocuments.manager +{ + /// + /// Classe indépendante d'accès à une api rest avec éventuellement une "basic authorization" + /// + class ApiRest + { + /// + /// unique instance de la classe + /// + private static ApiRest instance = null; + /// + /// Objet de connexion à l'api + /// + private readonly HttpClient httpClient; + /// + /// Canal http pour l'envoi du message et la récupération de la réponse + /// + private HttpResponseMessage httpResponse; + + /// + /// Constructeur privé pour préparer la connexion (éventuellement sécurisée) + /// + /// adresse de l'api + /// chaîne d'authentification + private ApiRest(String uriApi, String authenticationString="") + { + httpClient = new HttpClient() { BaseAddress = new Uri(uriApi) }; + // prise en compte dans l'url de l'authentificaiton (basic authorization), si elle n'est pas vide + if (!String.IsNullOrEmpty(authenticationString)) + { + String base64EncodedAuthenticationString = Convert.ToBase64String(System.Text.ASCIIEncoding.ASCII.GetBytes(authenticationString)); + httpClient.DefaultRequestHeaders.Add("Authorization", "Basic " + base64EncodedAuthenticationString); + } + } + + /// + /// Crée une instance unique de la classe + /// + /// adresse de l'api + /// chaîne d'authentificatio (login:pwd) + /// + public static ApiRest GetInstance(String uriApi, String authenticationString) + { + if(instance == null) + { + instance = new ApiRest(uriApi, authenticationString); + } + return instance; + } + + /// + /// Envoi une demande à l'API et récupère la réponse + /// + /// verbe http (GET, POST, PUT, DELETE) + /// message à envoyer dans l'URL + /// contenu de variables à mettre dans body + /// liste d'objets (select) ou liste vide (ok) ou null si erreur + public JObject RecupDistant(string methode, string message, String parametres) + { + // transformation des paramètres pour les mettre dans le body + StringContent content = null; + if(!(parametres is null)) + { + content = new StringContent(parametres, System.Text.Encoding.UTF8, "application/x-www-form-urlencoded"); + } + // envoi du message et attente de la réponse + switch (methode) + { + case "GET": + httpResponse = httpClient.GetAsync(message).Result; + break; + case "POST": + httpResponse = httpClient.PostAsync(message, content).Result; + break; + case "PUT": + httpResponse = httpClient.PutAsync(message, content).Result; + break; + case "DELETE": + httpResponse = httpClient.DeleteAsync(message).Result; + break; + // methode incorrecte + default: + return new JObject(); + } + // récupération de l'information retournée par l'api + var json = httpResponse.Content.ReadAsStringAsync().Result; + return JObject.Parse(json); + } + + } +} diff --git a/MediaTekDocuments/model/Categorie.cs b/MediaTekDocuments/model/Categorie.cs new file mode 100644 index 0000000..9586515 --- /dev/null +++ b/MediaTekDocuments/model/Categorie.cs @@ -0,0 +1,28 @@ + +namespace MediaTekDocuments.model +{ + /// + /// Classe métier Categorie (réunit les informations des classes Public, Genre et Rayon) + /// + public class Categorie + { + public string Id { get; } + public string Libelle { get; } + + public Categorie(string id, string libelle) + { + this.Id = id; + this.Libelle = libelle; + } + + /// + /// Récupération du libellé pour l'affichage dans les combos + /// + /// Libelle + public override string ToString() + { + return this.Libelle; + } + + } +} diff --git a/MediaTekDocuments/model/Document.cs b/MediaTekDocuments/model/Document.cs new file mode 100644 index 0000000..6432acb --- /dev/null +++ b/MediaTekDocuments/model/Document.cs @@ -0,0 +1,32 @@ + +namespace MediaTekDocuments.model +{ + /// + /// Classe métier Document (réunit les infomations communes à tous les documents : Livre, Revue, Dvd) + /// + public class Document + { + public string Id { get; } + public string Titre { get; } + public string Image { get; } + public string IdGenre { get; } + public string Genre { get; } + public string IdPublic { get; } + public string Public { get; } + public string IdRayon { get; } + public string Rayon { get; } + + public Document(string id, string titre, string image, string idGenre, string genre, string idPublic, string lePublic, string idRayon, string rayon) + { + Id = id; + Titre = titre; + Image = image; + IdGenre = idGenre; + Genre = genre; + IdPublic = idPublic; + Public = lePublic; + IdRayon = idRayon; + Rayon = rayon; + } + } +} diff --git a/MediaTekDocuments/model/Dvd.cs b/MediaTekDocuments/model/Dvd.cs new file mode 100644 index 0000000..c9bf374 --- /dev/null +++ b/MediaTekDocuments/model/Dvd.cs @@ -0,0 +1,23 @@ + +namespace MediaTekDocuments.model +{ + /// + /// Classe métier Dvd hérite de LivreDvd : contient des propriétés spécifiques aux dvd + /// + public class Dvd : LivreDvd + { + public int Duree { get; } + public string Realisateur { get; } + public string Synopsis { get; } + + public Dvd(string id, string titre, string image, int duree, string realisateur, string synopsis, + string idGenre, string genre, string idPublic, string lePublic, string idRayon, string rayon) + : base(id, titre, image, idGenre, genre, idPublic, lePublic, idRayon, rayon) + { + this.Duree = duree; + this.Realisateur = realisateur; + this.Synopsis = synopsis; + } + + } +} diff --git a/MediaTekDocuments/model/Etat.cs b/MediaTekDocuments/model/Etat.cs new file mode 100644 index 0000000..fa1f105 --- /dev/null +++ b/MediaTekDocuments/model/Etat.cs @@ -0,0 +1,19 @@ + +namespace MediaTekDocuments.model +{ + /// + /// Classe métier Etat (état d'usure d'un document) + /// + public class Etat + { + public string Id { get; set; } + public string Libelle { get; set; } + + public Etat(string id, string libelle) + { + this.Id = id; + this.Libelle = libelle; + } + + } +} diff --git a/MediaTekDocuments/model/Exemplaire.cs b/MediaTekDocuments/model/Exemplaire.cs new file mode 100644 index 0000000..515a186 --- /dev/null +++ b/MediaTekDocuments/model/Exemplaire.cs @@ -0,0 +1,26 @@ +using System; + +namespace MediaTekDocuments.model +{ + /// + /// Classe métier Exemplaire (exemplaire d'une revue) + /// + public class Exemplaire + { + public int Numero { get; set; } + public string Photo { get; set; } + public DateTime DateAchat { get; set; } + public string IdEtat { get; set; } + public string Id { get; set; } + + public Exemplaire(int numero, DateTime dateAchat, string photo, string idEtat, string idDocument) + { + this.Numero = numero; + this.DateAchat = dateAchat; + this.Photo = photo; + this.IdEtat = idEtat; + this.Id = idDocument; + } + + } +} diff --git a/MediaTekDocuments/model/Genre.cs b/MediaTekDocuments/model/Genre.cs new file mode 100644 index 0000000..183422f --- /dev/null +++ b/MediaTekDocuments/model/Genre.cs @@ -0,0 +1,14 @@ + +namespace MediaTekDocuments.model +{ + /// + /// Classe métier Genre : hérite de Categorie + /// + public class Genre : Categorie + { + public Genre(string id, string libelle) : base(id, libelle) + { + } + + } +} diff --git a/MediaTekDocuments/model/Livre.cs b/MediaTekDocuments/model/Livre.cs new file mode 100644 index 0000000..4d6f8df --- /dev/null +++ b/MediaTekDocuments/model/Livre.cs @@ -0,0 +1,25 @@ + +namespace MediaTekDocuments.model +{ + /// + /// Classe métier Livre hérite de LivreDvd : contient des propriétés spécifiques aux livres + /// + public class Livre : LivreDvd + { + public string Isbn { get; } + public string Auteur { get; } + public string Collection { get; } + + public Livre(string id, string titre, string image, string isbn, string auteur, string collection, + string idGenre, string genre, string idPublic, string lePublic, string idRayon, string rayon) + : base(id, titre, image, idGenre, genre, idPublic, lePublic, idRayon, rayon) + { + this.Isbn = isbn; + this.Auteur = auteur; + this.Collection = collection; + } + + + + } +} diff --git a/MediaTekDocuments/model/LivreDvd.cs b/MediaTekDocuments/model/LivreDvd.cs new file mode 100644 index 0000000..ff616c5 --- /dev/null +++ b/MediaTekDocuments/model/LivreDvd.cs @@ -0,0 +1,16 @@ + +namespace MediaTekDocuments.model +{ + /// + /// Classe métier LivreDvd hérite de Document + /// + public abstract class LivreDvd : Document + { + protected LivreDvd(string id, string titre, string image, string idGenre, string genre, + string idPublic, string lePublic, string idRayon, string rayon) + : base(id, titre, image, idGenre, genre, idPublic, lePublic, idRayon, rayon) + { + } + + } +} diff --git a/MediaTekDocuments/model/Public.cs b/MediaTekDocuments/model/Public.cs new file mode 100644 index 0000000..beb7bf7 --- /dev/null +++ b/MediaTekDocuments/model/Public.cs @@ -0,0 +1,14 @@ + +namespace MediaTekDocuments.model +{ + /// + /// Classe métier Public (public concerné par le document) hérite de Categorie + /// + public class Public : Categorie + { + public Public(string id, string libelle) : base(id, libelle) + { + } + + } +} diff --git a/MediaTekDocuments/model/Rayon.cs b/MediaTekDocuments/model/Rayon.cs new file mode 100644 index 0000000..5cc8629 --- /dev/null +++ b/MediaTekDocuments/model/Rayon.cs @@ -0,0 +1,14 @@ + +namespace MediaTekDocuments.model +{ + /// + /// Classe métier Rayon (rayon de classement du document) hérite de Categorie + /// + public class Rayon : Categorie + { + public Rayon(string id, string libelle) : base(id, libelle) + { + } + + } +} diff --git a/MediaTekDocuments/model/Revue.cs b/MediaTekDocuments/model/Revue.cs new file mode 100644 index 0000000..07bb3dd --- /dev/null +++ b/MediaTekDocuments/model/Revue.cs @@ -0,0 +1,22 @@ + +namespace MediaTekDocuments.model +{ + /// + /// Classe métier Revue hérite de Document : contient des propriétés spécifiques aux revues + /// + public class Revue : Document + { + public string Periodicite { get; set; } + public int DelaiMiseADispo { get; set; } + + public Revue(string id, string titre, string image, string idGenre, string genre, + string idPublic, string lePublic, string idRayon, string rayon, + string periodicite, int delaiMiseADispo) + : base(id, titre, image, idGenre, genre, idPublic, lePublic, idRayon, rayon) + { + Periodicite = periodicite; + DelaiMiseADispo = delaiMiseADispo; + } + + } +} diff --git a/MediaTekDocuments/packages.config b/MediaTekDocuments/packages.config new file mode 100644 index 0000000..5eaa239 --- /dev/null +++ b/MediaTekDocuments/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/MediaTekDocuments/view/FrmMediatek.Designer.cs b/MediaTekDocuments/view/FrmMediatek.Designer.cs new file mode 100644 index 0000000..8b9b4d3 --- /dev/null +++ b/MediaTekDocuments/view/FrmMediatek.Designer.cs @@ -0,0 +1,1975 @@ + +namespace MediaTekDocuments.view +{ + partial class FrmMediatek + { + /// + /// Variable nécessaire au concepteur. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Nettoyage des ressources utilisées. + /// + /// true si les ressources managées doivent être supprimées ; sinon, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Code généré par le Concepteur Windows Form + + /// + /// Méthode requise pour la prise en charge du concepteur - ne modifiez pas + /// le contenu de cette méthode avec l'éditeur de code. + /// + private void InitializeComponent() + { + this.tabOngletsApplication = new System.Windows.Forms.TabControl(); + this.tabLivres = new System.Windows.Forms.TabPage(); + this.grpLivresInfos = new System.Windows.Forms.GroupBox(); + this.label59 = new System.Windows.Forms.Label(); + this.txbLivresIsbn = new System.Windows.Forms.TextBox(); + this.txbLivresImage = new System.Windows.Forms.TextBox(); + this.txbLivresRayon = new System.Windows.Forms.TextBox(); + this.txbLivresPublic = new System.Windows.Forms.TextBox(); + this.txbLivresGenre = new System.Windows.Forms.TextBox(); + this.txbLivresCollection = new System.Windows.Forms.TextBox(); + this.txbLivresAuteur = new System.Windows.Forms.TextBox(); + this.txbLivresTitre = new System.Windows.Forms.TextBox(); + this.txbLivresNumero = new System.Windows.Forms.TextBox(); + this.label22 = new System.Windows.Forms.Label(); + this.pcbLivresImage = new System.Windows.Forms.PictureBox(); + this.label19 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.grpLivresRecherche = new System.Windows.Forms.GroupBox(); + this.btnLivresAnnulRayons = new System.Windows.Forms.Button(); + this.btnlivresAnnulPublics = new System.Windows.Forms.Button(); + this.btnLivresNumRecherche = new System.Windows.Forms.Button(); + this.label5 = new System.Windows.Forms.Label(); + this.txbLivresNumRecherche = new System.Windows.Forms.TextBox(); + this.btnLivresAnnulGenres = new System.Windows.Forms.Button(); + this.cbxLivresRayons = new System.Windows.Forms.ComboBox(); + this.label21 = new System.Windows.Forms.Label(); + this.cbxLivresPublics = new System.Windows.Forms.ComboBox(); + this.label20 = new System.Windows.Forms.Label(); + this.cbxLivresGenres = new System.Windows.Forms.ComboBox(); + this.label14 = new System.Windows.Forms.Label(); + this.dgvLivresListe = new System.Windows.Forms.DataGridView(); + this.label6 = new System.Windows.Forms.Label(); + this.txbLivresTitreRecherche = new System.Windows.Forms.TextBox(); + this.tabDvd = new System.Windows.Forms.TabPage(); + this.grpDvdInfos = new System.Windows.Forms.GroupBox(); + this.label58 = new System.Windows.Forms.Label(); + this.txbDvdDuree = new System.Windows.Forms.TextBox(); + this.txbDvdImage = new System.Windows.Forms.TextBox(); + this.txbDvdRayon = new System.Windows.Forms.TextBox(); + this.txbDvdPublic = new System.Windows.Forms.TextBox(); + this.txbDvdGenre = new System.Windows.Forms.TextBox(); + this.txbDvdSynopsis = new System.Windows.Forms.TextBox(); + this.txbDvdRealisateur = new System.Windows.Forms.TextBox(); + this.txbDvdTitre = new System.Windows.Forms.TextBox(); + this.txbDvdNumero = new System.Windows.Forms.TextBox(); + this.label23 = new System.Windows.Forms.Label(); + this.pcbDvdImage = new System.Windows.Forms.PictureBox(); + this.label24 = new System.Windows.Forms.Label(); + this.label25 = new System.Windows.Forms.Label(); + this.label26 = new System.Windows.Forms.Label(); + this.label27 = new System.Windows.Forms.Label(); + this.label28 = new System.Windows.Forms.Label(); + this.label29 = new System.Windows.Forms.Label(); + this.label30 = new System.Windows.Forms.Label(); + this.label31 = new System.Windows.Forms.Label(); + this.grpDvdRecherche = new System.Windows.Forms.GroupBox(); + this.btnDvdAnnulRayons = new System.Windows.Forms.Button(); + this.btnDvdAnnulPublics = new System.Windows.Forms.Button(); + this.btnDvdNumRecherche = new System.Windows.Forms.Button(); + this.label38 = new System.Windows.Forms.Label(); + this.txbDvdNumRecherche = new System.Windows.Forms.TextBox(); + this.btnDvdAnnulGenres = new System.Windows.Forms.Button(); + this.cbxDvdRayons = new System.Windows.Forms.ComboBox(); + this.label39 = new System.Windows.Forms.Label(); + this.cbxDvdPublics = new System.Windows.Forms.ComboBox(); + this.label40 = new System.Windows.Forms.Label(); + this.cbxDvdGenres = new System.Windows.Forms.ComboBox(); + this.label41 = new System.Windows.Forms.Label(); + this.dgvDvdListe = new System.Windows.Forms.DataGridView(); + this.label42 = new System.Windows.Forms.Label(); + this.txbDvdTitreRecherche = new System.Windows.Forms.TextBox(); + this.tabRevues = new System.Windows.Forms.TabPage(); + this.grpRevuesInfos = new System.Windows.Forms.GroupBox(); + this.label57 = new System.Windows.Forms.Label(); + this.txbRevuesImage = new System.Windows.Forms.TextBox(); + this.txbRevuesRayon = new System.Windows.Forms.TextBox(); + this.txbRevuesPublic = new System.Windows.Forms.TextBox(); + this.txbRevuesGenre = new System.Windows.Forms.TextBox(); + this.txbRevuesDateMiseADispo = new System.Windows.Forms.TextBox(); + this.txbRevuesPeriodicite = new System.Windows.Forms.TextBox(); + this.txbRevuesTitre = new System.Windows.Forms.TextBox(); + this.txbRevuesNumero = new System.Windows.Forms.TextBox(); + this.label35 = new System.Windows.Forms.Label(); + this.pcbRevuesImage = new System.Windows.Forms.PictureBox(); + this.label36 = new System.Windows.Forms.Label(); + this.label37 = new System.Windows.Forms.Label(); + this.label43 = new System.Windows.Forms.Label(); + this.label44 = new System.Windows.Forms.Label(); + this.label45 = new System.Windows.Forms.Label(); + this.label46 = new System.Windows.Forms.Label(); + this.label47 = new System.Windows.Forms.Label(); + this.grpRevuesRecherche = new System.Windows.Forms.GroupBox(); + this.btnRevuesAnnulRayons = new System.Windows.Forms.Button(); + this.btnRevuesAnnulPublics = new System.Windows.Forms.Button(); + this.btnRevuesNumRecherche = new System.Windows.Forms.Button(); + this.label2 = new System.Windows.Forms.Label(); + this.txbRevuesNumRecherche = new System.Windows.Forms.TextBox(); + this.btnRevuesAnnulGenres = new System.Windows.Forms.Button(); + this.cbxRevuesRayons = new System.Windows.Forms.ComboBox(); + this.label4 = new System.Windows.Forms.Label(); + this.cbxRevuesPublics = new System.Windows.Forms.ComboBox(); + this.label32 = new System.Windows.Forms.Label(); + this.cbxRevuesGenres = new System.Windows.Forms.ComboBox(); + this.label33 = new System.Windows.Forms.Label(); + this.dgvRevuesListe = new System.Windows.Forms.DataGridView(); + this.label34 = new System.Windows.Forms.Label(); + this.txbRevuesTitreRecherche = new System.Windows.Forms.TextBox(); + this.tabReceptionRevue = new System.Windows.Forms.TabPage(); + this.grpReceptionExemplaire = new System.Windows.Forms.GroupBox(); + this.label55 = new System.Windows.Forms.Label(); + this.btnReceptionExemplaireImage = new System.Windows.Forms.Button(); + this.pcbReceptionExemplaireImage = new System.Windows.Forms.PictureBox(); + this.btnReceptionExemplaireValider = new System.Windows.Forms.Button(); + this.txbReceptionExemplaireImage = new System.Windows.Forms.TextBox(); + this.label18 = new System.Windows.Forms.Label(); + this.txbReceptionExemplaireNumero = new System.Windows.Forms.TextBox(); + this.label17 = new System.Windows.Forms.Label(); + this.dtpReceptionExemplaireDate = new System.Windows.Forms.DateTimePicker(); + this.label16 = new System.Windows.Forms.Label(); + this.grpReceptionRevue = new System.Windows.Forms.GroupBox(); + this.label48 = new System.Windows.Forms.Label(); + this.label56 = new System.Windows.Forms.Label(); + this.pcbReceptionExemplaireRevueImage = new System.Windows.Forms.PictureBox(); + this.label13 = new System.Windows.Forms.Label(); + this.dgvReceptionExemplairesListe = new System.Windows.Forms.DataGridView(); + this.txbReceptionRevueImage = new System.Windows.Forms.TextBox(); + this.txbReceptionRevueRayon = new System.Windows.Forms.TextBox(); + this.txbReceptionRevuePublic = new System.Windows.Forms.TextBox(); + this.txbReceptionRevueGenre = new System.Windows.Forms.TextBox(); + this.txbReceptionRevueDelaiMiseADispo = new System.Windows.Forms.TextBox(); + this.txbReceptionRevuePeriodicite = new System.Windows.Forms.TextBox(); + this.txbReceptionRevueTitre = new System.Windows.Forms.TextBox(); + this.txbReceptionRevueNumero = new System.Windows.Forms.TextBox(); + this.label3 = new System.Windows.Forms.Label(); + this.pcbReceptionRevueImage = new System.Windows.Forms.PictureBox(); + this.label15 = new System.Windows.Forms.Label(); + this.label49 = new System.Windows.Forms.Label(); + this.label50 = new System.Windows.Forms.Label(); + this.label51 = new System.Windows.Forms.Label(); + this.label52 = new System.Windows.Forms.Label(); + this.label53 = new System.Windows.Forms.Label(); + this.label54 = new System.Windows.Forms.Label(); + this.btnReceptionRechercher = new System.Windows.Forms.Button(); + this.tabOngletsApplication.SuspendLayout(); + this.tabLivres.SuspendLayout(); + this.grpLivresInfos.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pcbLivresImage)).BeginInit(); + this.grpLivresRecherche.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dgvLivresListe)).BeginInit(); + this.tabDvd.SuspendLayout(); + this.grpDvdInfos.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pcbDvdImage)).BeginInit(); + this.grpDvdRecherche.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dgvDvdListe)).BeginInit(); + this.tabRevues.SuspendLayout(); + this.grpRevuesInfos.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pcbRevuesImage)).BeginInit(); + this.grpRevuesRecherche.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dgvRevuesListe)).BeginInit(); + this.tabReceptionRevue.SuspendLayout(); + this.grpReceptionExemplaire.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pcbReceptionExemplaireImage)).BeginInit(); + this.grpReceptionRevue.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pcbReceptionExemplaireRevueImage)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvReceptionExemplairesListe)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pcbReceptionRevueImage)).BeginInit(); + this.SuspendLayout(); + // + // tabOngletsApplication + // + this.tabOngletsApplication.Controls.Add(this.tabLivres); + this.tabOngletsApplication.Controls.Add(this.tabDvd); + this.tabOngletsApplication.Controls.Add(this.tabRevues); + this.tabOngletsApplication.Controls.Add(this.tabReceptionRevue); + this.tabOngletsApplication.Dock = System.Windows.Forms.DockStyle.Fill; + this.tabOngletsApplication.ItemSize = new System.Drawing.Size(49, 18); + this.tabOngletsApplication.Location = new System.Drawing.Point(0, 0); + this.tabOngletsApplication.Name = "tabOngletsApplication"; + this.tabOngletsApplication.SelectedIndex = 0; + this.tabOngletsApplication.Size = new System.Drawing.Size(883, 659); + this.tabOngletsApplication.TabIndex = 0; + // + // tabLivres + // + this.tabLivres.Controls.Add(this.grpLivresInfos); + this.tabLivres.Controls.Add(this.grpLivresRecherche); + this.tabLivres.Location = new System.Drawing.Point(4, 22); + this.tabLivres.Name = "tabLivres"; + this.tabLivres.Size = new System.Drawing.Size(875, 633); + this.tabLivres.TabIndex = 2; + this.tabLivres.Text = "Livres"; + this.tabLivres.UseVisualStyleBackColor = true; + this.tabLivres.Enter += new System.EventHandler(this.TabLivres_Enter); + // + // grpLivresInfos + // + this.grpLivresInfos.Controls.Add(this.label59); + this.grpLivresInfos.Controls.Add(this.txbLivresIsbn); + this.grpLivresInfos.Controls.Add(this.txbLivresImage); + this.grpLivresInfos.Controls.Add(this.txbLivresRayon); + this.grpLivresInfos.Controls.Add(this.txbLivresPublic); + this.grpLivresInfos.Controls.Add(this.txbLivresGenre); + this.grpLivresInfos.Controls.Add(this.txbLivresCollection); + this.grpLivresInfos.Controls.Add(this.txbLivresAuteur); + this.grpLivresInfos.Controls.Add(this.txbLivresTitre); + this.grpLivresInfos.Controls.Add(this.txbLivresNumero); + this.grpLivresInfos.Controls.Add(this.label22); + this.grpLivresInfos.Controls.Add(this.pcbLivresImage); + this.grpLivresInfos.Controls.Add(this.label19); + this.grpLivresInfos.Controls.Add(this.label1); + this.grpLivresInfos.Controls.Add(this.label10); + this.grpLivresInfos.Controls.Add(this.label7); + this.grpLivresInfos.Controls.Add(this.label11); + this.grpLivresInfos.Controls.Add(this.label8); + this.grpLivresInfos.Controls.Add(this.label12); + this.grpLivresInfos.Controls.Add(this.label9); + this.grpLivresInfos.Location = new System.Drawing.Point(8, 381); + this.grpLivresInfos.Name = "grpLivresInfos"; + this.grpLivresInfos.Size = new System.Drawing.Size(859, 245); + this.grpLivresInfos.TabIndex = 19; + this.grpLivresInfos.TabStop = false; + this.grpLivresInfos.Text = "Informations détaillées"; + // + // label59 + // + this.label59.AutoSize = true; + this.label59.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label59.Location = new System.Drawing.Point(557, 11); + this.label59.Name = "label59"; + this.label59.Size = new System.Drawing.Size(49, 13); + this.label59.TabIndex = 33; + this.label59.Text = "Image :"; + // + // txbLivresIsbn + // + this.txbLivresIsbn.Location = new System.Drawing.Point(441, 20); + this.txbLivresIsbn.Name = "txbLivresIsbn"; + this.txbLivresIsbn.ReadOnly = true; + this.txbLivresIsbn.Size = new System.Drawing.Size(100, 20); + this.txbLivresIsbn.TabIndex = 32; + // + // txbLivresImage + // + this.txbLivresImage.Location = new System.Drawing.Point(150, 195); + this.txbLivresImage.Name = "txbLivresImage"; + this.txbLivresImage.ReadOnly = true; + this.txbLivresImage.Size = new System.Drawing.Size(391, 20); + this.txbLivresImage.TabIndex = 31; + // + // txbLivresRayon + // + this.txbLivresRayon.Location = new System.Drawing.Point(150, 170); + this.txbLivresRayon.Name = "txbLivresRayon"; + this.txbLivresRayon.ReadOnly = true; + this.txbLivresRayon.Size = new System.Drawing.Size(207, 20); + this.txbLivresRayon.TabIndex = 30; + // + // txbLivresPublic + // + this.txbLivresPublic.Location = new System.Drawing.Point(150, 145); + this.txbLivresPublic.Name = "txbLivresPublic"; + this.txbLivresPublic.ReadOnly = true; + this.txbLivresPublic.Size = new System.Drawing.Size(207, 20); + this.txbLivresPublic.TabIndex = 29; + // + // txbLivresGenre + // + this.txbLivresGenre.Location = new System.Drawing.Point(150, 120); + this.txbLivresGenre.Name = "txbLivresGenre"; + this.txbLivresGenre.ReadOnly = true; + this.txbLivresGenre.Size = new System.Drawing.Size(207, 20); + this.txbLivresGenre.TabIndex = 28; + // + // txbLivresCollection + // + this.txbLivresCollection.Location = new System.Drawing.Point(150, 95); + this.txbLivresCollection.Name = "txbLivresCollection"; + this.txbLivresCollection.ReadOnly = true; + this.txbLivresCollection.Size = new System.Drawing.Size(391, 20); + this.txbLivresCollection.TabIndex = 27; + // + // txbLivresAuteur + // + this.txbLivresAuteur.Location = new System.Drawing.Point(150, 70); + this.txbLivresAuteur.Name = "txbLivresAuteur"; + this.txbLivresAuteur.ReadOnly = true; + this.txbLivresAuteur.Size = new System.Drawing.Size(207, 20); + this.txbLivresAuteur.TabIndex = 26; + // + // txbLivresTitre + // + this.txbLivresTitre.Location = new System.Drawing.Point(150, 45); + this.txbLivresTitre.Name = "txbLivresTitre"; + this.txbLivresTitre.ReadOnly = true; + this.txbLivresTitre.Size = new System.Drawing.Size(391, 20); + this.txbLivresTitre.TabIndex = 25; + // + // txbLivresNumero + // + this.txbLivresNumero.Location = new System.Drawing.Point(150, 20); + this.txbLivresNumero.Name = "txbLivresNumero"; + this.txbLivresNumero.ReadOnly = true; + this.txbLivresNumero.Size = new System.Drawing.Size(100, 20); + this.txbLivresNumero.TabIndex = 24; + // + // label22 + // + this.label22.AutoSize = true; + this.label22.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label22.Location = new System.Drawing.Point(6, 120); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(49, 13); + this.label22.TabIndex = 22; + this.label22.Text = "Genre :"; + // + // pcbLivresImage + // + this.pcbLivresImage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.pcbLivresImage.Location = new System.Drawing.Point(560, 27); + this.pcbLivresImage.Name = "pcbLivresImage"; + this.pcbLivresImage.Size = new System.Drawing.Size(284, 210); + this.pcbLivresImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pcbLivresImage.TabIndex = 21; + this.pcbLivresImage.TabStop = false; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label19.Location = new System.Drawing.Point(6, 145); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(50, 13); + this.label19.TabIndex = 19; + this.label19.Text = "Public :"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.Location = new System.Drawing.Point(6, 170); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(51, 13); + this.label1.TabIndex = 17; + this.label1.Text = "Rayon :"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label10.Location = new System.Drawing.Point(6, 45); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(41, 13); + this.label10.TabIndex = 8; + this.label10.Text = "Titre :"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label7.Location = new System.Drawing.Point(6, 20); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(135, 13); + this.label7.TabIndex = 5; + this.label7.Text = "Numéro de document :"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label11.Location = new System.Drawing.Point(6, 70); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(67, 13); + this.label11.TabIndex = 9; + this.label11.Text = "Auteur(e) :"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label8.Location = new System.Drawing.Point(6, 195); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(117, 13); + this.label8.TabIndex = 6; + this.label8.Text = "Chemin de l\'image :"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label12.Location = new System.Drawing.Point(6, 95); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(71, 13); + this.label12.TabIndex = 10; + this.label12.Text = "Collection :"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label9.Location = new System.Drawing.Point(357, 20); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(77, 13); + this.label9.TabIndex = 7; + this.label9.Text = "Code ISBN :"; + // + // grpLivresRecherche + // + this.grpLivresRecherche.Controls.Add(this.btnLivresAnnulRayons); + this.grpLivresRecherche.Controls.Add(this.btnlivresAnnulPublics); + this.grpLivresRecherche.Controls.Add(this.btnLivresNumRecherche); + this.grpLivresRecherche.Controls.Add(this.label5); + this.grpLivresRecherche.Controls.Add(this.txbLivresNumRecherche); + this.grpLivresRecherche.Controls.Add(this.btnLivresAnnulGenres); + this.grpLivresRecherche.Controls.Add(this.cbxLivresRayons); + this.grpLivresRecherche.Controls.Add(this.label21); + this.grpLivresRecherche.Controls.Add(this.cbxLivresPublics); + this.grpLivresRecherche.Controls.Add(this.label20); + this.grpLivresRecherche.Controls.Add(this.cbxLivresGenres); + this.grpLivresRecherche.Controls.Add(this.label14); + this.grpLivresRecherche.Controls.Add(this.dgvLivresListe); + this.grpLivresRecherche.Controls.Add(this.label6); + this.grpLivresRecherche.Controls.Add(this.txbLivresTitreRecherche); + this.grpLivresRecherche.Location = new System.Drawing.Point(8, 13); + this.grpLivresRecherche.Name = "grpLivresRecherche"; + this.grpLivresRecherche.Size = new System.Drawing.Size(859, 362); + this.grpLivresRecherche.TabIndex = 18; + this.grpLivresRecherche.TabStop = false; + this.grpLivresRecherche.Text = "Recherches"; + // + // btnLivresAnnulRayons + // + this.btnLivresAnnulRayons.Location = new System.Drawing.Point(833, 104); + this.btnLivresAnnulRayons.Name = "btnLivresAnnulRayons"; + this.btnLivresAnnulRayons.Size = new System.Drawing.Size(22, 22); + this.btnLivresAnnulRayons.TabIndex = 16; + this.btnLivresAnnulRayons.Text = "X"; + this.btnLivresAnnulRayons.UseVisualStyleBackColor = true; + this.btnLivresAnnulRayons.Click += new System.EventHandler(this.BtnLivresAnnulRayons_Click); + // + // btnlivresAnnulPublics + // + this.btnlivresAnnulPublics.Location = new System.Drawing.Point(833, 60); + this.btnlivresAnnulPublics.Name = "btnlivresAnnulPublics"; + this.btnlivresAnnulPublics.Size = new System.Drawing.Size(22, 22); + this.btnlivresAnnulPublics.TabIndex = 15; + this.btnlivresAnnulPublics.Text = "X"; + this.btnlivresAnnulPublics.UseVisualStyleBackColor = true; + this.btnlivresAnnulPublics.Click += new System.EventHandler(this.BtnLivresAnnulPublics_Click); + // + // btnLivresNumRecherche + // + this.btnLivresNumRecherche.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnLivresNumRecherche.Location = new System.Drawing.Point(314, 59); + this.btnLivresNumRecherche.Name = "btnLivresNumRecherche"; + this.btnLivresNumRecherche.Size = new System.Drawing.Size(96, 22); + this.btnLivresNumRecherche.TabIndex = 14; + this.btnLivresNumRecherche.Text = "Rechercher"; + this.btnLivresNumRecherche.UseVisualStyleBackColor = true; + this.btnLivresNumRecherche.Click += new System.EventHandler(this.BtnLivresNumRecherche_Click); + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label5.Location = new System.Drawing.Point(6, 63); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(186, 13); + this.label5.TabIndex = 13; + this.label5.Text = "Saisir un numéro de document :"; + // + // txbLivresNumRecherche + // + this.txbLivresNumRecherche.Location = new System.Drawing.Point(220, 60); + this.txbLivresNumRecherche.Name = "txbLivresNumRecherche"; + this.txbLivresNumRecherche.Size = new System.Drawing.Size(67, 20); + this.txbLivresNumRecherche.TabIndex = 12; + // + // btnLivresAnnulGenres + // + this.btnLivresAnnulGenres.Location = new System.Drawing.Point(833, 17); + this.btnLivresAnnulGenres.Name = "btnLivresAnnulGenres"; + this.btnLivresAnnulGenres.Size = new System.Drawing.Size(22, 22); + this.btnLivresAnnulGenres.TabIndex = 11; + this.btnLivresAnnulGenres.Text = "X"; + this.btnLivresAnnulGenres.UseVisualStyleBackColor = true; + this.btnLivresAnnulGenres.Click += new System.EventHandler(this.BtnLivresAnnulGenres_Click); + // + // cbxLivresRayons + // + this.cbxLivresRayons.FormattingEnabled = true; + this.cbxLivresRayons.Location = new System.Drawing.Point(620, 105); + this.cbxLivresRayons.Name = "cbxLivresRayons"; + this.cbxLivresRayons.Size = new System.Drawing.Size(207, 21); + this.cbxLivresRayons.TabIndex = 10; + this.cbxLivresRayons.SelectedIndexChanged += new System.EventHandler(this.CbxLivresRayons_SelectedIndexChanged); + // + // label21 + // + this.label21.AutoSize = true; + this.label21.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label21.Location = new System.Drawing.Point(458, 108); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(153, 13); + this.label21.TabIndex = 9; + this.label21.Text = "Ou sélectionner le rayon :"; + // + // cbxLivresPublics + // + this.cbxLivresPublics.FormattingEnabled = true; + this.cbxLivresPublics.Location = new System.Drawing.Point(620, 60); + this.cbxLivresPublics.Name = "cbxLivresPublics"; + this.cbxLivresPublics.Size = new System.Drawing.Size(207, 21); + this.cbxLivresPublics.TabIndex = 8; + this.cbxLivresPublics.SelectedIndexChanged += new System.EventHandler(this.CbxLivresPublics_SelectedIndexChanged); + // + // label20 + // + this.label20.AutoSize = true; + this.label20.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label20.Location = new System.Drawing.Point(458, 63); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(156, 13); + this.label20.TabIndex = 7; + this.label20.Text = "Ou sélectionner le public :"; + // + // cbxLivresGenres + // + this.cbxLivresGenres.FormattingEnabled = true; + this.cbxLivresGenres.Location = new System.Drawing.Point(620, 18); + this.cbxLivresGenres.Name = "cbxLivresGenres"; + this.cbxLivresGenres.Size = new System.Drawing.Size(207, 21); + this.cbxLivresGenres.TabIndex = 6; + this.cbxLivresGenres.SelectedIndexChanged += new System.EventHandler(this.CbxLivresGenres_SelectedIndexChanged); + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label14.Location = new System.Drawing.Point(460, 21); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(154, 13); + this.label14.TabIndex = 5; + this.label14.Text = "Ou sélectionner le genre :"; + // + // dgvLivresListe + // + this.dgvLivresListe.AllowUserToAddRows = false; + this.dgvLivresListe.AllowUserToDeleteRows = false; + this.dgvLivresListe.AllowUserToResizeColumns = false; + this.dgvLivresListe.AllowUserToResizeRows = false; + this.dgvLivresListe.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvLivresListe.Location = new System.Drawing.Point(9, 150); + this.dgvLivresListe.MultiSelect = false; + this.dgvLivresListe.Name = "dgvLivresListe"; + this.dgvLivresListe.ReadOnly = true; + this.dgvLivresListe.RowHeadersVisible = false; + this.dgvLivresListe.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.dgvLivresListe.Size = new System.Drawing.Size(844, 200); + this.dgvLivresListe.TabIndex = 4; + this.dgvLivresListe.ColumnHeaderMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.DgvLivresListe_ColumnHeaderMouseClick); + this.dgvLivresListe.SelectionChanged += new System.EventHandler(this.DgvLivresListe_SelectionChanged); + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label6.Location = new System.Drawing.Point(6, 21); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(208, 13); + this.label6.TabIndex = 2; + this.label6.Text = "Saisir le titre ou la partie d\'un titre :"; + // + // txbLivresTitreRecherche + // + this.txbLivresTitreRecherche.Location = new System.Drawing.Point(220, 18); + this.txbLivresTitreRecherche.Name = "txbLivresTitreRecherche"; + this.txbLivresTitreRecherche.Size = new System.Drawing.Size(190, 20); + this.txbLivresTitreRecherche.TabIndex = 3; + this.txbLivresTitreRecherche.TextChanged += new System.EventHandler(this.TxbLivresTitreRecherche_TextChanged); + // + // tabDvd + // + this.tabDvd.Controls.Add(this.grpDvdInfos); + this.tabDvd.Controls.Add(this.grpDvdRecherche); + this.tabDvd.Location = new System.Drawing.Point(4, 22); + this.tabDvd.Name = "tabDvd"; + this.tabDvd.Size = new System.Drawing.Size(875, 633); + this.tabDvd.TabIndex = 3; + this.tabDvd.Text = "DVD"; + this.tabDvd.UseVisualStyleBackColor = true; + this.tabDvd.Enter += new System.EventHandler(this.tabDvd_Enter); + // + // grpDvdInfos + // + this.grpDvdInfos.Controls.Add(this.label58); + this.grpDvdInfos.Controls.Add(this.txbDvdDuree); + this.grpDvdInfos.Controls.Add(this.txbDvdImage); + this.grpDvdInfos.Controls.Add(this.txbDvdRayon); + this.grpDvdInfos.Controls.Add(this.txbDvdPublic); + this.grpDvdInfos.Controls.Add(this.txbDvdGenre); + this.grpDvdInfos.Controls.Add(this.txbDvdSynopsis); + this.grpDvdInfos.Controls.Add(this.txbDvdRealisateur); + this.grpDvdInfos.Controls.Add(this.txbDvdTitre); + this.grpDvdInfos.Controls.Add(this.txbDvdNumero); + this.grpDvdInfos.Controls.Add(this.label23); + this.grpDvdInfos.Controls.Add(this.pcbDvdImage); + this.grpDvdInfos.Controls.Add(this.label24); + this.grpDvdInfos.Controls.Add(this.label25); + this.grpDvdInfos.Controls.Add(this.label26); + this.grpDvdInfos.Controls.Add(this.label27); + this.grpDvdInfos.Controls.Add(this.label28); + this.grpDvdInfos.Controls.Add(this.label29); + this.grpDvdInfos.Controls.Add(this.label30); + this.grpDvdInfos.Controls.Add(this.label31); + this.grpDvdInfos.Location = new System.Drawing.Point(8, 381); + this.grpDvdInfos.Name = "grpDvdInfos"; + this.grpDvdInfos.Size = new System.Drawing.Size(859, 245); + this.grpDvdInfos.TabIndex = 21; + this.grpDvdInfos.TabStop = false; + this.grpDvdInfos.Text = "Informations détaillées"; + // + // label58 + // + this.label58.AutoSize = true; + this.label58.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label58.Location = new System.Drawing.Point(557, 11); + this.label58.Name = "label58"; + this.label58.Size = new System.Drawing.Size(49, 13); + this.label58.TabIndex = 33; + this.label58.Text = "Image :"; + // + // txbDvdDuree + // + this.txbDvdDuree.Location = new System.Drawing.Point(441, 20); + this.txbDvdDuree.Name = "txbDvdDuree"; + this.txbDvdDuree.ReadOnly = true; + this.txbDvdDuree.Size = new System.Drawing.Size(100, 20); + this.txbDvdDuree.TabIndex = 32; + // + // txbDvdImage + // + this.txbDvdImage.Location = new System.Drawing.Point(150, 215); + this.txbDvdImage.Name = "txbDvdImage"; + this.txbDvdImage.ReadOnly = true; + this.txbDvdImage.Size = new System.Drawing.Size(391, 20); + this.txbDvdImage.TabIndex = 31; + // + // txbDvdRayon + // + this.txbDvdRayon.Location = new System.Drawing.Point(150, 190); + this.txbDvdRayon.Name = "txbDvdRayon"; + this.txbDvdRayon.ReadOnly = true; + this.txbDvdRayon.Size = new System.Drawing.Size(207, 20); + this.txbDvdRayon.TabIndex = 30; + // + // txbDvdPublic + // + this.txbDvdPublic.Location = new System.Drawing.Point(150, 165); + this.txbDvdPublic.Name = "txbDvdPublic"; + this.txbDvdPublic.ReadOnly = true; + this.txbDvdPublic.Size = new System.Drawing.Size(207, 20); + this.txbDvdPublic.TabIndex = 29; + // + // txbDvdGenre + // + this.txbDvdGenre.Location = new System.Drawing.Point(150, 140); + this.txbDvdGenre.Name = "txbDvdGenre"; + this.txbDvdGenre.ReadOnly = true; + this.txbDvdGenre.Size = new System.Drawing.Size(207, 20); + this.txbDvdGenre.TabIndex = 28; + // + // txbDvdSynopsis + // + this.txbDvdSynopsis.AcceptsReturn = true; + this.txbDvdSynopsis.Location = new System.Drawing.Point(150, 95); + this.txbDvdSynopsis.Multiline = true; + this.txbDvdSynopsis.Name = "txbDvdSynopsis"; + this.txbDvdSynopsis.ReadOnly = true; + this.txbDvdSynopsis.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; + this.txbDvdSynopsis.Size = new System.Drawing.Size(391, 39); + this.txbDvdSynopsis.TabIndex = 27; + // + // txbDvdRealisateur + // + this.txbDvdRealisateur.Location = new System.Drawing.Point(150, 70); + this.txbDvdRealisateur.Name = "txbDvdRealisateur"; + this.txbDvdRealisateur.ReadOnly = true; + this.txbDvdRealisateur.Size = new System.Drawing.Size(207, 20); + this.txbDvdRealisateur.TabIndex = 26; + // + // txbDvdTitre + // + this.txbDvdTitre.Location = new System.Drawing.Point(150, 45); + this.txbDvdTitre.Name = "txbDvdTitre"; + this.txbDvdTitre.ReadOnly = true; + this.txbDvdTitre.Size = new System.Drawing.Size(391, 20); + this.txbDvdTitre.TabIndex = 25; + // + // txbDvdNumero + // + this.txbDvdNumero.Location = new System.Drawing.Point(150, 20); + this.txbDvdNumero.Name = "txbDvdNumero"; + this.txbDvdNumero.ReadOnly = true; + this.txbDvdNumero.Size = new System.Drawing.Size(100, 20); + this.txbDvdNumero.TabIndex = 24; + // + // label23 + // + this.label23.AutoSize = true; + this.label23.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label23.Location = new System.Drawing.Point(6, 140); + this.label23.Name = "label23"; + this.label23.Size = new System.Drawing.Size(49, 13); + this.label23.TabIndex = 22; + this.label23.Text = "Genre :"; + // + // pcbDvdImage + // + this.pcbDvdImage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.pcbDvdImage.Location = new System.Drawing.Point(560, 27); + this.pcbDvdImage.Name = "pcbDvdImage"; + this.pcbDvdImage.Size = new System.Drawing.Size(284, 210); + this.pcbDvdImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pcbDvdImage.TabIndex = 21; + this.pcbDvdImage.TabStop = false; + // + // label24 + // + this.label24.AutoSize = true; + this.label24.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label24.Location = new System.Drawing.Point(6, 165); + this.label24.Name = "label24"; + this.label24.Size = new System.Drawing.Size(50, 13); + this.label24.TabIndex = 19; + this.label24.Text = "Public :"; + // + // label25 + // + this.label25.AutoSize = true; + this.label25.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label25.Location = new System.Drawing.Point(6, 190); + this.label25.Name = "label25"; + this.label25.Size = new System.Drawing.Size(51, 13); + this.label25.TabIndex = 17; + this.label25.Text = "Rayon :"; + // + // label26 + // + this.label26.AutoSize = true; + this.label26.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label26.Location = new System.Drawing.Point(6, 45); + this.label26.Name = "label26"; + this.label26.Size = new System.Drawing.Size(41, 13); + this.label26.TabIndex = 8; + this.label26.Text = "Titre :"; + // + // label27 + // + this.label27.AutoSize = true; + this.label27.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label27.Location = new System.Drawing.Point(6, 20); + this.label27.Name = "label27"; + this.label27.Size = new System.Drawing.Size(135, 13); + this.label27.TabIndex = 5; + this.label27.Text = "Numéro de document :"; + // + // label28 + // + this.label28.AutoSize = true; + this.label28.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label28.Location = new System.Drawing.Point(6, 70); + this.label28.Name = "label28"; + this.label28.Size = new System.Drawing.Size(112, 13); + this.label28.TabIndex = 9; + this.label28.Text = "Réalisateur(trice) :"; + // + // label29 + // + this.label29.AutoSize = true; + this.label29.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label29.Location = new System.Drawing.Point(6, 215); + this.label29.Name = "label29"; + this.label29.Size = new System.Drawing.Size(117, 13); + this.label29.TabIndex = 6; + this.label29.Text = "Chemin de l\'image :"; + // + // label30 + // + this.label30.AutoSize = true; + this.label30.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label30.Location = new System.Drawing.Point(6, 95); + this.label30.Name = "label30"; + this.label30.Size = new System.Drawing.Size(65, 13); + this.label30.TabIndex = 10; + this.label30.Text = "Synopsis :"; + // + // label31 + // + this.label31.AutoSize = true; + this.label31.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label31.Location = new System.Drawing.Point(357, 20); + this.label31.Name = "label31"; + this.label31.Size = new System.Drawing.Size(49, 13); + this.label31.TabIndex = 7; + this.label31.Text = "Durée :"; + // + // grpDvdRecherche + // + this.grpDvdRecherche.Controls.Add(this.btnDvdAnnulRayons); + this.grpDvdRecherche.Controls.Add(this.btnDvdAnnulPublics); + this.grpDvdRecherche.Controls.Add(this.btnDvdNumRecherche); + this.grpDvdRecherche.Controls.Add(this.label38); + this.grpDvdRecherche.Controls.Add(this.txbDvdNumRecherche); + this.grpDvdRecherche.Controls.Add(this.btnDvdAnnulGenres); + this.grpDvdRecherche.Controls.Add(this.cbxDvdRayons); + this.grpDvdRecherche.Controls.Add(this.label39); + this.grpDvdRecherche.Controls.Add(this.cbxDvdPublics); + this.grpDvdRecherche.Controls.Add(this.label40); + this.grpDvdRecherche.Controls.Add(this.cbxDvdGenres); + this.grpDvdRecherche.Controls.Add(this.label41); + this.grpDvdRecherche.Controls.Add(this.dgvDvdListe); + this.grpDvdRecherche.Controls.Add(this.label42); + this.grpDvdRecherche.Controls.Add(this.txbDvdTitreRecherche); + this.grpDvdRecherche.Location = new System.Drawing.Point(8, 13); + this.grpDvdRecherche.Name = "grpDvdRecherche"; + this.grpDvdRecherche.Size = new System.Drawing.Size(859, 362); + this.grpDvdRecherche.TabIndex = 20; + this.grpDvdRecherche.TabStop = false; + this.grpDvdRecherche.Text = "Recherches"; + // + // btnDvdAnnulRayons + // + this.btnDvdAnnulRayons.Location = new System.Drawing.Point(833, 104); + this.btnDvdAnnulRayons.Name = "btnDvdAnnulRayons"; + this.btnDvdAnnulRayons.Size = new System.Drawing.Size(22, 22); + this.btnDvdAnnulRayons.TabIndex = 16; + this.btnDvdAnnulRayons.Text = "X"; + this.btnDvdAnnulRayons.UseVisualStyleBackColor = true; + this.btnDvdAnnulRayons.Click += new System.EventHandler(this.btnDvdAnnulRayons_Click); + // + // btnDvdAnnulPublics + // + this.btnDvdAnnulPublics.Location = new System.Drawing.Point(833, 60); + this.btnDvdAnnulPublics.Name = "btnDvdAnnulPublics"; + this.btnDvdAnnulPublics.Size = new System.Drawing.Size(22, 22); + this.btnDvdAnnulPublics.TabIndex = 15; + this.btnDvdAnnulPublics.Text = "X"; + this.btnDvdAnnulPublics.UseVisualStyleBackColor = true; + this.btnDvdAnnulPublics.Click += new System.EventHandler(this.btnDvdAnnulPublics_Click); + // + // btnDvdNumRecherche + // + this.btnDvdNumRecherche.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnDvdNumRecherche.Location = new System.Drawing.Point(314, 59); + this.btnDvdNumRecherche.Name = "btnDvdNumRecherche"; + this.btnDvdNumRecherche.Size = new System.Drawing.Size(96, 22); + this.btnDvdNumRecherche.TabIndex = 14; + this.btnDvdNumRecherche.Text = "Rechercher"; + this.btnDvdNumRecherche.UseVisualStyleBackColor = true; + this.btnDvdNumRecherche.Click += new System.EventHandler(this.btnDvdNumRecherche_Click); + // + // label38 + // + this.label38.AutoSize = true; + this.label38.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label38.Location = new System.Drawing.Point(6, 63); + this.label38.Name = "label38"; + this.label38.Size = new System.Drawing.Size(186, 13); + this.label38.TabIndex = 13; + this.label38.Text = "Saisir un numéro de document :"; + // + // txbDvdNumRecherche + // + this.txbDvdNumRecherche.Location = new System.Drawing.Point(220, 60); + this.txbDvdNumRecherche.Name = "txbDvdNumRecherche"; + this.txbDvdNumRecherche.Size = new System.Drawing.Size(67, 20); + this.txbDvdNumRecherche.TabIndex = 12; + // + // btnDvdAnnulGenres + // + this.btnDvdAnnulGenres.Location = new System.Drawing.Point(833, 17); + this.btnDvdAnnulGenres.Name = "btnDvdAnnulGenres"; + this.btnDvdAnnulGenres.Size = new System.Drawing.Size(22, 22); + this.btnDvdAnnulGenres.TabIndex = 11; + this.btnDvdAnnulGenres.Text = "X"; + this.btnDvdAnnulGenres.UseVisualStyleBackColor = true; + this.btnDvdAnnulGenres.Click += new System.EventHandler(this.btnDvdAnnulGenres_Click); + // + // cbxDvdRayons + // + this.cbxDvdRayons.FormattingEnabled = true; + this.cbxDvdRayons.Location = new System.Drawing.Point(620, 105); + this.cbxDvdRayons.Name = "cbxDvdRayons"; + this.cbxDvdRayons.Size = new System.Drawing.Size(207, 21); + this.cbxDvdRayons.TabIndex = 10; + this.cbxDvdRayons.SelectedIndexChanged += new System.EventHandler(this.cbxDvdRayons_SelectedIndexChanged); + // + // label39 + // + this.label39.AutoSize = true; + this.label39.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label39.Location = new System.Drawing.Point(458, 108); + this.label39.Name = "label39"; + this.label39.Size = new System.Drawing.Size(153, 13); + this.label39.TabIndex = 9; + this.label39.Text = "Ou sélectionner le rayon :"; + // + // cbxDvdPublics + // + this.cbxDvdPublics.FormattingEnabled = true; + this.cbxDvdPublics.Location = new System.Drawing.Point(620, 60); + this.cbxDvdPublics.Name = "cbxDvdPublics"; + this.cbxDvdPublics.Size = new System.Drawing.Size(207, 21); + this.cbxDvdPublics.TabIndex = 8; + this.cbxDvdPublics.SelectedIndexChanged += new System.EventHandler(this.cbxDvdPublics_SelectedIndexChanged); + // + // label40 + // + this.label40.AutoSize = true; + this.label40.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label40.Location = new System.Drawing.Point(458, 63); + this.label40.Name = "label40"; + this.label40.Size = new System.Drawing.Size(156, 13); + this.label40.TabIndex = 7; + this.label40.Text = "Ou sélectionner le public :"; + // + // cbxDvdGenres + // + this.cbxDvdGenres.FormattingEnabled = true; + this.cbxDvdGenres.Location = new System.Drawing.Point(620, 18); + this.cbxDvdGenres.Name = "cbxDvdGenres"; + this.cbxDvdGenres.Size = new System.Drawing.Size(207, 21); + this.cbxDvdGenres.TabIndex = 6; + this.cbxDvdGenres.SelectedIndexChanged += new System.EventHandler(this.cbxDvdGenres_SelectedIndexChanged); + // + // label41 + // + this.label41.AutoSize = true; + this.label41.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label41.Location = new System.Drawing.Point(460, 21); + this.label41.Name = "label41"; + this.label41.Size = new System.Drawing.Size(154, 13); + this.label41.TabIndex = 5; + this.label41.Text = "Ou sélectionner le genre :"; + // + // dgvDvdListe + // + this.dgvDvdListe.AllowUserToAddRows = false; + this.dgvDvdListe.AllowUserToDeleteRows = false; + this.dgvDvdListe.AllowUserToResizeColumns = false; + this.dgvDvdListe.AllowUserToResizeRows = false; + this.dgvDvdListe.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvDvdListe.Location = new System.Drawing.Point(9, 150); + this.dgvDvdListe.MultiSelect = false; + this.dgvDvdListe.Name = "dgvDvdListe"; + this.dgvDvdListe.ReadOnly = true; + this.dgvDvdListe.RowHeadersVisible = false; + this.dgvDvdListe.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.dgvDvdListe.Size = new System.Drawing.Size(844, 200); + this.dgvDvdListe.TabIndex = 4; + this.dgvDvdListe.ColumnHeaderMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvDvdListe_ColumnHeaderMouseClick); + this.dgvDvdListe.SelectionChanged += new System.EventHandler(this.dgvDvdListe_SelectionChanged); + // + // label42 + // + this.label42.AutoSize = true; + this.label42.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label42.Location = new System.Drawing.Point(6, 21); + this.label42.Name = "label42"; + this.label42.Size = new System.Drawing.Size(208, 13); + this.label42.TabIndex = 2; + this.label42.Text = "Saisir le titre ou la partie d\'un titre :"; + // + // txbDvdTitreRecherche + // + this.txbDvdTitreRecherche.Location = new System.Drawing.Point(220, 18); + this.txbDvdTitreRecherche.Name = "txbDvdTitreRecherche"; + this.txbDvdTitreRecherche.Size = new System.Drawing.Size(190, 20); + this.txbDvdTitreRecherche.TabIndex = 3; + this.txbDvdTitreRecherche.TextChanged += new System.EventHandler(this.txbDvdTitreRecherche_TextChanged); + // + // tabRevues + // + this.tabRevues.Controls.Add(this.grpRevuesInfos); + this.tabRevues.Controls.Add(this.grpRevuesRecherche); + this.tabRevues.Location = new System.Drawing.Point(4, 22); + this.tabRevues.Name = "tabRevues"; + this.tabRevues.Padding = new System.Windows.Forms.Padding(3); + this.tabRevues.Size = new System.Drawing.Size(875, 633); + this.tabRevues.TabIndex = 1; + this.tabRevues.Text = "Revues"; + this.tabRevues.UseVisualStyleBackColor = true; + this.tabRevues.Enter += new System.EventHandler(this.tabRevues_Enter); + // + // grpRevuesInfos + // + this.grpRevuesInfos.Controls.Add(this.label57); + this.grpRevuesInfos.Controls.Add(this.txbRevuesImage); + this.grpRevuesInfos.Controls.Add(this.txbRevuesRayon); + this.grpRevuesInfos.Controls.Add(this.txbRevuesPublic); + this.grpRevuesInfos.Controls.Add(this.txbRevuesGenre); + this.grpRevuesInfos.Controls.Add(this.txbRevuesDateMiseADispo); + this.grpRevuesInfos.Controls.Add(this.txbRevuesPeriodicite); + this.grpRevuesInfos.Controls.Add(this.txbRevuesTitre); + this.grpRevuesInfos.Controls.Add(this.txbRevuesNumero); + this.grpRevuesInfos.Controls.Add(this.label35); + this.grpRevuesInfos.Controls.Add(this.pcbRevuesImage); + this.grpRevuesInfos.Controls.Add(this.label36); + this.grpRevuesInfos.Controls.Add(this.label37); + this.grpRevuesInfos.Controls.Add(this.label43); + this.grpRevuesInfos.Controls.Add(this.label44); + this.grpRevuesInfos.Controls.Add(this.label45); + this.grpRevuesInfos.Controls.Add(this.label46); + this.grpRevuesInfos.Controls.Add(this.label47); + this.grpRevuesInfos.Location = new System.Drawing.Point(8, 381); + this.grpRevuesInfos.Name = "grpRevuesInfos"; + this.grpRevuesInfos.Size = new System.Drawing.Size(859, 245); + this.grpRevuesInfos.TabIndex = 20; + this.grpRevuesInfos.TabStop = false; + this.grpRevuesInfos.Text = "Informations détaillées"; + // + // label57 + // + this.label57.AutoSize = true; + this.label57.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label57.Location = new System.Drawing.Point(557, 11); + this.label57.Name = "label57"; + this.label57.Size = new System.Drawing.Size(49, 13); + this.label57.TabIndex = 32; + this.label57.Text = "Image :"; + // + // txbRevuesImage + // + this.txbRevuesImage.Location = new System.Drawing.Point(150, 195); + this.txbRevuesImage.Name = "txbRevuesImage"; + this.txbRevuesImage.ReadOnly = true; + this.txbRevuesImage.Size = new System.Drawing.Size(391, 20); + this.txbRevuesImage.TabIndex = 31; + // + // txbRevuesRayon + // + this.txbRevuesRayon.Location = new System.Drawing.Point(150, 170); + this.txbRevuesRayon.Name = "txbRevuesRayon"; + this.txbRevuesRayon.ReadOnly = true; + this.txbRevuesRayon.Size = new System.Drawing.Size(207, 20); + this.txbRevuesRayon.TabIndex = 30; + // + // txbRevuesPublic + // + this.txbRevuesPublic.Location = new System.Drawing.Point(150, 145); + this.txbRevuesPublic.Name = "txbRevuesPublic"; + this.txbRevuesPublic.ReadOnly = true; + this.txbRevuesPublic.Size = new System.Drawing.Size(207, 20); + this.txbRevuesPublic.TabIndex = 29; + // + // txbRevuesGenre + // + this.txbRevuesGenre.Location = new System.Drawing.Point(150, 120); + this.txbRevuesGenre.Name = "txbRevuesGenre"; + this.txbRevuesGenre.ReadOnly = true; + this.txbRevuesGenre.Size = new System.Drawing.Size(207, 20); + this.txbRevuesGenre.TabIndex = 28; + // + // txbRevuesDateMiseADispo + // + this.txbRevuesDateMiseADispo.Location = new System.Drawing.Point(150, 95); + this.txbRevuesDateMiseADispo.Name = "txbRevuesDateMiseADispo"; + this.txbRevuesDateMiseADispo.ReadOnly = true; + this.txbRevuesDateMiseADispo.Size = new System.Drawing.Size(100, 20); + this.txbRevuesDateMiseADispo.TabIndex = 27; + // + // txbRevuesPeriodicite + // + this.txbRevuesPeriodicite.Location = new System.Drawing.Point(150, 70); + this.txbRevuesPeriodicite.Name = "txbRevuesPeriodicite"; + this.txbRevuesPeriodicite.ReadOnly = true; + this.txbRevuesPeriodicite.Size = new System.Drawing.Size(100, 20); + this.txbRevuesPeriodicite.TabIndex = 26; + // + // txbRevuesTitre + // + this.txbRevuesTitre.Location = new System.Drawing.Point(150, 45); + this.txbRevuesTitre.Name = "txbRevuesTitre"; + this.txbRevuesTitre.ReadOnly = true; + this.txbRevuesTitre.Size = new System.Drawing.Size(391, 20); + this.txbRevuesTitre.TabIndex = 25; + // + // txbRevuesNumero + // + this.txbRevuesNumero.Location = new System.Drawing.Point(150, 20); + this.txbRevuesNumero.Name = "txbRevuesNumero"; + this.txbRevuesNumero.ReadOnly = true; + this.txbRevuesNumero.Size = new System.Drawing.Size(100, 20); + this.txbRevuesNumero.TabIndex = 24; + // + // label35 + // + this.label35.AutoSize = true; + this.label35.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label35.Location = new System.Drawing.Point(6, 120); + this.label35.Name = "label35"; + this.label35.Size = new System.Drawing.Size(49, 13); + this.label35.TabIndex = 22; + this.label35.Text = "Genre :"; + // + // pcbRevuesImage + // + this.pcbRevuesImage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.pcbRevuesImage.Location = new System.Drawing.Point(560, 27); + this.pcbRevuesImage.Name = "pcbRevuesImage"; + this.pcbRevuesImage.Size = new System.Drawing.Size(284, 210); + this.pcbRevuesImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pcbRevuesImage.TabIndex = 21; + this.pcbRevuesImage.TabStop = false; + // + // label36 + // + this.label36.AutoSize = true; + this.label36.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label36.Location = new System.Drawing.Point(6, 145); + this.label36.Name = "label36"; + this.label36.Size = new System.Drawing.Size(50, 13); + this.label36.TabIndex = 19; + this.label36.Text = "Public :"; + // + // label37 + // + this.label37.AutoSize = true; + this.label37.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label37.Location = new System.Drawing.Point(6, 170); + this.label37.Name = "label37"; + this.label37.Size = new System.Drawing.Size(51, 13); + this.label37.TabIndex = 17; + this.label37.Text = "Rayon :"; + // + // label43 + // + this.label43.AutoSize = true; + this.label43.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label43.Location = new System.Drawing.Point(6, 45); + this.label43.Name = "label43"; + this.label43.Size = new System.Drawing.Size(41, 13); + this.label43.TabIndex = 8; + this.label43.Text = "Titre :"; + // + // label44 + // + this.label44.AutoSize = true; + this.label44.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label44.Location = new System.Drawing.Point(6, 20); + this.label44.Name = "label44"; + this.label44.Size = new System.Drawing.Size(135, 13); + this.label44.TabIndex = 5; + this.label44.Text = "Numéro de document :"; + // + // label45 + // + this.label45.AutoSize = true; + this.label45.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label45.Location = new System.Drawing.Point(6, 70); + this.label45.Name = "label45"; + this.label45.Size = new System.Drawing.Size(75, 13); + this.label45.TabIndex = 9; + this.label45.Text = "Périodicité :"; + // + // label46 + // + this.label46.AutoSize = true; + this.label46.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label46.Location = new System.Drawing.Point(6, 195); + this.label46.Name = "label46"; + this.label46.Size = new System.Drawing.Size(117, 13); + this.label46.TabIndex = 6; + this.label46.Text = "Chemin de l\'image :"; + // + // label47 + // + this.label47.AutoSize = true; + this.label47.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label47.Location = new System.Drawing.Point(6, 95); + this.label47.Name = "label47"; + this.label47.Size = new System.Drawing.Size(118, 13); + this.label47.TabIndex = 10; + this.label47.Text = "Délai mise à dispo :"; + // + // grpRevuesRecherche + // + this.grpRevuesRecherche.Controls.Add(this.btnRevuesAnnulRayons); + this.grpRevuesRecherche.Controls.Add(this.btnRevuesAnnulPublics); + this.grpRevuesRecherche.Controls.Add(this.btnRevuesNumRecherche); + this.grpRevuesRecherche.Controls.Add(this.label2); + this.grpRevuesRecherche.Controls.Add(this.txbRevuesNumRecherche); + this.grpRevuesRecherche.Controls.Add(this.btnRevuesAnnulGenres); + this.grpRevuesRecherche.Controls.Add(this.cbxRevuesRayons); + this.grpRevuesRecherche.Controls.Add(this.label4); + this.grpRevuesRecherche.Controls.Add(this.cbxRevuesPublics); + this.grpRevuesRecherche.Controls.Add(this.label32); + this.grpRevuesRecherche.Controls.Add(this.cbxRevuesGenres); + this.grpRevuesRecherche.Controls.Add(this.label33); + this.grpRevuesRecherche.Controls.Add(this.dgvRevuesListe); + this.grpRevuesRecherche.Controls.Add(this.label34); + this.grpRevuesRecherche.Controls.Add(this.txbRevuesTitreRecherche); + this.grpRevuesRecherche.Location = new System.Drawing.Point(8, 13); + this.grpRevuesRecherche.Name = "grpRevuesRecherche"; + this.grpRevuesRecherche.Size = new System.Drawing.Size(859, 362); + this.grpRevuesRecherche.TabIndex = 19; + this.grpRevuesRecherche.TabStop = false; + this.grpRevuesRecherche.Text = "Recherches"; + // + // btnRevuesAnnulRayons + // + this.btnRevuesAnnulRayons.Location = new System.Drawing.Point(833, 104); + this.btnRevuesAnnulRayons.Name = "btnRevuesAnnulRayons"; + this.btnRevuesAnnulRayons.Size = new System.Drawing.Size(22, 22); + this.btnRevuesAnnulRayons.TabIndex = 16; + this.btnRevuesAnnulRayons.Text = "X"; + this.btnRevuesAnnulRayons.UseVisualStyleBackColor = true; + this.btnRevuesAnnulRayons.Click += new System.EventHandler(this.btnRevuesAnnulRayons_Click); + // + // btnRevuesAnnulPublics + // + this.btnRevuesAnnulPublics.Location = new System.Drawing.Point(833, 60); + this.btnRevuesAnnulPublics.Name = "btnRevuesAnnulPublics"; + this.btnRevuesAnnulPublics.Size = new System.Drawing.Size(22, 22); + this.btnRevuesAnnulPublics.TabIndex = 15; + this.btnRevuesAnnulPublics.Text = "X"; + this.btnRevuesAnnulPublics.UseVisualStyleBackColor = true; + this.btnRevuesAnnulPublics.Click += new System.EventHandler(this.btnRevuesAnnulPublics_Click); + // + // btnRevuesNumRecherche + // + this.btnRevuesNumRecherche.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnRevuesNumRecherche.Location = new System.Drawing.Point(314, 59); + this.btnRevuesNumRecherche.Name = "btnRevuesNumRecherche"; + this.btnRevuesNumRecherche.Size = new System.Drawing.Size(96, 22); + this.btnRevuesNumRecherche.TabIndex = 14; + this.btnRevuesNumRecherche.Text = "Rechercher"; + this.btnRevuesNumRecherche.UseVisualStyleBackColor = true; + this.btnRevuesNumRecherche.Click += new System.EventHandler(this.btnRevuesNumRecherche_Click); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label2.Location = new System.Drawing.Point(6, 63); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(186, 13); + this.label2.TabIndex = 13; + this.label2.Text = "Saisir un numéro de document :"; + // + // txbRevuesNumRecherche + // + this.txbRevuesNumRecherche.Location = new System.Drawing.Point(220, 60); + this.txbRevuesNumRecherche.Name = "txbRevuesNumRecherche"; + this.txbRevuesNumRecherche.Size = new System.Drawing.Size(67, 20); + this.txbRevuesNumRecherche.TabIndex = 12; + // + // btnRevuesAnnulGenres + // + this.btnRevuesAnnulGenres.Location = new System.Drawing.Point(833, 17); + this.btnRevuesAnnulGenres.Name = "btnRevuesAnnulGenres"; + this.btnRevuesAnnulGenres.Size = new System.Drawing.Size(22, 22); + this.btnRevuesAnnulGenres.TabIndex = 11; + this.btnRevuesAnnulGenres.Text = "X"; + this.btnRevuesAnnulGenres.UseVisualStyleBackColor = true; + this.btnRevuesAnnulGenres.Click += new System.EventHandler(this.btnRevuesAnnulGenres_Click); + // + // cbxRevuesRayons + // + this.cbxRevuesRayons.FormattingEnabled = true; + this.cbxRevuesRayons.Location = new System.Drawing.Point(620, 105); + this.cbxRevuesRayons.Name = "cbxRevuesRayons"; + this.cbxRevuesRayons.Size = new System.Drawing.Size(207, 21); + this.cbxRevuesRayons.TabIndex = 10; + this.cbxRevuesRayons.SelectedIndexChanged += new System.EventHandler(this.cbxRevuesRayons_SelectedIndexChanged); + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label4.Location = new System.Drawing.Point(458, 108); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(153, 13); + this.label4.TabIndex = 9; + this.label4.Text = "Ou sélectionner le rayon :"; + // + // cbxRevuesPublics + // + this.cbxRevuesPublics.FormattingEnabled = true; + this.cbxRevuesPublics.Location = new System.Drawing.Point(620, 60); + this.cbxRevuesPublics.Name = "cbxRevuesPublics"; + this.cbxRevuesPublics.Size = new System.Drawing.Size(207, 21); + this.cbxRevuesPublics.TabIndex = 8; + this.cbxRevuesPublics.SelectedIndexChanged += new System.EventHandler(this.cbxRevuesPublics_SelectedIndexChanged); + // + // label32 + // + this.label32.AutoSize = true; + this.label32.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label32.Location = new System.Drawing.Point(458, 63); + this.label32.Name = "label32"; + this.label32.Size = new System.Drawing.Size(156, 13); + this.label32.TabIndex = 7; + this.label32.Text = "Ou sélectionner le public :"; + // + // cbxRevuesGenres + // + this.cbxRevuesGenres.FormattingEnabled = true; + this.cbxRevuesGenres.Location = new System.Drawing.Point(620, 18); + this.cbxRevuesGenres.Name = "cbxRevuesGenres"; + this.cbxRevuesGenres.Size = new System.Drawing.Size(207, 21); + this.cbxRevuesGenres.TabIndex = 6; + this.cbxRevuesGenres.SelectedIndexChanged += new System.EventHandler(this.cbxRevuesGenres_SelectedIndexChanged); + // + // label33 + // + this.label33.AutoSize = true; + this.label33.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label33.Location = new System.Drawing.Point(460, 21); + this.label33.Name = "label33"; + this.label33.Size = new System.Drawing.Size(154, 13); + this.label33.TabIndex = 5; + this.label33.Text = "Ou sélectionner le genre :"; + // + // dgvRevuesListe + // + this.dgvRevuesListe.AllowUserToAddRows = false; + this.dgvRevuesListe.AllowUserToDeleteRows = false; + this.dgvRevuesListe.AllowUserToResizeColumns = false; + this.dgvRevuesListe.AllowUserToResizeRows = false; + this.dgvRevuesListe.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvRevuesListe.Location = new System.Drawing.Point(9, 150); + this.dgvRevuesListe.MultiSelect = false; + this.dgvRevuesListe.Name = "dgvRevuesListe"; + this.dgvRevuesListe.ReadOnly = true; + this.dgvRevuesListe.RowHeadersVisible = false; + this.dgvRevuesListe.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.dgvRevuesListe.Size = new System.Drawing.Size(844, 200); + this.dgvRevuesListe.TabIndex = 4; + this.dgvRevuesListe.ColumnHeaderMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvRevuesListe_ColumnHeaderMouseClick); + this.dgvRevuesListe.SelectionChanged += new System.EventHandler(this.dgvRevuesListe_SelectionChanged); + // + // label34 + // + this.label34.AutoSize = true; + this.label34.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label34.Location = new System.Drawing.Point(6, 21); + this.label34.Name = "label34"; + this.label34.Size = new System.Drawing.Size(208, 13); + this.label34.TabIndex = 2; + this.label34.Text = "Saisir le titre ou la partie d\'un titre :"; + // + // txbRevuesTitreRecherche + // + this.txbRevuesTitreRecherche.Location = new System.Drawing.Point(220, 18); + this.txbRevuesTitreRecherche.Name = "txbRevuesTitreRecherche"; + this.txbRevuesTitreRecherche.Size = new System.Drawing.Size(190, 20); + this.txbRevuesTitreRecherche.TabIndex = 3; + this.txbRevuesTitreRecherche.TextChanged += new System.EventHandler(this.txbRevuesTitreRecherche_TextChanged); + // + // tabReceptionRevue + // + this.tabReceptionRevue.Controls.Add(this.grpReceptionExemplaire); + this.tabReceptionRevue.Controls.Add(this.grpReceptionRevue); + this.tabReceptionRevue.Location = new System.Drawing.Point(4, 22); + this.tabReceptionRevue.Name = "tabReceptionRevue"; + this.tabReceptionRevue.Size = new System.Drawing.Size(875, 633); + this.tabReceptionRevue.TabIndex = 4; + this.tabReceptionRevue.Text = "Parutions des revues"; + this.tabReceptionRevue.UseVisualStyleBackColor = true; + this.tabReceptionRevue.Enter += new System.EventHandler(this.tabReceptionRevue_Enter); + // + // grpReceptionExemplaire + // + this.grpReceptionExemplaire.Controls.Add(this.label55); + this.grpReceptionExemplaire.Controls.Add(this.btnReceptionExemplaireImage); + this.grpReceptionExemplaire.Controls.Add(this.pcbReceptionExemplaireImage); + this.grpReceptionExemplaire.Controls.Add(this.btnReceptionExemplaireValider); + this.grpReceptionExemplaire.Controls.Add(this.txbReceptionExemplaireImage); + this.grpReceptionExemplaire.Controls.Add(this.label18); + this.grpReceptionExemplaire.Controls.Add(this.txbReceptionExemplaireNumero); + this.grpReceptionExemplaire.Controls.Add(this.label17); + this.grpReceptionExemplaire.Controls.Add(this.dtpReceptionExemplaireDate); + this.grpReceptionExemplaire.Controls.Add(this.label16); + this.grpReceptionExemplaire.Location = new System.Drawing.Point(8, 380); + this.grpReceptionExemplaire.Name = "grpReceptionExemplaire"; + this.grpReceptionExemplaire.Size = new System.Drawing.Size(859, 244); + this.grpReceptionExemplaire.TabIndex = 16; + this.grpReceptionExemplaire.TabStop = false; + this.grpReceptionExemplaire.Text = "Nouvelle parution réceptionnée pour cette revue"; + // + // label55 + // + this.label55.AutoSize = true; + this.label55.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label55.Location = new System.Drawing.Point(557, 10); + this.label55.Name = "label55"; + this.label55.Size = new System.Drawing.Size(113, 13); + this.label55.TabIndex = 57; + this.label55.Text = "Image exemplaire :"; + // + // btnReceptionExemplaireImage + // + this.btnReceptionExemplaireImage.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnReceptionExemplaireImage.Location = new System.Drawing.Point(446, 69); + this.btnReceptionExemplaireImage.Name = "btnReceptionExemplaireImage"; + this.btnReceptionExemplaireImage.Size = new System.Drawing.Size(96, 22); + this.btnReceptionExemplaireImage.TabIndex = 43; + this.btnReceptionExemplaireImage.Text = "Rechercher"; + this.btnReceptionExemplaireImage.UseVisualStyleBackColor = true; + this.btnReceptionExemplaireImage.Click += new System.EventHandler(this.btnReceptionExemplaireImage_Click); + // + // pcbReceptionExemplaireImage + // + this.pcbReceptionExemplaireImage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.pcbReceptionExemplaireImage.Location = new System.Drawing.Point(560, 26); + this.pcbReceptionExemplaireImage.Name = "pcbReceptionExemplaireImage"; + this.pcbReceptionExemplaireImage.Size = new System.Drawing.Size(284, 210); + this.pcbReceptionExemplaireImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pcbReceptionExemplaireImage.TabIndex = 42; + this.pcbReceptionExemplaireImage.TabStop = false; + // + // btnReceptionExemplaireValider + // + this.btnReceptionExemplaireValider.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnReceptionExemplaireValider.Location = new System.Drawing.Point(6, 95); + this.btnReceptionExemplaireValider.Name = "btnReceptionExemplaireValider"; + this.btnReceptionExemplaireValider.Size = new System.Drawing.Size(535, 22); + this.btnReceptionExemplaireValider.TabIndex = 17; + this.btnReceptionExemplaireValider.Text = "Valider la réception"; + this.btnReceptionExemplaireValider.UseVisualStyleBackColor = true; + this.btnReceptionExemplaireValider.Click += new System.EventHandler(this.btnReceptionExemplaireValider_Click); + // + // txbReceptionExemplaireImage + // + this.txbReceptionExemplaireImage.Location = new System.Drawing.Point(150, 70); + this.txbReceptionExemplaireImage.Name = "txbReceptionExemplaireImage"; + this.txbReceptionExemplaireImage.ReadOnly = true; + this.txbReceptionExemplaireImage.Size = new System.Drawing.Size(290, 20); + this.txbReceptionExemplaireImage.TabIndex = 5; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label18.Location = new System.Drawing.Point(6, 70); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(127, 13); + this.label18.TabIndex = 4; + this.label18.Text = "Emplacement image :"; + // + // txbReceptionExemplaireNumero + // + this.txbReceptionExemplaireNumero.Location = new System.Drawing.Point(150, 20); + this.txbReceptionExemplaireNumero.Name = "txbReceptionExemplaireNumero"; + this.txbReceptionExemplaireNumero.Size = new System.Drawing.Size(100, 20); + this.txbReceptionExemplaireNumero.TabIndex = 3; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label17.Location = new System.Drawing.Point(6, 45); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(110, 13); + this.label17.TabIndex = 2; + this.label17.Text = "Date de parution :"; + // + // dtpReceptionExemplaireDate + // + this.dtpReceptionExemplaireDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; + this.dtpReceptionExemplaireDate.Location = new System.Drawing.Point(150, 45); + this.dtpReceptionExemplaireDate.Name = "dtpReceptionExemplaireDate"; + this.dtpReceptionExemplaireDate.Size = new System.Drawing.Size(100, 20); + this.dtpReceptionExemplaireDate.TabIndex = 1; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label16.Location = new System.Drawing.Point(6, 20); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(129, 13); + this.label16.TabIndex = 0; + this.label16.Text = "Numéro réceptionné :"; + // + // grpReceptionRevue + // + this.grpReceptionRevue.Controls.Add(this.label48); + this.grpReceptionRevue.Controls.Add(this.label56); + this.grpReceptionRevue.Controls.Add(this.pcbReceptionExemplaireRevueImage); + this.grpReceptionRevue.Controls.Add(this.label13); + this.grpReceptionRevue.Controls.Add(this.dgvReceptionExemplairesListe); + this.grpReceptionRevue.Controls.Add(this.txbReceptionRevueImage); + this.grpReceptionRevue.Controls.Add(this.txbReceptionRevueRayon); + this.grpReceptionRevue.Controls.Add(this.txbReceptionRevuePublic); + this.grpReceptionRevue.Controls.Add(this.txbReceptionRevueGenre); + this.grpReceptionRevue.Controls.Add(this.txbReceptionRevueDelaiMiseADispo); + this.grpReceptionRevue.Controls.Add(this.txbReceptionRevuePeriodicite); + this.grpReceptionRevue.Controls.Add(this.txbReceptionRevueTitre); + this.grpReceptionRevue.Controls.Add(this.txbReceptionRevueNumero); + this.grpReceptionRevue.Controls.Add(this.label3); + this.grpReceptionRevue.Controls.Add(this.pcbReceptionRevueImage); + this.grpReceptionRevue.Controls.Add(this.label15); + this.grpReceptionRevue.Controls.Add(this.label49); + this.grpReceptionRevue.Controls.Add(this.label50); + this.grpReceptionRevue.Controls.Add(this.label51); + this.grpReceptionRevue.Controls.Add(this.label52); + this.grpReceptionRevue.Controls.Add(this.label53); + this.grpReceptionRevue.Controls.Add(this.label54); + this.grpReceptionRevue.Controls.Add(this.btnReceptionRechercher); + this.grpReceptionRevue.Location = new System.Drawing.Point(8, 13); + this.grpReceptionRevue.Name = "grpReceptionRevue"; + this.grpReceptionRevue.Size = new System.Drawing.Size(859, 361); + this.grpReceptionRevue.TabIndex = 15; + this.grpReceptionRevue.TabStop = false; + this.grpReceptionRevue.Text = "Recherche revue"; + // + // label48 + // + this.label48.AutoSize = true; + this.label48.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label48.Location = new System.Drawing.Point(557, 127); + this.label48.Name = "label48"; + this.label48.Size = new System.Drawing.Size(113, 13); + this.label48.TabIndex = 56; + this.label48.Text = "Image exemplaire :"; + // + // label56 + // + this.label56.AutoSize = true; + this.label56.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label56.Location = new System.Drawing.Point(557, 20); + this.label56.Name = "label56"; + this.label56.Size = new System.Drawing.Size(85, 13); + this.label56.TabIndex = 55; + this.label56.Text = "Image revue :"; + // + // pcbReceptionExemplaireRevueImage + // + this.pcbReceptionExemplaireRevueImage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.pcbReceptionExemplaireRevueImage.Location = new System.Drawing.Point(560, 145); + this.pcbReceptionExemplaireRevueImage.Name = "pcbReceptionExemplaireRevueImage"; + this.pcbReceptionExemplaireRevueImage.Size = new System.Drawing.Size(284, 210); + this.pcbReceptionExemplaireRevueImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pcbReceptionExemplaireRevueImage.TabIndex = 54; + this.pcbReceptionExemplaireRevueImage.TabStop = false; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label13.Location = new System.Drawing.Point(6, 220); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(68, 13); + this.label13.TabIndex = 53; + this.label13.Text = "Parutions :"; + // + // dgvReceptionExemplairesListe + // + this.dgvReceptionExemplairesListe.AllowUserToAddRows = false; + this.dgvReceptionExemplairesListe.AllowUserToDeleteRows = false; + this.dgvReceptionExemplairesListe.AllowUserToResizeColumns = false; + this.dgvReceptionExemplairesListe.AllowUserToResizeRows = false; + this.dgvReceptionExemplairesListe.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvReceptionExemplairesListe.Location = new System.Drawing.Point(150, 221); + this.dgvReceptionExemplairesListe.MultiSelect = false; + this.dgvReceptionExemplairesListe.Name = "dgvReceptionExemplairesListe"; + this.dgvReceptionExemplairesListe.ReadOnly = true; + this.dgvReceptionExemplairesListe.RowHeadersVisible = false; + this.dgvReceptionExemplairesListe.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.dgvReceptionExemplairesListe.Size = new System.Drawing.Size(391, 134); + this.dgvReceptionExemplairesListe.TabIndex = 52; + this.dgvReceptionExemplairesListe.ColumnHeaderMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvExemplairesListe_ColumnHeaderMouseClick); + this.dgvReceptionExemplairesListe.SelectionChanged += new System.EventHandler(this.dgvReceptionExemplairesListe_SelectionChanged); + // + // txbReceptionRevueImage + // + this.txbReceptionRevueImage.Location = new System.Drawing.Point(150, 195); + this.txbReceptionRevueImage.Name = "txbReceptionRevueImage"; + this.txbReceptionRevueImage.ReadOnly = true; + this.txbReceptionRevueImage.Size = new System.Drawing.Size(391, 20); + this.txbReceptionRevueImage.TabIndex = 50; + // + // txbReceptionRevueRayon + // + this.txbReceptionRevueRayon.Location = new System.Drawing.Point(150, 170); + this.txbReceptionRevueRayon.Name = "txbReceptionRevueRayon"; + this.txbReceptionRevueRayon.ReadOnly = true; + this.txbReceptionRevueRayon.Size = new System.Drawing.Size(207, 20); + this.txbReceptionRevueRayon.TabIndex = 49; + // + // txbReceptionRevuePublic + // + this.txbReceptionRevuePublic.Location = new System.Drawing.Point(150, 145); + this.txbReceptionRevuePublic.Name = "txbReceptionRevuePublic"; + this.txbReceptionRevuePublic.ReadOnly = true; + this.txbReceptionRevuePublic.Size = new System.Drawing.Size(207, 20); + this.txbReceptionRevuePublic.TabIndex = 48; + // + // txbReceptionRevueGenre + // + this.txbReceptionRevueGenre.Location = new System.Drawing.Point(150, 120); + this.txbReceptionRevueGenre.Name = "txbReceptionRevueGenre"; + this.txbReceptionRevueGenre.ReadOnly = true; + this.txbReceptionRevueGenre.Size = new System.Drawing.Size(207, 20); + this.txbReceptionRevueGenre.TabIndex = 47; + // + // txbReceptionRevueDelaiMiseADispo + // + this.txbReceptionRevueDelaiMiseADispo.Location = new System.Drawing.Point(150, 95); + this.txbReceptionRevueDelaiMiseADispo.Name = "txbReceptionRevueDelaiMiseADispo"; + this.txbReceptionRevueDelaiMiseADispo.ReadOnly = true; + this.txbReceptionRevueDelaiMiseADispo.Size = new System.Drawing.Size(100, 20); + this.txbReceptionRevueDelaiMiseADispo.TabIndex = 46; + // + // txbReceptionRevuePeriodicite + // + this.txbReceptionRevuePeriodicite.Location = new System.Drawing.Point(150, 70); + this.txbReceptionRevuePeriodicite.Name = "txbReceptionRevuePeriodicite"; + this.txbReceptionRevuePeriodicite.ReadOnly = true; + this.txbReceptionRevuePeriodicite.Size = new System.Drawing.Size(100, 20); + this.txbReceptionRevuePeriodicite.TabIndex = 45; + // + // txbReceptionRevueTitre + // + this.txbReceptionRevueTitre.Location = new System.Drawing.Point(150, 45); + this.txbReceptionRevueTitre.Name = "txbReceptionRevueTitre"; + this.txbReceptionRevueTitre.ReadOnly = true; + this.txbReceptionRevueTitre.Size = new System.Drawing.Size(391, 20); + this.txbReceptionRevueTitre.TabIndex = 44; + // + // txbReceptionRevueNumero + // + this.txbReceptionRevueNumero.Location = new System.Drawing.Point(150, 20); + this.txbReceptionRevueNumero.Name = "txbReceptionRevueNumero"; + this.txbReceptionRevueNumero.Size = new System.Drawing.Size(100, 20); + this.txbReceptionRevueNumero.TabIndex = 43; + this.txbReceptionRevueNumero.TextChanged += new System.EventHandler(this.txbReceptionRevueNumero_TextChanged); + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label3.Location = new System.Drawing.Point(6, 120); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(49, 13); + this.label3.TabIndex = 42; + this.label3.Text = "Genre :"; + // + // pcbReceptionRevueImage + // + this.pcbReceptionRevueImage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.pcbReceptionRevueImage.Location = new System.Drawing.Point(690, 20); + this.pcbReceptionRevueImage.Name = "pcbReceptionRevueImage"; + this.pcbReceptionRevueImage.Size = new System.Drawing.Size(154, 114); + this.pcbReceptionRevueImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pcbReceptionRevueImage.TabIndex = 41; + this.pcbReceptionRevueImage.TabStop = false; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label15.Location = new System.Drawing.Point(6, 145); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(50, 13); + this.label15.TabIndex = 40; + this.label15.Text = "Public :"; + // + // label49 + // + this.label49.AutoSize = true; + this.label49.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label49.Location = new System.Drawing.Point(6, 170); + this.label49.Name = "label49"; + this.label49.Size = new System.Drawing.Size(51, 13); + this.label49.TabIndex = 39; + this.label49.Text = "Rayon :"; + // + // label50 + // + this.label50.AutoSize = true; + this.label50.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label50.Location = new System.Drawing.Point(6, 45); + this.label50.Name = "label50"; + this.label50.Size = new System.Drawing.Size(41, 13); + this.label50.TabIndex = 36; + this.label50.Text = "Titre :"; + // + // label51 + // + this.label51.AutoSize = true; + this.label51.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label51.Location = new System.Drawing.Point(6, 20); + this.label51.Name = "label51"; + this.label51.Size = new System.Drawing.Size(94, 13); + this.label51.TabIndex = 33; + this.label51.Text = "Numéro revue :"; + // + // label52 + // + this.label52.AutoSize = true; + this.label52.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label52.Location = new System.Drawing.Point(6, 70); + this.label52.Name = "label52"; + this.label52.Size = new System.Drawing.Size(75, 13); + this.label52.TabIndex = 37; + this.label52.Text = "Périodicité :"; + // + // label53 + // + this.label53.AutoSize = true; + this.label53.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label53.Location = new System.Drawing.Point(6, 195); + this.label53.Name = "label53"; + this.label53.Size = new System.Drawing.Size(117, 13); + this.label53.TabIndex = 34; + this.label53.Text = "Chemin de l\'image :"; + // + // label54 + // + this.label54.AutoSize = true; + this.label54.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label54.Location = new System.Drawing.Point(6, 95); + this.label54.Name = "label54"; + this.label54.Size = new System.Drawing.Size(118, 13); + this.label54.TabIndex = 38; + this.label54.Text = "Délai mise à dispo :"; + // + // btnReceptionRechercher + // + this.btnReceptionRechercher.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnReceptionRechercher.Location = new System.Drawing.Point(261, 19); + this.btnReceptionRechercher.Name = "btnReceptionRechercher"; + this.btnReceptionRechercher.Size = new System.Drawing.Size(96, 22); + this.btnReceptionRechercher.TabIndex = 16; + this.btnReceptionRechercher.Text = "Rechercher"; + this.btnReceptionRechercher.UseVisualStyleBackColor = true; + this.btnReceptionRechercher.Click += new System.EventHandler(this.btnReceptionRechercher_Click); + // + // FrmMediatek + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(883, 659); + this.Controls.Add(this.tabOngletsApplication); + this.Name = "FrmMediatek"; + this.Text = "Gestion des documents de la médiathèque"; + this.tabOngletsApplication.ResumeLayout(false); + this.tabLivres.ResumeLayout(false); + this.grpLivresInfos.ResumeLayout(false); + this.grpLivresInfos.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pcbLivresImage)).EndInit(); + this.grpLivresRecherche.ResumeLayout(false); + this.grpLivresRecherche.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dgvLivresListe)).EndInit(); + this.tabDvd.ResumeLayout(false); + this.grpDvdInfos.ResumeLayout(false); + this.grpDvdInfos.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pcbDvdImage)).EndInit(); + this.grpDvdRecherche.ResumeLayout(false); + this.grpDvdRecherche.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dgvDvdListe)).EndInit(); + this.tabRevues.ResumeLayout(false); + this.grpRevuesInfos.ResumeLayout(false); + this.grpRevuesInfos.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pcbRevuesImage)).EndInit(); + this.grpRevuesRecherche.ResumeLayout(false); + this.grpRevuesRecherche.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dgvRevuesListe)).EndInit(); + this.tabReceptionRevue.ResumeLayout(false); + this.grpReceptionExemplaire.ResumeLayout(false); + this.grpReceptionExemplaire.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pcbReceptionExemplaireImage)).EndInit(); + this.grpReceptionRevue.ResumeLayout(false); + this.grpReceptionRevue.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pcbReceptionExemplaireRevueImage)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvReceptionExemplairesListe)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pcbReceptionRevueImage)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.TabControl tabOngletsApplication; + private System.Windows.Forms.TabPage tabRevues; + private System.Windows.Forms.TabPage tabLivres; + private System.Windows.Forms.TabPage tabDvd; + private System.Windows.Forms.TextBox txbLivresTitreRecherche; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.GroupBox grpLivresRecherche; + private System.Windows.Forms.DataGridView dgvLivresListe; + private System.Windows.Forms.TabPage tabReceptionRevue; + private System.Windows.Forms.GroupBox grpReceptionExemplaire; + private System.Windows.Forms.Button btnReceptionExemplaireValider; + private System.Windows.Forms.TextBox txbReceptionExemplaireImage; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.TextBox txbReceptionExemplaireNumero; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.DateTimePicker dtpReceptionExemplaireDate; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.GroupBox grpReceptionRevue; + private System.Windows.Forms.ComboBox cbxLivresGenres; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.ComboBox cbxLivresPublics; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.ComboBox cbxLivresRayons; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Button btnLivresAnnulGenres; + private System.Windows.Forms.GroupBox grpLivresInfos; + private System.Windows.Forms.PictureBox pcbLivresImage; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Button btnLivresNumRecherche; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox txbLivresNumRecherche; + private System.Windows.Forms.Button btnlivresAnnulPublics; + private System.Windows.Forms.Button btnLivresAnnulRayons; + private System.Windows.Forms.GroupBox grpDvdRecherche; + private System.Windows.Forms.Button btnDvdAnnulRayons; + private System.Windows.Forms.Button btnDvdAnnulPublics; + private System.Windows.Forms.Button btnDvdNumRecherche; + private System.Windows.Forms.Label label38; + private System.Windows.Forms.TextBox txbDvdNumRecherche; + private System.Windows.Forms.Button btnDvdAnnulGenres; + private System.Windows.Forms.ComboBox cbxDvdRayons; + private System.Windows.Forms.Label label39; + private System.Windows.Forms.ComboBox cbxDvdPublics; + private System.Windows.Forms.Label label40; + private System.Windows.Forms.ComboBox cbxDvdGenres; + private System.Windows.Forms.Label label41; + private System.Windows.Forms.DataGridView dgvDvdListe; + private System.Windows.Forms.Label label42; + private System.Windows.Forms.TextBox txbDvdTitreRecherche; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.TextBox txbLivresTitre; + private System.Windows.Forms.TextBox txbLivresNumero; + private System.Windows.Forms.TextBox txbLivresIsbn; + private System.Windows.Forms.TextBox txbLivresImage; + private System.Windows.Forms.TextBox txbLivresRayon; + private System.Windows.Forms.TextBox txbLivresPublic; + private System.Windows.Forms.TextBox txbLivresGenre; + private System.Windows.Forms.TextBox txbLivresCollection; + private System.Windows.Forms.TextBox txbLivresAuteur; + private System.Windows.Forms.GroupBox grpDvdInfos; + private System.Windows.Forms.TextBox txbDvdDuree; + private System.Windows.Forms.TextBox txbDvdImage; + private System.Windows.Forms.TextBox txbDvdRayon; + private System.Windows.Forms.TextBox txbDvdPublic; + private System.Windows.Forms.TextBox txbDvdGenre; + private System.Windows.Forms.TextBox txbDvdSynopsis; + private System.Windows.Forms.TextBox txbDvdRealisateur; + private System.Windows.Forms.TextBox txbDvdTitre; + private System.Windows.Forms.TextBox txbDvdNumero; + private System.Windows.Forms.Label label23; + private System.Windows.Forms.PictureBox pcbDvdImage; + private System.Windows.Forms.Label label24; + private System.Windows.Forms.Label label25; + private System.Windows.Forms.Label label26; + private System.Windows.Forms.Label label27; + private System.Windows.Forms.Label label28; + private System.Windows.Forms.Label label29; + private System.Windows.Forms.Label label30; + private System.Windows.Forms.Label label31; + private System.Windows.Forms.GroupBox grpRevuesInfos; + private System.Windows.Forms.TextBox txbRevuesImage; + private System.Windows.Forms.TextBox txbRevuesRayon; + private System.Windows.Forms.TextBox txbRevuesPublic; + private System.Windows.Forms.TextBox txbRevuesGenre; + private System.Windows.Forms.TextBox txbRevuesDateMiseADispo; + private System.Windows.Forms.TextBox txbRevuesPeriodicite; + private System.Windows.Forms.TextBox txbRevuesTitre; + private System.Windows.Forms.TextBox txbRevuesNumero; + private System.Windows.Forms.Label label35; + private System.Windows.Forms.PictureBox pcbRevuesImage; + private System.Windows.Forms.Label label36; + private System.Windows.Forms.Label label37; + private System.Windows.Forms.Label label43; + private System.Windows.Forms.Label label44; + private System.Windows.Forms.Label label45; + private System.Windows.Forms.Label label46; + private System.Windows.Forms.Label label47; + private System.Windows.Forms.GroupBox grpRevuesRecherche; + private System.Windows.Forms.Button btnRevuesAnnulRayons; + private System.Windows.Forms.Button btnRevuesAnnulPublics; + private System.Windows.Forms.Button btnRevuesNumRecherche; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.TextBox txbRevuesNumRecherche; + private System.Windows.Forms.Button btnRevuesAnnulGenres; + private System.Windows.Forms.ComboBox cbxRevuesRayons; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.ComboBox cbxRevuesPublics; + private System.Windows.Forms.Label label32; + private System.Windows.Forms.ComboBox cbxRevuesGenres; + private System.Windows.Forms.Label label33; + private System.Windows.Forms.DataGridView dgvRevuesListe; + private System.Windows.Forms.Label label34; + private System.Windows.Forms.TextBox txbRevuesTitreRecherche; + private System.Windows.Forms.Button btnReceptionRechercher; + private System.Windows.Forms.TextBox txbReceptionRevueImage; + private System.Windows.Forms.TextBox txbReceptionRevueRayon; + private System.Windows.Forms.TextBox txbReceptionRevuePublic; + private System.Windows.Forms.TextBox txbReceptionRevueGenre; + private System.Windows.Forms.TextBox txbReceptionRevueDelaiMiseADispo; + private System.Windows.Forms.TextBox txbReceptionRevuePeriodicite; + private System.Windows.Forms.TextBox txbReceptionRevueTitre; + private System.Windows.Forms.TextBox txbReceptionRevueNumero; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.PictureBox pcbReceptionRevueImage; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label49; + private System.Windows.Forms.Label label50; + private System.Windows.Forms.Label label51; + private System.Windows.Forms.Label label52; + private System.Windows.Forms.Label label53; + private System.Windows.Forms.Label label54; + private System.Windows.Forms.PictureBox pcbReceptionExemplaireImage; + private System.Windows.Forms.Button btnReceptionExemplaireImage; + private System.Windows.Forms.DataGridView dgvReceptionExemplairesListe; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.PictureBox pcbReceptionExemplaireRevueImage; + private System.Windows.Forms.Label label56; + private System.Windows.Forms.Label label55; + private System.Windows.Forms.Label label48; + private System.Windows.Forms.Label label57; + private System.Windows.Forms.Label label58; + private System.Windows.Forms.Label label59; + } +} + diff --git a/MediaTekDocuments/view/FrmMediatek.cs b/MediaTekDocuments/view/FrmMediatek.cs new file mode 100644 index 0000000..01c9909 --- /dev/null +++ b/MediaTekDocuments/view/FrmMediatek.cs @@ -0,0 +1,1243 @@ +using System; +using System.Windows.Forms; +using MediaTekDocuments.model; +using MediaTekDocuments.controller; +using System.Collections.Generic; +using System.Linq; +using System.Drawing; +using System.IO; + +namespace MediaTekDocuments.view + +{ + /// + /// Classe d'affichage + /// + public partial class FrmMediatek : Form + { + #region Commun + private readonly FrmMediatekController controller; + private readonly BindingSource bdgGenres = new BindingSource(); + private readonly BindingSource bdgPublics = new BindingSource(); + private readonly BindingSource bdgRayons = new BindingSource(); + + /// + /// Constructeur : création du contrôleur lié à ce formulaire + /// + internal FrmMediatek() + { + InitializeComponent(); + this.controller = new FrmMediatekController(); + } + + /// + /// Rempli un des 3 combo (genre, public, rayon) + /// + /// liste des objets de type Genre ou Public ou Rayon + /// bindingsource contenant les informations + /// combobox à remplir + public void RemplirComboCategorie(List lesCategories, BindingSource bdg, ComboBox cbx) + { + bdg.DataSource = lesCategories; + cbx.DataSource = bdg; + if (cbx.Items.Count > 0) + { + cbx.SelectedIndex = -1; + } + } + #endregion + + #region Onglet Livres + private readonly BindingSource bdgLivresListe = new BindingSource(); + private List lesLivres = new List(); + + /// + /// Ouverture de l'onglet Livres : + /// appel des méthodes pour remplir le datagrid des livres et des combos (genre, rayon, public) + /// + /// + /// + private void TabLivres_Enter(object sender, EventArgs e) + { + lesLivres = controller.GetAllLivres(); + RemplirComboCategorie(controller.GetAllGenres(), bdgGenres, cbxLivresGenres); + RemplirComboCategorie(controller.GetAllPublics(), bdgPublics, cbxLivresPublics); + RemplirComboCategorie(controller.GetAllRayons(), bdgRayons, cbxLivresRayons); + RemplirLivresListeComplete(); + } + + /// + /// Remplit le dategrid avec la liste reçue en paramètre + /// + /// liste de livres + private void RemplirLivresListe(List livres) + { + bdgLivresListe.DataSource = livres; + dgvLivresListe.DataSource = bdgLivresListe; + dgvLivresListe.Columns["isbn"].Visible = false; + dgvLivresListe.Columns["idRayon"].Visible = false; + dgvLivresListe.Columns["idGenre"].Visible = false; + dgvLivresListe.Columns["idPublic"].Visible = false; + dgvLivresListe.Columns["image"].Visible = false; + dgvLivresListe.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + dgvLivresListe.Columns["id"].DisplayIndex = 0; + dgvLivresListe.Columns["titre"].DisplayIndex = 1; + } + + /// + /// Recherche et affichage du livre dont on a saisi le numéro. + /// Si non trouvé, affichage d'un MessageBox. + /// + /// + /// + private void BtnLivresNumRecherche_Click(object sender, EventArgs e) + { + if (!txbLivresNumRecherche.Text.Equals("")) + { + txbLivresTitreRecherche.Text = ""; + cbxLivresGenres.SelectedIndex = -1; + cbxLivresRayons.SelectedIndex = -1; + cbxLivresPublics.SelectedIndex = -1; + Livre livre = lesLivres.Find(x => x.Id.Equals(txbLivresNumRecherche.Text)); + if (livre != null) + { + List livres = new List() { livre }; + RemplirLivresListe(livres); + } + else + { + MessageBox.Show("numéro introuvable"); + RemplirLivresListeComplete(); + } + } + else + { + RemplirLivresListeComplete(); + } + } + + /// + /// Recherche et affichage des livres dont le titre matche acec la saisie. + /// Cette procédure est exécutée à chaque ajout ou suppression de caractère + /// dans le textBox de saisie. + /// + /// + /// + private void TxbLivresTitreRecherche_TextChanged(object sender, EventArgs e) + { + if (!txbLivresTitreRecherche.Text.Equals("")) + { + cbxLivresGenres.SelectedIndex = -1; + cbxLivresRayons.SelectedIndex = -1; + cbxLivresPublics.SelectedIndex = -1; + txbLivresNumRecherche.Text = ""; + List lesLivresParTitre; + lesLivresParTitre = lesLivres.FindAll(x => x.Titre.ToLower().Contains(txbLivresTitreRecherche.Text.ToLower())); + RemplirLivresListe(lesLivresParTitre); + } + else + { + // si la zone de saisie est vide et aucun élément combo sélectionné, réaffichage de la liste complète + if (cbxLivresGenres.SelectedIndex < 0 && cbxLivresPublics.SelectedIndex < 0 && cbxLivresRayons.SelectedIndex < 0 + && txbLivresNumRecherche.Text.Equals("")) + { + RemplirLivresListeComplete(); + } + } + } + + /// + /// Affichage des informations du livre sélectionné + /// + /// le livre + private void AfficheLivresInfos(Livre livre) + { + txbLivresAuteur.Text = livre.Auteur; + txbLivresCollection.Text = livre.Collection; + txbLivresImage.Text = livre.Image; + txbLivresIsbn.Text = livre.Isbn; + txbLivresNumero.Text = livre.Id; + txbLivresGenre.Text = livre.Genre; + txbLivresPublic.Text = livre.Public; + txbLivresRayon.Text = livre.Rayon; + txbLivresTitre.Text = livre.Titre; + string image = livre.Image; + try + { + pcbLivresImage.Image = Image.FromFile(image); + } + catch + { + pcbLivresImage.Image = null; + } + } + + /// + /// Vide les zones d'affichage des informations du livre + /// + private void VideLivresInfos() + { + txbLivresAuteur.Text = ""; + txbLivresCollection.Text = ""; + txbLivresImage.Text = ""; + txbLivresIsbn.Text = ""; + txbLivresNumero.Text = ""; + txbLivresGenre.Text = ""; + txbLivresPublic.Text = ""; + txbLivresRayon.Text = ""; + txbLivresTitre.Text = ""; + pcbLivresImage.Image = null; + } + + /// + /// Filtre sur le genre + /// + /// + /// + private void CbxLivresGenres_SelectedIndexChanged(object sender, EventArgs e) + { + if (cbxLivresGenres.SelectedIndex >= 0) + { + txbLivresTitreRecherche.Text = ""; + txbLivresNumRecherche.Text = ""; + Genre genre = (Genre)cbxLivresGenres.SelectedItem; + List livres = lesLivres.FindAll(x => x.Genre.Equals(genre.Libelle)); + RemplirLivresListe(livres); + cbxLivresRayons.SelectedIndex = -1; + cbxLivresPublics.SelectedIndex = -1; + } + } + + /// + /// Filtre sur la catégorie de public + /// + /// + /// + private void CbxLivresPublics_SelectedIndexChanged(object sender, EventArgs e) + { + if (cbxLivresPublics.SelectedIndex >= 0) + { + txbLivresTitreRecherche.Text = ""; + txbLivresNumRecherche.Text = ""; + Public lePublic = (Public)cbxLivresPublics.SelectedItem; + List livres = lesLivres.FindAll(x => x.Public.Equals(lePublic.Libelle)); + RemplirLivresListe(livres); + cbxLivresRayons.SelectedIndex = -1; + cbxLivresGenres.SelectedIndex = -1; + } + } + + /// + /// Filtre sur le rayon + /// + /// + /// + private void CbxLivresRayons_SelectedIndexChanged(object sender, EventArgs e) + { + if (cbxLivresRayons.SelectedIndex >= 0) + { + txbLivresTitreRecherche.Text = ""; + txbLivresNumRecherche.Text = ""; + Rayon rayon = (Rayon)cbxLivresRayons.SelectedItem; + List livres = lesLivres.FindAll(x => x.Rayon.Equals(rayon.Libelle)); + RemplirLivresListe(livres); + cbxLivresGenres.SelectedIndex = -1; + cbxLivresPublics.SelectedIndex = -1; + } + } + + /// + /// Sur la sélection d'une ligne ou cellule dans le grid + /// affichage des informations du livre + /// + /// + /// + private void DgvLivresListe_SelectionChanged(object sender, EventArgs e) + { + if (dgvLivresListe.CurrentCell != null) + { + try + { + Livre livre = (Livre)bdgLivresListe.List[bdgLivresListe.Position]; + AfficheLivresInfos(livre); + } + catch + { + VideLivresZones(); + } + } + else + { + VideLivresInfos(); + } + } + + /// + /// Sur le clic du bouton d'annulation, affichage de la liste complète des livres + /// + /// + /// + private void BtnLivresAnnulPublics_Click(object sender, EventArgs e) + { + RemplirLivresListeComplete(); + } + + /// + /// Sur le clic du bouton d'annulation, affichage de la liste complète des livres + /// + /// + /// + private void BtnLivresAnnulRayons_Click(object sender, EventArgs e) + { + RemplirLivresListeComplete(); + } + + /// + /// Sur le clic du bouton d'annulation, affichage de la liste complète des livres + /// + /// + /// + private void BtnLivresAnnulGenres_Click(object sender, EventArgs e) + { + RemplirLivresListeComplete(); + } + + /// + /// Affichage de la liste complète des livres + /// et annulation de toutes les recherches et filtres + /// + private void RemplirLivresListeComplete() + { + RemplirLivresListe(lesLivres); + VideLivresZones(); + } + + /// + /// vide les zones de recherche et de filtre + /// + private void VideLivresZones() + { + cbxLivresGenres.SelectedIndex = -1; + cbxLivresRayons.SelectedIndex = -1; + cbxLivresPublics.SelectedIndex = -1; + txbLivresNumRecherche.Text = ""; + txbLivresTitreRecherche.Text = ""; + } + + /// + /// Tri sur les colonnes + /// + /// + /// + private void DgvLivresListe_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) + { + VideLivresZones(); + string titreColonne = dgvLivresListe.Columns[e.ColumnIndex].HeaderText; + List sortedList = new List(); + switch (titreColonne) + { + case "Id": + sortedList = lesLivres.OrderBy(o => o.Id).ToList(); + break; + case "Titre": + sortedList = lesLivres.OrderBy(o => o.Titre).ToList(); + break; + case "Collection": + sortedList = lesLivres.OrderBy(o => o.Collection).ToList(); + break; + case "Auteur": + sortedList = lesLivres.OrderBy(o => o.Auteur).ToList(); + break; + case "Genre": + sortedList = lesLivres.OrderBy(o => o.Genre).ToList(); + break; + case "Public": + sortedList = lesLivres.OrderBy(o => o.Public).ToList(); + break; + case "Rayon": + sortedList = lesLivres.OrderBy(o => o.Rayon).ToList(); + break; + } + RemplirLivresListe(sortedList); + } + #endregion + + #region Onglet Dvd + private readonly BindingSource bdgDvdListe = new BindingSource(); + private List lesDvd = new List(); + + /// + /// Ouverture de l'onglet Dvds : + /// appel des méthodes pour remplir le datagrid des dvd et des combos (genre, rayon, public) + /// + /// + /// + private void tabDvd_Enter(object sender, EventArgs e) + { + lesDvd = controller.GetAllDvd(); + RemplirComboCategorie(controller.GetAllGenres(), bdgGenres, cbxDvdGenres); + RemplirComboCategorie(controller.GetAllPublics(), bdgPublics, cbxDvdPublics); + RemplirComboCategorie(controller.GetAllRayons(), bdgRayons, cbxDvdRayons); + RemplirDvdListeComplete(); + } + + /// + /// Remplit le dategrid avec la liste reçue en paramètre + /// + /// liste de dvd + private void RemplirDvdListe(List Dvds) + { + bdgDvdListe.DataSource = Dvds; + dgvDvdListe.DataSource = bdgDvdListe; + dgvDvdListe.Columns["idRayon"].Visible = false; + dgvDvdListe.Columns["idGenre"].Visible = false; + dgvDvdListe.Columns["idPublic"].Visible = false; + dgvDvdListe.Columns["image"].Visible = false; + dgvDvdListe.Columns["synopsis"].Visible = false; + dgvDvdListe.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + dgvDvdListe.Columns["id"].DisplayIndex = 0; + dgvDvdListe.Columns["titre"].DisplayIndex = 1; + } + + /// + /// Recherche et affichage du Dvd dont on a saisi le numéro. + /// Si non trouvé, affichage d'un MessageBox. + /// + /// + /// + private void btnDvdNumRecherche_Click(object sender, EventArgs e) + { + if (!txbDvdNumRecherche.Text.Equals("")) + { + txbDvdTitreRecherche.Text = ""; + cbxDvdGenres.SelectedIndex = -1; + cbxDvdRayons.SelectedIndex = -1; + cbxDvdPublics.SelectedIndex = -1; + Dvd dvd = lesDvd.Find(x => x.Id.Equals(txbDvdNumRecherche.Text)); + if (dvd != null) + { + List Dvd = new List() { dvd }; + RemplirDvdListe(Dvd); + } + else + { + MessageBox.Show("numéro introuvable"); + RemplirDvdListeComplete(); + } + } + else + { + RemplirDvdListeComplete(); + } + } + + /// + /// Recherche et affichage des Dvd dont le titre matche acec la saisie. + /// Cette procédure est exécutée à chaque ajout ou suppression de caractère + /// dans le textBox de saisie. + /// + /// + /// + private void txbDvdTitreRecherche_TextChanged(object sender, EventArgs e) + { + if (!txbDvdTitreRecherche.Text.Equals("")) + { + cbxDvdGenres.SelectedIndex = -1; + cbxDvdRayons.SelectedIndex = -1; + cbxDvdPublics.SelectedIndex = -1; + txbDvdNumRecherche.Text = ""; + List lesDvdParTitre; + lesDvdParTitre = lesDvd.FindAll(x => x.Titre.ToLower().Contains(txbDvdTitreRecherche.Text.ToLower())); + RemplirDvdListe(lesDvdParTitre); + } + else + { + // si la zone de saisie est vide et aucun élément combo sélectionné, réaffichage de la liste complète + if (cbxDvdGenres.SelectedIndex < 0 && cbxDvdPublics.SelectedIndex < 0 && cbxDvdRayons.SelectedIndex < 0 + && txbDvdNumRecherche.Text.Equals("")) + { + RemplirDvdListeComplete(); + } + } + } + + /// + /// Affichage des informations du dvd sélectionné + /// + /// le dvd + private void AfficheDvdInfos(Dvd dvd) + { + txbDvdRealisateur.Text = dvd.Realisateur; + txbDvdSynopsis.Text = dvd.Synopsis; + txbDvdImage.Text = dvd.Image; + txbDvdDuree.Text = dvd.Duree.ToString(); + txbDvdNumero.Text = dvd.Id; + txbDvdGenre.Text = dvd.Genre; + txbDvdPublic.Text = dvd.Public; + txbDvdRayon.Text = dvd.Rayon; + txbDvdTitre.Text = dvd.Titre; + string image = dvd.Image; + try + { + pcbDvdImage.Image = Image.FromFile(image); + } + catch + { + pcbDvdImage.Image = null; + } + } + + /// + /// Vide les zones d'affichage des informations du dvd + /// + private void VideDvdInfos() + { + txbDvdRealisateur.Text = ""; + txbDvdSynopsis.Text = ""; + txbDvdImage.Text = ""; + txbDvdDuree.Text = ""; + txbDvdNumero.Text = ""; + txbDvdGenre.Text = ""; + txbDvdPublic.Text = ""; + txbDvdRayon.Text = ""; + txbDvdTitre.Text = ""; + pcbDvdImage.Image = null; + } + + /// + /// Filtre sur le genre + /// + /// + /// + private void cbxDvdGenres_SelectedIndexChanged(object sender, EventArgs e) + { + if (cbxDvdGenres.SelectedIndex >= 0) + { + txbDvdTitreRecherche.Text = ""; + txbDvdNumRecherche.Text = ""; + Genre genre = (Genre)cbxDvdGenres.SelectedItem; + List Dvd = lesDvd.FindAll(x => x.Genre.Equals(genre.Libelle)); + RemplirDvdListe(Dvd); + cbxDvdRayons.SelectedIndex = -1; + cbxDvdPublics.SelectedIndex = -1; + } + } + + /// + /// Filtre sur la catégorie de public + /// + /// + /// + private void cbxDvdPublics_SelectedIndexChanged(object sender, EventArgs e) + { + if (cbxDvdPublics.SelectedIndex >= 0) + { + txbDvdTitreRecherche.Text = ""; + txbDvdNumRecherche.Text = ""; + Public lePublic = (Public)cbxDvdPublics.SelectedItem; + List Dvd = lesDvd.FindAll(x => x.Public.Equals(lePublic.Libelle)); + RemplirDvdListe(Dvd); + cbxDvdRayons.SelectedIndex = -1; + cbxDvdGenres.SelectedIndex = -1; + } + } + + /// + /// Filtre sur le rayon + /// + /// + /// + private void cbxDvdRayons_SelectedIndexChanged(object sender, EventArgs e) + { + if (cbxDvdRayons.SelectedIndex >= 0) + { + txbDvdTitreRecherche.Text = ""; + txbDvdNumRecherche.Text = ""; + Rayon rayon = (Rayon)cbxDvdRayons.SelectedItem; + List Dvd = lesDvd.FindAll(x => x.Rayon.Equals(rayon.Libelle)); + RemplirDvdListe(Dvd); + cbxDvdGenres.SelectedIndex = -1; + cbxDvdPublics.SelectedIndex = -1; + } + } + + /// + /// Sur la sélection d'une ligne ou cellule dans le grid + /// affichage des informations du dvd + /// + /// + /// + private void dgvDvdListe_SelectionChanged(object sender, EventArgs e) + { + if (dgvDvdListe.CurrentCell != null) + { + try + { + Dvd dvd = (Dvd)bdgDvdListe.List[bdgDvdListe.Position]; + AfficheDvdInfos(dvd); + } + catch + { + VideDvdZones(); + } + } + else + { + VideDvdInfos(); + } + } + + /// + /// Sur le clic du bouton d'annulation, affichage de la liste complète des Dvd + /// + /// + /// + private void btnDvdAnnulPublics_Click(object sender, EventArgs e) + { + RemplirDvdListeComplete(); + } + + /// + /// Sur le clic du bouton d'annulation, affichage de la liste complète des Dvd + /// + /// + /// + private void btnDvdAnnulRayons_Click(object sender, EventArgs e) + { + RemplirDvdListeComplete(); + } + + /// + /// Sur le clic du bouton d'annulation, affichage de la liste complète des Dvd + /// + /// + /// + private void btnDvdAnnulGenres_Click(object sender, EventArgs e) + { + RemplirDvdListeComplete(); + } + + /// + /// Affichage de la liste complète des Dvd + /// et annulation de toutes les recherches et filtres + /// + private void RemplirDvdListeComplete() + { + RemplirDvdListe(lesDvd); + VideDvdZones(); + } + + /// + /// vide les zones de recherche et de filtre + /// + private void VideDvdZones() + { + cbxDvdGenres.SelectedIndex = -1; + cbxDvdRayons.SelectedIndex = -1; + cbxDvdPublics.SelectedIndex = -1; + txbDvdNumRecherche.Text = ""; + txbDvdTitreRecherche.Text = ""; + } + + /// + /// Tri sur les colonnes + /// + /// + /// + private void dgvDvdListe_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) + { + VideDvdZones(); + string titreColonne = dgvDvdListe.Columns[e.ColumnIndex].HeaderText; + List sortedList = new List(); + switch (titreColonne) + { + case "Id": + sortedList = lesDvd.OrderBy(o => o.Id).ToList(); + break; + case "Titre": + sortedList = lesDvd.OrderBy(o => o.Titre).ToList(); + break; + case "Duree": + sortedList = lesDvd.OrderBy(o => o.Duree).ToList(); + break; + case "Realisateur": + sortedList = lesDvd.OrderBy(o => o.Realisateur).ToList(); + break; + case "Genre": + sortedList = lesDvd.OrderBy(o => o.Genre).ToList(); + break; + case "Public": + sortedList = lesDvd.OrderBy(o => o.Public).ToList(); + break; + case "Rayon": + sortedList = lesDvd.OrderBy(o => o.Rayon).ToList(); + break; + } + RemplirDvdListe(sortedList); + } + #endregion + + #region Onglet Revues + private readonly BindingSource bdgRevuesListe = new BindingSource(); + private List lesRevues = new List(); + + /// + /// Ouverture de l'onglet Revues : + /// appel des méthodes pour remplir le datagrid des revues et des combos (genre, rayon, public) + /// + /// + /// + private void tabRevues_Enter(object sender, EventArgs e) + { + lesRevues = controller.GetAllRevues(); + RemplirComboCategorie(controller.GetAllGenres(), bdgGenres, cbxRevuesGenres); + RemplirComboCategorie(controller.GetAllPublics(), bdgPublics, cbxRevuesPublics); + RemplirComboCategorie(controller.GetAllRayons(), bdgRayons, cbxRevuesRayons); + RemplirRevuesListeComplete(); + } + + /// + /// Remplit le dategrid avec la liste reçue en paramètre + /// + /// + private void RemplirRevuesListe(List revues) + { + bdgRevuesListe.DataSource = revues; + dgvRevuesListe.DataSource = bdgRevuesListe; + dgvRevuesListe.Columns["idRayon"].Visible = false; + dgvRevuesListe.Columns["idGenre"].Visible = false; + dgvRevuesListe.Columns["idPublic"].Visible = false; + dgvRevuesListe.Columns["image"].Visible = false; + dgvRevuesListe.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + dgvRevuesListe.Columns["id"].DisplayIndex = 0; + dgvRevuesListe.Columns["titre"].DisplayIndex = 1; + } + + /// + /// Recherche et affichage de la revue dont on a saisi le numéro. + /// Si non trouvé, affichage d'un MessageBox. + /// + /// + /// + private void btnRevuesNumRecherche_Click(object sender, EventArgs e) + { + if (!txbRevuesNumRecherche.Text.Equals("")) + { + txbRevuesTitreRecherche.Text = ""; + cbxRevuesGenres.SelectedIndex = -1; + cbxRevuesRayons.SelectedIndex = -1; + cbxRevuesPublics.SelectedIndex = -1; + Revue revue = lesRevues.Find(x => x.Id.Equals(txbRevuesNumRecherche.Text)); + if (revue != null) + { + List revues = new List() { revue }; + RemplirRevuesListe(revues); + } + else + { + MessageBox.Show("numéro introuvable"); + RemplirRevuesListeComplete(); + } + } + else + { + RemplirRevuesListeComplete(); + } + } + + /// + /// Recherche et affichage des revues dont le titre matche acec la saisie. + /// Cette procédure est exécutée à chaque ajout ou suppression de caractère + /// dans le textBox de saisie. + /// + /// + /// + private void txbRevuesTitreRecherche_TextChanged(object sender, EventArgs e) + { + if (!txbRevuesTitreRecherche.Text.Equals("")) + { + cbxRevuesGenres.SelectedIndex = -1; + cbxRevuesRayons.SelectedIndex = -1; + cbxRevuesPublics.SelectedIndex = -1; + txbRevuesNumRecherche.Text = ""; + List lesRevuesParTitre; + lesRevuesParTitre = lesRevues.FindAll(x => x.Titre.ToLower().Contains(txbRevuesTitreRecherche.Text.ToLower())); + RemplirRevuesListe(lesRevuesParTitre); + } + else + { + // si la zone de saisie est vide et aucun élément combo sélectionné, réaffichage de la liste complète + if (cbxRevuesGenres.SelectedIndex < 0 && cbxRevuesPublics.SelectedIndex < 0 && cbxRevuesRayons.SelectedIndex < 0 + && txbRevuesNumRecherche.Text.Equals("")) + { + RemplirRevuesListeComplete(); + } + } + } + + /// + /// Affichage des informations de la revue sélectionné + /// + /// la revue + private void AfficheRevuesInfos(Revue revue) + { + txbRevuesPeriodicite.Text = revue.Periodicite; + txbRevuesImage.Text = revue.Image; + txbRevuesDateMiseADispo.Text = revue.DelaiMiseADispo.ToString(); + txbRevuesNumero.Text = revue.Id; + txbRevuesGenre.Text = revue.Genre; + txbRevuesPublic.Text = revue.Public; + txbRevuesRayon.Text = revue.Rayon; + txbRevuesTitre.Text = revue.Titre; + string image = revue.Image; + try + { + pcbRevuesImage.Image = Image.FromFile(image); + } + catch + { + pcbRevuesImage.Image = null; + } + } + + /// + /// Vide les zones d'affichage des informations de la reuve + /// + private void VideRevuesInfos() + { + txbRevuesPeriodicite.Text = ""; + txbRevuesImage.Text = ""; + txbRevuesDateMiseADispo.Text = ""; + txbRevuesNumero.Text = ""; + txbRevuesGenre.Text = ""; + txbRevuesPublic.Text = ""; + txbRevuesRayon.Text = ""; + txbRevuesTitre.Text = ""; + pcbRevuesImage.Image = null; + } + + /// + /// Filtre sur le genre + /// + /// + /// + private void cbxRevuesGenres_SelectedIndexChanged(object sender, EventArgs e) + { + if (cbxRevuesGenres.SelectedIndex >= 0) + { + txbRevuesTitreRecherche.Text = ""; + txbRevuesNumRecherche.Text = ""; + Genre genre = (Genre)cbxRevuesGenres.SelectedItem; + List revues = lesRevues.FindAll(x => x.Genre.Equals(genre.Libelle)); + RemplirRevuesListe(revues); + cbxRevuesRayons.SelectedIndex = -1; + cbxRevuesPublics.SelectedIndex = -1; + } + } + + /// + /// Filtre sur la catégorie de public + /// + /// + /// + private void cbxRevuesPublics_SelectedIndexChanged(object sender, EventArgs e) + { + if (cbxRevuesPublics.SelectedIndex >= 0) + { + txbRevuesTitreRecherche.Text = ""; + txbRevuesNumRecherche.Text = ""; + Public lePublic = (Public)cbxRevuesPublics.SelectedItem; + List revues = lesRevues.FindAll(x => x.Public.Equals(lePublic.Libelle)); + RemplirRevuesListe(revues); + cbxRevuesRayons.SelectedIndex = -1; + cbxRevuesGenres.SelectedIndex = -1; + } + } + + /// + /// Filtre sur le rayon + /// + /// + /// + private void cbxRevuesRayons_SelectedIndexChanged(object sender, EventArgs e) + { + if (cbxRevuesRayons.SelectedIndex >= 0) + { + txbRevuesTitreRecherche.Text = ""; + txbRevuesNumRecherche.Text = ""; + Rayon rayon = (Rayon)cbxRevuesRayons.SelectedItem; + List revues = lesRevues.FindAll(x => x.Rayon.Equals(rayon.Libelle)); + RemplirRevuesListe(revues); + cbxRevuesGenres.SelectedIndex = -1; + cbxRevuesPublics.SelectedIndex = -1; + } + } + + /// + /// Sur la sélection d'une ligne ou cellule dans le grid + /// affichage des informations de la revue + /// + /// + /// + private void dgvRevuesListe_SelectionChanged(object sender, EventArgs e) + { + if (dgvRevuesListe.CurrentCell != null) + { + try + { + Revue revue = (Revue)bdgRevuesListe.List[bdgRevuesListe.Position]; + AfficheRevuesInfos(revue); + } + catch + { + VideRevuesZones(); + } + } + else + { + VideRevuesInfos(); + } + } + + /// + /// Sur le clic du bouton d'annulation, affichage de la liste complète des revues + /// + /// + /// + private void btnRevuesAnnulPublics_Click(object sender, EventArgs e) + { + RemplirRevuesListeComplete(); + } + + /// + /// Sur le clic du bouton d'annulation, affichage de la liste complète des revues + /// + /// + /// + private void btnRevuesAnnulRayons_Click(object sender, EventArgs e) + { + RemplirRevuesListeComplete(); + } + + /// + /// Sur le clic du bouton d'annulation, affichage de la liste complète des revues + /// + /// + /// + private void btnRevuesAnnulGenres_Click(object sender, EventArgs e) + { + RemplirRevuesListeComplete(); + } + + /// + /// Affichage de la liste complète des revues + /// et annulation de toutes les recherches et filtres + /// + private void RemplirRevuesListeComplete() + { + RemplirRevuesListe(lesRevues); + VideRevuesZones(); + } + + /// + /// vide les zones de recherche et de filtre + /// + private void VideRevuesZones() + { + cbxRevuesGenres.SelectedIndex = -1; + cbxRevuesRayons.SelectedIndex = -1; + cbxRevuesPublics.SelectedIndex = -1; + txbRevuesNumRecherche.Text = ""; + txbRevuesTitreRecherche.Text = ""; + } + + /// + /// Tri sur les colonnes + /// + /// + /// + private void dgvRevuesListe_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) + { + VideRevuesZones(); + string titreColonne = dgvRevuesListe.Columns[e.ColumnIndex].HeaderText; + List sortedList = new List(); + switch (titreColonne) + { + case "Id": + sortedList = lesRevues.OrderBy(o => o.Id).ToList(); + break; + case "Titre": + sortedList = lesRevues.OrderBy(o => o.Titre).ToList(); + break; + case "Periodicite": + sortedList = lesRevues.OrderBy(o => o.Periodicite).ToList(); + break; + case "DelaiMiseADispo": + sortedList = lesRevues.OrderBy(o => o.DelaiMiseADispo).ToList(); + break; + case "Genre": + sortedList = lesRevues.OrderBy(o => o.Genre).ToList(); + break; + case "Public": + sortedList = lesRevues.OrderBy(o => o.Public).ToList(); + break; + case "Rayon": + sortedList = lesRevues.OrderBy(o => o.Rayon).ToList(); + break; + } + RemplirRevuesListe(sortedList); + } + #endregion + + #region Onglet Paarutions + private readonly BindingSource bdgExemplairesListe = new BindingSource(); + private List lesExemplaires = new List(); + const string ETATNEUF = "00001"; + + /// + /// Ouverture de l'onglet : récupère le revues et vide tous les champs. + /// + /// + /// + private void tabReceptionRevue_Enter(object sender, EventArgs e) + { + lesRevues = controller.GetAllRevues(); + txbReceptionRevueNumero.Text = ""; + } + + /// + /// Remplit le dategrid des exemplaires avec la liste reçue en paramètre + /// + /// liste d'exemplaires + private void RemplirReceptionExemplairesListe(List exemplaires) + { + if (exemplaires != null) + { + bdgExemplairesListe.DataSource = exemplaires; + dgvReceptionExemplairesListe.DataSource = bdgExemplairesListe; + dgvReceptionExemplairesListe.Columns["idEtat"].Visible = false; + dgvReceptionExemplairesListe.Columns["id"].Visible = false; + dgvReceptionExemplairesListe.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + dgvReceptionExemplairesListe.Columns["numero"].DisplayIndex = 0; + dgvReceptionExemplairesListe.Columns["dateAchat"].DisplayIndex = 1; + } + else + { + bdgExemplairesListe.DataSource = null; + } + } + + /// + /// Recherche d'un numéro de revue et affiche ses informations + /// + /// + /// + private void btnReceptionRechercher_Click(object sender, EventArgs e) + { + if (!txbReceptionRevueNumero.Text.Equals("")) + { + Revue revue = lesRevues.Find(x => x.Id.Equals(txbReceptionRevueNumero.Text)); + if (revue != null) + { + AfficheReceptionRevueInfos(revue); + } + else + { + MessageBox.Show("numéro introuvable"); + } + } + } + + /// + /// Si le numéro de revue est modifié, la zone de l'exemplaire est vidée et inactive + /// les informations de la revue son aussi effacées + /// + /// + /// + private void txbReceptionRevueNumero_TextChanged(object sender, EventArgs e) + { + txbReceptionRevuePeriodicite.Text = ""; + txbReceptionRevueImage.Text = ""; + txbReceptionRevueDelaiMiseADispo.Text = ""; + txbReceptionRevueGenre.Text = ""; + txbReceptionRevuePublic.Text = ""; + txbReceptionRevueRayon.Text = ""; + txbReceptionRevueTitre.Text = ""; + pcbReceptionRevueImage.Image = null; + RemplirReceptionExemplairesListe(null); + AccesReceptionExemplaireGroupBox(false); + } + + /// + /// Affichage des informations de la revue sélectionnée et les exemplaires + /// + /// la revue + private void AfficheReceptionRevueInfos(Revue revue) + { + // informations sur la revue + txbReceptionRevuePeriodicite.Text = revue.Periodicite; + txbReceptionRevueImage.Text = revue.Image; + txbReceptionRevueDelaiMiseADispo.Text = revue.DelaiMiseADispo.ToString(); + txbReceptionRevueNumero.Text = revue.Id; + txbReceptionRevueGenre.Text = revue.Genre; + txbReceptionRevuePublic.Text = revue.Public; + txbReceptionRevueRayon.Text = revue.Rayon; + txbReceptionRevueTitre.Text = revue.Titre; + string image = revue.Image; + try + { + pcbReceptionRevueImage.Image = Image.FromFile(image); + } + catch + { + pcbReceptionRevueImage.Image = null; + } + // affiche la liste des exemplaires de la revue + AfficheReceptionExemplairesRevue(); + } + + /// + /// Récupère et affiche les exemplaires d'une revue + /// + private void AfficheReceptionExemplairesRevue() + { + string idDocuement = txbReceptionRevueNumero.Text; + lesExemplaires = controller.GetExemplairesRevue(idDocuement); + RemplirReceptionExemplairesListe(lesExemplaires); + AccesReceptionExemplaireGroupBox(true); + } + + /// + /// Permet ou interdit l'accès à la gestion de la réception d'un exemplaire + /// et vide les objets graphiques + /// + /// true ou false + private void AccesReceptionExemplaireGroupBox(bool acces) + { + grpReceptionExemplaire.Enabled = acces; + txbReceptionExemplaireImage.Text = ""; + txbReceptionExemplaireNumero.Text = ""; + pcbReceptionExemplaireImage.Image = null; + dtpReceptionExemplaireDate.Value = DateTime.Now; + } + + /// + /// Recherche image sur disque (pour l'exemplaire à insérer) + /// + /// + /// + private void btnReceptionExemplaireImage_Click(object sender, EventArgs e) + { + string filePath = ""; + OpenFileDialog openFileDialog = new OpenFileDialog() + { + // positionnement à la racine du disque où se trouve le dossier actuel + InitialDirectory = Path.GetPathRoot(Environment.CurrentDirectory), + Filter = "Files|*.jpg;*.bmp;*.jpeg;*.png;*.gif" + }; + if (openFileDialog.ShowDialog() == DialogResult.OK) + { + filePath = openFileDialog.FileName; + } + txbReceptionExemplaireImage.Text = filePath; + try + { + pcbReceptionExemplaireImage.Image = Image.FromFile(filePath); + } + catch + { + pcbReceptionExemplaireImage.Image = null; + } + } + + /// + /// Enregistrement du nouvel exemplaire + /// + /// + /// + private void btnReceptionExemplaireValider_Click(object sender, EventArgs e) + { + if (!txbReceptionExemplaireNumero.Text.Equals("")) + { + try + { + int numero = int.Parse(txbReceptionExemplaireNumero.Text); + DateTime dateAchat = dtpReceptionExemplaireDate.Value; + string photo = txbReceptionExemplaireImage.Text; + string idEtat = ETATNEUF; + string idDocument = txbReceptionRevueNumero.Text; + Exemplaire exemplaire = new Exemplaire(numero, dateAchat, photo, idEtat, idDocument); + if (controller.CreerExemplaire(exemplaire)) + { + AfficheReceptionExemplairesRevue(); + } + else + { + MessageBox.Show("numéro de publication déjà existant", "Erreur"); + } + } + catch + { + MessageBox.Show("le numéro de parution doit être numérique", "Information"); + txbReceptionExemplaireNumero.Text = ""; + txbReceptionExemplaireNumero.Focus(); + } + } + else + { + MessageBox.Show("numéro de parution obligatoire", "Information"); + } + } + + /// + /// Tri sur une colonne + /// + /// + /// + private void dgvExemplairesListe_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) + { + string titreColonne = dgvReceptionExemplairesListe.Columns[e.ColumnIndex].HeaderText; + List sortedList = new List(); + switch (titreColonne) + { + case "Numero": + sortedList = lesExemplaires.OrderBy(o => o.Numero).Reverse().ToList(); + break; + case "DateAchat": + sortedList = lesExemplaires.OrderBy(o => o.DateAchat).Reverse().ToList(); + break; + case "Photo": + sortedList = lesExemplaires.OrderBy(o => o.Photo).ToList(); + break; + } + RemplirReceptionExemplairesListe(sortedList); + } + + /// + /// affichage de l'image de l'exemplaire suite à la sélection d'un exemplaire dans la liste + /// + /// + /// + private void dgvReceptionExemplairesListe_SelectionChanged(object sender, EventArgs e) + { + if (dgvReceptionExemplairesListe.CurrentCell != null) + { + Exemplaire exemplaire = (Exemplaire)bdgExemplairesListe.List[bdgExemplairesListe.Position]; + string image = exemplaire.Photo; + try + { + pcbReceptionExemplaireRevueImage.Image = Image.FromFile(image); + } + catch + { + pcbReceptionExemplaireRevueImage.Image = null; + } + } + else + { + pcbReceptionExemplaireRevueImage.Image = null; + } + } + #endregion + } +} diff --git a/MediaTekDocuments/view/FrmMediatek.resx b/MediaTekDocuments/view/FrmMediatek.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/MediaTekDocuments/view/FrmMediatek.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..dda5559 --- /dev/null +++ b/README.md @@ -0,0 +1,77 @@ +# MediatekDocuments +Cette application permet de gérer les documents (livres, DVD, revues) d'une médiathèque. Elle a été codée en C# sous Visual Studio 2019. C'est une application de bureau, prévue d'être installée sur plusieurs postes accédant à la même base de données.
+L'application exploite une API REST pour accéder à la BDD MySQL. Des explications sont données plus loin, ainsi que le lien de récupération. +## Présentation +Actuellement l'application est partiellement codée. Voici les fonctionnalités actuellement opérationnelles : recherches et affichage d'informations sur les documents de la médiathèque (livres, DVD, revues), réception de nouveaux numéros de revues.
+![img1](https://github.com/CNED-SLAM/MediaTekDocuments/assets/100127886/9b5a4c1b-6914-4455-94bf-fec24adba3ec) +
L'application ne comporte qu'une seule fenêtre divisée en plusieurs onglets. +## Les différents onglets +### Onglet 1 : Livres +Cet onglet présente la liste des livres, triée par défaut sur le titre.
+La liste comporte les informations suivantes : titre, auteur, collection, genre, public, rayon. +![img2](https://github.com/CNED-SLAM/MediaTekDocuments/assets/100127886/e3f31979-cf24-416d-afb1-a588356e8966) +#### Recherches +Par le titre : Il est possible de rechercher un ou plusieurs livres par le titre. La saisie dans la zone de recherche se fait en autocomplétions sans tenir compte de la casse. Seuls les livres concernés apparaissent dans la liste.
+Par le numéro : il est possible de saisir un numéro et, en cliquant sur "Rechercher", seul le livre concerné apparait dans la liste (ou un message d'erreur si le livre n'est pas trouvé, avec la liste remplie à nouveau). +#### Filtres +Il est possible d'appliquer un filtre (un seul à la fois) sur une de ces 3 catégories : genre, public, rayon.
+Un combo par catégorie permet de sélectionner un item. Seuls les livres correspondant à l'item sélectionné, apparaissent dans la liste (par exemple, en choisissant le genre "Policier", seuls les livres de genre "Policier" apparaissent).
+Le fait de sélectionner un autre filtre ou de faire une recherche, annule le filtre actuel.
+Il est possible aussi d'annuler le filtre en cliquant sur une des croix. +#### Tris +Le fait de cliquer sur le titre d'une des colonnes de la liste des livres, permet de trier la liste par rapport à la colonne choisie. +#### Affichage des informations détaillées +Si la liste des livres contient des éléments, par défaut il y en a toujours un de sélectionné. Il est aussi possible de sélectionner une ligne (donc un livre) en cliquant n'importe où sur la ligne.
+La partie basse de la fenêtre affiche les informations détaillées du livre sélectionné (numéro de document, code ISBN, titre, auteur(e), collection, genre, public, rayon, chemin de l'image) ainsi que l'image. +### Onglet 2 : DVD +Cet onglet présente la liste des DVD, triée par titre.
+La liste comporte les informations suivantes : titre, durée, réalisateur, genre, public, rayon.
+Le fonctionnement est identique à l'onglet des livres.
+La seule différence réside dans certaines informations détaillées, spécifiques aux DVD : durée (à la place de ISBN), réalisateur (à la place de l'auteur), synopsis (à la place de collection). +### Onglet 3 : Revues +Cet onglet présente la liste des revues, triées par titre.
+La liste comporte les informations suivantes : titre, périodicité, délai mise à dispo, genre, public, rayon.
+Le fonctionnement est identique à l'onglet des livres.
+La seule différence réside dans certaines informations détaillées, spécifiques aux revues : périodicité (à la place de l'auteur), délai mise à dispo (à la place de collection). +### Onglet 4 : Parutions des revues +Cet onglet permet d'enregistrer la réception de nouvelles parutions d'une revue.
+Il se décompose en 2 parties (groupbox). +#### Partie "Recherche revue" +Cette partie permet, à partir de la saisie d'un numéro de revue (puis en cliquant sur le bouton "Rechercher"), d'afficher toutes les informations de la revue (comme dans l'onglet précédent), ainsi que son image principale en petit, avec en plus la liste des parutions déjà reçues (numéro, date achat, chemin photo). Sur la sélection d'une ligne dans la liste des parutions, la photo de la parution correspondante s'affiche à droite.
+Dès qu'un numéro de revue est reconnu et ses informations affichées, la seconde partie ("Nouvelle parution réceptionnée pour cette revue") devient accessible.
+Si une modification est apportée au numéro de la revue, toutes les zones sont réinitialisées et la seconde partie est rendue inaccessible, tant que le bouton "Rechercher" n'est pas utilisé. +#### Partie "Nouvelle parution réceptionnée pour cette revue" +Cette partie n'est accessible que si une revue a bien été trouvée dans la première partie.
+Il est possible alors de réceptionner une nouvelle parution en saisissant son numéro, en sélectionnant une date (date du jour proposée par défaut) et en cherchant l'image correspondante (optionnel) qui doit alors s'afficher à droite.
+Le clic sur "Valider la réception" va permettre d'ajouter un tuple dans la table Exemplaire de la BDD. La parution correspondante apparaitra alors automatiquement dans la liste des parutions et les zones de la partie "Nouvelle parution réceptionnée pour cette revue" seront réinitialisées.
+Si le numéro de la parution existe déjà, il n’est pas ajouté et un message est affiché. +![img3](https://github.com/CNED-SLAM/MediaTekDocuments/assets/100127886/225e10f2-406a-4b5e-bfa9-368d45456056) +## La base de données +La base de données 'mediatek86 ' est au format MySQL.
+Voici sa structure :
+![img4](https://github.com/CNED-SLAM/MediaTekDocuments/assets/100127886/4314f083-ec8b-4d27-9746-fecd1387d77b) +
On distingue les documents "génériques" (ce sont les entités Document, Revue, Livres-DVD, Livre et DVD) des documents "physiques" qui sont les exemplaires de livres ou de DVD, ou bien les numéros d’une revue ou d’un journal.
+Chaque exemplaire est numéroté à l’intérieur du document correspondant, et a donc un identifiant relatif. Cet identifiant est réel : ce n'est pas un numéro automatique.
+Un exemplaire est caractérisé par :
+. un état d’usure, les différents états étant mémorisés dans la table Etat ;
+. sa date d’achat ou de parution dans le cas d’une revue ;
+. un lien vers le fichier contenant sa photo de couverture de l'exemplaire, renseigné uniquement pour les exemplaires des revues, donc les parutions (chemin complet) ; +
+Un document a un titre (titre de livre, titre de DVD ou titre de la revue), concerne une catégorie de public, possède un genre et est entreposé dans un rayon défini. Les genres, les catégories de public et les rayons sont gérés dans la base de données. Un document possède aussi une image dont le chemin complet est mémorisé. Même les revues peuvent avoir une image générique, en plus des photos liées à chaque exemplaire (parution).
+Une revue est un document, d’où le lien de spécialisation entre les 2 entités. Une revue est donc identifiée par son numéro de document. Elle a une périodicité (quotidien, hebdomadaire, etc.) et un délai de mise à disposition (temps pendant lequel chaque exemplaire est laissé en consultation). Chaque parution (exemplaire) d'une revue n'est disponible qu'en un seul "exemplaire".
+Un livre a aussi pour identifiant son numéro de document, possède un code ISBN, un auteur et peut faire partie d’une collection. Les auteurs et les collections ne sont pas gérés dans des tables séparées (ce sont de simples champs textes dans la table Livre).
+De même, un DVD est aussi identifié par son numéro de document, et possède un synopsis, un réalisateur et une durée. Les réalisateurs ne sont pas gérés dans une table séparée (c’est un simple champ texte dans la table DVD). +Enfin, 3 tables permettent de mémoriser les données concernant les commandes de livres ou DVD et les abonnements. Une commande est effectuée à une date pour un certain montant. Un abonnement est une commande qui a pour propriété complémentaire la date de fin de l’abonnement : il concerne une revue. Une commande de livre ou DVD a comme caractéristique le nombre d’exemplaires commandé et concerne donc un livre ou un DVD.
+
+La base de données est remplie de quelques exemples pour pouvoir tester son application. Dans les champs image (de Document) et photo (de Exemplaire) doit normalement se trouver le chemin complet vers l'image correspondante. Pour les tests, vous devrez créer un dossier, le remplir de quelques images et mettre directement les chemins dans certains tuples de la base de données qui, pour le moment, ne contient aucune image.
+Lorsque l'application sera opérationnelle, c'est le personnel de la médiathèque qui sera en charge de saisir les informations des documents. +## L'API REST +L'accès à la BDD se fait à travers une API REST protégée par une authentification basique.
+Le code de l'API se trouve ici :
+https://github.com/CNED-SLAM/rest_mediatekdocuments
+avec toutes les explications pour l'utiliser (dans le readme). +## Installation de l'application +Ce mode opératoire permet d'installer l'application pour pouvoir travailler dessus.
+- Installer Visual Studio 2019 entreprise et les extension Specflow et newtonsoft.json (pour ce dernier, voir l'article "Accéder à une API REST à partir d'une application C#" dans le wiki de ce dépôt : consulter juste le début pour la configuration, car la suite permet de comprendre le code existant).
+- Télécharger le code et le dézipper puis renommer le dossier en "mediatekdocuments".
+- Récupérer et installer l'API REST nécessaire (https://github.com/CNED-SLAM/rest_mediatekdocuments) ainsi que la base de données (les explications sont données dans le readme correspondant).