SlideShare a Scribd company logo
大綱 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
一 .  研究背景 許多大型展覽與博覽會,由於展出規模龐大 ,票務銷售需要靠許多通路來完成,以支撐 其營運目的,在售票通路上,由於 各通路商 資訊系統的異質性與差異性 ,造成訂票的流 程不易統一與協調,且銷售狀況也不易即時 反應與查詢,民眾 在訂票的過程中,需要面 對不同通路商的使用介面與使用規則 ,在票 務的運作上,造成管理的困難。
二 .  研究目的 為了支撐龐大的票務銷售需求,提供統一的 銷售反應機制,利用 網路服務技術 ( web service ) 標準的訊息格式與應用方式,以國際花卉博覽 會為主題,設計實作一個各通路商可以叫用的 服務機制, 提供即時訂票,查詢訂票結果,取 消訂票 等網路服務。 試著以一個中央控管的聯合票務系統來管理這 些網路服務,以提供標準與即時的票務服務。
三 .  個案探討 ,[object Object],[object Object],[object Object],[object Object],[object Object]
四 .  實作技術 1 .  開發環境 :   Microsoft Visual Web Developer 2010 2.  前端使用者介面  (User  Interface): CSS:  使用 CSS 為版面排版方法 AJAX:  即時回饋訊息在網頁區塊中 ASP.NET  控制項 :  日曆控制項來表示日期 3.  網頁邏輯程式語言 : Visual Basic .NET  4.  資料庫 : SQL Server
五 .  實作與展示 網站與網路服務架構 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
五 .  實作與展示 訂票 – 訂票回應訊息
五 .  實作與展示 訂票  - WSDL  網路服務描述語言 - <portType>  訂票  - WSDL  網路服務描述語言 - <Message>
五 .  實作與展示 訂票  - WSDL  網路服務描述語言 - <Types>
五 .  實作與展示 訂票  - WSDL  網路服務描述語言 - <Binding>
五 .  實作與展示 訂票 –  web service  程式邏輯 訂票需新增資料到資料庫 :  Using cmd As SqlCommand = New SqlCommand(&quot; Insert  into [ticket] (ticket_name,ticket_phone, ticket_date,ticket_number1,ticket_number2,ticket_number3,ticket_number4,ticket_number5) values(N'&quot; & ticket_name & &quot;',N'&quot; & ticket_phone & &quot;','&quot; & ticket_date & &quot;',N'&quot; & ticket_number1 & &quot;',N'&quot; & ticket_number2 & &quot;',N'&quot; & ticket_number3 & &quot;',N'&quot; & ticket_number4 & &quot;',N'&quot; & ticket_number5 & &quot;')&quot;, Conn) Try Conn.Open()  '---- 1.  連結 DB  cmd.ExecuteNonQuery() u_Title = &quot;  系統回應 :  訂票成功 &quot; Catch ex As Exception u_Title = &quot;Exception( 錯誤訊息 )----  &quot; + ex.ToString() Finally
五 .  實作與展示 b.  查詢訂票  - 使用者介面  (web form) 需核對兩項資料方可查詢 查詢成功  (Accept):
五 .  實作與展示 b.  查詢訂票  - 使用者介面  (web form) 需核對兩項資料方可查詢 查詢失敗  (Deny):
五 .  實作與展示 查詢訂票  - WSDL  網路服務描述語言 - <portType>  查詢訂票  - WSDL  網路服務描述語言 - <Message>
五 .  實作與展示 查詢訂票  - WSDL  網路服務描述語言 - <Types>
五 .  實作與展示 查詢訂票  - WSDL  網路服務描述語言 - <Binding>
五 .  實作與展示 查詢訂票 –  web service  程式邏輯 查詢訂票 需依照篩選條件來查詢 :  Dim dr As SqlDataReader = Nothing Dim cmd As SqlCommand = New SqlCommand(&quot; select  * from ticket where ticket_name = N'&quot; & ticket_name & &quot;' and ticket_phone = N'&quot; & ticket_phone & &quot;'&quot;, Conn) Try Conn.Open()  '---- 1.  連結 DB  dr = cmd.ExecuteReader()  '---- 2.  執行 SQL 指令,取出資料  dr.Read() u_Title = “ 訂票結果 ->  全票 :” + dr.Item(“ticket_number1”).ToString + “  學生票 :” + dr.Item(“ticket_number2”).ToString + “  優待票 :&quot;  + dr.Item(&quot;ticket_number3&quot;).ToString + &quot;  下午票 :&quot; + dr.Item(&quot;ticket_number4&quot;).ToString + &quot;  星光票 :&quot; + dr.Item(&quot;ticket_number5&quot;).ToString Catch ex As Exception u_Title = &quot; 錯誤訊息 :  您所輸入的資料 , 無法通過驗證 &quot; Finally
五 .  實作與展示 c.  取消訂票  - 使用者介面  (web form) 需核對三項資料方可取消 取消成功  (Accept):
五 .  實作與展示 c.  取消訂票  - 使用者介面  (web form) 需核對三項資料方可取消 取消失敗 (Deny):
五 .  實作與展示 取消訂票  - WSDL  網路服務描述語言 - <portType>  取消訂票  - WSDL  網路服務描述語言 - <Message>
五 .  實作與展示 取消訂票  - WSDL  網路服務描述語言 - <Types>
五 .  實作與展示 取消訂票  - WSDL  網路服務描述語言 - <Binding>
五 .  實作與展示 取消訂票 –  web service  程式邏輯 取消訂票 需依照篩選條件來刪除 :  Dim cmd As SqlCommand = New SqlCommand(&quot;DELETE FROM ticket where ticket_name = N'&quot; & ticket_name & &quot;' and ticket_phone = N'&quot; & ticket_phone & &quot;' and ticket_date = '&quot; & ticket_date & &quot;'&quot;, Conn) Try Conn.Open()  '---- 1.  連結 DB  u_Title = cmd.ExecuteNonQuery().ToString() If u_Title = 0 Then u_Title = &quot; 錯誤訊息 :  您所輸入的資料 , 無法通過驗證 , 無法取消訂票 .&quot; ElseIf u_Title >= 1 Then u_Title = &quot; 取消成功 !  您的訂票已經取消 , 請勿前往領票 .&quot; Else u_Title = &quot; 錯誤 ...&quot; End If Catch ex As Exception u_Title  = &quot; 錯誤 !&quot; Finally
六 .  結論與建議 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
六 .  結論與建議 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
謝謝指導  

