亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? modxpreport.bas

?? 銀行、電信
?? BAS
字號:
Attribute VB_Name = "modXPReport"
Option Explicit

''''''''''''''''''''''''''''''''''''''''''
' 報表字段類型
Public Type TYPE_REPORT_FIELD
    FieldIndex          As Integer          ' 字段序號
    FieldTag            As String           ' 數據庫字段名
    FieldName           As String           ' 字段顯示名
    FieldType           As DataTypeEnum     ' 字段類型
    FieldLength         As Integer          ' 字段長度(字符長度)
    FieldWidth          As Integer          ' 字段顯示寬度
    fShow               As Boolean          ' 字段是否顯示
    ' 以下用于記錄過濾
    Available_Value     As String           ' 該字段可選值
    Available_Integer   As String           ' 字段可選值對應的數值(整數型或字符型)
    FieldWhereTag       As String           ' 在 Where 中對應的字段名
End Type

Public Enum FLEXGRID_ALIGN_TYPE
    flexAlignLeftTop = 0            ' 頂部左對齊。
    flexAlignLeftCenter = 1         ' 中間左對齊。
    flexAlignLeftBottom = 2         ' 底部左對齊。
    flexAlignCenterTop = 3          ' 頂部居中。
    flexAlignCenterCenter = 4       ' 中間居中。
    flexAlignCenterBottom = 5       ' 底部居中。
    flexAlignRightTop = 6           ' 頂部右對齊。
    flexAlignRightCenter = 7        ' 中間右對齊。
    flexAlignRightBottom = 8        ' 底部右對齊。
End Enum

Public m_TempFieldsSet() As TYPE_REPORT_FIELD

Dim m_tagErrInfo As TYPE_ERRORINFO

Public Type TYPE_PZOrder
    product_name_type As String
    unit As String
    volumn As Long
    price As Currency
    money_whole As Currency
End Type
Public g_typePZOrder() As TYPE_PZOrder

Public Type TYPE_PZGathing
    code As String * 18
    whole As Currency
    this As Currency
    past As Currency
    last As Currency
    currency_name As String
End Type
Public g_typePZGathing() As TYPE_PZGathing

Public g_typePZPaying() As TYPE_PZGathing

Public Type TYPE_ListBusiness
    code As String
    date_dill As Date
    cust_name As String
    emp_name As String
    product As String
    price As Single
    volumn_unit As String
    whole_money As Currency
    cur_name As String
    status_name As String
End Type

Public Type TYPE_CUST_COMPARE
    cust_name As String
    order_whole_money As Currency
    order_out_money As Currency
    delivery_whole_money As Currency
    cash_sale_money As Currency
    cust_sale_ratio As String
    should_money As Currency
    rolled_money As Currency
    rolled_ratio As String
    withdraw_money As Currency
    expendituer_money As Currency
End Type

Public Type TYPE_CUST_SALE_ANALYZE
    prod_code As String
    prod_name As String
    prod_type As String
    order_volumn As String
    delivery_no_order_volumn As String
    cash_sale_volumn As String
    withdraw_volumn As String
    avg_price As Single
    whole_money As Currency
    sale_ratio As String
End Type

Public Type TYPE_PROD_SALE_ANALYZE
    prod_code As String
    prod_name As String
    prod_type As String
    prod_style As String
    prod_sub_style As String
    prod_unit As String
    cust_name As String
    volumn_out As String
    delivery_money As Currency
    delivery_ratio As String
    money_ratio As String
End Type

Public Type TYPE_PROD_PURC_ANALYZE
    prod_code As String
    prod_name As String
    prod_type As String
    prod_style As String
    prod_sub_style As String
    prod_unit As String
    sup_name As String
    volumn_in As String
    stocking_money As Currency
    stocking_ratio As String
    money_ratio As String
End Type

Public Type TYPE_List
    code As String
    date_dill As Date
    emp_name As String
    whole_money As Currency
    cur_name As String
    status_name As String
End Type

Public Type TYPE_DELIVERY_STOCK_QUERY
    prod_name As String
    date As Date
    volumn As String
    price As Single
    money As Currency
    cust_name As String
    sup_name As String
    emp_name As String
End Type

Public Type Type_MK_Profit
    num As Long
    pro_name As String
    pro_type As String
    price_out As Single
    price_in As Single
    volumn_out As Long
    money_out As Single
    money_in As Single
    profit As Single
    ratio As Single
    unit As String
End Type

Public Type Type_GP_Gather
    month As String
    day As String
    code As String
    pro As String
    gather As String
    paying As String
    direct As String
    total As String
End Type

Public Type Type_Ss_StorageChange
    date_d As Date
    busi_code As String
    busi_name As String
    storage_in As Long
    storage_out As Long
    storage_lease As Long
End Type

Public Type Type_Cu_GPQuery
    cust_name As String
    money_before As Currency
    money_gather As Currency
    money_delivery As Currency
    money_after As Currency
End Type

Public Type Type_Ss_GPQuery
    product_name As String
    product_unit As String
    volumn_before As Long
    volumn_in As Long
    volumn_out As Long
    volumn_after As Long
End Type

Public g_typeListBus() As TYPE_ListBusiness
Public g_typeCustCompare() As TYPE_CUST_COMPARE
Public g_typeCustSaleAnalyze() As TYPE_CUST_SALE_ANALYZE
Public g_typeProdSaleAnalyze() As TYPE_PROD_SALE_ANALYZE
Public g_typeProdPurcAnalyze() As TYPE_PROD_PURC_ANALYZE
Public g_typeDeliveryQuery() As TYPE_DELIVERY_STOCK_QUERY
Public g_typeStockQuery() As TYPE_DELIVERY_STOCK_QUERY
Public g_typeMKProfit() As Type_MK_Profit
Public g_typeGPGather() As Type_GP_Gather
Public g_typeGPPaying() As Type_GP_Gather
Public g_typeSsStorageChange() As Type_Ss_StorageChange
Public g_typeCuGPQuery() As Type_Cu_GPQuery
Public g_typeSsGPQuery() As Type_Ss_GPQuery

Public Function GetProductUnit(strProductName As String, strProductType As String) As String
    Dim rs As New ADODB.Recordset, cmd As New ADODB.Command
    Set cmd.ActiveConnection = dbMyDB
    cmd.CommandType = adCmdText
    cmd.CommandText = "SELECT unit FROM Products WHERE product = '" & strProductName & "' AND product_type = '" & strProductType & "'"
    rs.CursorLocation = adUseClient
    rs.Open cmd, , adOpenStatic, adLockReadOnly
    If rs.RecordCount <> 1 Then
        GetProductUnit = ""
        Set cmd = Nothing
        rs.Close
        Set rs = Nothing
        Exit Function
    End If
    rs.MoveFirst
    GetProductUnit = Trim(rs!unit)
    Set cmd = Nothing
    rs.Close
    Set rs = Nothing
End Function

Public Function GetBigMoney(sngMoney As Currency, strMoney As String) As Boolean
    Dim str1 As String, int1 As Integer, i As Integer, strOne As String
    Dim sngLittle As Single
    strMoney = ""
    str1 = CStr(Int(sngMoney))
    int1 = Len(str1)
    If str1 = "0" Then GoTo NEXT_1
    If int1 > 12 Then
        MsgBox "單張憑證金額不可超過1萬億元!", vbOKOnly + vbExclamation, "操作提示"
        GetBigMoney = False
        Exit Function
    End If
    For i = int1 To 1 Step -1
        Select Case i
            Case 12
                strMoney = strMoney + GetBigNumber(Mid(str1, 1, 1)) + "仟"
            Case 11
                strOne = Mid(str1, int1 - i + 1, 1)
                If strOne = "0" Then
                    strMoney = strMoney + "零"
                Else
                    strMoney = strMoney + GetBigNumber(strOne) + "佰"
                End If
            Case 10, 6, 2
                strOne = Mid(str1, int1 - i + 1, 1)
                If strOne = "0" Then
                    If Right(strMoney, 1) <> "零" Then strMoney = strMoney + "零"
                Else
                    strMoney = strMoney + GetBigNumber(strOne) + "拾"
                End If
            Case 9
                strOne = Mid(str1, int1 - i + 1, 1)
                If strOne = "0" Then
                    If Right(strMoney, 1) = "零" Then strMoney = Left(strMoney, Len(strMoney) - 1)
                    strMoney = strMoney + "億零"
                Else
                    strMoney = strMoney + GetBigNumber(strOne) + "億"
                End If
            Case 8, 4
                strOne = Mid(str1, int1 - i + 1, 1)
                If strOne = "0" Then
                    If Right(strMoney, 1) <> "零" Then strMoney = strMoney + "零"
                Else
                    strMoney = strMoney + GetBigNumber(strOne) + "仟"
                End If
            Case 7, 3
                strOne = Mid(str1, int1 - i + 1, 1)
                If strOne = "0" Then
                    If Right(strMoney, 1) <> "零" Then strMoney = strMoney + "零"
                Else
                    strMoney = strMoney + GetBigNumber(strOne) + "佰"
                End If
            Case 5
                strOne = Mid(str1, int1 - i + 1, 1)
                If strOne = "0" Then
                    If Right(strMoney, 1) = "零" Then strMoney = Left(strMoney, Len(strMoney) - 1)
                    strMoney = strMoney + "萬零"
                Else
                    strMoney = strMoney + GetBigNumber(strOne) + "萬"
                End If
            Case 1
                strOne = Mid(str1, int1 - i + 1, 1)
                If strOne = "0" Then
                    If Right(strMoney, 1) <> "零" Then
                        strMoney = strMoney + "元"
                    Else
                        strMoney = Left(strMoney, Len(strMoney) - 1) + "元"
                    End If
                Else
                    strMoney = strMoney + GetBigNumber(strOne) + "元"
                End If
        End Select
    Next i
