⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄

📁 VB开发的ERP系统
💻
📖 第 1 页 / 共 5 页
字号:
      ButtonWidth     =   1138
      ButtonHeight    =   926
      Appearance      =   1
      Style           =   1
      ImageList       =   "ImageList1"
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   11
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "设置"
            Key             =   "ymsz"
            Object.ToolTipText     =   "打印页面设置"
            ImageKey        =   "sz"
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "打印"
            Key             =   "dy"
            ImageKey        =   "dy"
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "预览"
            Key             =   "yl"
            ImageKey        =   "yl"
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "过滤"
            Key             =   "gl"
            ImageKey        =   "gl"
         EndProperty
         BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "入库单"
            Key             =   "rkd"
            Object.ToolTipText     =   "选择入库单"
            ImageKey        =   "rkd"
         EndProperty
         BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "发票"
            Key             =   "fp"
            Object.ToolTipText     =   "选择发票"
            ImageKey        =   "fp"
         EndProperty
         BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "结算"
            Key             =   "js"
            Object.ToolTipText     =   "结算"
            ImageKey        =   "js"
         EndProperty
         BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "帮助"
            Key             =   "bz"
            ImageKey        =   "bz"
         EndProperty
         BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "退出"
            Key             =   "fh"
            ImageKey        =   "tc"
         EndProperty
      EndProperty
      BorderStyle     =   1
      Begin MSComctlLib.ProgressBar ProgressBar1 
         Height          =   105
         Left            =   6390
         TabIndex        =   14
         Top             =   270
         Visible         =   0   'False
         Width           =   3435
         _ExtentX        =   6059
         _ExtentY        =   185
         _Version        =   393216
         Appearance      =   0
         Max             =   2000
      End
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "结算类型:"
      Height          =   180
      Left            =   6960
      TabIndex        =   13
      Top             =   645
      Width           =   810
   End
   Begin VB.Label Lab_Row 
      Alignment       =   2  'Center
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      BackStyle       =   0  'Transparent
      ForeColor       =   &H00FF0000&
      Height          =   211
      Left            =   72
      TabIndex        =   12
      Top             =   0
      Width           =   319
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "结算汇总:"
      Height          =   180
      Left            =   135
      TabIndex        =   11
      Top             =   645
      Width           =   810
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      Caption         =   "结算费用汇总:"
      Height          =   180
      Left            =   105
      TabIndex        =   10
      Top             =   3945
      Width           =   1170
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      Caption         =   "费用分摊方式:"
      Height          =   180
      Left            =   6000
      TabIndex        =   9
      Top             =   3945
      Width           =   1170
   End
End
Attribute VB_Name = "Balance_KF_HandBalance"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'**************************************************************************************
'*    模 块 名 称 :手工结算
'*    功 能 描 述 :
'*    程序员姓名  :周化江
'*    最后修改人  :周化江
'*    最后修改时间:2001/10/16
'*    备        注:程序中所有依实际情况自定义部分均用[>> <<]括起
'*
'*    1.每次调入外部功能窗体,均要加锁ChangeLock=True,窗体关闭后解锁ChangeLock=false
'*
'*    3.Lab_OperStatus 用此标签来标识单据录入状态(默认值为1) 1-浏览 2-修改
'*
'***************************************************************************************
 
'以下为自定义变量
 
'其它固定使用变量
Dim Tsxx As String                              '系统信息提示(Fixed)
Dim ReportTitle As String                       '报表主标题(Fixed)
   
'以下为固定使用变量(网格)
Dim Cxnrrec As New ADODB.Recordset              '显示查询内容动态集
Dim Dyymctbl As New DY_Dyymsz                   '打印页面窗体变量
Dim GridCode As String                          '显示网格网格代码
Dim GridInf() As Variant                        '整个网格设置信息
Dim Pmbcsjhs As Long                            '屏幕网格保持数据行数(大于等于1)
Dim Fzxwghs As Integer                          '辅助项网格行数(包括合计行)
Dim Sfxshjwg As Boolean                         '是否显示合计网格
Dim Qslz As Long                                '网格隐藏(非操作显示)列数
Dim Sjhgd As Double                             '网格数据行高度
Dim GridBoolean() As Boolean                    '网格列信息(布尔型)
Dim GridStr()  As String                        '网格列信息(字符型)
Dim GridInt() As Integer                        '网格列信息(整型)
Dim Sfblbzkd As Boolean                         '是否保留帮助宽度(字段提供帮助时,是否为按钮保留空间)
Dim Dqlrwgh As Long                             '当前录入数据网格行
Dim Dqlrwgl As Long                             '当前录入数据网格列
Dim Dqlkwgh As Long                             '刚刚离开网格行(不一定为录入行)
Dim Dqlkwgl As Long                             '刚刚离开网格列
Dim Dqtoprow As Long                            '当前录入状态时最上端可视行
Dim Dqleftcol As Long                           '当前录入状态时最左端可视列
Dim Zdlrqnr As String                           '字段录入修改前内容(用来判断内容是否修改)
Dim Wbkbhlock As Boolean                        '文本框改变值锁
Dim Changelock As Boolean                       '网格行列改变控制锁(用来区别用户改变.程序改变)
Dim Gdtlock As Boolean                          '滚动条滚动控制(用来区别用户改变.程序改变)
Dim Yxxpdlock As Boolean                        '字段有效性判断锁(内容不修改不需进行字段有效性判断)
Dim Hyxxpdlock As Boolean                       '行有效性判断锁(字段内容不修改不需进行行有效性判断)
Dim Valilock As Boolean                         '文本框失去焦点是否进行有效性控制(TRUE 为锁定*限用网格录入)
Dim Shsfts As Boolean                           '删除记录行是否提示
Dim Szzls As Integer                            '网格信息数组最大下标值(网格列数-1)

'''''''''''''''''''''''
'以下为固定使用变量
Dim GridCode1 As String                   '显示网格网格代码
Dim GridInf1() As Variant                 '整个网格设置信息
Dim Qslz1 As Long                         '网格隐藏(非操作显示)列数
Dim Sjhgd1 As Double                      '网格数据行高度
Dim Sfxshjwg1 As Boolean                  '是否显示合计网格
Dim GridBoolean1() As Boolean             '网格列信息(布尔型)
Dim GridStr1()  As String                 '网格列信息(字符型)
Dim GridInt1() As Integer                 '网格列信息(整型)
Dim Szzls1 As Integer                     '数组总列数(网格列数-1)

''''''''''''''自定义
Dim gridlock As Boolean

Dim Bln_ClrkdKfsc As Boolean
Dim FilterInvoice As String              '发票条件
Dim FilterInOut As String                '入库单中是否存在符合的记录
Dim Collect_BalanceRelation() As New Collection
Dim str_InvoiceFilterCondition As String
Dim str_InOutFilterCondition As String
Dim str_InOutFilterConditionOther As String

Private Sub BanlGrid1_AfterEdit(ByVal Row As Long, ByVal Col As Long)
    With BanlGrid1
        If .ValueMatrix(.Row, 1) = 0 Or .IsSubtotal(.Row) Then
            Exit Sub
        End If
        Select Case .Col
            Case Sydz("013", GridStr1(), Szzls1)
                If .ValueMatrix(.Row, .Col) = 0 Then
                    .TextMatrix(.Row, .Col) = ""
                End If
                Call SubTotal
            Case Sydz("014", GridStr1(), Szzls1)
                If .ValueMatrix(.Row, .Col) = 0 Then
                    .TextMatrix(.Row, .Col) = ""
                End If
                Call SubTotal
            Case Sydz("015", GridStr1(), Szzls1)
                If .ValueMatrix(.Row, .Col) = 0 Then
                    .TextMatrix(.Row, .Col) = ""
                End If
                Call SubTotal
        End Select
    End With

End Sub

Private Sub BanlGrid1_EnterCell()
    With BanlGrid1
        Select Case .Col
            Case Sydz("013", GridStr1(), Szzls1), Sydz("014", GridStr1(), Szzls1), Sydz("015", GridStr1(), Szzls1)     '当发票为负发票时,不允许输入损耗
                If .IsSubtotal(.Row) = False And .ValueMatrix(.Row, 1) = 1 Then
                        gridlock = False
                        BanlGrid1.Editable = True
                Else
                    BanlGrid1.Editable = False
                End If
             Case Else
                gridlock = True
                BanlGrid1.Editable = False
        End Select
    End With
End Sub
Private Sub BanlGrid1_KeyPressEdit(ByVal Row As Long, ByVal Col As Long, KeyAscii As Integer)
    Select Case Col
        Case Sydz("013", GridStr1(), Szzls1), Sydz("015", GridStr1(), Szzls1) '控制合理损耗为有效的数值
            Call check_num_for_grid(BanlGrid1, KeyAscii)
        Case Sydz("014", GridStr1(), Szzls1)      '控制非合理损耗只能为正
            Call check_num_for_grid1(BanlGrid1, KeyAscii)
    End Select
End Sub


Private Sub BanlGrid1_LeaveCell()
    With BanlGrid1
        If .Rows <= 1 Then Exit Sub
        If .ValueMatrix(.Row, 1) = 0 Or .IsSubtotal(.Row) Then
            Exit Sub
        End If
        Select Case .Col
            Case Sydz("013", GridStr1(), Szzls1)
                If .ValueMatrix(.Row, .Col) = 0 Then
                    .TextMatrix(.Row, .Col) = ""
                End If
                Call SubTotal
            Case Sydz("014", GridStr1(), Szzls1)
                If .ValueMatrix(.Row, .Col) = 0 Then
                    .TextMatrix(.Row, .Col) = ""
                End If
                Call SubTotal
            Case Sydz("015", GridStr1(), Szzls1)
                If .ValueMatrix(.Row, .Col) = 0 Then
                    .TextMatrix(.Row, .Col) = ""
                End If
                Call SubTotal
        End Select
    End With
    
End Sub




Private Sub BanlGrid1_LostFocus()
     Call SubTotal
End Sub

Private Sub Form_KeyPress(KeyAscii As Integer)      '限制录入字符"'"

    Select Case KeyAscii
        Case 39           '屏蔽字符"'"
            KeyAscii = 0
    End Select
    
End Sub

Private Sub Form_Load()                              '窗 体 装 入
  
    '初始化各种锁值(Fixed)
    Changelock = False             '网格行列改变控制锁
    Gdtlock = False                '滚动条滚动控制
    Yxxpdlock = True               '字段有效性判断锁
    Hyxxpdlock = True              '行有效性判断锁
    Wbkbhlock = False              '文本框内容改变锁
     
    '报表主标题及报表编码(Fixed)
    ReportTitle = "手工结算列表"
    XtReportCode = "KF_HandBalance"
    Load Dyymctbl
    
    GridCode1 = "KF_HandBalanceTop"      '网格属性编码
    Call BzWgcsh(BanlGrid1, GridCode1, GridInf1(), GridBoolean1(), GridInt1(), GridStr1())
    Qslz1 = GridInf1(1)
    Sjhgd1 = GridInf1(2)
    Sfxshjwg1 = GridInf1(7)
    Szzls1 = BanlGrid1.Cols - 1
    '调 入 网 格(Fixed)
    GridCode = "KF_HandBalanceBottom"      '网格属性编码
    Call BzWgcsh(BanlGrid2, GridCode, GridInf(), GridBoolean(), GridInt(), GridStr())
    
    Qslz = GridInf(1)
    Sjhgd = GridInf(2)
    Pmbcsjhs = GridInf(3)
    Fzxwghs = GridInf(4)
    Sfblbzkd = GridInf(5)
    Shsfts = GridInf(6)
    Sfxshjwg = GridInf(7)
    Szzls = BanlGrid2.Cols - 1
    
    '设置状态为修改状态
    Lab_OperStatus = "2"
    Call FillCombo1(Combo1, "KF_BalanceType", "", 0)
    FilterInvoice = " where 1=1 "
    FilterInOut = " where 1=1 "
    FilterInOut = FilterInOut & " And WhCode in (select whcode from KF_V_WhLimit where ltrim(rtrim(Czybm))='" & Xtczybm & "')"
    Me.InOut_FilterCondition = "  1=2 "
    Me.Invoice_FilterCondition = "  1=2 "
    Bln_ClrkdKfsc = Fun_ClrkdKfsc ''材料入库单是不是由库房生成
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -