Beruflich Dokumente
Kultur Dokumente
The application is a web base Application . The Home Page of the application . The
different wholesaler will use the this page to retrieve information like the Product list
,Company Portfolio, and the Contacts details.
Partial Class _Default
Inherits System.Web.UI.Page
End Sub
End Class
The login form that the salesman and the company employee use to place an order, new
purchase , create new products, appoint new employee , see the details like emp list.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
If Not IsPostBack Then
Dim i As Integer
Dim userslist As New ArrayList
Dim dr() As DataRow
Dim da As New SqlDataAdapter("select username from users",
ConfigurationManager.AppSettings("connectionString"))
Dim dt As New DataTable
da.Fill(dt)
dr = dt.Select
For i = 0 To dr.Length - 1
userslist.Add(dr(i)(0).ToString)
Next
ddusers.DataSource = userslist
Page.DataBind()
End If
End Sub
The order form is show above
Public Function totalOrderamount(ByVal orderID As String) As Double
Dim comstring As String
Dim total As Double
comstring = "select sum(total) from orderdetails where
orderid='" & orderID & "'"
Dim con As New
SqlConnection(ConfigurationManager.AppSettings("connectionString"))
Dim com As New SqlCommand(comstring, con)
con.Open()
total = com.ExecuteScalar
Return total
End Function