-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathechart_fee.aspx.vb
More file actions
29 lines (25 loc) · 1.07 KB
/
echart_fee.aspx.vb
File metadata and controls
29 lines (25 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Public Class echart_fee
Inherits System.Web.UI.Page
Public errorshow1 As String
Public errorshow2 As String
Public SelectBook As New StringBuilder()
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim db As DB
Dim drDB As SqlClient.SqlDataReader
Dim sSql As String
db = New DB
Try
'下拉框编写,用于让用户选择不同公司的图表(前提是拥有相应权限,用户身份读取之后做,目前读取默认全权限的testboy)
sSql = "select booksno,booksname from bas_grant,f_books where companyid=autoinc and userid='testboy'"
drDB = db.GetDataReader(sSql)
While drDB.Read()
SelectBook.Append("<option value=""" & drDB.Item("booksno") & """>" & drDB.Item("booksname") & "</option>")
End While
drDB.Close()
Catch ex As Exception
DB.Close(db, drDB)
errorshow1 = ex.Message
errorshow2 = ex.StackTrace
End Try
End Sub
End Class