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

📄 frmpayedit.frm

📁 Visual Basic + Oracle 9i数据库应用系统开发与实例(企业购销存管理系统)界面简洁,数据库完整,还不错~适合学生利用和使用!
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmPayEdit 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "编辑财务付款"
   ClientHeight    =   4155
   ClientLeft      =   45
   ClientTop       =   345
   ClientWidth     =   6390
   Icon            =   "FrmPayEdit.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4155
   ScaleWidth      =   6390
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Cmd_OK 
      Caption         =   "确 定"
      Height          =   400
      Left            =   1515
      MouseIcon       =   "FrmPayEdit.frx":0CCA
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   18
      Top             =   3600
      Width           =   1300
   End
   Begin VB.CommandButton Cmd_Cancel 
      Cancel          =   -1  'True
      Caption         =   "取 消"
      Height          =   400
      Left            =   3675
      MouseIcon       =   "FrmPayEdit.frx":0FD4
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   17
      Top             =   3600
      Width           =   1300
   End
   Begin VB.Frame Frame3 
      Height          =   3255
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   5895
      Begin VB.ComboBox ComboPay 
         Height          =   300
         ItemData        =   "FrmPayEdit.frx":12DE
         Left            =   4320
         List            =   "FrmPayEdit.frx":12EE
         Style           =   2  'Dropdown List
         TabIndex        =   6
         Top             =   840
         Width           =   1455
      End
      Begin VB.ComboBox ComboId 
         Height          =   300
         ItemData        =   "FrmPayEdit.frx":130A
         Left            =   4320
         List            =   "FrmPayEdit.frx":130C
         Style           =   2  'Dropdown List
         TabIndex        =   5
         Top             =   360
         Width           =   1455
      End
      Begin VB.TextBox txtClient 
         Alignment       =   1  'Right Justify
         Enabled         =   0   'False
         Height          =   270
         Left            =   1320
         MaxLength       =   20
         TabIndex        =   4
         Top             =   855
         Width           =   1455
      End
      Begin VB.ComboBox ComboPayType 
         Height          =   300
         ItemData        =   "FrmPayEdit.frx":130E
         Left            =   1320
         List            =   "FrmPayEdit.frx":1318
         Style           =   2  'Dropdown List
         TabIndex        =   3
         Top             =   360
         Width           =   1455
      End
      Begin VB.TextBox txtAmount 
         Alignment       =   1  'Right Justify
         Height          =   270
         Left            =   1320
         MaxLength       =   20
         TabIndex        =   2
         Top             =   1335
         Width           =   1455
      End
      Begin VB.TextBox txtMemo 
         Height          =   735
         Left            =   1320
         MaxLength       =   100
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   1
         Top             =   2280
         Width           =   4335
      End
      Begin VB.Label lblEmpName 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "EmpName"
         Height          =   180
         Left            =   1320
         TabIndex        =   16
         Top             =   1860
         Width           =   630
      End
      Begin VB.Label lblOptDate 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "OptDate"
         Height          =   180
         Left            =   4320
         TabIndex        =   15
         Top             =   1860
         Width           =   630
      End
      Begin VB.Label Label27 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "经办人"
         Height          =   180
         Left            =   240
         TabIndex        =   14
         Top             =   1860
         Width           =   540
      End
      Begin VB.Label Label9 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "付款日期"
         Height          =   180
         Left            =   3240
         TabIndex        =   13
         Top             =   1860
         Width           =   720
      End
      Begin VB.Label Label21 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "凭单编号"
         Height          =   180
         Left            =   3240
         TabIndex        =   12
         Top             =   420
         Width           =   720
      End
      Begin VB.Label Label24 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "付款方式"
         Height          =   180
         Left            =   3240
         TabIndex        =   11
         Top             =   900
         Width           =   720
      End
      Begin VB.Label Label23 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "客户名称"
         Height          =   180
         Left            =   240
         TabIndex        =   10
         Top             =   900
         Width           =   720
      End
      Begin VB.Label Label22 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "付款类型"
         Height          =   180
         Left            =   240
         TabIndex        =   9
         Top             =   420
         Width           =   720
      End
      Begin VB.Label Label19 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "付款金额"
         Height          =   180
         Left            =   240
         TabIndex        =   8
         Top             =   1380
         Width           =   720
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "备注信息"
         Height          =   180
         Left            =   240
         TabIndex        =   7
         Top             =   2325
         Width           =   720
      End
   End
End
Attribute VB_Name = "FrmPayEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Modify As Boolean
Public OriId As Long
Public OriPayId As Long

Private Function Check() As Boolean
  If Trim(ComboId.Text) = "" Then
    MsgBox "请选择凭单编号"
    Check = False
    Exit Function
  End If
  If txtAmount = "" Then
    MsgBox "请输入付款金额"
    txtAmount.SetFocus
    Check = False
    Exit Function
  End If
  
  Check = True
End Function

Private Sub Cmd_OK_Click()
  Dim TmpId As Long
  
  If Check = False Then
    Exit Sub
  End If
  
  With MyPay
  .OriId = Val(ComboId.Text)
  .CltId = MyClt.GetId(txtClient.Text)
  .PayType = ComboPayType.Text
  .PayWay = ComboPay.Text
  .Amount = Val(txtAmount)
  .EmpName = CurUser.EmpName
  .OptDate = Format(Now, "yyyy-mm-dd")
  .Memo = MakeStr(txtMemo)
  
  If Modify = False Then
    .Insert
  Else
    .Update (OriPayId)
  End If
  End With
  Unload Me
End Sub

Private Sub Cmd_Cancel_Click()
  Unload Me
End Sub

Private Sub ComboId_Click()
  If ComboId.Text = "" Then
    Exit Sub
  End If
  If ComboPayType.ListIndex = 0 Then
    MyOrders.GetInfo (Val(ComboId.Text))
    txtClient = MyClt.GetName(MyOrders.ClientId)
  Else
    MySales.GetInfo (Val(ComboId.Text))
    txtClient = MyClt.GetName(MySales.ClientId)
  End If
End Sub

Private Sub ComboPayType_Click()
  If ComboPayType.ListIndex = 0 Then
    Call MyOrders.LoadId("采购", 0)
  Else
    Call MySales.LoadId("销售退货", 0)
  End If
  ComboId.Clear
  i = 0
  Do While ArrId(i) > 0
    ComboId.AddItem ArrId(i)
    i = i + 1
  Loop
  If OriId = 0 Then
    If ComboId.ListCount > 0 Then
      ComboId.ListIndex = 0
    End If
  Else
    If InCombo(Trim(OriId), ComboId) = True Then
      ComboId.Text = Trim(OriId)
    End If
  End If
  OriId = 0
  If ComboPayType.ListIndex = 0 Then
    MyOrders.GetInfo (Val(ComboId.Text))
    txtClient = MyClt.GetName(MyOrders.ClientId)
  Else
    MySales.GetInfo (Val(ComboId.Text))
    txtClient = MyClt.GetName(MySales.ClientId)
  End If
End Sub

Private Sub txtAmount_KeyPress(KeyAscii As Integer)
  If In_Single(KeyAscii) = False Then
    KeyAscii = 0
  End If
End Sub

⌨️ 快捷键说明

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