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

📄 transactiondetailaddedit.frm

📁 This application i made for handle simple finance this project using VB 6.0, SQL Server 2000 wit
💻 FRM
字号:
VERSION 5.00
Object = "{D18BBD1F-82BB-4385-BED3-E9D31A3E361E}#1.0#0"; "KewlButtonz.ocx"
Begin VB.Form frmTransactionDetailAddEdit 
   BackColor       =   &H00FBF7F4&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Transaction"
   ClientHeight    =   4350
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5625
   BeginProperty Font 
      Name            =   "Verdana"
      Size            =   8.25
      Charset         =   0
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "TransactionDetailAddEdit.frx":0000
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   290
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   375
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin KewlButtonz.KewlButtons btnCancel 
      Height          =   390
      Left            =   4125
      TabIndex        =   13
      Top             =   3600
      Width           =   1290
      _ExtentX        =   2275
      _ExtentY        =   688
      BTYPE           =   3
      TX              =   "&Cancel"
      ENAB            =   -1  'True
      BeginProperty FONT {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Verdana"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      COLTYPE         =   1
      FOCUSR          =   -1  'True
      BCOL            =   15002603
      BCOLO           =   15002603
      FCOL            =   0
      FCOLO           =   0
      MCOL            =   12632256
      MPTR            =   1
      MICON           =   "TransactionDetailAddEdit.frx":0EBA
      UMCOL           =   -1  'True
      SOFT            =   0   'False
      PICPOS          =   0
      NGREY           =   0   'False
      FX              =   0
      HAND            =   0   'False
      CHECK           =   0   'False
      VALUE           =   0   'False
   End
   Begin KewlButtonz.KewlButtons btnSave 
      Height          =   390
      Left            =   2775
      TabIndex        =   12
      Top             =   3600
      Width           =   1290
      _ExtentX        =   2275
      _ExtentY        =   688
      BTYPE           =   3
      TX              =   "&Save"
      ENAB            =   -1  'True
      BeginProperty FONT {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Verdana"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      COLTYPE         =   1
      FOCUSR          =   -1  'True
      BCOL            =   15002603
      BCOLO           =   15002603
      FCOL            =   0
      FCOLO           =   0
      MCOL            =   12632256
      MPTR            =   1
      MICON           =   "TransactionDetailAddEdit.frx":0ED6
      UMCOL           =   -1  'True
      SOFT            =   0   'False
      PICPOS          =   0
      NGREY           =   0   'False
      FX              =   0
      HAND            =   0   'False
      CHECK           =   0   'False
      VALUE           =   0   'False
   End
   Begin VB.ComboBox lstMutasi 
      Height          =   315
      Left            =   1650
      Style           =   2  'Dropdown List
      TabIndex        =   11
      Top             =   2925
      Width           =   1890
   End
   Begin VB.TextBox txtJumlah 
      Alignment       =   1  'Right Justify
      Appearance      =   0  'Flat
      Height          =   315
      Left            =   1650
      MaxLength       =   12
      TabIndex        =   9
      Text            =   "0"
      Top             =   2550
      Width           =   1815
   End
   Begin VB.ComboBox lstAccount 
      Height          =   315
      Left            =   1650
      Style           =   2  'Dropdown List
      TabIndex        =   3
      Top             =   1425
      Width           =   3765
   End
   Begin VB.ComboBox lstArea 
      Height          =   315
      Left            =   1650
      Style           =   2  'Dropdown List
      TabIndex        =   7
      Top             =   2175
      Width           =   3765
   End
   Begin VB.TextBox txtWo 
      Appearance      =   0  'Flat
      Height          =   315
      Left            =   1650
      MaxLength       =   5
      TabIndex        =   5
      Top             =   1800
      Width           =   1815
   End
   Begin VB.TextBox txtUraian 
      Appearance      =   0  'Flat
      Height          =   315
      Left            =   1650
      MaxLength       =   50
      TabIndex        =   1
      Top             =   1050
      Width           =   3765
   End
   Begin Irfan.IrfanHeader ihdForm 
      Align           =   1  'Align Top
      Height          =   825
      Left            =   0
      Top             =   0
      Width           =   5625
      _ExtentX        =   9922
      _ExtentY        =   1455
      Text            =   "Transaction"
   End
   Begin VB.Label lblForm 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "&Mutasi:"
      Height          =   195
      Index           =   5
      Left            =   225
      TabIndex        =   10
      Top             =   2970
      Width           =   615
   End
   Begin VB.Label lblForm 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "&Jumlah:"
      Height          =   195
      Index           =   4
      Left            =   225
      TabIndex        =   8
      Top             =   2595
      Width           =   675
   End
   Begin VB.Label lblForm 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "Kode A&rea:"
      Height          =   195
      Index           =   3
      Left            =   225
      TabIndex        =   6
      Top             =   2220
      Width           =   975
   End
   Begin VB.Label lblForm 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "&Work Order:"
      Height          =   195
      Index           =   2
      Left            =   225
      TabIndex        =   4
      Top             =   1845
      Width           =   1080
   End
   Begin VB.Label lblForm 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "Kode &Account:"
      Height          =   195
      Index           =   1
      Left            =   225
      TabIndex        =   2
      Top             =   1470
      Width           =   1245
   End
   Begin VB.Label lblForm 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "&Uraian:"
      Height          =   195
      Index           =   0
      Left            =   225
      TabIndex        =   0
      Top             =   1095
      Width           =   630
   End
End
Attribute VB_Name = "frmTransactionDetailAddEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private newIdx As Integer
Private lx As MSComctlLib.ListItem

Private Sub btnCancel_Click()

  Call Unload(Me)

End Sub

Private Sub btnSave_Click()

  btnSave.Enabled = False

  If (Not (ValidSave())) Then
    btnSave.Enabled = True
    Exit Sub
  End If

  Select Case (frmTransactionAddEdit.sMenu)
  Case (SelectedSubMenu.Add)

    Select Case (frmTransaction.sMenu)
    Case (SelectedSubMenu.Add)

      Set lx = frmTransactionAddEdit.lvDetail.ListItems.Add(, , , , 1)
        Call lx.ListSubItems.Add(, , Trim(txtUraian.Text))
        Call lx.ListSubItems.Add(, , Left(lstAccount.Text, 6))
        Call lx.ListSubItems.Add(, , Trim(txtWo.Text))
        Call lx.ListSubItems.Add(, , Left(lstArea.Text, 3))

        If (lstMutasi.ListIndex = 0) Then
          Call lx.ListSubItems.Add(, , Format(txtJumlah.Text, INTNUMFORMAT))
          Call lx.ListSubItems.Add(, , "0")
        Else
          Call lx.ListSubItems.Add(, , "0")
          Call lx.ListSubItems.Add(, , Format(txtJumlah.Text, INTNUMFORMAT))
        End If

      lx.Tag = "-1" & "

⌨️ 快捷键说明

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