 |
|
vb.net (winform) ต้องการ ทำระบบ POS โดยมีสาขาอยู่ทั่วประเทศ ประมาณ 200 สาขา ผ่านระบบ vpn จะสอบถามเกียวกับ การ Connect DB ครับ จะแยกกันยังไง |
|
 |
|
|
 |
 |
|
Connect ผ่านพวก Web Service นี้มั้ยครับจะได้ไม่ต้องต่อ Database ตรงๆ และจะได้ช่วยลดโหลดด้วยครับ
|
 |
 |
 |
 |
Date :
2013-05-22 23:08:14 |
By :
pStudio |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เห็หลาย ๆ บริษัทใช้ระบบ Web Application แทนครับ เพราะจะจัดการข้อมูลง่ายกกว่าครับ 
|
 |
 |
 |
 |
Date :
2013-05-23 06:29:04 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ก่อนหน้านี้ ทีมเคยเสนอ เป้นแบบ web app ครับ แต่ เจ้านายไม่เอา อยากทำเป็นแบบ winapp ก็เลยต้องหาวิธีทำอยู่ครับผม
ตอนนี้ที่ทำคือ Connect db ผ่าน ผ่าน IP ครับ
ไม่รู้ว่า มีวิธีอื่นอีกไหมครับผม
|
 |
 |
 |
 |
Date :
2013-05-23 10:49:51 |
By :
jeab |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมว่าถ้า web app สะดวกสุดเวลาโปรแกรมมีบัค deploy ที่ Server ตัวเดียวจบ
ถ้าเป็น win app คงต้อง web service แล้วมั่งครับจะได้ยืดหยุ่นหน่อย
|
 |
 |
 |
 |
Date :
2013-05-24 12:26:31 |
By :
pStudio |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
http://www.cryptotech.co.th/page15.php
|
 |
 |
 |
 |
Date :
2013-05-24 12:39:31 |
By :
ผ่านมา |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เป้าหมายคล้ายฯกัน ครับ
แต่ของผมอยู่ในขั้นตอน ลองผิดลองถูก และเวทีนี้ไม่มีพี่เลี้ยง

|
 |
 |
 |
 |
Date :
2013-05-24 13:07:26 |
By :
ผ่านมา |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
คิดว่า เจ้านายคงจะเล็งเห็นการพัฒนาระบบบน Windows (Winform) ที่มีตัวช่วยมากมาย ง่ายในการพัฒนาระบบและความเร็วของโปรแกรม แต่ติดขัดที่การเรียกใช้งานผ่าน Web (Internet) แต่อย่างไรก็ตามยังมีวิธีดัดแปลงช่วยได้ดังนี้ครับ
พอเป็นแนวนะครับ
1. ใช้บริการผ่าน Web Service
2. ใช้ วิธี Remote ผ่าน Function ของ Windows วิธีนี้จะเร็วมาก เหมือนประหนึ่งเราไปนั่งทำที่ Server เลย
3. ใช้ Dial Up
4. PC Any Where
***. ทำอย่างไรก็ได้ ขอให้เครื่องลูกข่ายมองเห็น Server ที่ติดตั้ง Database เท่านั้น เป็นอันเสร็จพิธี...****
|
 |
 |
 |
 |
Date :
2013-05-24 17:48:05 |
By :
ผ่านมาเห็นแล้วอยากช่วย |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตอบความคิดเห็นที่ : 9 เขียนโดย : ผ่านมา เมื่อวันที่ 2013-05-24 20:39:48
รายละเอียดของการตอบ ::
เวลาเราไปรับงาน เขาจะคุยในสิ่งที่เราไม่รู้เสมอ
หรือพูดอีกอย่างหนึ่งก็ได้ว่า "ผมไม่เคยทำมันมาก่อน" ไม่ใช่ว่าทำไม่ได้ แต่ผมไม่เคยทำมาก่อนต่างหาก
"ไม่ได้งาน" อันนี้คือที่มาสิ่งที่ผมกำลังทำอยู่ และผมคิดจะทำให้เหนือกว่า VPN ทั่วฯไป
ตัวอย่าง SourceCode
Code (VB.NET)
Imports System.Security
Public Class LoginG
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'2013-05-24 Support Windows Client & All Application
If Request.QueryString("UserName") <> Nothing AndAlso Request.QueryString("Password") <> Nothing Then
Dim strUserName As String = Request.QueryString("UserName") '***** Decrypt
Dim strPassword As String = Request.QueryString("Password") '***** Decrypt
' ******************************************************************************************
' Insert user validation here
' For example, check the username and password in the database, encrypt/decrypt algorithm
' *******************************************************************************************
FormsAuthentication.SetAuthCookie(strUserName, False)
'FormsAuthentication.RedirectFromLoginPage(strUserName, False)
' Create cookie and return it
Dim ticket As New FormsAuthenticationTicket(1,
strUserName,
DateTime.Now,
DateTime.Now.AddDays(30),
False,
"SignalR",
FormsAuthentication.FormsCookiePath)
' Encrypt the ticket.
Dim encTicket As String = FormsAuthentication.Encrypt(ticket)
' Create the cookie.
Response.Write(encTicket)
Response.End()
Else
FormsAuthentication.SetAuthCookie("Guest", False) 'Test only for www.goodluck.smpksme.com
End If
End Sub
|
 |
 |
 |
 |
Date :
2013-05-24 20:49:20 |
By :
ผ่านมา |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|