1. La classe Connexion class Connexion {

Size: px
Start display at page:

Download "1. La classe Connexion class Connexion {"

Transcription

1 1. La classe Connexion class Connexion public static string chaine; IDbConnection cnx; IDbCommand cmd; IDataReader dr; private string chainesqlserver = "Data Source=localhost;Initial catalog=reservations; User Id=user;password=111"; private string chainemysql = ""; private string chaineaccess = ""; private string chaineoracle = ""; private void ouvrirconnexion(string type) switch (type) // case "MYSQL": // MySqlConnection cnx; // cnx = new MySqlConnection(chaineMysql); // break; case "ACCESS": //OleDbConnection cnx; cnx = new OleDbConnection(chaineAccess); break; case "SQLSERVER": //SqlConnection cnx; cnx = new SqlConnection(chaineSqlServer); break; cnx.open(); public Connexion() //Obtenir le type de bases de données //ConfigurationException ouvrirconnexion("sqlserver"); public Connexion(string type) ouvrirconnexion(type);

2 public void Fermer() cnx.close(); public DataTable requete(string sql) return dt; cmd = cnx.createcommand(); cmd.commandtext = sql; dr = cmd.executereader(); DataTable dt = new DataTable(); dt.load(dr); dr.close(); public bool Update(string sql) int r; cmd = cnx.createcommand(); cmd.commandtext = sql; r=cmd.executenonquery(); if (r > 0) return true; else return false; 2. La classe CtrlListeHotels public class CtrlListeHotels public List<Ville> GetListeVilles() Connexion cnx=new Connexion(); DataTable dt= cnx.requete("select * from ville");

3 List<Ville> villes=new List<Ville>(); Ville ville; foreach (DataRow ligne in dt.rows ) ville= new Ville(); ville.nom = ligne["nom"].tostring(); villes.add(ville); cnx.fermer(); return villes; public List<Hotel> GetListeHotels(String ville) Connexion cnx = new Connexion(); +"'"); DataTable dt = cnx.requete("select * from hotel where nomville='" + ville List<Hotel> hotels = new List<Hotel>(); Hotel hotel; foreach (DataRow ligne in dt.rows) hotel = new Hotel(); hotel.nom = ligne["nom"].tostring(); hotel.adresse = ligne["adresse"].tostring(); hotel.prixchambre =(decimal) ligne["prixchambre"] ; hotels.add(hotel); cnx.fermer(); return hotels; public Hotel GetInfoHotel(String nom) Connexion cnx = new Connexion(); DataTable dt = cnx.requete("select * from hotel where nom='" + nom + "'"); Hotel hotel = new Hotel(); hotel.nom = dt.rows[0]["nom"].tostring(); hotel.adresse = dt.rows[0]["adresse"].tostring(); hotel.prixchambre = (decimal)dt.rows[0]["prixchambre"]; return hotel;

4 3. La classe CtrlReservation public class CtrlReservation public void AjouterReservation(Reservation r) Connexion cnx = new Connexion(); string sql = "insert into reservation values(" + r.numero + ",'" + r.nomhotel + "','" + r.datededebut + "'," + r.nombredejours + "," + r.nombredechambres + ",'" + r.nom + "','" + r.nom + "','" + r. + "')"; cnx.update(sql); cnx.fermer(); 4. Formulaire Sélection Hôtel public static string nom; public static string adresse; public static string prix; CtrlListeHotels ctr = new CtrlListeHotels(); public Form1() InitializeComponent(); private void Form1_Load(object sender, EventArgs e) combobox1.datasource = ctr.getlistevilles(); combobox1.displaymember = "nom"; combobox1.valuemember = "nom"; private void combobox1_selectedindexchanged(object sender, EventArgs e) clear(); lsthotels.datasource = ctr.getlistehotels(combobox1.text); lsthotels.displaymember = "nom"; lsthotels.valuemember = "nom"; private void listbox1_selectedindexchanged(object sender, EventArgs e)

5 Hotel H = ctr.getinfohotel(lsthotels.text); txtnom.text = lsthotels.text; txtadresse.text = H.Adresse; txtprix.text = H.PrixChambre.ToString(); txtprixeuro.text = (H.PrixChambre / 10).ToString(); private void clear() foreach (Control c in this.controls) if (c is TextBox) c.text = String.Empty; txtprix.clear(); txtprixeuro.clear(); private void button1_click(object sender, EventArgs e) nom=txtnom.text ; adresse=txtadresse.text; prix=txtprix.text; Form2 forme = new Form2(); frome.show() ; 5. Formulaire Réservation public Form2() InitializeComponent(); private void Form2_Load(object sender, EventArgs e) textbox1.text = Form1.nom; textbox2.text = Form1.adresse; textbox3.text = Form1.prix; Random rd = new Random(); textbox7.text = rd.next( ).tostring(); private void button1_click(object sender, EventArgs e) Reservation res = new Reservation(); res.numero = int.parse(textbox7.text); res.nomhotel=textbox1.text; res.datededebut =datetimepicker1.value; res.nombredechambres = int.parse(textbox9.text); res.nombredejours = int.parse(textbox10.text); res.montant = decimal.parse(textbox3.text) * decimal.parse(textbox9.text) * decimal.parse(textbox10.text); res.nom = textbox4.text; res. = textbox5.text; res.adresse = textbox6.text; CtrlReservation ctr = new CtrlReservation(); //appel de la fonction ctr.ajouterreservation(res);

6 MessageBox.Show("reservation validée, montant= " + res.montant.tostring());

How To Create A Database In Araba

How To Create A Database In Araba create database ARABA use ARABA create table arac ( plaka varchar(15), marka varchar(15), model varchar(4)) create table musteri ( tck varchar(11), ad varchar(15), soy varchar(15)) drop table kiralama

More information

Conexión SQL Server C#

Conexión SQL Server C# Conexión SQL Server C# Form1.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

More information

{ oledbdataadapter1.updatecommand.commandtext = "update personel set ad='" + textbox2.text + "' where id=" + textbox1.text; oledbconnection1.

{ oledbdataadapter1.updatecommand.commandtext = update personel set ad=' + textbox2.text + ' where id= + textbox1.text; oledbconnection1. private void Form1_Load(object sender, EventArgs e) oledbdataadapter1.fill(dataset11); private void button1_click(object sender, EventArgs e) oledbdataadapter1.update(dataset11); private void Form1_Load(object

More information

C# Datenbank-Programmierung

C# Datenbank-Programmierung C# Datenbank-Programmierung Usings... 2 Verbindung herstellen SQL und Acces... 2 Verbindung schliessen SQL und Acces... 3 File open Dialog... 3 Lehar einfügen... 3 Lehar löschen... 4 Radio Button SQL &

More information

Access Data Object (cont.)

Access Data Object (cont.) ADO.NET Access Data Object (cont.) What is a Dataset? DataTable DataSet DataTable DataTable SqlDataAdapter SqlConnection OleDbDataAdapter Web server memory Physical storage SQL Server 2000 OleDbConnection

More information

I A Form és a párbeszédablakok I.1. MessageBox osztály MessageBox.Show(szöveg[,cím[,gombok[,ikon[,defaultbutton]]]]);

I A Form és a párbeszédablakok I.1. MessageBox osztály MessageBox.Show(szöveg[,cím[,gombok[,ikon[,defaultbutton]]]]); I A Form és a párbeszédablakok I.1. MessageBox osztály MessageBox.Show(szöveg[,cím[,gombok[,ikon[,defaultbutton]]]]); szöveg, cím gomb ikon defaultbutton String - MessageBoxButtons.OK - MessageBoxIcon.Asterix.Error.OKCancel.Question

More information

1.Tüm Kayıtları Getirme - Arama Yapma

1.Tüm Kayıtları Getirme - Arama Yapma 1.Tüm Kayıtları Getirme - Arama Yapma using System.Data.SqlClient; namespace Uygulama1 Burs public partial class Form1 : Form public Form1() InitializeComponent(); string sorgu; private void button1_click(object

More information

PROCEDURE INSERTION(NUM IN EMPLOYES.NUMEMP%TYPE, NOM VARCHAR2, PRENOM IN VARCHAR2, PPHOTO IN BLOB, SALAIRE IN NUMBER);

PROCEDURE INSERTION(NUM IN EMPLOYES.NUMEMP%TYPE, NOM VARCHAR2, PRENOM IN VARCHAR2, PPHOTO IN BLOB, SALAIRE IN NUMBER); Le Package CREATE OR REPLACE PACKAGE GESTIONEMPLOYES AS DECLARATION DE LA VARIABLE DE TYPE REF CURSOR DECLARATION DES PROCÉDURES ET FONCTIONS TYPE EMPRESULTAT IS REF CURSOR; PROCEDURE INSERTION(NUM IN

More information

BACKING UP A DATABASE

BACKING UP A DATABASE BACKING UP A DATABASE April 2011 Level: By : Feri Djuandi Beginner Intermediate Expert Platform : MS SQL Server 2008, Visual C# 2010 Pre requisites: Suggested to read the first part of this document series

More information

ASP and ADO (assumes knowledge of ADO)

ASP and ADO (assumes knowledge of ADO) ASP.NET (2) These slides are meant to be for teaching purposes only and only for the students that are registered in CSE4413 and should not be published as a book or in any form of commercial product,

More information

A Step by Step Guide for Building an Ozeki VoIP SIP Softphone

A Step by Step Guide for Building an Ozeki VoIP SIP Softphone Lesson 3 A Step by Step Guide for Building an Ozeki VoIP SIP Softphone Abstract 2012. 01. 20. The third lesson of is a detailed step by step guide that will show you everything you need to implement for

More information

Real-World ASP.NET: Building a Content Management System

Real-World ASP.NET: Building a Content Management System Apress Books for Professionals by Professionals Real-World ASP.NET: Building a Content Management System by Stephen R.G. Fraser ISBN # 1-59059-024-4 Copyright 2001 Apress, L.P., 2460 Ninth St., Suite 219,

More information

How To Design An Eprescription System

How To Design An Eprescription System DESIGNING AND DEVELOPMENT OF AN E-PRESCRIPTION SYSTEM BY Nasir Ahmed Bhuiyan ID: 101-15-954 This Report Presented in Partial Fulfillment of the Requirements for the Degree of Bachelor of Science Computer

More information

Introduction to Visual Studio and C#

Introduction to Visual Studio and C# Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics Introduction to Visual Studio and C# HANS- PETTER HALVORSEN, 2014.03.12 Faculty of Technology, Postboks

More information

ASP.NET(C#) ile Kayıt Listeleme, Silme ve Düzenleme İşlemi

ASP.NET(C#) ile Kayıt Listeleme, Silme ve Düzenleme İşlemi ASP.NET(C#) ile Kayıt Listeleme, Silme ve Düzenleme İşlemi Web.config içerisine aşağıdaki kod eklenir.

More information

Aucune validation n a été faite sur l exemple.

Aucune validation n a été faite sur l exemple. Cet exemple illustre l utilisation du Type BLOB dans la BD. Aucune validation n a été faite sur l exemple. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data;

More information

Form Tasarımı - 5. Veri Tabanı Veri tabanı ismi; m Tablo ismi; mt

Form Tasarımı - 5. Veri Tabanı Veri tabanı ismi; m Tablo ismi; mt Form Tasarımı - 5 Veri Tabanı Veri tabanı ismi; m Tablo ismi; mt Kodlar Imports System.Data Imports System.Data.OleDb Imports System.Xml Imports System.IO Public Class Form5 Dim yeni As OleDbConnection

More information

How To Create A Data Gateway On A Microsoft Powerbook On A Pc Or Macode (For Microsoft) On A Macode 2.5 (For A Microode) On An Ipad Or Macroode ( For A Microos

How To Create A Data Gateway On A Microsoft Powerbook On A Pc Or Macode (For Microsoft) On A Macode 2.5 (For A Microode) On An Ipad Or Macroode ( For A Microos Table Module com Table Data Gateway usando Result Set Packages UI «table module» BLL «table data gateway» DAL 58 Classes BLL Contract + Contract ( ) + RecognizedRevenue ( [in] contractid : int, [in] asof

More information

ADOBE READER AND ACROBAT

ADOBE READER AND ACROBAT ADOBE READER AND ACROBAT IFILTER CONFIGURATION Table of Contents Table of Contents... 1 Overview of PDF ifilter 11 for 64-bit platforms... 3 Installation... 3 Installing Adobe PDF IFilter... 3 Setting

More information

RSS Feed from an Access Database

RSS Feed from an Access Database RSS Feed from an Access Database Scott Savage (2005) RSS stands for Really Simple Syndication and it is the latest way to keep up to date on the internet. Essentially it is an XML feed that contains data

More information

Sending Data from a computer to a microcontroller using a UART (Universal Asynchronous Receiver/Transmitter)

Sending Data from a computer to a microcontroller using a UART (Universal Asynchronous Receiver/Transmitter) Sending Data from a computer to a microcontroller using a UART (Universal Asynchronous Receiver/Transmitter) Eric Bell 04/05/2013 Abstract: Serial communication is the main method used for communication

More information

Chapter 14 WCF Client WPF Implementation. Screen Layout

Chapter 14 WCF Client WPF Implementation. Screen Layout Chapter 14 WCF Client WPF Implementation Screen Layout Window1.xaml

More information

J a v a Quiz (Unit 3, Test 0 Practice)

J a v a Quiz (Unit 3, Test 0 Practice) Computer Science S-111a: Intensive Introduction to Computer Science Using Java Handout #11 Your Name Teaching Fellow J a v a Quiz (Unit 3, Test 0 Practice) Multiple-choice questions are worth 2 points

More information

Systems Programming & Scripting

Systems Programming & Scripting Systems Programming & Scripting Lecture 6: C# GUI Development Systems Prog. & Script. - Heriot Watt Univ 1 Blank Form Systems Prog. & Script. - Heriot Watt Univ 2 First Form Code using System; using System.Drawing;

More information

Using IRDB in a Dot Net Project

Using IRDB in a Dot Net Project Note: In this document we will be using the term IRDB as a short alias for InMemory.Net. Using IRDB in a Dot Net Project ODBC Driver A 32-bit odbc driver is installed as part of the server installation.

More information

A PROJECT REPORT ON. SkyDrive. Submitted for the partial fulfillment of the requirement for the Award of the degree of MASTER OF COMPUTER APPLICATION

A PROJECT REPORT ON. SkyDrive. Submitted for the partial fulfillment of the requirement for the Award of the degree of MASTER OF COMPUTER APPLICATION A PROJECT REPORT ON SkyDrive Submitted for the partial fulfillment of the requirement for the Award of the degree of MASTER OF COMPUTER APPLICATION By UTTAM KUWAR VERMA 11004101172 GALGOTIAS INSTITUTE

More information

VB.NET - DATABASE ACCESS

VB.NET - DATABASE ACCESS VB.NET - DATABASE ACCESS http://www.tutorialspoint.com/vb.net/vb.net_database_access.htm Copyright tutorialspoint.com Applications communicate with a database, firstly, to retrieve the data stored there

More information

How To Develop A Mobile Application On Sybase Unwired Platform

How To Develop A Mobile Application On Sybase Unwired Platform Tutorial: Windows Mobile Application Development Sybase Unwired Platform 2.1 DOCUMENT ID: DC01285-01-0210-01 LAST REVISED: December 2011 Copyright 2011 by Sybase, Inc. All rights reserved. This publication

More information

آموزش DataGrid در WPF به همراه صفحه بندي و جستجوي انتخابی. کلیک کن www.papro-co.ir

آموزش DataGrid در WPF به همراه صفحه بندي و جستجوي انتخابی. کلیک کن www.papro-co.ir آموزش DataGrid در WPF به همراه صفحه بندي و جستجوي انتخابی در پاپرو برنامه نویسی را شیرین یاد بگیرید کلیک کن www.papro-co.ir WPF DataGrid Custom Paging and Sorting This article shows how to implement custom

More information

v1.1.0 SimpleSQL SQLite manager for Unity3D echo17.com

v1.1.0 SimpleSQL SQLite manager for Unity3D echo17.com v1.1.0 SimpleSQL SQLite manager for Unity3D echo17.com Table of Contents Table of Contents................................................................ ii 1. Overview 2. Workflow...................................................................

More information

MyChartWebPart.cs. // For SortList using System.Collections.Generic; using System.Collections; // For DataTable using System.Data;

MyChartWebPart.cs. // For SortList using System.Collections.Generic; using System.Collections; // For DataTable using System.Data; MyChartWebPart.cs // Standard SharePoint web part includes using System; using System.ComponentModel; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts;

More information

Tutorial: Windows Mobile Application Development. Sybase Unwired Platform 2.1 ESD #2

Tutorial: Windows Mobile Application Development. Sybase Unwired Platform 2.1 ESD #2 Tutorial: Windows Mobile Application Development Sybase Unwired Platform 2.1 ESD #2 DOCUMENT ID: DC01285-01-0212-01 LAST REVISED: March 2012 Copyright 2012 by Sybase, Inc. All rights reserved. This publication

More information

Facebook Twitter YouTube Google Plus Website Email

Facebook Twitter YouTube Google Plus Website Email PHP MySQL COURSE WITH OOP COURSE COVERS: PHP MySQL OBJECT ORIENTED PROGRAMMING WITH PHP SYLLABUS PHP 1. Writing PHP scripts- Writing PHP scripts, learn about PHP code structure, how to write and execute

More information

Secure Authentication and Session. State Management for Web Services

Secure Authentication and Session. State Management for Web Services Lehman 0 Secure Authentication and Session State Management for Web Services Clay Lehman CSC 499: Honors Thesis Supervised by: Dr. R. Michael Young Lehman 1 1. Introduction Web services are a relatively

More information

One method for batch DHI data import into SQL-Server. A batch data import technique for DateSet based on.net Liang Shi and Wenxing Bao

One method for batch DHI data import into SQL-Server. A batch data import technique for DateSet based on.net Liang Shi and Wenxing Bao One method for batch DHI data import into SQL-Server A batch data import technique for DateSet based on.net Liang Shi and Wenxing Bao School of Computer Science and Engineering, Beifang University for

More information

Interaction Tracker Interaction Segments

Interaction Tracker Interaction Segments Interaction Tracker Interaction Segments Technical Reference Interactive Intelligence Customer Interaction Center (CIC) 2016 R1 Last updated July 28, 2015 (See Change Log for summary of changes.) Abstract

More information

Self Service User Authentication Service Usage Guidelines. Copyright 2013, CionSystems Inc.

Self Service User Authentication Service Usage Guidelines. Copyright 2013, CionSystems Inc. Self Service User Authentication Service Usage Guidelines Table of Contents User Authentication Service Functionality... 2 WebService URL:... 2 Methods Exposed by Service... 2 AuthenticateUser... 2 ValidateTwoFactorAuthentication...

More information

Is Paradox a good front-end for MySql?

Is Paradox a good front-end for MySql? Is Paradox a good front-end for MySql? Caution Be aware that some functionalities of Paradox concerning non standard alias (ODBC and SQL) are broken with the Service Pack 2 of windows XP. You can check

More information

如 何 在 C#.2005 中 使 用 ICPDAS I/O Card 的 DLL 檔 案

如 何 在 C#.2005 中 使 用 ICPDAS I/O Card 的 DLL 檔 案 如 何 在 C#.2005 中 使 用 ICPDAS I/O Card 的 DLL 檔 案 本 文 件 說 明 如 何 在 C#.Net 程 式 中 引 入 ICPDAS I/O Card 的 DLL 檔 案 [ 下 載 安 裝 DLL 驅 動 程 式 與 VC 範 例 程 式 ] 多 年 來, ICPDAS 完 整 的 提 供 了 全 系 列 PCI 與 ISA BUS I/O Card 在 Windows

More information

Sage HRMS 2015 Sage Employee Self Service Advanced Customization. February 2015

Sage HRMS 2015 Sage Employee Self Service Advanced Customization. February 2015 Sage HRMS 2015 Sage Employee Self Service Advanced Customization February 2015 This is a publication of Sage Software, Inc. Document version: January 20, 2015 Copyright 2015. Sage Software, Inc. All rights

More information

Brazil + JDBC Juin 2001, [email protected] http://jfod.cnam.fr/tp_cdi/douin/

Brazil + JDBC Juin 2001, douin@cnam.fr http://jfod.cnam.fr/tp_cdi/douin/ Brazil + JDBC Juin 2001, [email protected] http://jfod.cnam.fr/tp_cdi/douin/ version du 26 Mai 2003 : JDBC-SQL et Brazil pré-requis : lecture de Tutorial JDBC de Sun Bibliographie Brazil [Bra00]www.sun.com/research/brazil

More information

Licence Informatique Année 2005-2006. Exceptions

Licence Informatique Année 2005-2006. Exceptions Université Paris 7 Java Licence Informatique Année 2005-2006 TD n 8 - Correction Exceptions Exercice 1 La méthode parseint est spécifiée ainsi : public static int parseint(string s) throws NumberFormatException

More information

Bronson Door Company Web Site

Bronson Door Company Web Site Bronson Door Company Web Site By Clint Holden Submitted to the Faculty of the Information Engineering Technology Program in Partial Fulfillment of the Requirements for the Degree of Bachelor of Science

More information

Server side scripting and databases

Server side scripting and databases Three components used in typical web application Server side scripting and databases How Web Applications interact with server side databases Browser Web server Database server Web server Web server Apache

More information

Using C# for Graphics and GUIs Handout #2

Using C# for Graphics and GUIs Handout #2 Using C# for Graphics and GUIs Handout #2 Learning Objectives: C# Arrays Global Variables Your own methods Random Numbers Working with Strings Drawing Rectangles, Ellipses, and Lines Start up Visual Studio

More information

120, 200 x. r1 = 25. virtua void translate (int dx, dy) = 0; virtual void dessiner(graphics &g) = 0;

120, 200 x. r1 = 25. virtua void translate (int dx, dy) = 0; virtual void dessiner(graphics &g) = 0; Adresse : [email protected] 1. COO par lʼexemple 100,50 a, 30 120, 200 x r1 = 25 Graphics Dessin translater(dx, dy) dessiner(g) drawline(x,y,h,l) drawellipse fillrect setcolor setbgcolor() *

More information

See the Developer s Getting Started Guide for an introduction to My Docs Online Secure File Delivery and how to use it programmatically.

See the Developer s Getting Started Guide for an introduction to My Docs Online Secure File Delivery and how to use it programmatically. My Docs Online Secure File Delivery API: C# Introduction My Docs Online has provided HIPAA-compliant Secure File Sharing and Delivery since 1999. With the most recent release of its web client and Java

More information

Einführung in die Windows Store App Entwicklung mit C# und XAML. Modul 2 Datenbindung und Zugriff auf das lokale Dateisystem

Einführung in die Windows Store App Entwicklung mit C# und XAML. Modul 2 Datenbindung und Zugriff auf das lokale Dateisystem Einführung in die Windows Store App Entwicklung mit C# und XAML Modul 2 Datenbindung und Zugriff auf das lokale Dateisystem Oktober 2013 www.softed.de Referentin Beate Lay C# Programmierung SharePoint

More information

Beginning MYSQL 5.0. With. Visual Studio.NET 2005

Beginning MYSQL 5.0. With. Visual Studio.NET 2005 Beginning MYSQL 5.0 With Visual Studio.NET 2005 By Anil Mahadev Database Technologist and Enthusiast Welcome to the Wonderful of MYSQL 5, a phenomenal release in the History of MYSQL Development. There

More information

Chair of Software Engineering. Java and C# in depth. Carlo A. Furia, Bertrand Meyer. C#: Persistence

Chair of Software Engineering. Java and C# in depth. Carlo A. Furia, Bertrand Meyer. C#: Persistence Chair of Software Engineering Carlo A. Furia, Bertrand Meyer C#: Persistence Outline C# Serialization Connecting to a RDBMS with ADO.NET LINQ (Language Integrated Queries) NoSQL Solutions for C# and Java

More information

Log/Process/Hashing. Details. Activities. Processes

Log/Process/Hashing. Details. Activities. Processes Lab 9: Details Aim: Log/Process/Hashing To provide a foundation on how event logs are generated and to determine running processes, and to view and update logs. It also includes methods on using the hashing

More information

Synchronizing databases

Synchronizing databases TECHNICAL PAPER Synchronizing databases with the SQL Comparison SDK By Doug Reilly In the wired world, our data can be almost anywhere. The problem is often getting it from here to there. A common problem,

More information

TP1 : Correction. Rappels : Stream, Thread et Socket TCP

TP1 : Correction. Rappels : Stream, Thread et Socket TCP Université Paris 7 M1 II Protocoles réseaux TP1 : Correction Rappels : Stream, Thread et Socket TCP Tous les programmes seront écrits en Java. 1. (a) Ecrire une application qui lit des chaines au clavier

More information

Project 4 DB A Simple database program

Project 4 DB A Simple database program Project 4 DB A Simple database program Due Date April (Friday) Before Starting the Project Read this entire project description before starting Learning Objectives After completing this project you should

More information

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";! SET time_zone = "+00:00";!

SET SQL_MODE = NO_AUTO_VALUE_ON_ZERO;! SET time_zone = +00:00;! -- phpmyadmin SQL Dump -- version 4.1.3 -- http://www.phpmyadmin.net -- -- Client : localhost -- Généré le : Lun 19 Mai 2014 à 15:06 -- Version du serveur : 5.6.15 -- Version de PHP : 5.4.24 SET SQL_MODE

More information

WINDOWS PRESENTATION FOUNDATION LEKTION 3

WINDOWS PRESENTATION FOUNDATION LEKTION 3 WINDOWS PRESENTATION FOUNDATION LEKTION 3 Mahmud Al Hakim [email protected] www.alhakim.se COPYRIGHT 2015 MAHMUD AL HAKIM WWW.WEBACADEMY.SE 1 AGENDA Introduktion till Databindning (Data Binding) Element

More information

Web Development using PHP (WD_PHP) Duration 1.5 months

Web Development using PHP (WD_PHP) Duration 1.5 months Duration 1.5 months Our program is a practical knowledge oriented program aimed at learning the techniques of web development using PHP, HTML, CSS & JavaScript. It has some unique features which are as

More information

2. Modify default.aspx and about.aspx. Add some information about the web site.

2. Modify default.aspx and about.aspx. Add some information about the web site. This was a fully function Shopping Cart website, which was hosted on the university s server, which I no longer can access. I received an A on this assignment. The directions are listed below for your

More information

LSINF1124 Projet de programmation

LSINF1124 Projet de programmation LSINF1124 Projet de programmation Database Programming with Java TM Sébastien Combéfis University of Louvain (UCLouvain) Louvain School of Engineering (EPL) March 1, 2011 Introduction A database is a collection

More information

Obfuscating your code with SmartAssembly. SmartAssembly - 6.2

Obfuscating your code with SmartAssembly. SmartAssembly - 6.2 Obfuscating your code with SmartAssembly SmartAssembly - 6.2 Contents Red Gate Software Ltd 2 Why should I obfuscate my code? The benefits of obfuscation Obfuscating your code with Red Gate's SmartAssembly

More information

Database Communica/on in Visual Studio/C# using ASP.NET Web Forms. Hans- PeBer Halvorsen, M.Sc.

Database Communica/on in Visual Studio/C# using ASP.NET Web Forms. Hans- PeBer Halvorsen, M.Sc. Database Communica/on in Visual Studio/C# using ASP.NET Web Forms Hans- PeBer Halvorsen, M.Sc. Web Programming Hans- PeBer Halvorsen, M.Sc. Web is the Present and the Future 3 History of the Web Internet

More information

DIPLOMA IN WEBDEVELOPMENT

DIPLOMA IN WEBDEVELOPMENT DIPLOMA IN WEBDEVELOPMENT Prerequisite skills Basic programming knowledge on C Language or Core Java is must. # Module 1 Basics and introduction to HTML Basic HTML training. Different HTML elements, tags

More information

Coding Standards for C#

Coding Standards for C# DotNetDaily.net Coding Standards for C# This document was downloaded from http://www.dotnetdaily.net/ You are permitted to use and distribute this document for any noncommercial purpose as long as you

More information

public void setusername(string username) { this.username = username; } public void setname(string name) { this.name = name; }

public void setusername(string username) { this.username = username; } public void setname(string name) { this.name = name; } User-klassen package domain; import dk.au.hum.imv.persistence.db.databasepersistent; public class User extends DatabasePersistent { private String username; private String name; private String address;

More information

TP JSP : déployer chaque TP sous forme d'archive war

TP JSP : déployer chaque TP sous forme d'archive war TP JSP : déployer chaque TP sous forme d'archive war TP1: fichier essai.jsp Bonjour Le Monde JSP Exemple Bonjour Le Monde. Après déploiement regarder dans le répertoire work de l'application

More information

Creating the Product Catalog Part I (continued)

Creating the Product Catalog Part I (continued) Creating the Product Catalog Part I (continued) Instructor: Wei Ding The lecture notes are written based on the book Beginning ASP.NET 2.0 E-Commerce in C# 2005 From Novice to Profession by Cristian Darie

More information

TS: Microsoft.NET Framework 3.5, ASP.NET Application Development

TS: Microsoft.NET Framework 3.5, ASP.NET Application Development Exam : 70-562 Title : TS: Microsoft.NET Framework 3.5, ASP.NET Application Development Version : Demo 1 / 14 1.You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5.

More information

Windows Mobile Power Management

Windows Mobile Power Management Windows Mobile Power Management Joel Ivory Johnson Software Engineer, RDA Corporation [email protected] Introduction As a regular reader of the MSDN support forums and other online development community

More information

Security API Cookbook

Security API Cookbook Sitecore CMS 6 Security API Cookbook Rev: 2010-08-12 Sitecore CMS 6 Security API Cookbook A Conceptual Overview for CMS Developers Table of Contents Chapter 1 Introduction... 3 Chapter 2 User, Domain,

More information

Building a Custom User Manager

Building a Custom User Manager Building a Custom User Manager Coversant, Inc 10/1/2008 Contents Intended Audience... 3 Recommended Reading... 3 Building a Custom User Manager... 3 Threading Considerations... 4 Responsibilities of a

More information

Sage Abra SQL HRMS. Abra Workforce Connections. Advanced Customization Guide

Sage Abra SQL HRMS. Abra Workforce Connections. Advanced Customization Guide Sage Abra SQL HRMS Abra Workforce Connections Advanced Customization Guide 2010 Sage Software, Inc. All rights reserved. Sage, the Sage logos, and the Sage product and service names mentioned herein are

More information

A Static Analysis Framework for Database Applications

A Static Analysis Framework for Database Applications A Static Analysis Framework for Database Applications Arjun Dasgupta Vivek Narasayya Manoj Syamala University of Texas, Arlington Microsoft Research Microsoft Research [email protected] [email protected]

More information

Hands-On Lab. Client Workflow. Lab version: 1.0.0 Last updated: 2/23/2011

Hands-On Lab. Client Workflow. Lab version: 1.0.0 Last updated: 2/23/2011 Hands-On Lab Client Workflow Lab version: 1.0.0 Last updated: 2/23/2011 CONTENTS OVERVIEW... 3 EXERCISE 1: DEFINING A PROCESS IN VISIO 2010... 4 Task 1 Define the Timesheet Approval process... 4 Task 2

More information

Advanced Object Oriented Database access using PDO. Marcus Börger

Advanced Object Oriented Database access using PDO. Marcus Börger Advanced Object Oriented Database access using PDO Marcus Börger ApacheCon EU 2005 Marcus Börger Advanced Object Oriented Database access using PDO 2 Intro PHP and Databases PHP 5 and PDO Marcus Börger

More information

C Coding Style Guide. Technotes, HowTo Series. 1 About the C# Coding Style Guide. 2 File Organization. Version 0.3. Contents

C Coding Style Guide. Technotes, HowTo Series. 1 About the C# Coding Style Guide. 2 File Organization. Version 0.3. Contents Technotes, HowTo Series C Coding Style Guide Version 0.3 by Mike Krüger, [email protected] Contents 1 About the C# Coding Style Guide. 1 2 File Organization 1 3 Indentation 2 4 Comments. 3 5 Declarations.

More information

Tutorial 1: M/M/n Service System Simulation Tutorial 2: M/M/n Simulation using Excel input file Tutorial 3: A Production/Inventory System Simulation

Tutorial 1: M/M/n Service System Simulation Tutorial 2: M/M/n Simulation using Excel input file Tutorial 3: A Production/Inventory System Simulation SharpSim Tutorials Tutorial 1: M/M/n Service System Simulation Tutorial 2: M/M/n Simulation using Excel input file Tutorial 3: A Production/Inventory System Simulation Ali Emre Varol, Arda Ceylan, Murat

More information

Hibernate Validator. Olivier Devoisin Kevin Gallardo. Université Pierre et Marie Curie. 9 Decembre 2014

Hibernate Validator. Olivier Devoisin Kevin Gallardo. Université Pierre et Marie Curie. 9 Decembre 2014 Hibernate Validator Conception et Developpement d application d Entreprise à Large echelle Olivier Devoisin Kevin Gallardo Université Pierre et Marie Curie 9 Decembre 2014 Devoisin - Gallardo (UPMC) Hibernate

More information

EMC Documentum Application Connectors Software Development Kit

EMC Documentum Application Connectors Software Development Kit EMC Documentum Application Connectors Software Development Kit Version 6.8 Development Guide EMC Corporation Corporate Headquarters: Hopkinton, MA 01748-9103 1-508-435-1000 www.emc.com Legal Notice Copyright

More information

Collections.sort(population); // Método de ordenamiento

Collections.sort(population); // Método de ordenamiento import java.util.collections; import java.util.linkedlist; import java.util.random; public class GeneticAlgorithms static long BEGIN; static final boolean _DEBUG = true; LinkedList population

More information

System.out.println("\nEnter Product Number 1-5 (0 to stop and view summary) :

System.out.println(\nEnter Product Number 1-5 (0 to stop and view summary) : Benjamin Michael Java Homework 3 10/31/2012 1) Sales.java Code // Sales.java // Program calculates sales, based on an input of product // number and quantity sold import java.util.scanner; public class

More information

Login with other services to ASP.NET websites with TMS Cloud Pack for.net

Login with other services to ASP.NET websites with TMS Cloud Pack for.net Login with other services to ASP.NET websites with TMS Cloud Pack for.net Introduction Allowing users to identify using a login of a known big online service brings the advantage for the user to not have

More information

Evaluation. Copy. Evaluation Copy. Chapter 7: Using JDBC with Spring. 1) A Simpler Approach... 7-2. 2) The JdbcTemplate. Class...

Evaluation. Copy. Evaluation Copy. Chapter 7: Using JDBC with Spring. 1) A Simpler Approach... 7-2. 2) The JdbcTemplate. Class... Chapter 7: Using JDBC with Spring 1) A Simpler Approach... 7-2 2) The JdbcTemplate Class... 7-3 3) Exception Translation... 7-7 4) Updating with the JdbcTemplate... 7-9 5) Queries Using the JdbcTemplate...

More information

Software Engineering 1 EEL5881 Spring 2009. Homework - 2

Software Engineering 1 EEL5881 Spring 2009. Homework - 2 Software Engineering 1 EEL5881 Spring 2009 Homework - 2 Submitted by Meenakshi Lakshmikanthan 04/01/2009 PROBLEM STATEMENT: Implement the classes as shown in the following diagram. You can use any programming

More information

Active Commerce Developer s Cookbook

Active Commerce Developer s Cookbook Active Commerce Developer s Cookbook Adding a Custom Payment Provider 1. Create the Payment Provider class 2. Register with Unity 3. Add to Payment Options Adding a Custom Tax Calculator 1. Create the

More information

Corrigés des exercices SQL pour MySQL

Corrigés des exercices SQL pour MySQL Corrigés des exercices SQL pour MySQL Christian Soutou Eyrolles 2006 Chapitre 1 Création des tables CREATE TABLE Segment (indip varchar(11), nomsegment varchar(20) NOT NULL, etage TINYINT(1), CONSTRAINT

More information

Note concernant votre accord de souscription au service «Trusted Certificate Service» (TCS)

Note concernant votre accord de souscription au service «Trusted Certificate Service» (TCS) Note concernant votre accord de souscription au service «Trusted Certificate Service» (TCS) Veuillez vérifier les éléments suivants avant de nous soumettre votre accord : 1. Vous avez bien lu et paraphé

More information

CS170 Lab 11 Abstract Data Types & Objects

CS170 Lab 11 Abstract Data Types & Objects CS170 Lab 11 Abstract Data Types & Objects Introduction: Abstract Data Type (ADT) An abstract data type is commonly known as a class of objects An abstract data type in a program is used to represent (the

More information

The Developer Side of the MS Business Intelligence Stack

The Developer Side of the MS Business Intelligence Stack The Developer Side of the MS Business Intelligence Stack by Sascha Lorenz (PSG) Strategy Architecture Lifecycle About me Sascha Lorenz Senior Consultant, Coach & Trainer PSG Projekt Service GmbH, Hamburg

More information