web/DeliveryAcount.aspx.vb
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
Imports BLL
Imports Model
Imports System.Data
Imports System.Data.SqlClient
Imports System.Drawing
Imports System.Drawing.Imaging
Imports System.IO
Partial Class DeliveryAcount
Inherits System.Web.UI.Page
Dim Syscrf As New SystemBLL()
Private PageSearch As New PageShareMethod
Protected imagePath As String
Protected imageType As String
Protected imageName As String
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
'getbatchno()
'DropTypeGrid()
'PRODTypeGrid()
Jscript.BindDateCalendar(form_transdate)
Jscript.BindDateCalendar(to_transdate)
LocationTypeGrid()
Me.CATEGRID.Attributes.Add("SortExpression", "itemid")
Me.CATEGRID.Attributes.Add("SortDirection", "ASC")
getaccount()
GridViewBind()
'Dim dt As DataTable = Syscrf.seachData("select ACCOUNT from userinfo where userid='" & Request.Cookies("usoffice")("eua").ToString.Trim & "'").Tables(0)
'If dt.Rows(0)("ACCOUNT").ToString = "admin" Then
' Lb_salesid.Visible = True
' 'txt_SALESID.Visible = True
'Else
' Lb_salesid.Visible = False
' 'txt_SALESID.Visible = False
'End If
End If
End Sub
Public Sub getaccount()
Dim strsql As String = "SELECT sum(qty) as qty, COUNT(itemid) AS count FROM [INVENTTRANSVIEW] " & strWhereTxt()
Dim dt As DataTable = Syscrf.seachData(strsql).Tables(0)
If dt.Rows(0)("qty").ToString.Length > 0 Then
Dim intprice As Integer = dt.Rows(0)("qty")
txt_account.Text = intprice.ToString("n")
Else
txt_account.Text = "0"
End If
txt_account0.Text = dt.Rows(0)("count").ToString
End Sub
Private Sub GridViewBind()
Dim SortDirection As String = Me.CATEGRID.Attributes("SortDirection").ToString()
Dim SortExpression As String = Me.CATEGRID.Attributes("SortExpression").ToString()
Dim dt As DataTable = Syscrf.seachData("SELECT * from [INVENTTRANSVIEW] " & strWhereTxt()).Tables(0)
dt.DefaultView.Sort = String.Format("{0} {1}", SortExpression, SortDirection)
Me.CATEGRID.DataSource = dt
后面还有 109 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
