web/SalesAccount.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 SalesAcouunt
    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)
            Me.CATEGRID.Attributes.Add("SortExpression", "checkdate")
            Me.CATEGRID.Attributes.Add("SortDirection", "desc")
            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(sqty) as QTYORDERED,sum(MC) as CostAmount,  COUNT(salesprice) AS count,SUM(salesprice) as sumSalesprice   FROM [SalesAcountView]  " & strWhereTxt()
        Dim dt As DataTable = Syscrf.seachData(strsql).Tables(0)
        If dt.Rows(0)("QTYORDERED").ToString.Length > 0 Then
            Dim intprice As Integer = dt.Rows(0)("QTYORDERED")
            txt_account.Text = intprice.ToString("n")
        Else
            txt_account.Text = "0"
        End If
        If dt.Rows(0)("CostAmount").ToString.Length > 0 Then
            Dim intprice As Double= dt.Rows(0)("CostAmount")
            txt_account1.Text = intprice.ToString("n")
        Else
            txt_account1.Text = "0"
        End If
        If dt.Rows(0)("sumSalesprice").ToString.Length > 0 Then
            Dim intprice As Double= dt.Rows(0)("sumSalesprice")
            txt_account2.Text = intprice.ToString("n")
        Else
            txt_account2.Text = "0"
后面还有 89 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。