NEXT_1:
    str1 = Right(CStr(Format(sngMoney, "####0.00")), 2)
    If str1 = "00" Then
        strMoney = strMoney + "整"
    Else
        If sngMoney < 1 Then strMoney = "零元"
        If Left(str1, 1) = "0" Then
            strMoney = strMoney + "零"
        Else
            If CInt(Right(CStr(Int(sngMoney)), 1)) = 0 And sngMoney > 1 Then strMoney = strMoney + "零"
            strMoney = strMoney + GetBigNumber(Left(str1, 1)) + "角"
        End If
        If Right(str1, 1) <> "0" Then
            strMoney = strMoney + GetBigNumber(Right(str1, 1)) + "分"
        End If
    End If
    If Len(strMoney) < 4 Then strMoney = "零元零角零分"
    GetBigMoney = True
    Exit Function
ERROR_EXIT:
    m_tagErrInfo.strErrDate = Format(Now, "yyyy-mm-dd hh:mm:ss")
    m_tagErrInfo.strErrFile = "rptPrintSAOrder"
    m_tagErrInfo.strErrFunc = "InitDB"
    m_tagErrInfo.nErrNum = Err.Number
    m_tagErrInfo.strErrDesc = Error(Err.Number) & "初始化數據庫失敗。"
    If Err.Number <> 0 Then Err.Clear
    modErrorInfo.WriteErrLog m_tagErrInfo
    GetBigMoney = False
End Function

Private Function GetBigNumber(strSmall As String) As String
    Select Case strSmall
            Case "0"
                GetBigNumber = "零"
            Case "1"
                GetBigNumber = "壹"
            Case "2"
                GetBigNumber = "貳"
            Case "3"
                GetBigNumber = "叁"
            Case "4"
                GetBigNumber = "肆"
            Case "5"
                GetBigNumber = "伍"
            Case "6"
                GetBigNumber = "陸"
            Case "7"
                GetBigNumber = "柒"
            Case "8"
                GetBigNumber = "捌"
            Case "9"
                GetBigNumber = "玖"
        End Select
End Function

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美另类久久久品| 亚洲欧洲av在线| 丁香婷婷综合网| 香蕉av福利精品导航| 欧美激情自拍偷拍| 国产三级一区二区| 久久免费视频色| 精品少妇一区二区| 欧美大片日本大片免费观看| 欧美一级理论性理论a| 制服丝袜中文字幕亚洲| 欧美精品精品一区| 日韩欧美区一区二| 欧美r级电影在线观看| 91麻豆精品国产91久久久更新时间| 91色综合久久久久婷婷| 成人黄色av电影| 99久久精品一区二区| 午夜精品影院在线观看| 欧美日韩和欧美的一区二区| 丝袜美腿亚洲综合| 亚洲国产精品久久不卡毛片| 91国产丝袜在线播放| 色综合久久中文字幕| 欧美日本免费一区二区三区| 日韩午夜精品视频| 亚洲国产精品成人久久综合一区| 欧美在线播放高清精品| 欧美狂野另类xxxxoooo| 亚洲一区二区三区不卡国产欧美| 色综合久久综合网欧美综合网| 国产午夜精品一区二区三区嫩草| 久久国产精品色婷婷| 精品视频在线免费观看| 亚洲精品日产精品乱码不卡| 91日韩在线专区| 国产精品美女视频| 成人sese在线| 亚洲三级视频在线观看| 国产suv精品一区二区三区| 国产色一区二区| 91在线精品一区二区三区| 国产精品成人免费| 99九九99九九九视频精品| 日本一区二区高清| 99久免费精品视频在线观看| 亚洲天堂av一区| 在线看国产一区| 亚洲国产精品久久人人爱蜜臀| 色综合天天狠狠| 亚洲国产一区二区a毛片| 欧美日韩一区二区三区在线看 | 成人看片黄a免费看在线| 欧美国产激情二区三区| 99免费精品在线| 天天av天天翘天天综合网| 欧美一区二区在线免费观看| 精彩视频一区二区三区| 欧美国产1区2区| 欧美日韩国产一级二级| 久久国产精品色| 国产精品麻豆欧美日韩ww| 97se亚洲国产综合在线| 日韩影院精彩在线| 久久九九久精品国产免费直播| 99在线精品一区二区三区| 午夜婷婷国产麻豆精品| 久久精品一区四区| 欧美曰成人黄网| 国产精品一区二区三区网站| 亚洲精品亚洲人成人网| 欧美mv日韩mv国产| 色综合久久综合| 国产又黄又大久久| 亚洲福中文字幕伊人影院| 久久免费看少妇高潮| 欧美性欧美巨大黑白大战| 国产一区二区精品久久| 亚洲一二三四在线观看| 国产欧美一区二区精品性| 欧美日韩一区二区电影| 国产福利一区二区| 亚洲h精品动漫在线观看| 中文成人av在线| 精品久久久久久久久久久久包黑料| 91视频免费观看| 国产美女娇喘av呻吟久久| 天天av天天翘天天综合网色鬼国产 | 在线一区二区观看| 国产成人免费在线观看| 日韩vs国产vs欧美| 一区二区三区四区亚洲| 国产欧美一区二区精品忘忧草 | 麻豆国产欧美一区二区三区| 日韩一区在线播放| 国产三级一区二区| 欧美成人女星排行榜| 欧美日韩免费观看一区三区| av一区二区三区| 国产91丝袜在线播放0| 蜜臀精品一区二区三区在线观看 | 久久66热re国产| 日韩国产欧美一区二区三区| 一区二区视频在线| 中文字幕一区二区三区在线观看| 久久久另类综合| 精品国产凹凸成av人网站| 欧美一区二区美女| 在线播放中文字幕一区| 欧美三级一区二区| 欧美亚洲综合一区| 在线观看日韩av先锋影音电影院| 不卡一区在线观看| 成人看片黄a免费看在线| 成人一区二区三区| 国产suv精品一区二区883| 国产福利91精品| 国产成人精品免费在线| 成人小视频在线观看| 成人免费高清在线| aaa亚洲精品| 91麻豆国产香蕉久久精品| 91小视频免费观看| 在线日韩一区二区| 欧美三级电影一区| 日韩女优毛片在线| 亚洲精品一线二线三线无人区| 久久综合九色综合久久久精品综合 | 蜜桃一区二区三区四区| 亚洲电影视频在线| 美女精品一区二区| 国产一区二区影院| 成人av在线一区二区| 97se亚洲国产综合在线| 欧美日韩在线播放一区| 欧美精选在线播放| 欧美v日韩v国产v| 国产日产欧美一区二区三区| 国产精品高潮呻吟| 亚洲国产视频在线| 国产精品一区二区在线播放| 99re视频精品| 91精品黄色片免费大全| 久久精品在这里| 亚洲综合一区二区精品导航| 免费观看久久久4p| 国产夫妻精品视频| 在线观看日韩一区| 日韩亚洲欧美在线| 中文字幕在线观看不卡视频| 五月开心婷婷久久| 国产一区在线观看麻豆| 91啪在线观看| 日韩免费视频一区| 亚洲欧美日韩精品久久久久| 日韩 欧美一区二区三区| 国产99久久久国产精品潘金 | 91视频免费观看| 91精品国产欧美日韩| 国产精品人妖ts系列视频| 亚洲成a人片在线不卡一二三区| 国产一区二区导航在线播放| 在线亚洲欧美专区二区| www国产精品av| 亚洲国产一区二区三区青草影视| 国产成人免费9x9x人网站视频| 欧洲精品在线观看| 国产欧美日韩久久| 蜜芽一区二区三区| 91丝袜美女网| 久久久精品免费观看| 日韩国产高清在线| 91农村精品一区二区在线| 欧美精品一区二区在线观看| 亚洲品质自拍视频| 国产传媒一区在线| 日韩女优毛片在线| 亚洲高清视频中文字幕| 成人av电影在线播放| 精品第一国产综合精品aⅴ| 亚洲.国产.中文慕字在线| av成人免费在线| 久久精品一区蜜桃臀影院| 久久99精品国产.久久久久| 欧美日高清视频| 一区二区三区在线观看动漫| 99精品国产热久久91蜜凸| 久久精品人人爽人人爽| 蜜桃91丨九色丨蝌蚪91桃色| 欧美日韩国产区一| 亚洲国产精品久久久久秋霞影院| 日本韩国欧美在线| 18涩涩午夜精品.www| hitomi一区二区三区精品| 国产日韩欧美精品一区| 国产成人午夜精品5599| 久久久久久久网| 国产电影一区在线| 国产精品久久久久久久久久久免费看 | 国产免费观看久久|