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

📄 bomsinglemform2.frm

📁 即时通讯
💻 FRM
📖 第 1 页 / 共 4 页
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{0ECD9B60-23AA-11D0-B351-00A0C9055D8E}#6.0#0"; "MSHFLXGD.OCX"
Begin VB.Form BomSingleMForm2 
   Caption         =   "BOM表明细管理"
   ClientHeight    =   6045
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   8085
   LinkTopic       =   "Form1"
   MDIChild        =   -1  'True
   ScaleHeight     =   6045
   ScaleWidth      =   8085
   Begin VB.CommandButton C_readTree 
      Caption         =   ">>>>"
      Height          =   255
      Left            =   6960
      TabIndex        =   15
      Top             =   3240
      Visible         =   0   'False
      Width           =   615
   End
   Begin VB.TextBox T_bomCost 
      Height          =   375
      Left            =   5040
      TabIndex        =   4
      Top             =   1560
      Width           =   2295
   End
   Begin VB.TextBox T_number 
      Height          =   375
      Left            =   5040
      TabIndex        =   5
      Top             =   2040
      Width           =   2295
   End
   Begin VB.CommandButton C_modify 
      Caption         =   "<<<<"
      Height          =   375
      Left            =   4200
      TabIndex        =   12
      Top             =   3000
      Width           =   615
   End
   Begin MSHierarchicalFlexGridLib.MSHFlexGrid HFG_detail 
      Height          =   2415
      Left            =   4080
      TabIndex        =   11
      Top             =   3600
      Width           =   3855
      _ExtentX        =   6800
      _ExtentY        =   4260
      _Version        =   393216
      Cols            =   11
      FixedCols       =   0
      BackColorFixed  =   13826539
      SelectionMode   =   1
      _NumberOfBands  =   1
      _Band(0).Cols   =   11
   End
   Begin VB.TextBox T_memo 
      Height          =   735
      Left            =   5040
      TabIndex        =   6
      Top             =   2520
      Width           =   2295
   End
   Begin VB.TextBox T_fee 
      Height          =   375
      Left            =   5040
      TabIndex        =   3
      Top             =   1080
      Width           =   2295
   End
   Begin VB.TextBox T_ProcessName 
      Height          =   375
      Left            =   5040
      TabIndex        =   2
      Top             =   600
      Width           =   2295
   End
   Begin VB.TextBox T_name 
      Enabled         =   0   'False
      Height          =   375
      Left            =   5040
      TabIndex        =   1
      Top             =   120
      Width           =   2295
   End
   Begin MSComctlLib.TreeView TV_bomManage 
      Height          =   6015
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   3855
      _ExtentX        =   6800
      _ExtentY        =   10610
      _Version        =   393217
      Style           =   7
      ImageList       =   "ImageList1"
      Appearance      =   1
   End
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   5520
      Top             =   1680
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   16
      ImageHeight     =   16
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   17
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "BomSingleMForm2.frx":0000
            Key             =   "exec"
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "BomSingleMForm2.frx":039A
            Key             =   "xz"
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "BomSingleMForm2.frx":0734
            Key             =   "sc"
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "BomSingleMForm2.frx":0ACE
            Key             =   "sx"
         EndProperty
         BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "BomSingleMForm2.frx":0E68
            Key             =   "cx"
         EndProperty
         BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "BomSingleMForm2.frx":1202
            Key             =   "zd"
         EndProperty
         BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "BomSingleMForm2.frx":159C
            Key             =   "dz"
         EndProperty
         BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "BomSingleMForm2.frx":1936
            Key             =   "ph"
         EndProperty
         BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "BomSingleMForm2.frx":1CD0
            Key             =   "fz"
         EndProperty
         BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "BomSingleMForm2.frx":206A
            Key             =   "Locate"
         EndProperty
         BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "BomSingleMForm2.frx":2404
            Key             =   "hf"
         EndProperty
         BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "BomSingleMForm2.frx":279E
            Key             =   "pz"
         EndProperty
         BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "BomSingleMForm2.frx":2B38
            Key             =   "check"
         EndProperty
         BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "BomSingleMForm2.frx":2ED2
            Key             =   "Sum"
         EndProperty
         BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "BomSingleMForm2.frx":326C
            Key             =   "Total"
         EndProperty
         BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "BomSingleMForm2.frx":3606
            Key             =   "Detail"
         EndProperty
         BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "BomSingleMForm2.frx":39A0
            Key             =   "Order"
         EndProperty
      EndProperty
   End
   Begin VB.Label TsLabel 
      AutoSize        =   -1  'True
      Caption         =   "BOM成本:"
      Height          =   180
      Index           =   5
      Left            =   4200
      TabIndex        =   14
      Top             =   1680
      Width           =   720
   End
   Begin VB.Label TsLabel 
      AutoSize        =   -1  'True
      Caption         =   "数    量:"
      Height          =   180
      Index           =   4
      Left            =   4200
      TabIndex        =   13
      Top             =   2160
      Width           =   810
   End
   Begin VB.Label TsLabel 
      AutoSize        =   -1  'True
      Caption         =   "备    注:"
      Height          =   180
      Index           =   3
      Left            =   4200
      TabIndex        =   10
      Top             =   2640
      Width           =   810
   End
   Begin VB.Label TsLabel 
      AutoSize        =   -1  'True
      Caption         =   "工序费用:"
      Height          =   180
      Index           =   2
      Left            =   4200
      TabIndex        =   9
      Top             =   1200
      Width           =   810
   End
   Begin VB.Label TsLabel 
      AutoSize        =   -1  'True
      Caption         =   "工序名称:"
      Height          =   180
      Index           =   0
      Left            =   4200
      TabIndex        =   8
      Top             =   720
      Width           =   810
   End
   Begin VB.Label TsLabel 
      AutoSize        =   -1  'True
      Caption         =   "BOM 名称:"
      Height          =   180
      Index           =   1
      Left            =   4200
      TabIndex        =   7
      Top             =   240
      Width           =   810
   End
   Begin VB.Menu PM_treeOperator 
      Caption         =   "PM_treeOperator"
      Visible         =   0   'False
      Begin VB.Menu m_newFirstBom 
         Caption         =   "新建根BOM"
         Visible         =   0   'False
      End
      Begin VB.Menu m_modiFirstNode 
         Caption         =   "修改根BOM"
      End
      Begin VB.Menu m_calCost 
         Caption         =   "计算成本"
      End
   End
   Begin VB.Menu PM_listOperator 
      Caption         =   "PM_listOperator"
      Visible         =   0   'False
      Begin VB.Menu m_newRow 
         Caption         =   "新增物料"
      End
      Begin VB.Menu m_deleteRow 
         Caption         =   "删除物料"
      End
      Begin VB.Menu m_selectMateral 
         Caption         =   "选择Bom"
         Begin VB.Menu m_selectGoods 
            Caption         =   "原料"
         End
         Begin VB.Menu m_selectPart 
            Caption         =   "零件"
         End
         Begin VB.Menu m_selectProduction 
            Caption         =   "产品"
         End
         Begin VB.Menu m_selectBom 
            Caption         =   "BOM"
         End
      End
      Begin VB.Menu m_copyBom 
         Caption         =   "复制"
      End
   End
