Installeur + Corrections
This commit is contained in:
parent
e1eac61b95
commit
abe5d4ce1f
130 changed files with 40283 additions and 1888 deletions
63
.gitattributes
vendored
63
.gitattributes
vendored
|
|
@ -1,63 +0,0 @@
|
|||
###############################################################################
|
||||
# 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
|
||||
363
.gitignore
vendored
363
.gitignore
vendored
|
|
@ -1,363 +0,0 @@
|
|||
## 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
|
||||
31
Mediatek86.sln
Normal file
31
Mediatek86.sln
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.14.36109.1 d17.14
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mediatek86", "Mediatek86\Mediatek86.csproj", "{A3D7A725-638A-4A5B-9D75-E873FA0DDE71}"
|
||||
EndProject
|
||||
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "MediatekInstaller", "MediatekInstaller\MediatekInstaller.vdproj", "{D7069470-91EB-99B6-FBFE-BD0C52697C99}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{A3D7A725-638A-4A5B-9D75-E873FA0DDE71}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{A3D7A725-638A-4A5B-9D75-E873FA0DDE71}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{A3D7A725-638A-4A5B-9D75-E873FA0DDE71}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{A3D7A725-638A-4A5B-9D75-E873FA0DDE71}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{D7069470-91EB-99B6-FBFE-BD0C52697C99}.Debug|Any CPU.ActiveCfg = Debug
|
||||
{D7069470-91EB-99B6-FBFE-BD0C52697C99}.Debug|Any CPU.Build.0 = Debug
|
||||
{D7069470-91EB-99B6-FBFE-BD0C52697C99}.Release|Any CPU.ActiveCfg = Release
|
||||
{D7069470-91EB-99B6-FBFE-BD0C52697C99}.Release|Any CPU.Build.0 = Release
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {27A0F618-CD6E-45FA-9540-D12B09C02DB2}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
6
Mediatek86/App.config
Normal file
6
Mediatek86/App.config
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
</configuration>
|
||||
43
Mediatek86/Controller/ModifierAbsenceController.cs
Normal file
43
Mediatek86/Controller/ModifierAbsenceController.cs
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
using projet.dal;
|
||||
using projet.modele;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Mediatek86.Controller
|
||||
{
|
||||
internal class ModifierAbsenceController
|
||||
{
|
||||
private readonly ServiceAccess serviceAccess;
|
||||
private readonly AbsenceAccess absenceAccess;
|
||||
private readonly MotifAccess motifAccess;
|
||||
public ModifierAbsenceController()
|
||||
{
|
||||
serviceAccess = new ServiceAccess();
|
||||
absenceAccess = new AbsenceAccess();
|
||||
motifAccess = new MotifAccess();
|
||||
}
|
||||
public List<Motif> GetAllMotifs()
|
||||
{
|
||||
return motifAccess.GetAllMotifs();
|
||||
}
|
||||
public void ModifierAbsence(Absence absence, Personnel personne)
|
||||
{
|
||||
absenceAccess.ModifierAbsence(absence, personne);
|
||||
}
|
||||
public int GetMotifIdByLibelle(string libelle)
|
||||
{
|
||||
return motifAccess.GetMotifIdByLibelle(libelle);
|
||||
}
|
||||
public Motif GetMotifById(int id)
|
||||
{
|
||||
return motifAccess.GetMotifById(id);
|
||||
}
|
||||
public string GetLibelleById(int id)
|
||||
{
|
||||
return motifAccess.GetLibelleById(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
187
Mediatek86/Mediatek86.csproj
Normal file
187
Mediatek86/Mediatek86.csproj
Normal file
|
|
@ -0,0 +1,187 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{A3D7A725-638A-4A5B-9D75-E873FA0DDE71}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>Mediatek86</RootNamespace>
|
||||
<AssemblyName>Mediatek86</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="MySql.Data, Version=9.3.0.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\Program Files\MySQL\MySql.Data.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="bddmanager\BddManager.cs" />
|
||||
<Compile Include="Controller\addPersonnelController.cs" />
|
||||
<Compile Include="Controller\AdminController.cs" />
|
||||
<Compile Include="Controller\ConfirmeSupressionPersonnelController.cs" />
|
||||
<Compile Include="Controller\GestionAbsenceController.cs" />
|
||||
<Compile Include="Controller\ModifierAbsenceController.cs" />
|
||||
<Compile Include="Controller\ModifierPersonneController.cs" />
|
||||
<Compile Include="Controller\PageConnexionController.cs" />
|
||||
<Compile Include="dal\AbsenceAccess.cs" />
|
||||
<Compile Include="dal\Access.cs" />
|
||||
<Compile Include="dal\MotifAccess.cs" />
|
||||
<Compile Include="dal\PersonnelAccess.cs" />
|
||||
<Compile Include="dal\ResponsableAccess.cs" />
|
||||
<Compile Include="dal\ServiceAccess.cs" />
|
||||
<Compile Include="modele\Absence.cs" />
|
||||
<Compile Include="modele\Motif.cs" />
|
||||
<Compile Include="modele\Personnel.cs" />
|
||||
<Compile Include="modele\Responsable.cs" />
|
||||
<Compile Include="modele\Service.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="View\AddPersonnel.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="View\AddPersonnel.Designer.cs">
|
||||
<DependentUpon>AddPersonnel.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\Admin.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="View\Admin.Designer.cs">
|
||||
<DependentUpon>Admin.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\ConfirmeModifierAbsence.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="View\ConfirmeModifierAbsence.Designer.cs">
|
||||
<DependentUpon>ConfirmeModifierAbsence.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\ConfirmeModifierPersonnel.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="View\ConfirmeModifierPersonnel.Designer.cs">
|
||||
<DependentUpon>ConfirmeModifierPersonnel.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\ConfirmeSupprimerAbsence.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="View\ConfirmeSupprimerAbsence.Designer.cs">
|
||||
<DependentUpon>ConfirmeSupprimerAbsence.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\ConfirmeSupressionPersonnel.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="View\ConfirmeSupressionPersonnel.Designer.cs">
|
||||
<DependentUpon>ConfirmeSupressionPersonnel.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\GestionAbsence.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="View\GestionAbsence.Designer.cs">
|
||||
<DependentUpon>GestionAbsence.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\ModifierAbsence.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="View\ModifierAbsence.Designer.cs">
|
||||
<DependentUpon>ModifierAbsence.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\ModifierPersonne.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="View\ModifierPersonne.Designer.cs">
|
||||
<DependentUpon>ModifierPersonne.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\PageConnexion.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="View\PageConnexion.Designer.cs">
|
||||
<DependentUpon>PageConnexion.cs</DependentUpon>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="View\AddPersonnel.resx">
|
||||
<DependentUpon>AddPersonnel.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="View\Admin.resx">
|
||||
<DependentUpon>Admin.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="View\ConfirmeModifierAbsence.resx">
|
||||
<DependentUpon>ConfirmeModifierAbsence.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="View\ConfirmeModifierPersonnel.resx">
|
||||
<DependentUpon>ConfirmeModifierPersonnel.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="View\ConfirmeSupprimerAbsence.resx">
|
||||
<DependentUpon>ConfirmeSupprimerAbsence.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="View\ConfirmeSupressionPersonnel.resx">
|
||||
<DependentUpon>ConfirmeSupressionPersonnel.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="View\GestionAbsence.resx">
|
||||
<DependentUpon>GestionAbsence.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="View\ModifierAbsence.resx">
|
||||
<DependentUpon>ModifierAbsence.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="View\ModifierPersonne.resx">
|
||||
<DependentUpon>ModifierPersonne.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="View\PageConnexion.resx">
|
||||
<DependentUpon>PageConnexion.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
23
Mediatek86/Program.cs
Normal file
23
Mediatek86/Program.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using projet.View;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace projet
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// Point d'entrée principal de l'application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new PageConnexion());
|
||||
}
|
||||
}
|
||||
}
|
||||
33
Mediatek86/Properties/AssemblyInfo.cs
Normal file
33
Mediatek86/Properties/AssemblyInfo.cs
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
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("Mediatek86")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Mediatek86")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2025")]
|
||||
[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("a3d7a725-638a-4a5b-9d75-e873fa0dde71")]
|
||||
|
||||
// Les informations de version pour un assembly se composent des quatre valeurs suivantes :
|
||||
//
|
||||
// Version principale
|
||||
// Version secondaire
|
||||
// Numéro de build
|
||||
// Révision
|
||||
//
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
71
Mediatek86/Properties/Resources.Designer.cs
generated
Normal file
71
Mediatek86/Properties/Resources.Designer.cs
generated
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 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é.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Mediatek86.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées.
|
||||
/// </summary>
|
||||
// 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()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retourne l'instance ResourceManager mise en cache utilisée par cette classe.
|
||||
/// </summary>
|
||||
[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("Mediatek86.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Remplace la propriété CurrentUICulture du thread actuel pour toutes
|
||||
/// les recherches de ressources à l'aide de cette classe de ressource fortement typée.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
117
Mediatek86/Properties/Resources.resx
Normal file
117
Mediatek86/Properties/Resources.resx
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
30
Mediatek86/Properties/Settings.Designer.cs
generated
Normal file
30
Mediatek86/Properties/Settings.Designer.cs
generated
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Mediatek86.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
7
Mediatek86/Properties/Settings.settings
Normal file
7
Mediatek86/Properties/Settings.settings
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
350
Mediatek86/View/AddPersonnel.Designer.cs
generated
Normal file
350
Mediatek86/View/AddPersonnel.Designer.cs
generated
Normal file
|
|
@ -0,0 +1,350 @@
|
|||
using System;
|
||||
using System.Windows.Forms;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
|
||||
namespace projet.View
|
||||
{
|
||||
partial class AddPersonnel
|
||||
{
|
||||
/// <summary>
|
||||
/// Variable nécessaire au concepteur.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Bannière supérieure du formulaire
|
||||
/// </summary>
|
||||
private System.Windows.Forms.PictureBox pictureBoxTop;
|
||||
|
||||
/// <summary>
|
||||
/// Bannière inférieure du formulaire
|
||||
/// </summary>
|
||||
private System.Windows.Forms.PictureBox pictureBoxBottom;
|
||||
|
||||
/// <summary>
|
||||
/// Titre du formulaire
|
||||
/// </summary>
|
||||
private System.Windows.Forms.Label labelTitle;
|
||||
|
||||
/// <summary>
|
||||
/// Conteneur principal organisant les champs de saisie
|
||||
/// </summary>
|
||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel;
|
||||
|
||||
/// <summary>
|
||||
/// Étiquette pour le champ Nom
|
||||
/// </summary>
|
||||
private System.Windows.Forms.Label labelNom;
|
||||
|
||||
/// <summary>
|
||||
/// Zone de saisie du nom
|
||||
/// </summary>
|
||||
private System.Windows.Forms.TextBox textBoxNom;
|
||||
|
||||
/// <summary>
|
||||
/// Étiquette pour le champ Prénom
|
||||
/// </summary>
|
||||
private System.Windows.Forms.Label labelPrenom;
|
||||
|
||||
/// <summary>
|
||||
/// Zone de saisie du prénom
|
||||
/// </summary>
|
||||
private System.Windows.Forms.TextBox textBoxPrenom;
|
||||
|
||||
/// <summary>
|
||||
/// Étiquette pour le champ Téléphone
|
||||
/// </summary>
|
||||
private System.Windows.Forms.Label labelTel;
|
||||
|
||||
/// <summary>
|
||||
/// Zone de saisie du numéro de téléphone
|
||||
/// </summary>
|
||||
private System.Windows.Forms.TextBox textBoxTel;
|
||||
|
||||
/// <summary>
|
||||
/// Étiquette pour le champ Email
|
||||
/// </summary>
|
||||
private System.Windows.Forms.Label labelMail;
|
||||
|
||||
/// <summary>
|
||||
/// Zone de saisie de l'adresse email
|
||||
/// </summary>
|
||||
private System.Windows.Forms.TextBox textBoxMail;
|
||||
|
||||
/// <summary>
|
||||
/// Étiquette pour le champ Service
|
||||
/// </summary>
|
||||
private System.Windows.Forms.Label labelService;
|
||||
|
||||
/// <summary>
|
||||
/// Liste déroulante pour la sélection du service
|
||||
/// </summary>
|
||||
private System.Windows.Forms.ComboBox comboBoxService;
|
||||
|
||||
/// <summary>
|
||||
/// Conteneur pour les boutons d'action
|
||||
/// </summary>
|
||||
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanelButtons;
|
||||
|
||||
/// <summary>
|
||||
/// Bouton de validation pour ajouter le personnel
|
||||
/// </summary>
|
||||
private System.Windows.Forms.Button buttonAjouter;
|
||||
|
||||
/// <summary>
|
||||
/// Bouton pour annuler l'opération
|
||||
/// </summary>
|
||||
private System.Windows.Forms.Button buttonAnnuler;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.pictureBoxTop = new System.Windows.Forms.PictureBox();
|
||||
this.pictureBoxBottom = new System.Windows.Forms.PictureBox();
|
||||
this.labelTitle = new System.Windows.Forms.Label();
|
||||
this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.labelNom = new System.Windows.Forms.Label();
|
||||
this.textBoxNom = new System.Windows.Forms.TextBox();
|
||||
this.labelPrenom = new System.Windows.Forms.Label();
|
||||
this.textBoxPrenom = new System.Windows.Forms.TextBox();
|
||||
this.labelTel = new System.Windows.Forms.Label();
|
||||
this.textBoxTel = new System.Windows.Forms.TextBox();
|
||||
this.labelMail = new System.Windows.Forms.Label();
|
||||
this.textBoxMail = new System.Windows.Forms.TextBox();
|
||||
this.labelService = new System.Windows.Forms.Label();
|
||||
this.comboBoxService = new System.Windows.Forms.ComboBox();
|
||||
this.flowLayoutPanelButtons = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.buttonAjouter = new System.Windows.Forms.Button();
|
||||
this.buttonAnnuler = new System.Windows.Forms.Button();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxTop)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxBottom)).BeginInit();
|
||||
this.tableLayoutPanel.SuspendLayout();
|
||||
this.flowLayoutPanelButtons.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pictureBoxTop
|
||||
//
|
||||
this.pictureBoxTop.BackColor = System.Drawing.Color.SteelBlue;
|
||||
this.pictureBoxTop.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pictureBoxTop.Location = new System.Drawing.Point(0, 0);
|
||||
this.pictureBoxTop.Name = "pictureBoxTop";
|
||||
this.pictureBoxTop.Size = new System.Drawing.Size(800, 180);
|
||||
this.pictureBoxTop.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.pictureBoxTop.TabIndex = 0;
|
||||
this.pictureBoxTop.TabStop = false;
|
||||
//
|
||||
// pictureBoxBottom
|
||||
//
|
||||
this.pictureBoxBottom.BackColor = System.Drawing.Color.SteelBlue;
|
||||
this.pictureBoxBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.pictureBoxBottom.Location = new System.Drawing.Point(0, 500);
|
||||
this.pictureBoxBottom.Name = "pictureBoxBottom";
|
||||
this.pictureBoxBottom.Size = new System.Drawing.Size(800, 100);
|
||||
this.pictureBoxBottom.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.pictureBoxBottom.TabIndex = 1;
|
||||
this.pictureBoxBottom.TabStop = false;
|
||||
//
|
||||
// labelTitle
|
||||
//
|
||||
this.labelTitle.Font = new System.Drawing.Font("Segoe UI", 28F);
|
||||
this.labelTitle.Location = new System.Drawing.Point(0, 180);
|
||||
this.labelTitle.Name = "labelTitle";
|
||||
this.labelTitle.Size = new System.Drawing.Size(800, 60);
|
||||
this.labelTitle.TabIndex = 2;
|
||||
this.labelTitle.Text = "Ajouter une personne";
|
||||
this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// tableLayoutPanel
|
||||
//
|
||||
this.tableLayoutPanel.ColumnCount = 2;
|
||||
this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 30F));
|
||||
this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 70F));
|
||||
this.tableLayoutPanel.Controls.Add(this.labelNom, 0, 0);
|
||||
this.tableLayoutPanel.Controls.Add(this.textBoxNom, 1, 0);
|
||||
this.tableLayoutPanel.Controls.Add(this.labelPrenom, 0, 1);
|
||||
this.tableLayoutPanel.Controls.Add(this.textBoxPrenom, 1, 1);
|
||||
this.tableLayoutPanel.Controls.Add(this.labelTel, 0, 2);
|
||||
this.tableLayoutPanel.Controls.Add(this.textBoxTel, 1, 2);
|
||||
this.tableLayoutPanel.Controls.Add(this.labelMail, 0, 3);
|
||||
this.tableLayoutPanel.Controls.Add(this.textBoxMail, 1, 3);
|
||||
this.tableLayoutPanel.Controls.Add(this.labelService, 0, 4);
|
||||
this.tableLayoutPanel.Controls.Add(this.comboBoxService, 1, 4);
|
||||
this.tableLayoutPanel.Controls.Add(this.flowLayoutPanelButtons, 1, 5);
|
||||
this.tableLayoutPanel.Location = new System.Drawing.Point(120, 260);
|
||||
this.tableLayoutPanel.Name = "tableLayoutPanel";
|
||||
this.tableLayoutPanel.RowCount = 6;
|
||||
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
|
||||
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
|
||||
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
|
||||
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
|
||||
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
|
||||
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 50F));
|
||||
this.tableLayoutPanel.Size = new System.Drawing.Size(560, 250);
|
||||
this.tableLayoutPanel.TabIndex = 3;
|
||||
//
|
||||
// labelNom
|
||||
//
|
||||
this.labelNom.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.labelNom.AutoSize = true;
|
||||
this.labelNom.Font = new System.Drawing.Font("Segoe UI", 16F);
|
||||
this.labelNom.Location = new System.Drawing.Point(93, 5);
|
||||
this.labelNom.Name = "labelNom";
|
||||
this.labelNom.Size = new System.Drawing.Size(72, 30);
|
||||
this.labelNom.TabIndex = 0;
|
||||
this.labelNom.Text = "Nom :";
|
||||
//
|
||||
// textBoxNom
|
||||
//
|
||||
this.textBoxNom.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.textBoxNom.Location = new System.Drawing.Point(171, 10);
|
||||
this.textBoxNom.Name = "textBoxNom";
|
||||
this.textBoxNom.Size = new System.Drawing.Size(250, 20);
|
||||
this.textBoxNom.TabIndex = 1;
|
||||
//
|
||||
// labelPrenom
|
||||
//
|
||||
this.labelPrenom.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.labelPrenom.AutoSize = true;
|
||||
this.labelPrenom.Font = new System.Drawing.Font("Segoe UI", 16F);
|
||||
this.labelPrenom.Location = new System.Drawing.Point(65, 45);
|
||||
this.labelPrenom.Name = "labelPrenom";
|
||||
this.labelPrenom.Size = new System.Drawing.Size(100, 30);
|
||||
this.labelPrenom.TabIndex = 2;
|
||||
this.labelPrenom.Text = "Prénom :";
|
||||
//
|
||||
// textBoxPrenom
|
||||
//
|
||||
this.textBoxPrenom.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.textBoxPrenom.Location = new System.Drawing.Point(171, 50);
|
||||
this.textBoxPrenom.Name = "textBoxPrenom";
|
||||
this.textBoxPrenom.Size = new System.Drawing.Size(250, 20);
|
||||
this.textBoxPrenom.TabIndex = 3;
|
||||
//
|
||||
// labelTel
|
||||
//
|
||||
this.labelTel.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.labelTel.AutoSize = true;
|
||||
this.labelTel.Font = new System.Drawing.Font("Segoe UI", 16F);
|
||||
this.labelTel.Location = new System.Drawing.Point(114, 85);
|
||||
this.labelTel.Name = "labelTel";
|
||||
this.labelTel.Size = new System.Drawing.Size(51, 30);
|
||||
this.labelTel.TabIndex = 4;
|
||||
this.labelTel.Text = "Tél :";
|
||||
//
|
||||
// textBoxTel
|
||||
//
|
||||
this.textBoxTel.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.textBoxTel.Location = new System.Drawing.Point(171, 90);
|
||||
this.textBoxTel.Name = "textBoxTel";
|
||||
this.textBoxTel.Size = new System.Drawing.Size(250, 20);
|
||||
this.textBoxTel.TabIndex = 5;
|
||||
//
|
||||
// labelMail
|
||||
//
|
||||
this.labelMail.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.labelMail.AutoSize = true;
|
||||
this.labelMail.Font = new System.Drawing.Font("Segoe UI", 16F);
|
||||
this.labelMail.Location = new System.Drawing.Point(100, 125);
|
||||
this.labelMail.Name = "labelMail";
|
||||
this.labelMail.Size = new System.Drawing.Size(65, 30);
|
||||
this.labelMail.TabIndex = 6;
|
||||
this.labelMail.Text = "Mail :";
|
||||
//
|
||||
// textBoxMail
|
||||
//
|
||||
this.textBoxMail.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.textBoxMail.Location = new System.Drawing.Point(171, 130);
|
||||
this.textBoxMail.Name = "textBoxMail";
|
||||
this.textBoxMail.Size = new System.Drawing.Size(250, 20);
|
||||
this.textBoxMail.TabIndex = 7;
|
||||
//
|
||||
// labelService
|
||||
//
|
||||
this.labelService.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.labelService.AutoSize = true;
|
||||
this.labelService.Font = new System.Drawing.Font("Segoe UI", 16F);
|
||||
this.labelService.Location = new System.Drawing.Point(71, 165);
|
||||
this.labelService.Name = "labelService";
|
||||
this.labelService.Size = new System.Drawing.Size(94, 30);
|
||||
this.labelService.TabIndex = 8;
|
||||
this.labelService.Text = "Service :";
|
||||
//
|
||||
// comboBoxService
|
||||
//
|
||||
this.comboBoxService.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.comboBoxService.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.comboBoxService.Location = new System.Drawing.Point(171, 169);
|
||||
this.comboBoxService.Name = "comboBoxService";
|
||||
this.comboBoxService.Size = new System.Drawing.Size(250, 21);
|
||||
this.comboBoxService.TabIndex = 9;
|
||||
//
|
||||
// flowLayoutPanelButtons
|
||||
//
|
||||
this.flowLayoutPanelButtons.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.flowLayoutPanelButtons.AutoSize = true;
|
||||
this.flowLayoutPanelButtons.Controls.Add(this.buttonAjouter);
|
||||
this.flowLayoutPanelButtons.Controls.Add(this.buttonAnnuler);
|
||||
this.flowLayoutPanelButtons.Location = new System.Drawing.Point(171, 210);
|
||||
this.flowLayoutPanelButtons.Name = "flowLayoutPanelButtons";
|
||||
this.flowLayoutPanelButtons.Size = new System.Drawing.Size(212, 29);
|
||||
this.flowLayoutPanelButtons.TabIndex = 10;
|
||||
//
|
||||
// buttonAjouter
|
||||
//
|
||||
this.buttonAjouter.Location = new System.Drawing.Point(3, 3);
|
||||
this.buttonAjouter.Name = "buttonAjouter";
|
||||
this.buttonAjouter.Size = new System.Drawing.Size(100, 23);
|
||||
this.buttonAjouter.TabIndex = 0;
|
||||
this.buttonAjouter.Text = "Ajouter";
|
||||
this.buttonAjouter.Click += new System.EventHandler(this.buttonAjouter_Click_1);
|
||||
//
|
||||
// buttonAnnuler
|
||||
//
|
||||
this.buttonAnnuler.Location = new System.Drawing.Point(109, 3);
|
||||
this.buttonAnnuler.Name = "buttonAnnuler";
|
||||
this.buttonAnnuler.Size = new System.Drawing.Size(100, 23);
|
||||
this.buttonAnnuler.TabIndex = 1;
|
||||
this.buttonAnnuler.Text = "Annuler";
|
||||
this.buttonAnnuler.Click += new System.EventHandler(this.buttonAnnuler_Click_1);
|
||||
//
|
||||
// AddPersonnel
|
||||
//
|
||||
this.ClientSize = new System.Drawing.Size(800, 600);
|
||||
this.Controls.Add(this.pictureBoxTop);
|
||||
this.Controls.Add(this.pictureBoxBottom);
|
||||
this.Controls.Add(this.labelTitle);
|
||||
this.Controls.Add(this.tableLayoutPanel);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "AddPersonnel";
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxTop)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxBottom)).EndInit();
|
||||
this.tableLayoutPanel.ResumeLayout(false);
|
||||
this.tableLayoutPanel.PerformLayout();
|
||||
this.flowLayoutPanelButtons.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
@ -27,6 +27,7 @@ namespace projet.View
|
|||
{
|
||||
Init();
|
||||
InitializeComponent();
|
||||
RemplirComboBoxService();
|
||||
}
|
||||
|
||||
private void Init()
|
||||
177
Mediatek86/View/Admin.Designer.cs
generated
Normal file
177
Mediatek86/View/Admin.Designer.cs
generated
Normal file
|
|
@ -0,0 +1,177 @@
|
|||
using System;
|
||||
using System.Windows.Forms;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
|
||||
namespace projet.View
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface pour la gestion du personnel par l'administrateur.
|
||||
/// </summary>
|
||||
partial class Admin
|
||||
{
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
private System.Windows.Forms.PictureBox pictureBoxTop;
|
||||
private System.Windows.Forms.PictureBox pictureBoxBottom;
|
||||
private System.Windows.Forms.Label labelTitle;
|
||||
private System.Windows.Forms.Label labelList;
|
||||
private System.Windows.Forms.Label labelSeparator;
|
||||
private System.Windows.Forms.ComboBox comboBoxPersonnel;
|
||||
private System.Windows.Forms.Button buttonAdd;
|
||||
private System.Windows.Forms.Button buttonDelete;
|
||||
private System.Windows.Forms.Button buttonEdit;
|
||||
private System.Windows.Forms.Button buttonAbsence;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.pictureBoxTop = new System.Windows.Forms.PictureBox();
|
||||
this.pictureBoxBottom = new System.Windows.Forms.PictureBox();
|
||||
this.labelTitle = new System.Windows.Forms.Label();
|
||||
this.labelList = new System.Windows.Forms.Label();
|
||||
this.labelSeparator = new System.Windows.Forms.Label();
|
||||
this.comboBoxPersonnel = new System.Windows.Forms.ComboBox();
|
||||
this.buttonAdd = new System.Windows.Forms.Button();
|
||||
this.buttonDelete = new System.Windows.Forms.Button();
|
||||
this.buttonEdit = new System.Windows.Forms.Button();
|
||||
this.buttonAbsence = new System.Windows.Forms.Button();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxTop)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxBottom)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pictureBoxTop
|
||||
//
|
||||
this.pictureBoxTop.BackColor = System.Drawing.Color.SteelBlue;
|
||||
this.pictureBoxTop.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pictureBoxTop.Location = new System.Drawing.Point(0, 0);
|
||||
this.pictureBoxTop.Name = "pictureBoxTop";
|
||||
this.pictureBoxTop.Size = new System.Drawing.Size(800, 180);
|
||||
this.pictureBoxTop.TabIndex = 0;
|
||||
this.pictureBoxTop.TabStop = false;
|
||||
//
|
||||
// pictureBoxBottom
|
||||
//
|
||||
this.pictureBoxBottom.BackColor = System.Drawing.Color.SteelBlue;
|
||||
this.pictureBoxBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.pictureBoxBottom.Location = new System.Drawing.Point(0, 540);
|
||||
this.pictureBoxBottom.Name = "pictureBoxBottom";
|
||||
this.pictureBoxBottom.Size = new System.Drawing.Size(800, 60);
|
||||
this.pictureBoxBottom.TabIndex = 1;
|
||||
this.pictureBoxBottom.TabStop = false;
|
||||
//
|
||||
// labelTitle
|
||||
//
|
||||
this.labelTitle.Font = new System.Drawing.Font("Segoe UI", 28F);
|
||||
this.labelTitle.Location = new System.Drawing.Point(0, 200);
|
||||
this.labelTitle.Name = "labelTitle";
|
||||
this.labelTitle.Size = new System.Drawing.Size(800, 60);
|
||||
this.labelTitle.TabIndex = 2;
|
||||
this.labelTitle.Text = "Gérer le personnel";
|
||||
this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// labelList
|
||||
//
|
||||
this.labelList.Font = new System.Drawing.Font("Segoe UI", 18F);
|
||||
this.labelList.Location = new System.Drawing.Point(0, 260);
|
||||
this.labelList.Name = "labelList";
|
||||
this.labelList.Size = new System.Drawing.Size(800, 40);
|
||||
this.labelList.TabIndex = 3;
|
||||
this.labelList.Text = "Liste du personnel";
|
||||
this.labelList.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// labelSeparator
|
||||
//
|
||||
this.labelSeparator.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.labelSeparator.Location = new System.Drawing.Point(300, 300);
|
||||
this.labelSeparator.Name = "labelSeparator";
|
||||
this.labelSeparator.Size = new System.Drawing.Size(200, 2);
|
||||
this.labelSeparator.TabIndex = 4;
|
||||
//
|
||||
// comboBoxPersonnel
|
||||
//
|
||||
this.comboBoxPersonnel.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.comboBoxPersonnel.Font = new System.Drawing.Font("Segoe UI", 10F);
|
||||
this.comboBoxPersonnel.Location = new System.Drawing.Point(300, 320);
|
||||
this.comboBoxPersonnel.Name = "comboBoxPersonnel";
|
||||
this.comboBoxPersonnel.Size = new System.Drawing.Size(200, 25);
|
||||
this.comboBoxPersonnel.TabIndex = 5;
|
||||
//
|
||||
// buttonAdd
|
||||
//
|
||||
this.buttonAdd.Location = new System.Drawing.Point(220, 370);
|
||||
this.buttonAdd.Name = "buttonAdd";
|
||||
this.buttonAdd.Size = new System.Drawing.Size(150, 30);
|
||||
this.buttonAdd.TabIndex = 6;
|
||||
this.buttonAdd.Text = "Ajouter une personne";
|
||||
this.buttonAdd.Click += new System.EventHandler(this.buttonAdd_Click);
|
||||
//
|
||||
// buttonDelete
|
||||
//
|
||||
this.buttonDelete.Location = new System.Drawing.Point(220, 410);
|
||||
this.buttonDelete.Name = "buttonDelete";
|
||||
this.buttonDelete.Size = new System.Drawing.Size(150, 30);
|
||||
this.buttonDelete.TabIndex = 8;
|
||||
this.buttonDelete.Text = "Supprimer la personne";
|
||||
this.buttonDelete.Click += new System.EventHandler(this.buttonDelete_Click);
|
||||
//
|
||||
// buttonEdit
|
||||
//
|
||||
this.buttonEdit.Location = new System.Drawing.Point(430, 410);
|
||||
this.buttonEdit.Name = "buttonEdit";
|
||||
this.buttonEdit.Size = new System.Drawing.Size(150, 30);
|
||||
this.buttonEdit.TabIndex = 9;
|
||||
this.buttonEdit.Text = "Modifier personne";
|
||||
this.buttonEdit.Click += new System.EventHandler(this.buttonEdit_Click);
|
||||
//
|
||||
// buttonAbsence
|
||||
//
|
||||
this.buttonAbsence.Location = new System.Drawing.Point(430, 370);
|
||||
this.buttonAbsence.Name = "buttonAbsence";
|
||||
this.buttonAbsence.Size = new System.Drawing.Size(150, 30);
|
||||
this.buttonAbsence.TabIndex = 7;
|
||||
this.buttonAbsence.Text = "Gérer ses absences";
|
||||
this.buttonAbsence.Click += new System.EventHandler(this.buttonAbsence_Click);
|
||||
//
|
||||
// Admin
|
||||
//
|
||||
this.ClientSize = new System.Drawing.Size(800, 600);
|
||||
this.Controls.Add(this.pictureBoxTop);
|
||||
this.Controls.Add(this.pictureBoxBottom);
|
||||
this.Controls.Add(this.labelTitle);
|
||||
this.Controls.Add(this.labelList);
|
||||
this.Controls.Add(this.labelSeparator);
|
||||
this.Controls.Add(this.comboBoxPersonnel);
|
||||
this.Controls.Add(this.buttonAdd);
|
||||
this.Controls.Add(this.buttonAbsence);
|
||||
this.Controls.Add(this.buttonDelete);
|
||||
this.Controls.Add(this.buttonEdit);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "Admin";
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxTop)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxBottom)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
@ -1,4 +1,9 @@
|
|||
namespace projet.View
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
|
||||
namespace projet.View
|
||||
{
|
||||
partial class ConfirmeSupressionPersonnel
|
||||
{
|
||||
358
Mediatek86/View/GestionAbsence.Designer.cs
generated
Normal file
358
Mediatek86/View/GestionAbsence.Designer.cs
generated
Normal file
|
|
@ -0,0 +1,358 @@
|
|||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
namespace projet.View
|
||||
{
|
||||
partial class GestionAbsence
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
private System.Windows.Forms.PictureBox pictureBoxTop;
|
||||
private System.Windows.Forms.PictureBox pictureBoxBottom;
|
||||
private System.Windows.Forms.Label labelTitle;
|
||||
private System.Windows.Forms.DataGridView dataGridViewAbsences;
|
||||
private System.Windows.Forms.GroupBox groupBoxNouvelleAbsence;
|
||||
private System.Windows.Forms.Label labelDateDebut;
|
||||
private System.Windows.Forms.TextBox textBoxDateDebut;
|
||||
private System.Windows.Forms.Label labelDateFin;
|
||||
private System.Windows.Forms.TextBox textBoxDateFin;
|
||||
private System.Windows.Forms.Label labelMotif;
|
||||
private System.Windows.Forms.ComboBox comboBoxMotif;
|
||||
private System.Windows.Forms.Button buttonAjouter;
|
||||
private System.Windows.Forms.GroupBox groupBoxSupprimerAbsence;
|
||||
private System.Windows.Forms.Label labelAbsence;
|
||||
private System.Windows.Forms.ComboBox comboBoxAbsence;
|
||||
private System.Windows.Forms.Button buttonSupprimer;
|
||||
private System.Windows.Forms.Panel panelSeparator;
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.pictureBoxTop = new System.Windows.Forms.PictureBox();
|
||||
this.pictureBoxBottom = new System.Windows.Forms.PictureBox();
|
||||
this.labelTitle = new System.Windows.Forms.Label();
|
||||
this.dataGridViewAbsences = new System.Windows.Forms.DataGridView();
|
||||
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.groupBoxNouvelleAbsence = new System.Windows.Forms.GroupBox();
|
||||
this.labelDateDebut = new System.Windows.Forms.Label();
|
||||
this.textBoxDateDebut = new System.Windows.Forms.TextBox();
|
||||
this.labelDateFin = new System.Windows.Forms.Label();
|
||||
this.textBoxDateFin = new System.Windows.Forms.TextBox();
|
||||
this.labelMotif = new System.Windows.Forms.Label();
|
||||
this.comboBoxMotif = new System.Windows.Forms.ComboBox();
|
||||
this.buttonAjouter = new System.Windows.Forms.Button();
|
||||
this.groupBoxSupprimerAbsence = new System.Windows.Forms.GroupBox();
|
||||
this.labelAbsence = new System.Windows.Forms.Label();
|
||||
this.comboBoxAbsence = new System.Windows.Forms.ComboBox();
|
||||
this.buttonSupprimer = new System.Windows.Forms.Button();
|
||||
this.panelSeparator = new System.Windows.Forms.Panel();
|
||||
this.buttonBack = new System.Windows.Forms.Button();
|
||||
this.btnModifAbsence = new System.Windows.Forms.Button();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxTop)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxBottom)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridViewAbsences)).BeginInit();
|
||||
this.groupBoxNouvelleAbsence.SuspendLayout();
|
||||
this.groupBoxSupprimerAbsence.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pictureBoxTop
|
||||
//
|
||||
this.pictureBoxTop.BackColor = System.Drawing.Color.SteelBlue;
|
||||
this.pictureBoxTop.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pictureBoxTop.Location = new System.Drawing.Point(0, 0);
|
||||
this.pictureBoxTop.Name = "pictureBoxTop";
|
||||
this.pictureBoxTop.Size = new System.Drawing.Size(686, 156);
|
||||
this.pictureBoxTop.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.pictureBoxTop.TabIndex = 0;
|
||||
this.pictureBoxTop.TabStop = false;
|
||||
//
|
||||
// pictureBoxBottom
|
||||
//
|
||||
this.pictureBoxBottom.BackColor = System.Drawing.Color.SteelBlue;
|
||||
this.pictureBoxBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.pictureBoxBottom.Location = new System.Drawing.Point(0, 606);
|
||||
this.pictureBoxBottom.Name = "pictureBoxBottom";
|
||||
this.pictureBoxBottom.Size = new System.Drawing.Size(686, 87);
|
||||
this.pictureBoxBottom.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.pictureBoxBottom.TabIndex = 1;
|
||||
this.pictureBoxBottom.TabStop = false;
|
||||
//
|
||||
// labelTitle
|
||||
//
|
||||
this.labelTitle.Font = new System.Drawing.Font("Segoe UI", 20F);
|
||||
this.labelTitle.Location = new System.Drawing.Point(0, 156);
|
||||
this.labelTitle.Name = "labelTitle";
|
||||
this.labelTitle.Size = new System.Drawing.Size(686, 43);
|
||||
this.labelTitle.TabIndex = 2;
|
||||
this.labelTitle.Text = "Absences de : PRÉNOM";
|
||||
this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// dataGridViewAbsences
|
||||
//
|
||||
this.dataGridViewAbsences.AllowUserToAddRows = false;
|
||||
this.dataGridViewAbsences.AllowUserToDeleteRows = false;
|
||||
this.dataGridViewAbsences.AllowUserToResizeRows = false;
|
||||
this.dataGridViewAbsences.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dataGridViewAbsences.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridViewAbsences.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.dataGridViewTextBoxColumn1,
|
||||
this.dataGridViewTextBoxColumn2,
|
||||
this.dataGridViewTextBoxColumn3});
|
||||
this.dataGridViewAbsences.EnableHeadersVisualStyles = false;
|
||||
this.dataGridViewAbsences.Location = new System.Drawing.Point(51, 208);
|
||||
this.dataGridViewAbsences.MultiSelect = false;
|
||||
this.dataGridViewAbsences.Name = "dataGridViewAbsences";
|
||||
this.dataGridViewAbsences.ReadOnly = true;
|
||||
this.dataGridViewAbsences.RowHeadersVisible = false;
|
||||
dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 10F);
|
||||
this.dataGridViewAbsences.RowsDefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.dataGridViewAbsences.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||
this.dataGridViewAbsences.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridViewAbsences.Size = new System.Drawing.Size(583, 156);
|
||||
this.dataGridViewAbsences.TabIndex = 3;
|
||||
//
|
||||
// dataGridViewTextBoxColumn1
|
||||
//
|
||||
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
|
||||
this.dataGridViewTextBoxColumn1.ReadOnly = true;
|
||||
//
|
||||
// dataGridViewTextBoxColumn2
|
||||
//
|
||||
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
|
||||
this.dataGridViewTextBoxColumn2.ReadOnly = true;
|
||||
//
|
||||
// dataGridViewTextBoxColumn3
|
||||
//
|
||||
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
|
||||
this.dataGridViewTextBoxColumn3.ReadOnly = true;
|
||||
//
|
||||
// groupBoxNouvelleAbsence
|
||||
//
|
||||
this.groupBoxNouvelleAbsence.Controls.Add(this.labelDateDebut);
|
||||
this.groupBoxNouvelleAbsence.Controls.Add(this.textBoxDateDebut);
|
||||
this.groupBoxNouvelleAbsence.Controls.Add(this.labelDateFin);
|
||||
this.groupBoxNouvelleAbsence.Controls.Add(this.textBoxDateFin);
|
||||
this.groupBoxNouvelleAbsence.Controls.Add(this.labelMotif);
|
||||
this.groupBoxNouvelleAbsence.Controls.Add(this.comboBoxMotif);
|
||||
this.groupBoxNouvelleAbsence.Controls.Add(this.buttonAjouter);
|
||||
this.groupBoxNouvelleAbsence.Font = new System.Drawing.Font("Segoe UI", 12F);
|
||||
this.groupBoxNouvelleAbsence.Location = new System.Drawing.Point(51, 381);
|
||||
this.groupBoxNouvelleAbsence.Name = "groupBoxNouvelleAbsence";
|
||||
this.groupBoxNouvelleAbsence.Size = new System.Drawing.Size(274, 173);
|
||||
this.groupBoxNouvelleAbsence.TabIndex = 4;
|
||||
this.groupBoxNouvelleAbsence.TabStop = false;
|
||||
this.groupBoxNouvelleAbsence.Text = "Nouvelle absence";
|
||||
//
|
||||
// labelDateDebut
|
||||
//
|
||||
this.labelDateDebut.AutoSize = true;
|
||||
this.labelDateDebut.Font = new System.Drawing.Font("Segoe UI", 10F);
|
||||
this.labelDateDebut.Location = new System.Drawing.Point(13, 35);
|
||||
this.labelDateDebut.Name = "labelDateDebut";
|
||||
this.labelDateDebut.Size = new System.Drawing.Size(85, 19);
|
||||
this.labelDateDebut.TabIndex = 0;
|
||||
this.labelDateDebut.Text = "Date début :";
|
||||
//
|
||||
// textBoxDateDebut
|
||||
//
|
||||
this.textBoxDateDebut.Font = new System.Drawing.Font("Segoe UI", 10F);
|
||||
this.textBoxDateDebut.Location = new System.Drawing.Point(103, 32);
|
||||
this.textBoxDateDebut.Name = "textBoxDateDebut";
|
||||
this.textBoxDateDebut.Size = new System.Drawing.Size(146, 25);
|
||||
this.textBoxDateDebut.TabIndex = 1;
|
||||
//
|
||||
// labelDateFin
|
||||
//
|
||||
this.labelDateFin.AutoSize = true;
|
||||
this.labelDateFin.Font = new System.Drawing.Font("Segoe UI", 10F);
|
||||
this.labelDateFin.Location = new System.Drawing.Point(13, 65);
|
||||
this.labelDateFin.Name = "labelDateFin";
|
||||
this.labelDateFin.Size = new System.Drawing.Size(64, 19);
|
||||
this.labelDateFin.TabIndex = 2;
|
||||
this.labelDateFin.Text = "Date fin :";
|
||||
//
|
||||
// textBoxDateFin
|
||||
//
|
||||
this.textBoxDateFin.Font = new System.Drawing.Font("Segoe UI", 10F);
|
||||
this.textBoxDateFin.Location = new System.Drawing.Point(103, 62);
|
||||
this.textBoxDateFin.Name = "textBoxDateFin";
|
||||
this.textBoxDateFin.Size = new System.Drawing.Size(146, 25);
|
||||
this.textBoxDateFin.TabIndex = 3;
|
||||
//
|
||||
// labelMotif
|
||||
//
|
||||
this.labelMotif.AutoSize = true;
|
||||
this.labelMotif.Font = new System.Drawing.Font("Segoe UI", 10F);
|
||||
this.labelMotif.Location = new System.Drawing.Point(13, 95);
|
||||
this.labelMotif.Name = "labelMotif";
|
||||
this.labelMotif.Size = new System.Drawing.Size(49, 19);
|
||||
this.labelMotif.TabIndex = 4;
|
||||
this.labelMotif.Text = "Motif :";
|
||||
//
|
||||
// comboBoxMotif
|
||||
//
|
||||
this.comboBoxMotif.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.comboBoxMotif.Font = new System.Drawing.Font("Segoe UI", 10F);
|
||||
this.comboBoxMotif.Location = new System.Drawing.Point(103, 93);
|
||||
this.comboBoxMotif.Name = "comboBoxMotif";
|
||||
this.comboBoxMotif.Size = new System.Drawing.Size(146, 25);
|
||||
this.comboBoxMotif.TabIndex = 5;
|
||||
//
|
||||
// buttonAjouter
|
||||
//
|
||||
this.buttonAjouter.Font = new System.Drawing.Font("Segoe UI", 10F);
|
||||
this.buttonAjouter.Location = new System.Drawing.Point(13, 130);
|
||||
this.buttonAjouter.Name = "buttonAjouter";
|
||||
this.buttonAjouter.Size = new System.Drawing.Size(86, 26);
|
||||
this.buttonAjouter.TabIndex = 6;
|
||||
this.buttonAjouter.Text = "Ajouter";
|
||||
this.buttonAjouter.UseVisualStyleBackColor = true;
|
||||
this.buttonAjouter.Click += new System.EventHandler(this.buttonAjouter_Click);
|
||||
//
|
||||
// groupBoxSupprimerAbsence
|
||||
//
|
||||
this.groupBoxSupprimerAbsence.Controls.Add(this.labelAbsence);
|
||||
this.groupBoxSupprimerAbsence.Controls.Add(this.comboBoxAbsence);
|
||||
this.groupBoxSupprimerAbsence.Controls.Add(this.buttonSupprimer);
|
||||
this.groupBoxSupprimerAbsence.Font = new System.Drawing.Font("Segoe UI", 12F);
|
||||
this.groupBoxSupprimerAbsence.Location = new System.Drawing.Point(360, 381);
|
||||
this.groupBoxSupprimerAbsence.Name = "groupBoxSupprimerAbsence";
|
||||
this.groupBoxSupprimerAbsence.Size = new System.Drawing.Size(274, 103);
|
||||
this.groupBoxSupprimerAbsence.TabIndex = 5;
|
||||
this.groupBoxSupprimerAbsence.TabStop = false;
|
||||
this.groupBoxSupprimerAbsence.Text = "Supprimer absence";
|
||||
//
|
||||
// labelAbsence
|
||||
//
|
||||
this.labelAbsence.AutoSize = true;
|
||||
this.labelAbsence.Font = new System.Drawing.Font("Segoe UI", 10F);
|
||||
this.labelAbsence.Location = new System.Drawing.Point(13, 35);
|
||||
this.labelAbsence.Name = "labelAbsence";
|
||||
this.labelAbsence.Size = new System.Drawing.Size(67, 19);
|
||||
this.labelAbsence.TabIndex = 0;
|
||||
this.labelAbsence.Text = "Absence :";
|
||||
//
|
||||
// comboBoxAbsence
|
||||
//
|
||||
this.comboBoxAbsence.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.comboBoxAbsence.Font = new System.Drawing.Font("Segoe UI", 10F);
|
||||
this.comboBoxAbsence.Location = new System.Drawing.Point(86, 32);
|
||||
this.comboBoxAbsence.Name = "comboBoxAbsence";
|
||||
this.comboBoxAbsence.Size = new System.Drawing.Size(146, 25);
|
||||
this.comboBoxAbsence.TabIndex = 1;
|
||||
//
|
||||
// buttonSupprimer
|
||||
//
|
||||
this.buttonSupprimer.Font = new System.Drawing.Font("Segoe UI", 10F);
|
||||
this.buttonSupprimer.Location = new System.Drawing.Point(13, 69);
|
||||
this.buttonSupprimer.Name = "buttonSupprimer";
|
||||
this.buttonSupprimer.Size = new System.Drawing.Size(86, 26);
|
||||
this.buttonSupprimer.TabIndex = 2;
|
||||
this.buttonSupprimer.Text = "Supprimer";
|
||||
this.buttonSupprimer.UseVisualStyleBackColor = true;
|
||||
this.buttonSupprimer.Click += new System.EventHandler(this.buttonSupprimer_Click);
|
||||
//
|
||||
// panelSeparator
|
||||
//
|
||||
this.panelSeparator.BackColor = System.Drawing.Color.Gray;
|
||||
this.panelSeparator.Location = new System.Drawing.Point(343, 399);
|
||||
this.panelSeparator.Name = "panelSeparator";
|
||||
this.panelSeparator.Size = new System.Drawing.Size(2, 139);
|
||||
this.panelSeparator.TabIndex = 6;
|
||||
//
|
||||
// buttonBack
|
||||
//
|
||||
this.buttonBack.Location = new System.Drawing.Point(51, 560);
|
||||
this.buttonBack.Name = "buttonBack";
|
||||
this.buttonBack.Size = new System.Drawing.Size(64, 20);
|
||||
this.buttonBack.TabIndex = 7;
|
||||
this.buttonBack.Text = "Retour";
|
||||
this.buttonBack.UseVisualStyleBackColor = true;
|
||||
this.buttonBack.Click += new System.EventHandler(this.buttonBack_Click_1);
|
||||
//
|
||||
// btnModifAbsence
|
||||
//
|
||||
this.btnModifAbsence.Location = new System.Drawing.Point(6, 21);
|
||||
this.btnModifAbsence.Name = "btnModifAbsence";
|
||||
this.btnModifAbsence.Size = new System.Drawing.Size(112, 23);
|
||||
this.btnModifAbsence.TabIndex = 8;
|
||||
this.btnModifAbsence.Text = "Modifier l\'absence";
|
||||
this.btnModifAbsence.UseVisualStyleBackColor = true;
|
||||
this.btnModifAbsence.Click += new System.EventHandler(this.btnModifAbsence_Click);
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.btnModifAbsence);
|
||||
this.groupBox1.Location = new System.Drawing.Point(360, 490);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(274, 64);
|
||||
this.groupBox1.TabIndex = 9;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Modifier absence";
|
||||
//
|
||||
// GestionAbsence
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(686, 693);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.buttonBack);
|
||||
this.Controls.Add(this.pictureBoxTop);
|
||||
this.Controls.Add(this.pictureBoxBottom);
|
||||
this.Controls.Add(this.labelTitle);
|
||||
this.Controls.Add(this.dataGridViewAbsences);
|
||||
this.Controls.Add(this.groupBoxNouvelleAbsence);
|
||||
this.Controls.Add(this.groupBoxSupprimerAbsence);
|
||||
this.Controls.Add(this.panelSeparator);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "GestionAbsence";
|
||||
this.Text = "Gestion des absences";
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxTop)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxBottom)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridViewAbsences)).EndInit();
|
||||
this.groupBoxNouvelleAbsence.ResumeLayout(false);
|
||||
this.groupBoxNouvelleAbsence.PerformLayout();
|
||||
this.groupBoxSupprimerAbsence.ResumeLayout(false);
|
||||
this.groupBoxSupprimerAbsence.PerformLayout();
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
|
||||
private DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
|
||||
private DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
|
||||
private Button buttonBack;
|
||||
private Button btnModifAbsence;
|
||||
private GroupBox groupBox1;
|
||||
}
|
||||
}
|
||||
|
|
@ -127,5 +127,25 @@ namespace projet.View
|
|||
Admin admin = new Admin();
|
||||
admin.ShowDialog();
|
||||
}
|
||||
|
||||
private void btnModifAbsence_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(dataGridViewAbsences.SelectedRows == null) {
|
||||
MessageBox.Show("Veuillez sélectionner une absence à modifier.", "Erreur", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Hide();
|
||||
this.Close();
|
||||
ModifierAbsence modifierAbsence = new ModifierAbsence(dataGridViewAbsences.SelectedRows[0].DataBoundItem as Absence, personne);
|
||||
modifierAbsence.ShowDialog();
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonBack_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
buttonBack_Click(sender, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -10,8 +10,6 @@
|
|||
private System.Windows.Forms.PictureBox pictureBoxTop;
|
||||
private System.Windows.Forms.PictureBox pictureBoxBottom;
|
||||
private System.Windows.Forms.Label labelTitle;
|
||||
private System.Windows.Forms.Label labelChoisirAbsence;
|
||||
private System.Windows.Forms.ComboBox comboBoxAbsence;
|
||||
private System.Windows.Forms.Panel panelSeparator;
|
||||
private System.Windows.Forms.Label labelDateDebut;
|
||||
private System.Windows.Forms.TextBox textBoxDateDebut;
|
||||
|
|
@ -42,12 +40,9 @@
|
|||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.pictureBoxTop = new System.Windows.Forms.PictureBox();
|
||||
this.pictureBoxBottom = new System.Windows.Forms.PictureBox();
|
||||
this.labelTitle = new System.Windows.Forms.Label();
|
||||
this.labelChoisirAbsence = new System.Windows.Forms.Label();
|
||||
this.comboBoxAbsence = new System.Windows.Forms.ComboBox();
|
||||
this.panelSeparator = new System.Windows.Forms.Panel();
|
||||
this.labelDateDebut = new System.Windows.Forms.Label();
|
||||
this.textBoxDateDebut = new System.Windows.Forms.TextBox();
|
||||
|
|
@ -56,116 +51,94 @@
|
|||
this.labelMotif = new System.Windows.Forms.Label();
|
||||
this.comboBoxMotif = new System.Windows.Forms.ComboBox();
|
||||
this.buttonModifier = new System.Windows.Forms.Button();
|
||||
this.btnRetour = new System.Windows.Forms.Button();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxTop)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxBottom)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pictureBoxTop
|
||||
//
|
||||
this.pictureBoxTop.BackColor = System.Drawing.Color.SteelBlue;
|
||||
this.pictureBoxTop.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pictureBoxTop.Location = new System.Drawing.Point(0, 0);
|
||||
this.pictureBoxTop.Name = "pictureBoxTop";
|
||||
this.pictureBoxTop.Size = new System.Drawing.Size(700, 180);
|
||||
this.pictureBoxTop.Size = new System.Drawing.Size(600, 156);
|
||||
this.pictureBoxTop.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.pictureBoxTop.TabIndex = 0;
|
||||
this.pictureBoxTop.TabStop = false;
|
||||
// Optionally set an image: this.pictureBoxTop.Image = global::projet.Properties.Resources.BlueRectangle;
|
||||
this.pictureBoxTop.BackColor = System.Drawing.Color.SteelBlue;
|
||||
//
|
||||
// pictureBoxBottom
|
||||
//
|
||||
this.pictureBoxBottom.BackColor = System.Drawing.Color.SteelBlue;
|
||||
this.pictureBoxBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.pictureBoxBottom.Location = new System.Drawing.Point(0, 500);
|
||||
this.pictureBoxBottom.Location = new System.Drawing.Point(0, 433);
|
||||
this.pictureBoxBottom.Name = "pictureBoxBottom";
|
||||
this.pictureBoxBottom.Size = new System.Drawing.Size(700, 100);
|
||||
this.pictureBoxBottom.Size = new System.Drawing.Size(600, 87);
|
||||
this.pictureBoxBottom.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.pictureBoxBottom.TabIndex = 1;
|
||||
this.pictureBoxBottom.TabStop = false;
|
||||
// Optionally set an image: this.pictureBoxBottom.Image = global::projet.Properties.Resources.BlueRectangle;
|
||||
this.pictureBoxBottom.BackColor = System.Drawing.Color.SteelBlue;
|
||||
//
|
||||
// labelTitle
|
||||
//
|
||||
this.labelTitle.Font = new System.Drawing.Font("Segoe UI", 20F);
|
||||
this.labelTitle.Location = new System.Drawing.Point(0, 180);
|
||||
this.labelTitle.Location = new System.Drawing.Point(0, 156);
|
||||
this.labelTitle.Name = "labelTitle";
|
||||
this.labelTitle.Size = new System.Drawing.Size(700, 50);
|
||||
this.labelTitle.Size = new System.Drawing.Size(600, 43);
|
||||
this.labelTitle.TabIndex = 2;
|
||||
this.labelTitle.Text = "Modifier absence";
|
||||
this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// labelChoisirAbsence
|
||||
//
|
||||
this.labelChoisirAbsence.AutoSize = true;
|
||||
this.labelChoisirAbsence.Font = new System.Drawing.Font("Segoe UI", 12F);
|
||||
this.labelChoisirAbsence.Location = new System.Drawing.Point(120, 250);
|
||||
this.labelChoisirAbsence.Name = "labelChoisirAbsence";
|
||||
this.labelChoisirAbsence.Size = new System.Drawing.Size(124, 21);
|
||||
this.labelChoisirAbsence.TabIndex = 3;
|
||||
this.labelChoisirAbsence.Text = "Choisir absence :";
|
||||
//
|
||||
// comboBoxAbsence
|
||||
//
|
||||
this.comboBoxAbsence.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.comboBoxAbsence.Font = new System.Drawing.Font("Segoe UI", 10F);
|
||||
this.comboBoxAbsence.Location = new System.Drawing.Point(270, 248);
|
||||
this.comboBoxAbsence.Name = "comboBoxAbsence";
|
||||
this.comboBoxAbsence.Size = new System.Drawing.Size(180, 25);
|
||||
this.comboBoxAbsence.TabIndex = 4;
|
||||
//
|
||||
// panelSeparator
|
||||
//
|
||||
this.panelSeparator.BackColor = System.Drawing.Color.SteelBlue;
|
||||
this.panelSeparator.Location = new System.Drawing.Point(120, 280);
|
||||
this.panelSeparator.Location = new System.Drawing.Point(166, 225);
|
||||
this.panelSeparator.Name = "panelSeparator";
|
||||
this.panelSeparator.Size = new System.Drawing.Size(330, 3);
|
||||
this.panelSeparator.Size = new System.Drawing.Size(283, 3);
|
||||
this.panelSeparator.TabIndex = 5;
|
||||
//
|
||||
// labelDateDebut
|
||||
//
|
||||
this.labelDateDebut.AutoSize = true;
|
||||
this.labelDateDebut.Font = new System.Drawing.Font("Segoe UI", 12F);
|
||||
this.labelDateDebut.Location = new System.Drawing.Point(120, 310);
|
||||
this.labelDateDebut.Location = new System.Drawing.Point(103, 269);
|
||||
this.labelDateDebut.Name = "labelDateDebut";
|
||||
this.labelDateDebut.Size = new System.Drawing.Size(92, 21);
|
||||
this.labelDateDebut.Size = new System.Drawing.Size(93, 21);
|
||||
this.labelDateDebut.TabIndex = 6;
|
||||
this.labelDateDebut.Text = "Date début :";
|
||||
//
|
||||
// textBoxDateDebut
|
||||
//
|
||||
this.textBoxDateDebut.Font = new System.Drawing.Font("Segoe UI", 10F);
|
||||
this.textBoxDateDebut.Location = new System.Drawing.Point(270, 308);
|
||||
this.textBoxDateDebut.Location = new System.Drawing.Point(231, 267);
|
||||
this.textBoxDateDebut.Name = "textBoxDateDebut";
|
||||
this.textBoxDateDebut.PlaceholderText = "dd-MM-YYYY";
|
||||
this.textBoxDateDebut.Size = new System.Drawing.Size(180, 25);
|
||||
this.textBoxDateDebut.Size = new System.Drawing.Size(155, 25);
|
||||
this.textBoxDateDebut.TabIndex = 7;
|
||||
//
|
||||
// labelDateFin
|
||||
//
|
||||
this.labelDateFin.AutoSize = true;
|
||||
this.labelDateFin.Font = new System.Drawing.Font("Segoe UI", 12F);
|
||||
this.labelDateFin.Location = new System.Drawing.Point(120, 350);
|
||||
this.labelDateFin.Location = new System.Drawing.Point(103, 303);
|
||||
this.labelDateFin.Name = "labelDateFin";
|
||||
this.labelDateFin.Size = new System.Drawing.Size(74, 21);
|
||||
this.labelDateFin.Size = new System.Drawing.Size(71, 21);
|
||||
this.labelDateFin.TabIndex = 8;
|
||||
this.labelDateFin.Text = "Date fin :";
|
||||
//
|
||||
// textBoxDateFin
|
||||
//
|
||||
this.textBoxDateFin.Font = new System.Drawing.Font("Segoe UI", 10F);
|
||||
this.textBoxDateFin.Location = new System.Drawing.Point(270, 348);
|
||||
this.textBoxDateFin.Location = new System.Drawing.Point(231, 302);
|
||||
this.textBoxDateFin.Name = "textBoxDateFin";
|
||||
this.textBoxDateFin.PlaceholderText = "dd-MM-YYYY";
|
||||
this.textBoxDateFin.Size = new System.Drawing.Size(180, 25);
|
||||
this.textBoxDateFin.Size = new System.Drawing.Size(155, 25);
|
||||
this.textBoxDateFin.TabIndex = 9;
|
||||
//
|
||||
// labelMotif
|
||||
//
|
||||
this.labelMotif.AutoSize = true;
|
||||
this.labelMotif.Font = new System.Drawing.Font("Segoe UI", 12F);
|
||||
this.labelMotif.Location = new System.Drawing.Point(120, 390);
|
||||
this.labelMotif.Location = new System.Drawing.Point(103, 338);
|
||||
this.labelMotif.Name = "labelMotif";
|
||||
this.labelMotif.Size = new System.Drawing.Size(52, 21);
|
||||
this.labelMotif.Size = new System.Drawing.Size(54, 21);
|
||||
this.labelMotif.TabIndex = 10;
|
||||
this.labelMotif.Text = "Motif :";
|
||||
//
|
||||
|
|
@ -173,31 +146,41 @@
|
|||
//
|
||||
this.comboBoxMotif.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.comboBoxMotif.Font = new System.Drawing.Font("Segoe UI", 10F);
|
||||
this.comboBoxMotif.Location = new System.Drawing.Point(270, 388);
|
||||
this.comboBoxMotif.Location = new System.Drawing.Point(231, 336);
|
||||
this.comboBoxMotif.Name = "comboBoxMotif";
|
||||
this.comboBoxMotif.Size = new System.Drawing.Size(180, 25);
|
||||
this.comboBoxMotif.Size = new System.Drawing.Size(155, 25);
|
||||
this.comboBoxMotif.TabIndex = 11;
|
||||
//
|
||||
// buttonModifier
|
||||
//
|
||||
this.buttonModifier.Font = new System.Drawing.Font("Segoe UI", 10F);
|
||||
this.buttonModifier.Location = new System.Drawing.Point(120, 440);
|
||||
this.buttonModifier.Location = new System.Drawing.Point(103, 381);
|
||||
this.buttonModifier.Name = "buttonModifier";
|
||||
this.buttonModifier.Size = new System.Drawing.Size(100, 30);
|
||||
this.buttonModifier.Size = new System.Drawing.Size(86, 26);
|
||||
this.buttonModifier.TabIndex = 12;
|
||||
this.buttonModifier.Text = "Modifier";
|
||||
this.buttonModifier.UseVisualStyleBackColor = true;
|
||||
this.buttonModifier.Click += new System.EventHandler(this.buttonModifier_Click);
|
||||
//
|
||||
// Form1
|
||||
// btnRetour
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||
this.btnRetour.Location = new System.Drawing.Point(195, 381);
|
||||
this.btnRetour.Name = "btnRetour";
|
||||
this.btnRetour.Size = new System.Drawing.Size(71, 26);
|
||||
this.btnRetour.TabIndex = 13;
|
||||
this.btnRetour.Text = "Retour";
|
||||
this.btnRetour.UseVisualStyleBackColor = true;
|
||||
this.btnRetour.Click += new System.EventHandler(this.btnRetour_Click);
|
||||
//
|
||||
// ModifierAbsence
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(700, 600);
|
||||
this.ClientSize = new System.Drawing.Size(600, 520);
|
||||
this.Controls.Add(this.btnRetour);
|
||||
this.Controls.Add(this.pictureBoxTop);
|
||||
this.Controls.Add(this.pictureBoxBottom);
|
||||
this.Controls.Add(this.labelTitle);
|
||||
this.Controls.Add(this.labelChoisirAbsence);
|
||||
this.Controls.Add(this.comboBoxAbsence);
|
||||
this.Controls.Add(this.panelSeparator);
|
||||
this.Controls.Add(this.labelDateDebut);
|
||||
this.Controls.Add(this.textBoxDateDebut);
|
||||
|
|
@ -208,14 +191,17 @@
|
|||
this.Controls.Add(this.buttonModifier);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "Form1";
|
||||
this.Name = "ModifierAbsence";
|
||||
this.Text = "Modifier absence";
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxTop)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxBottom)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button btnRetour;
|
||||
}
|
||||
}
|
||||
83
Mediatek86/View/ModifierAbsence.cs
Normal file
83
Mediatek86/View/ModifierAbsence.cs
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
using Mediatek86.Controller;
|
||||
using projet.modele;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace projet.View
|
||||
{
|
||||
public partial class ModifierAbsence : Form
|
||||
{
|
||||
private ModifierAbsenceController controller;
|
||||
Absence absence;
|
||||
Personnel personnel;
|
||||
/// <summary>
|
||||
/// Méthode d'initialisation du formulaire de modification d'absence.
|
||||
/// </summary>
|
||||
public ModifierAbsence(Absence absence, Personnel personnel)
|
||||
{
|
||||
InitializeComponent();
|
||||
Init();
|
||||
this.absence = absence;
|
||||
this.personnel = personnel;
|
||||
RemplirDefaut();
|
||||
}
|
||||
|
||||
public void Init()
|
||||
{
|
||||
controller = new ModifierAbsenceController();
|
||||
RemplirComboBoxMotif();
|
||||
}
|
||||
|
||||
public void RemplirDefaut()
|
||||
{
|
||||
textBoxDateDebut.Text = absence.DateDebut.ToString("dd-MM-yyyy");
|
||||
textBoxDateFin.Text = absence.DateFin.HasValue ? absence.DateFin.Value.ToString("dd-MM-yyyy") : string.Empty;
|
||||
int motifId = controller.GetMotifIdByLibelle(absence.IdMotif);
|
||||
Motif motif = controller.GetMotifById(motifId);
|
||||
//comboBoxMotif.SelectedItem = motif;
|
||||
}
|
||||
|
||||
private void btnRetour_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Hide();
|
||||
this.Close();
|
||||
GestionAbsence gestionAbsence = new GestionAbsence(personnel);
|
||||
gestionAbsence.ShowDialog();
|
||||
}
|
||||
|
||||
private void RemplirComboBoxMotif()
|
||||
{
|
||||
List<Motif> motifs = controller.GetAllMotifs();
|
||||
comboBoxMotif.Items.Clear();
|
||||
foreach (Motif motif in motifs)
|
||||
{
|
||||
comboBoxMotif.Items.Add(motif);
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonModifier_Click(object sender, EventArgs e)
|
||||
{
|
||||
string NomMotif = comboBoxMotif.SelectedItem != null ? ((Motif)comboBoxMotif.SelectedItem).Libelle : string.Empty;
|
||||
Absence newAbsence = new Absence(
|
||||
personnel.IdPersonnel,
|
||||
DateTime.ParseExact(textBoxDateDebut.Text, "dd-MM-yyyy", null),
|
||||
string.IsNullOrEmpty(textBoxDateFin.Text) ? (DateTime?)null : DateTime.ParseExact(textBoxDateFin.Text, "dd-MM-yyyy", null),
|
||||
Convert.ToString(controller.GetMotifIdByLibelle(NomMotif))
|
||||
);
|
||||
controller.ModifierAbsence(newAbsence, personnel);
|
||||
|
||||
|
||||
this.Hide();
|
||||
this.Close();
|
||||
GestionAbsence gestionAbsence = new GestionAbsence(personnel);
|
||||
gestionAbsence.ShowDialog();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -117,4 +117,7 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="textBoxDateDebut.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
|
|
@ -1,4 +1,9 @@
|
|||
namespace projet.View
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
|
||||
namespace projet.View
|
||||
{
|
||||
partial class ModifierPersonne
|
||||
{
|
||||
166
Mediatek86/View/PageConnexion.Designer.cs
generated
Normal file
166
Mediatek86/View/PageConnexion.Designer.cs
generated
Normal file
|
|
@ -0,0 +1,166 @@
|
|||
using System;
|
||||
using System.Windows.Forms;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
|
||||
namespace projet.View
|
||||
{
|
||||
partial class PageConnexion
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
private System.Windows.Forms.PictureBox pictureBoxHeader;
|
||||
private System.Windows.Forms.Label labelTitle;
|
||||
private System.Windows.Forms.Label labelLogin;
|
||||
private System.Windows.Forms.TextBox textBoxLogin;
|
||||
private System.Windows.Forms.Label labelPassword;
|
||||
private System.Windows.Forms.TextBox textBoxPassword;
|
||||
private System.Windows.Forms.CheckBox checkBoxRemember;
|
||||
private System.Windows.Forms.LinkLabel linkLabelForgot;
|
||||
private System.Windows.Forms.Button buttonLogin;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.pictureBoxHeader = new System.Windows.Forms.PictureBox();
|
||||
this.labelTitle = new System.Windows.Forms.Label();
|
||||
this.labelLogin = new System.Windows.Forms.Label();
|
||||
this.textBoxLogin = new System.Windows.Forms.TextBox();
|
||||
this.labelPassword = new System.Windows.Forms.Label();
|
||||
this.textBoxPassword = new System.Windows.Forms.TextBox();
|
||||
this.checkBoxRemember = new System.Windows.Forms.CheckBox();
|
||||
this.linkLabelForgot = new System.Windows.Forms.LinkLabel();
|
||||
this.buttonLogin = new System.Windows.Forms.Button();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxHeader)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pictureBoxHeader
|
||||
//
|
||||
this.pictureBoxHeader.BackColor = System.Drawing.Color.SteelBlue;
|
||||
this.pictureBoxHeader.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pictureBoxHeader.Location = new System.Drawing.Point(0, 0);
|
||||
this.pictureBoxHeader.Name = "pictureBoxHeader";
|
||||
this.pictureBoxHeader.Size = new System.Drawing.Size(886, 200);
|
||||
this.pictureBoxHeader.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
||||
this.pictureBoxHeader.TabIndex = 0;
|
||||
this.pictureBoxHeader.TabStop = false;
|
||||
//
|
||||
// labelTitle
|
||||
//
|
||||
this.labelTitle.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
||||
this.labelTitle.Font = new System.Drawing.Font("Segoe UI", 24F);
|
||||
this.labelTitle.Location = new System.Drawing.Point(150, 203);
|
||||
this.labelTitle.Name = "labelTitle";
|
||||
this.labelTitle.Size = new System.Drawing.Size(600, 50);
|
||||
this.labelTitle.TabIndex = 1;
|
||||
this.labelTitle.Text = "Page de connection";
|
||||
this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// labelLogin
|
||||
//
|
||||
this.labelLogin.AutoSize = true;
|
||||
this.labelLogin.Font = new System.Drawing.Font("Segoe UI", 14F);
|
||||
this.labelLogin.Location = new System.Drawing.Point(150, 300);
|
||||
this.labelLogin.Name = "labelLogin";
|
||||
this.labelLogin.Size = new System.Drawing.Size(68, 25);
|
||||
this.labelLogin.TabIndex = 2;
|
||||
this.labelLogin.Text = "Login :";
|
||||
//
|
||||
// textBoxLogin
|
||||
//
|
||||
this.textBoxLogin.Location = new System.Drawing.Point(300, 300);
|
||||
this.textBoxLogin.Name = "textBoxLogin";
|
||||
this.textBoxLogin.Size = new System.Drawing.Size(200, 20);
|
||||
this.textBoxLogin.TabIndex = 3;
|
||||
//
|
||||
// labelPassword
|
||||
//
|
||||
this.labelPassword.AutoSize = true;
|
||||
this.labelPassword.Font = new System.Drawing.Font("Segoe UI", 14F);
|
||||
this.labelPassword.Location = new System.Drawing.Point(150, 350);
|
||||
this.labelPassword.Name = "labelPassword";
|
||||
this.labelPassword.Size = new System.Drawing.Size(100, 25);
|
||||
this.labelPassword.TabIndex = 4;
|
||||
this.labelPassword.Text = "Password :";
|
||||
//
|
||||
// textBoxPassword
|
||||
//
|
||||
this.textBoxPassword.Location = new System.Drawing.Point(300, 350);
|
||||
this.textBoxPassword.Name = "textBoxPassword";
|
||||
this.textBoxPassword.Size = new System.Drawing.Size(200, 20);
|
||||
this.textBoxPassword.TabIndex = 5;
|
||||
this.textBoxPassword.UseSystemPasswordChar = true;
|
||||
//
|
||||
// checkBoxRemember
|
||||
//
|
||||
this.checkBoxRemember.Location = new System.Drawing.Point(150, 400);
|
||||
this.checkBoxRemember.Name = "checkBoxRemember";
|
||||
this.checkBoxRemember.Size = new System.Drawing.Size(125, 24);
|
||||
this.checkBoxRemember.TabIndex = 6;
|
||||
this.checkBoxRemember.Text = "Rester connecté";
|
||||
//
|
||||
// linkLabelForgot
|
||||
//
|
||||
this.linkLabelForgot.LinkColor = System.Drawing.Color.Blue;
|
||||
this.linkLabelForgot.Location = new System.Drawing.Point(150, 430);
|
||||
this.linkLabelForgot.Name = "linkLabelForgot";
|
||||
this.linkLabelForgot.Size = new System.Drawing.Size(125, 23);
|
||||
this.linkLabelForgot.TabIndex = 7;
|
||||
this.linkLabelForgot.TabStop = true;
|
||||
this.linkLabelForgot.Text = "Mot de passe oublié";
|
||||
this.linkLabelForgot.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabelForgot_LinkClicked);
|
||||
//
|
||||
// buttonLogin
|
||||
//
|
||||
this.buttonLogin.Location = new System.Drawing.Point(150, 470);
|
||||
this.buttonLogin.Name = "buttonLogin";
|
||||
this.buttonLogin.Size = new System.Drawing.Size(100, 23);
|
||||
this.buttonLogin.TabIndex = 8;
|
||||
this.buttonLogin.Text = "Se connecter";
|
||||
this.buttonLogin.Click += new System.EventHandler(this.buttonLogin_Click_1);
|
||||
//
|
||||
// PageConnexion
|
||||
//
|
||||
this.ClientSize = new System.Drawing.Size(886, 600);
|
||||
this.Controls.Add(this.pictureBoxHeader);
|
||||
this.Controls.Add(this.labelTitle);
|
||||
this.Controls.Add(this.labelLogin);
|
||||
this.Controls.Add(this.textBoxLogin);
|
||||
this.Controls.Add(this.labelPassword);
|
||||
this.Controls.Add(this.textBoxPassword);
|
||||
this.Controls.Add(this.checkBoxRemember);
|
||||
this.Controls.Add(this.linkLabelForgot);
|
||||
this.Controls.Add(this.buttonLogin);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "PageConnexion";
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxHeader)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
@ -65,5 +65,15 @@ namespace projet.View
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void linkLabelForgot_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
MessageBox.Show("Veuillez contacter l'administrateur pour réinitialiser votre mot de passe.", "Mot de passe oublié", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
|
||||
private void buttonLogin_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
buttonLogin_Click(sender, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
Mediatek86/bin/Debug/Mediatek86.exe
Normal file
BIN
Mediatek86/bin/Debug/Mediatek86.exe
Normal file
Binary file not shown.
6
Mediatek86/bin/Debug/Mediatek86.exe.config
Normal file
6
Mediatek86/bin/Debug/Mediatek86.exe.config
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
</configuration>
|
||||
BIN
Mediatek86/bin/Debug/Mediatek86.pdb
Normal file
BIN
Mediatek86/bin/Debug/Mediatek86.pdb
Normal file
Binary file not shown.
BIN
Mediatek86/bin/Debug/MySql.Data.dll
Normal file
BIN
Mediatek86/bin/Debug/MySql.Data.dll
Normal file
Binary file not shown.
18618
Mediatek86/bin/Debug/MySql.Data.xml
Normal file
18618
Mediatek86/bin/Debug/MySql.Data.xml
Normal file
File diff suppressed because it is too large
Load diff
BIN
Mediatek86/bin/Debug/System.Memory.dll
Normal file
BIN
Mediatek86/bin/Debug/System.Memory.dll
Normal file
Binary file not shown.
BIN
Mediatek86/bin/Debug/System.Numerics.Vectors.dll
Normal file
BIN
Mediatek86/bin/Debug/System.Numerics.Vectors.dll
Normal file
Binary file not shown.
BIN
Mediatek86/bin/Release/Mediatek86.exe
Normal file
BIN
Mediatek86/bin/Release/Mediatek86.exe
Normal file
Binary file not shown.
6
Mediatek86/bin/Release/Mediatek86.exe.config
Normal file
6
Mediatek86/bin/Release/Mediatek86.exe.config
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
</configuration>
|
||||
BIN
Mediatek86/bin/Release/Mediatek86.pdb
Normal file
BIN
Mediatek86/bin/Release/Mediatek86.pdb
Normal file
Binary file not shown.
BIN
Mediatek86/bin/Release/MySql.Data.dll
Normal file
BIN
Mediatek86/bin/Release/MySql.Data.dll
Normal file
Binary file not shown.
18618
Mediatek86/bin/Release/MySql.Data.xml
Normal file
18618
Mediatek86/bin/Release/MySql.Data.xml
Normal file
File diff suppressed because it is too large
Load diff
BIN
Mediatek86/bin/Release/System.Memory.dll
Normal file
BIN
Mediatek86/bin/Release/System.Memory.dll
Normal file
Binary file not shown.
BIN
Mediatek86/bin/Release/System.Numerics.Vectors.dll
Normal file
BIN
Mediatek86/bin/Release/System.Numerics.Vectors.dll
Normal file
Binary file not shown.
|
|
@ -1,4 +1,6 @@
|
|||
using projet.modele;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace projet.dal
|
||||
{
|
||||
|
|
@ -115,5 +117,29 @@ namespace projet.dal
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void ModifierAbsence(Absence absence, Personnel personne)
|
||||
{
|
||||
if (access.Manager != null)
|
||||
{
|
||||
string req = "UPDATE absence SET dateFin = @dateFin, idMotif = @idMotif WHERE idPersonnel = @idPersonnel AND dateDebut = @dateDebut;";
|
||||
var parameters = new Dictionary<string, object>
|
||||
{
|
||||
{ "@idPersonnel", personne.IdPersonnel },
|
||||
{ "@dateDebut", absence.DateDebut },
|
||||
{ "@dateFin", absence.DateFin },
|
||||
{ "@idMotif", Convert.ToInt32(absence.IdMotif) }
|
||||
};
|
||||
try
|
||||
{
|
||||
access.Manager.ReqUpdate(req, parameters);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
Console.WriteLine("Erreur lors de la modification de l'absence.");
|
||||
Environment.Exit(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -12,7 +12,7 @@ namespace projet.dal
|
|||
/// </summary>
|
||||
public class Access
|
||||
{
|
||||
private static readonly string connectionString = "server=localhost;user id=root;password=;database=mediatek;";
|
||||
private static readonly string connectionString = "server=localhost;user id=mediatek;password=motDePasseFort;database=mediatek;";
|
||||
private static Access instance = null;
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -1,4 +1,7 @@
|
|||
using projet.modele;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Deployment.Application;
|
||||
|
||||
namespace projet.dal
|
||||
{
|
||||
|
|
@ -83,5 +86,65 @@ namespace projet.dal
|
|||
}
|
||||
return idMotif;
|
||||
}
|
||||
|
||||
public Motif GetMotifById(int idMotif)
|
||||
{
|
||||
Motif motif = null;
|
||||
if (access.Manager != null)
|
||||
{
|
||||
string req = "SELECT * FROM motif WHERE idMotif = @idMotif;";
|
||||
var parameters = new Dictionary<string, object>
|
||||
{
|
||||
{ "@idMotif", idMotif }
|
||||
};
|
||||
try
|
||||
{
|
||||
List<Object[]> resultats = access.Manager.ReqSelect(req, parameters);
|
||||
if (resultats != null && resultats.Count > 0)
|
||||
{
|
||||
Object[] resultat = resultats[0];
|
||||
motif = new Motif(
|
||||
Convert.ToInt32(resultat[0]), // IdMotif
|
||||
Convert.ToString(resultat[1]) // Libelle
|
||||
);
|
||||
}
|
||||
return motif;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
Console.WriteLine("Erreur lors de la récupération du motif par ID.");
|
||||
Environment.Exit(0);
|
||||
}
|
||||
}
|
||||
return motif;
|
||||
}
|
||||
|
||||
public string GetLibelleById(int idMotif)
|
||||
{
|
||||
string libelle = string.Empty;
|
||||
if (access.Manager != null)
|
||||
{
|
||||
string req = "SELECT libelle FROM motif WHERE idMotif = @idMotif;";
|
||||
var parameters = new Dictionary<string, object>
|
||||
{
|
||||
{ "@idMotif", idMotif }
|
||||
};
|
||||
try
|
||||
{
|
||||
List<Object[]> resultats = access.Manager.ReqSelect(req, parameters);
|
||||
if (resultats != null && resultats.Count > 0)
|
||||
{
|
||||
libelle = Convert.ToString(resultats[0][0]);
|
||||
}
|
||||
return libelle;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
Console.WriteLine("Erreur lors de la récupération du libellé du motif par ID.");
|
||||
Environment.Exit(0);
|
||||
}
|
||||
}
|
||||
return libelle;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,4 +1,6 @@
|
|||
using projet.modele;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace projet.dal
|
||||
{
|
||||
|
|
@ -1,4 +1,8 @@
|
|||
using projet.modele;
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using projet.modele;
|
||||
|
||||
namespace projet.dal
|
||||
{
|
||||
|
|
@ -1,5 +1,8 @@
|
|||
using projet.modele;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
namespace projet.dal
|
||||
|
||||
{
|
||||
/// <summary>
|
||||
/// Méthodes d'accès aux données pour les services du personnel.
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
|
||||
BIN
Mediatek86/obj/Debug/DesignTimeResolveAssemblyReferences.cache
Normal file
BIN
Mediatek86/obj/Debug/DesignTimeResolveAssemblyReferences.cache
Normal file
Binary file not shown.
Binary file not shown.
BIN
Mediatek86/obj/Debug/Mediatek86.Properties.Resources.resources
Normal file
BIN
Mediatek86/obj/Debug/Mediatek86.Properties.Resources.resources
Normal file
Binary file not shown.
BIN
Mediatek86/obj/Debug/Mediatek86.csproj.AssemblyReference.cache
Normal file
BIN
Mediatek86/obj/Debug/Mediatek86.csproj.AssemblyReference.cache
Normal file
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
8c9a61b8966d72ef6efc190e03c526c569e63e5288b7374fb4029559190fff34
|
||||
25
Mediatek86/obj/Debug/Mediatek86.csproj.FileListAbsolute.txt
Normal file
25
Mediatek86/obj/Debug/Mediatek86.csproj.FileListAbsolute.txt
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
D:\VS\projet\Mediatek86\Mediatek86\obj\Debug\Mediatek86.csproj.AssemblyReference.cache
|
||||
D:\VS\projet\Mediatek86\Mediatek86\obj\Debug\Mediatek86.Properties.Resources.resources
|
||||
D:\VS\projet\Mediatek86\Mediatek86\obj\Debug\projet.View.AddPersonnel.resources
|
||||
D:\VS\projet\Mediatek86\Mediatek86\obj\Debug\projet.View.Admin.resources
|
||||
D:\VS\projet\Mediatek86\Mediatek86\obj\Debug\projet.View.ConfirmeModifierAbsence.resources
|
||||
D:\VS\projet\Mediatek86\Mediatek86\obj\Debug\projet.View.ConfirmeModifierPersonnel.resources
|
||||
D:\VS\projet\Mediatek86\Mediatek86\obj\Debug\projet.View.ConfirmeSupprimerAbsence.resources
|
||||
D:\VS\projet\Mediatek86\Mediatek86\obj\Debug\projet.View.ConfirmeSupressionPersonnel.resources
|
||||
D:\VS\projet\Mediatek86\Mediatek86\obj\Debug\projet.View.GestionAbsence.resources
|
||||
D:\VS\projet\Mediatek86\Mediatek86\obj\Debug\projet.View.ModifierAbsence.resources
|
||||
D:\VS\projet\Mediatek86\Mediatek86\obj\Debug\projet.View.ModifierPersonne.resources
|
||||
D:\VS\projet\Mediatek86\Mediatek86\obj\Debug\projet.View.PageConnexion.resources
|
||||
D:\VS\projet\Mediatek86\Mediatek86\obj\Debug\Mediatek86.csproj.GenerateResource.cache
|
||||
D:\VS\projet\Mediatek86\Mediatek86\obj\Debug\Mediatek86.csproj.CoreCompileInputs.cache
|
||||
D:\VS\projet\Mediatek86\Mediatek86\bin\Debug\Mediatek86.exe.config
|
||||
D:\VS\projet\Mediatek86\Mediatek86\bin\Debug\Mediatek86.exe
|
||||
D:\VS\projet\Mediatek86\Mediatek86\bin\Debug\Mediatek86.pdb
|
||||
D:\VS\projet\Mediatek86\Mediatek86\bin\Debug\MySql.Data.dll
|
||||
D:\VS\projet\Mediatek86\Mediatek86\bin\Debug\System.Memory.dll
|
||||
D:\VS\projet\Mediatek86\Mediatek86\bin\Debug\System.Numerics.Vectors.dll
|
||||
D:\VS\projet\Mediatek86\Mediatek86\bin\Debug\MySql.Data.xml
|
||||
D:\VS\projet\Mediatek86\Mediatek86\obj\Debug\Mediatek86.csproj.Up2Date
|
||||
D:\VS\projet\Mediatek86\Mediatek86\obj\Debug\Mediatek86.exe
|
||||
D:\VS\projet\Mediatek86\Mediatek86\obj\Debug\Mediatek86.pdb
|
||||
D:\VS\projet\Mediatek86\Mediatek86\obj\Debug\Mediatek86.exe.config
|
||||
BIN
Mediatek86/obj/Debug/Mediatek86.csproj.GenerateResource.cache
Normal file
BIN
Mediatek86/obj/Debug/Mediatek86.csproj.GenerateResource.cache
Normal file
Binary file not shown.
0
Mediatek86/obj/Debug/Mediatek86.csproj.Up2Date
Normal file
0
Mediatek86/obj/Debug/Mediatek86.csproj.Up2Date
Normal file
BIN
Mediatek86/obj/Debug/Mediatek86.exe
Normal file
BIN
Mediatek86/obj/Debug/Mediatek86.exe
Normal file
Binary file not shown.
6
Mediatek86/obj/Debug/Mediatek86.exe.config
Normal file
6
Mediatek86/obj/Debug/Mediatek86.exe.config
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
</configuration>
|
||||
BIN
Mediatek86/obj/Debug/Mediatek86.pdb
Normal file
BIN
Mediatek86/obj/Debug/Mediatek86.pdb
Normal file
Binary file not shown.
BIN
Mediatek86/obj/Debug/projet.View.AddPersonnel.resources
Normal file
BIN
Mediatek86/obj/Debug/projet.View.AddPersonnel.resources
Normal file
Binary file not shown.
BIN
Mediatek86/obj/Debug/projet.View.Admin.resources
Normal file
BIN
Mediatek86/obj/Debug/projet.View.Admin.resources
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Mediatek86/obj/Debug/projet.View.GestionAbsence.resources
Normal file
BIN
Mediatek86/obj/Debug/projet.View.GestionAbsence.resources
Normal file
Binary file not shown.
BIN
Mediatek86/obj/Debug/projet.View.ModifierAbsence.resources
Normal file
BIN
Mediatek86/obj/Debug/projet.View.ModifierAbsence.resources
Normal file
Binary file not shown.
BIN
Mediatek86/obj/Debug/projet.View.ModifierPersonne.resources
Normal file
BIN
Mediatek86/obj/Debug/projet.View.ModifierPersonne.resources
Normal file
Binary file not shown.
BIN
Mediatek86/obj/Debug/projet.View.PageConnexion.resources
Normal file
BIN
Mediatek86/obj/Debug/projet.View.PageConnexion.resources
Normal file
Binary file not shown.
|
|
@ -0,0 +1,4 @@
|
|||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
|
||||
BIN
Mediatek86/obj/Release/DesignTimeResolveAssemblyReferences.cache
Normal file
BIN
Mediatek86/obj/Release/DesignTimeResolveAssemblyReferences.cache
Normal file
Binary file not shown.
Binary file not shown.
BIN
Mediatek86/obj/Release/Mediatek86.Properties.Resources.resources
Normal file
BIN
Mediatek86/obj/Release/Mediatek86.Properties.Resources.resources
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue