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

📄 addrow8.frm

📁 一个关于电脑管理汽车的软件
💻 FRM
字号:
VERSION 5.00
Object = "{40D97E01-4259-4398-B597-183C348B488F}#1.0#0"; "BSE.ocx"
Begin VB.Form AddRow8 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "零件项目编辑"
   ClientHeight    =   6105
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   6105
   ScaleWidth      =   4680
   StartUpPosition =   3  'Windows Default
   Begin VB.Frame Frame1 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   5415
      Left            =   0
      TabIndex        =   2
      Top             =   0
      Width           =   4695
      Begin VB.CommandButton cmdFind2 
         Height          =   375
         Left            =   4200
         Picture         =   "AddRow8.frx":0000
         Style           =   1  'Graphical
         TabIndex        =   22
         Top             =   960
         Width           =   375
      End
      Begin VB.CommandButton cmdFind 
         Height          =   375
         Left            =   3720
         Picture         =   "AddRow8.frx":014A
         Style           =   1  'Graphical
         TabIndex        =   21
         Top             =   480
         Width           =   375
      End
      Begin VB.TextBox TexGoods 
         Height          =   375
         Index           =   5
         Left            =   1440
         TabIndex        =   20
         Top             =   4320
         Width           =   2295
      End
      Begin VB.ComboBox Combo1 
         Height          =   315
         Index           =   2
         Left            =   1440
         TabIndex        =   17
         Top             =   3360
         Width           =   2295
      End
      Begin VB.TextBox TexGoods 
         Height          =   375
         Index           =   0
         Left            =   1440
         TabIndex        =   9
         Top             =   480
         Width           =   2295
      End
      Begin VB.TextBox TexGoods 
         Height          =   375
         Index           =   1
         Left            =   1440
         TabIndex        =   8
         Top             =   960
         Width           =   2775
      End
      Begin VB.ComboBox Combo1 
         Height          =   315
         Index           =   0
         Left            =   1440
         TabIndex        =   7
         Top             =   1920
         Width           =   2295
      End
      Begin VB.ComboBox Combo1 
         Height          =   315
         Index           =   1
         Left            =   1440
         TabIndex        =   6
         Top             =   2400
         Width           =   2295
      End
      Begin VB.TextBox TexGoods 
         Height          =   375
         Index           =   2
         Left            =   1440
         TabIndex        =   5
         Top             =   1440
         Width           =   2295
      End
      Begin VB.TextBox TexGoods 
         Height          =   375
         Index           =   3
         Left            =   1440
         TabIndex        =   4
         Top             =   2880
         Width           =   2295
      End
      Begin VB.TextBox TexGoods 
         Height          =   375
         Index           =   4
         Left            =   1440
         TabIndex        =   3
         Top             =   3840
         Width           =   2295
      End
      Begin VB.Label Label1 
         Caption         =   "金额:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   255
         Index           =   5
         Left            =   240
         TabIndex        =   19
         Top             =   4320
         Width           =   1215
      End
      Begin VB.Label Label1 
         Caption         =   "销售价格:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   255
         Index           =   4
         Left            =   240
         TabIndex        =   18
         Top             =   3840
         Width           =   1215
      End
      Begin VB.Label Label1 
         Caption         =   "货品编码:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   255
         Index           =   0
         Left            =   240
         TabIndex        =   16
         Top             =   480
         Width           =   1215
      End
      Begin VB.Label Label1 
         Caption         =   "货物名称:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   255
         Index           =   1
         Left            =   240
         TabIndex        =   15
         Top             =   960
         Width           =   1215
      End
      Begin VB.Label Label1 
         Caption         =   "规格型号:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   255
         Index           =   2
         Left            =   240
         TabIndex        =   14
         Top             =   1440
         Width           =   1215
      End
      Begin VB.Label Label1 
         Caption         =   "商标品牌:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   255
         Index           =   7
         Left            =   240
         TabIndex        =   13
         Top             =   1920
         Width           =   1215
      End
      Begin VB.Label Label1 
         Caption         =   "产地:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   255
         Index           =   9
         Left            =   240
         TabIndex        =   12
         Top             =   2400
         Width           =   1215
      End
      Begin VB.Label Label1 
         Caption         =   "数量:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   255
         Index           =   10
         Left            =   240
         TabIndex        =   11
         Top             =   2880
         Width           =   1215
      End
      Begin VB.Label Label1 
         Caption         =   "单位:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   255
         Index           =   3
         Left            =   240
         TabIndex        =   10
         Top             =   3360
         Width           =   1215
      End
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确 定"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   600
      TabIndex        =   1
      Top             =   5520
      Width           =   1215
   End
   Begin VB.CommandButton cmdCancel 
      Caption         =   "取 消"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   2760
      TabIndex        =   0
      Top             =   5520
      Width           =   1215
   End
   Begin BSE_Engine.BSE BSE1 
      Left            =   960
      Top             =   5640
      _ExtentX        =   6588
      _ExtentY        =   1085
   End
End
Attribute VB_Name = "AddRow8"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
 Unload Me
End Sub

Private Sub cmdFind_Click()
 VarInitData.SearGoodsBS = 8
 SearchGoods2.Show 1
End Sub

Private Sub cmdFind2_Click()
 VarInitData.SearchSimpleCodeBS = 9
 SimpleCodeFind.Show 1
End Sub

Private Sub cmdOk_Click()
 Dim TempIndex As Long
 Dim TempCount As Long
 Dim i As Long
 Dim TempMoney As Double
 With MeetCarBill.lstBillDocu(1)
  If MeetCarBill.ModifyBS = False Then
   .ListItems.Add
   TempIndex = .ListItems.Count
  Else
   TempIndex = .SelectedItem.Index
  End If
  With .ListItems(TempIndex)
   .Text = TexGoods(0)
   .SubItems(1) = TexGoods(1)
   .SubItems(2) = TexGoods(2)
   .SubItems(3) = Combo1(0)
   .SubItems(4) = Combo1(1)
   .SubItems(5) = TexGoods(3)
   .SubItems(6) = Combo1(2)
   .SubItems(7) = TexGoods(4)
   .SubItems(8) = TexGoods(5)
  End With
 End With
 With MeetCarBill
  .ModifyBS = False
  TempCount = .lstBillDocu(1).ListItems.Count
  TempMoney = 0
  For i = 1 To TempCount
   TempMoney = TempMoney + Val(.lstBillDocu(1).ListItems(i).SubItems(8))
  Next i
  .Label2(3) = VarFunction.DefFormat(TempMoney)
 End With
 Unload Me
End Sub


Private Sub Combo1_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer)
 Combo1(Index).Text = ""
End Sub

Private Sub Combo1_KeyUp(Index As Integer, KeyCode As Integer, Shift As Integer)
 Combo1(Index).Text = ""
End Sub

Private Sub Form_Load()
 Dim TempSQL As String
 Dim i As Integer
 VarInitData.InitBSE BSE1, 0
 LockText
 For i = 3 To 5
  TempSQL = VarInitData.DisplayDynSQLVal(VarInitData.SureNameFrIndex(i))
  VarInitData.LoadData Combo1(i - 3), TempSQL, 1
 Next i
 With MeetCarBill
  If .ModifyBS = True Then
   With .lstBillDocu(1).SelectedItem
    TexGoods(0) = .Text
    TexGoods(1) = .SubItems(1)
    TexGoods(2) = .SubItems(2)
    Combo1(0) = .SubItems(3)
    Combo1(1) = .SubItems(4)
    TexGoods(3) = .SubItems(5)
    Combo1(2) = .SubItems(6)
    TexGoods(4) = .SubItems(7)
    TexGoods(5) = .SubItems(8)
   End With
  End If
 End With

End Sub

Private Sub Form_Unload(Cancel As Integer)
 If BSE1.EngineStarted Then BSE1.EndSubClassing
 MeetCarBill.ModifyBS = False
End Sub



Private Sub TexGoods_Change(Index As Integer)
 If Index = 3 Or Index = 4 Then
  TexGoods(5) = Format(Val(TexGoods(3)) * Val(TexGoods(4)), "0.00")
 End If
End Sub

Private Sub TexGoods_LostFocus(Index As Integer)
 If Index = 4 Or Index = 5 Then
  TexGoods(Index) = Format(TexGoods(Index), "0.00")
 End If
End Sub
Private Sub LockText()
 Dim i As Integer
 For i = 0 To 2
  TexGoods(i).Locked = True
 Next i
 cmdFind2.Visible = False
End Sub

⌨️ 快捷键说明

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