End
Attribute VB_Name = "BomSingleMForm2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private m_bomDAO As BomDAO             ' 仓库数据库操作类
Private m_recordset As ADODB.Recordset ' 数据操作数据集对象

Public m_operatorType As Integer       ' 操作类型  0 - 新增  1 - 修改
'Public m_bomId As String               ' 管理的BOM表的BOM ID(树中当前选中的)
Private m_parentBom   As BomNode         '  树中当前选中的BOM节点,列表中节点的父节点
Public m_currentLevel As Integer       ' 当前操作树所选择的层 1 - 产品层(只有一个结点) 0 - 树结点中为空
Public m_currentNode  As Integer       ' 当前选中的树结点的序号

Public m_detailRowCount As Integer     ' 明细列表的总行总
Private m_onTextChange  As Boolean     ' 输入框改变事件是否可行 事件执行开关
Private m_currentSelectNode As Node    ' 当前选中的节点
'**************************************
'*    功 能 描 述 :把列表中的记录更新到树中的操作
'*    输 入 参 数 :无
'*    输 出 能 数 :无
'**************************************
Private Sub C_modify_Click()
    ' 检查当前编辑的父结点是原料结点则不能保存其下一级的各结点
    If m_currentLevel <> 0 Then
        If m_parentBom.materialType = 0 Then
            MainForm.g_msgText = "现在的父结点是零件,不能新增子BOM"
            HMsgBox MainForm.g_msgText, 0, 1
            Exit Sub
        End If
    End If
    ' 保存进树中
    SaveListToTree
End Sub

Private Sub C_readTree_Click()
'    Dim q As queryType
'    Dim s As String
'    q.name = "jackyc"
'    s = q.name
End Sub

Private Sub Form_Load()
    Set m_bomDAO = New BomDAO
    Set m_recordset = New ADODB.Recordset
    
    m_onTextChange = True
    
    Me.caption = "BOM表明细管理"
    Me.Height = 6450
    Me.Width = 8205
    SetToCenter Me
    
    RefreshListTitle
    
    ' 新建BOM树的根节点
    'CreateLastNode

⌨️ 快捷键说明

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