This document describes a relocation team that assists customers with building new homes in the Pocono Mountains region of Pennsylvania. The team promises to meet customer expectations around service, commitment to deadlines, and customer satisfaction. They work with developers, sales associates, and clients. The relocation team can assist through all phases of building, from land selection to settlement. They aim to personally deliver biweekly video updates of home construction. The team promotes opportunities to build brand new homes with amenities like lakes and country club settings, starting at $4,000 down. Contact information is provided for the relocation team leader.
This document describes a relocation team that assists customers with building new homes in the Pocono Mountains region of Pennsylvania. The team promises to meet customer expectations around service, commitment to deadlines, and customer satisfaction. They work with developers, sales associates, and clients. The relocation team can assist through all phases of building, from land selection to settlement. They aim to personally deliver biweekly video updates of home construction. The team promotes opportunities to build brand new homes with amenities like lakes and country club settings, starting at $4,000 down. Contact information is provided for the relocation team leader.
The document provides a recap of the 2014 Cape & Islands vacation rental market and discusses strategies for homeowners and property managers. It notes that Martha's Vineyard saw a 4.6% increase in summer bookings while Cape Cod saw a -.5% decrease and Nantucket a 1.3% increase. It emphasizes the importance of positive guest reviews, high-quality photos, responsive communication, and flexible policies to attract tenants. The organization aims to enhance their site and services to better serve homeowners and vacationers.
Bi 1: Lm quen v畛i ASP.NET - Gi叩o tr狸nh FPT - C坦 v鱈 d畛 k竪m theoMasterCode.vn
油
Gi畛i thi畛u v畛 ASP.NET & c叩c kh叩i ni畛m c董 b畉n
畛ng d畛ng Web
ASP.NET
C畉u tr炭c 畛ng d畛ng ASP.NET
Web Form
S畛 ki畛n
畛i t動畛ng Request/Response
PostPack
M畛c ti棚u bi h畛c
Gi畛i thi畛u v畛 ASP.NET & c叩c kh叩i ni畛m c董 b畉n
畛ng d畛ng Web
ASP.NET
C畉u tr炭c 畛ng d畛ng ASP.NET
Web Form
S畛 ki畛n
畛i t動畛ng Request/Response
PostPack
1. 1
TRUNG TM O T畉O QU畉N TR畛 M畉NG & AN
NINH M畉NG QU畛C T畉 ATHENA
BO CO TH畛C T畉P TU畉N 4
畛 ti: Nghi棚n c畛u x但y d畛ng ph畉n m畛n qu畉n l箪 kh叩ch hng tr棚n
Android
SVTT: L畛c Vn Ti畉n
Ngnh: CNTT
2. 2
I. C叩ch x畛 l箪 l動u tr畛 v l畉y d畛 li畛u theo m担 h狸nh client - server:
1. M担 h狸nh client - server trong android:
- Client: l c叩c m叩y kh叩ch hay 畛 但y ch鱈nh l c叩c thi畉t b畛 di 畛ng ch畉y h畛
i畛u hnh android.
- Server: ch鱈nh l database v m畛t giao th畛c trung gian.
- Giao th畛c trung gian (HTTP): l m畛t c畉u n畛i trung gian 畛 ti畉p nh畉n y棚u
c畉u v tr畉 l畉i k畉t qu畉 c畛a thi畉t b畛 v database. Hi畛n t畉i ph畛 bi畉n nh畉t l s畛
d畛ng PHP.
2. M畛t v鱈 d畛 董n gi畉n v畛 m担 h狸nh client - server trong android:
- Ng動畛i d湛ng s畛 d畛ng 1 thi畉t b畛 android, ch畉y m畛t 畛ng d畛ng no 坦.
- Ng動畛i d湛ng ng k箪 1 ti kho畉n tr棚n thi畉t b畛, v th担ng tin ny 動畛c l動u tr畛
tr棚n server.
- Ng動畛i d湛ng th畛c hi畛n vi畛c ng nh畉p - thi畉t b畛 s畉 g畛i m畛t y棚u c畉u ng
3. 3
nh畉p v畛i email v password l棚n server 畛 ki畛m tra n畉u 炭ng th狸 chuy畛n qua
ch畛c nng no 坦 nh動 th担ng tin c叩 nh但n ... n畉u sai th狸 th担ng b叩o kh担ng thnh
c担ng..
- Ng動畛i d湛ng s畛 d畛ng m畛t thi畉t b畛 kh叩c 畛 ng nh畉p v t畉t nhi棚n c滴ng s畉
ng nh畉p 動畛c.
- Tr棚n thi畉t b畛 c滴ng s畉 c坦 1 database c畛c b畛 l動u d畛 th担ng tin ng動畛i d湛ng v畛a
ng nh畉p, v khi logout th狸 delete t畉t c畉.
- V t畉t nhi棚n t畉t c畉 d畛 li畛u c畛a ng動畛i d湛ng 畛u 動畛c l動u tr畛 tr棚n server.
Sau khi ci 畉t thnh c担ng m畛 tr狸nh duy畛t vo "http://localhost/phpmyadmin"
畛 kh畛i t畉o c董 s畛 d畛 li棚u s畛 d畛ng trong 畛ng d畛ng.
Tr棚n thanh menu ngang, ch畛n m畛c SQL 畛 kh畛i t畉o database
Create database qlkh
Sau khi kh畛i t畉o thnh c担ng, ch畛n click vo t棚n database v畛a kh畛i t畉o r畛i
ti畉p t畛c ch畛n m畛c SQL 畛 kh畛i t畉o table:
C叩c b畉ng thu畛c t鱈nh trong b畉ng kh叩ch hng
CREATE TABLE KHACHHANG (
MAKH char(4) primary key not null,
HOTEN varchar(40) not null,
DCHI varchar(50) not null,
SODT varchar(20) not null,
NGSINH date not null,
NGDK date not null,
DOANHSO int(20) not null
);
CREATE TABLE SANPHAM(
MASP char(4) primary key not null,
TENSP varchar(40) not null,
DVT varchar(20) not null,
NUOCSX varchar(40) not null,
GIA int(20) not null
);
4. 4
CREATE TABLE HOADON(
SOHD int primary key not null,
NGHD date not null,
MAKH char(4),
MANV char(4) not null,
TRIGIA int(20) not null,
FOREIGN KEY(MAKH) REFERENCES KHACHHANG(MAKH),
FOREIGN KEY(MANV) REFERENCES NHANVIEN(MANV)
);
CREATE TABLE CTHD(
SOHD int primary key not null,
MASP char(4) primary key not null,
SL int,
FOREIGN KEY(SOHD) REFERENCES HOADON(SOHD),
FOREIGN KEY(MASP) REFERENCES SANPHAM(MASP)
);
3. B畉ng User 畛 c畉p ti kho畉n 畛 xem th担ng tin b畉ng:
create table users(
uid int(11) primary key auto_increment,
unique_id varchar(23) not null unique,
name varchar(50) not null,
email varchar(100) not null unique,
encrypted_password varchar(80) not null,
salt varchar(10) not null,
created_at datetime, updated_at datetime null );
5. 5
II. X但y d畛ng Web service trung gian gi畛a client v server
畛 c坦 th畉 k畉t n畛i client v畛i server t畉t nhi棚n c叩c client ch畉y android kh担ng th畛 k畉t
n畛i tr畛c ti畉p, ph畉i th担ng qua 1 web service. Web service ny s畉 nh畉n c叩c y棚u c畉u
t畛 client, x畛 l箪 v truy v畉n t畛i databse c畛a server.
Tao 1 folder t棚n b畉t k畛 v鱈 d畛 畛 但y m狸nh l畉y t棚n l qlkh. Trong th動 m畛c hthocs
c畛a th動 m畛c ci 畉t xammp. C:xampphtdocsqlkh.
K畉 畉n trong th動 m畛c android_login_api m狸nh s畉 t畉o 1 folder include, folder ny
s畉 ch畛a c叩i class php ph畛c v畛 cho vi畛c k畉t n畛i v x畛 l箪 th担ng tin t畛 client.
Tao 1 file php c坦 t棚n l config.php, class ny c坦 nhi畛m v畛 khai b叩o cac th担ng tin
k畉t n畛i v畛i server bao g畛m host, user, password, database name.
<?php
define("DB_HOST", "localhost");
define("DB_USER", "root");
define("DB_PASSWORD", "");
define("DB_DATABASE", "qlsinhvien");
?>
Ti畉p 畉n da s畉 t畉o 1 class DB_Connect.php. class ny s畉 th畛c hi畛n vi畛c k畉t n畛i
database.
<?php
class DB_Connect {
function __construct() { }
function __destruct() { }
public function connect() {
require_once 'include/config.php';
$con = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
mysql_select_db(DB_DATABASE);
return $con;
}
public function close() {
6. 6
mysql_close();
}
}
?>
Cu畛i c湛ng ta s畉 t畉o 1 class ch畛a c叩c hm x畛 l箪 y棚u c畉u c畛a ph鱈a client.
class DB_Functions {
private $db;
function __construct() {
require_once 'DB_Connect.php';
$this->db = new DB_Connect();
$this->db->connect();
}
function __destruct()
{ }
III. H狸nh 畉nh 畛ng d畛ng demo:
Trang ng nh畉p:
ng nh畉p thnh c担ng s畉 truy c畉p t畛i menu qu畉n l箪 kh叩ch hng.