More Related Content

Featured

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
 

Featured (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

網路服務技術,訂票服務

  • 1.
  • 2. 一 . 研究背景 許多大型展覽與博覽會,由於展出規模龐大 ,票務銷售需要靠許多通路來完成,以支撐 其營運目的,在售票通路上,由於 各通路商 資訊系統的異質性與差異性 ,造成訂票的流 程不易統一與協調,且銷售狀況也不易即時 反應與查詢,民眾 在訂票的過程中,需要面 對不同通路商的使用介面與使用規則 ,在票 務的運作上,造成管理的困難。
  • 3. 二 . 研究目的 為了支撐龐大的票務銷售需求,提供統一的 銷售反應機制,利用 網路服務技術 ( web service ) 標準的訊息格式與應用方式,以國際花卉博覽 會為主題,設計實作一個各通路商可以叫用的 服務機制, 提供即時訂票,查詢訂票結果,取 消訂票 等網路服務。 試著以一個中央控管的聯合票務系統來管理這 些網路服務,以提供標準與即時的票務服務。
  • 4.
  • 5. 四 . 實作技術 1 . 開發環境 : Microsoft Visual Web Developer 2010 2. 前端使用者介面 (User Interface): CSS: 使用 CSS 為版面排版方法 AJAX: 即時回饋訊息在網頁區塊中 ASP.NET 控制項 : 日曆控制項來表示日期 3. 網頁邏輯程式語言 : Visual Basic .NET 4. 資料庫 : SQL Server
  • 6.
  • 7.
  • 8. 五 . 實作與展示 訂票 – 訂票回應訊息
  • 9. 五 . 實作與展示 訂票 - WSDL 網路服務描述語言 - <portType> 訂票 - WSDL 網路服務描述語言 - <Message>
  • 10. 五 . 實作與展示 訂票 - WSDL 網路服務描述語言 - <Types>
  • 11. 五 . 實作與展示 訂票 - WSDL 網路服務描述語言 - <Binding>
  • 12. 五 . 實作與展示 訂票 –  web service 程式邏輯 訂票需新增資料到資料庫 : Using cmd As SqlCommand = New SqlCommand(&quot; Insert into [ticket] (ticket_name,ticket_phone, ticket_date,ticket_number1,ticket_number2,ticket_number3,ticket_number4,ticket_number5) values(N'&quot; & ticket_name & &quot;',N'&quot; & ticket_phone & &quot;','&quot; & ticket_date & &quot;',N'&quot; & ticket_number1 & &quot;',N'&quot; & ticket_number2 & &quot;',N'&quot; & ticket_number3 & &quot;',N'&quot; & ticket_number4 & &quot;',N'&quot; & ticket_number5 & &quot;')&quot;, Conn) Try Conn.Open() '---- 1. 連結 DB cmd.ExecuteNonQuery() u_Title = &quot; 系統回應 : 訂票成功 &quot; Catch ex As Exception u_Title = &quot;Exception( 錯誤訊息 )---- &quot; + ex.ToString() Finally
  • 13. 五 . 實作與展示 b. 查詢訂票 - 使用者介面 (web form) 需核對兩項資料方可查詢 查詢成功 (Accept):
  • 14. 五 . 實作與展示 b. 查詢訂票 - 使用者介面 (web form) 需核對兩項資料方可查詢 查詢失敗 (Deny):
  • 15. 五 . 實作與展示 查詢訂票 - WSDL 網路服務描述語言 - <portType> 查詢訂票 - WSDL 網路服務描述語言 - <Message>
  • 16. 五 . 實作與展示 查詢訂票 - WSDL 網路服務描述語言 - <Types>
  • 17. 五 . 實作與展示 查詢訂票 - WSDL 網路服務描述語言 - <Binding>
  • 18. 五 . 實作與展示 查詢訂票 –  web service 程式邏輯 查詢訂票 需依照篩選條件來查詢 : Dim dr As SqlDataReader = Nothing Dim cmd As SqlCommand = New SqlCommand(&quot; select * from ticket where ticket_name = N'&quot; & ticket_name & &quot;' and ticket_phone = N'&quot; & ticket_phone & &quot;'&quot;, Conn) Try Conn.Open() '---- 1. 連結 DB dr = cmd.ExecuteReader() '---- 2. 執行 SQL 指令,取出資料 dr.Read() u_Title = “ 訂票結果 -> 全票 :” + dr.Item(“ticket_number1”).ToString + “ 學生票 :” + dr.Item(“ticket_number2”).ToString + “ 優待票 :&quot; + dr.Item(&quot;ticket_number3&quot;).ToString + &quot; 下午票 :&quot; + dr.Item(&quot;ticket_number4&quot;).ToString + &quot; 星光票 :&quot; + dr.Item(&quot;ticket_number5&quot;).ToString Catch ex As Exception u_Title = &quot; 錯誤訊息 : 您所輸入的資料 , 無法通過驗證 &quot; Finally
  • 19. 五 . 實作與展示 c. 取消訂票 - 使用者介面 (web form) 需核對三項資料方可取消 取消成功 (Accept):
  • 20. 五 . 實作與展示 c. 取消訂票 - 使用者介面 (web form) 需核對三項資料方可取消 取消失敗 (Deny):
  • 21. 五 . 實作與展示 取消訂票 - WSDL 網路服務描述語言 - <portType> 取消訂票 - WSDL 網路服務描述語言 - <Message>
  • 22. 五 . 實作與展示 取消訂票 - WSDL 網路服務描述語言 - <Types>
  • 23. 五 . 實作與展示 取消訂票 - WSDL 網路服務描述語言 - <Binding>
  • 24. 五 . 實作與展示 取消訂票 –  web service 程式邏輯 取消訂票 需依照篩選條件來刪除 : Dim cmd As SqlCommand = New SqlCommand(&quot;DELETE FROM ticket where ticket_name = N'&quot; & ticket_name & &quot;' and ticket_phone = N'&quot; & ticket_phone & &quot;' and ticket_date = '&quot; & ticket_date & &quot;'&quot;, Conn) Try Conn.Open() '---- 1. 連結 DB u_Title = cmd.ExecuteNonQuery().ToString() If u_Title = 0 Then u_Title = &quot; 錯誤訊息 : 您所輸入的資料 , 無法通過驗證 , 無法取消訂票 .&quot; ElseIf u_Title >= 1 Then u_Title = &quot; 取消成功 ! 您的訂票已經取消 , 請勿前往領票 .&quot; Else u_Title = &quot; 錯誤 ...&quot; End If Catch ex As Exception u_Title = &quot; 錯誤 !&quot; Finally
  • 25.
  • 26.