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

📄 positionsingleform.frm

📁 即时通讯
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.ocx"
Begin VB.Form positionsingleform 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Form2"
   ClientHeight    =   4275
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   6795
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4275
   ScaleWidth      =   6795
   Begin VB.Frame Frame2 
      Height          =   735
      Left            =   0
      TabIndex        =   22
      Top             =   3480
      Width           =   6735
      Begin VB.CommandButton c_cancel 
         Caption         =   "退出"
         Height          =   375
         Left            =   5880
         TabIndex        =   25
         Top             =   240
         Width           =   735
      End
      Begin VB.CommandButton c_save 
         Caption         =   "保存"
         Default         =   -1  'True
         Height          =   375
         Left            =   4680
         TabIndex        =   24
         Top             =   240
         Width           =   735
      End
      Begin VB.CommandButton c_new 
         Caption         =   "新增"
         Height          =   375
         Left            =   3480
         TabIndex        =   23
         Top             =   240
         Width           =   735
      End
   End
   Begin VB.Frame Frame1 
      Height          =   3615
      Left            =   0
      TabIndex        =   0
      Top             =   -120
      Width           =   6735
      Begin VB.CommandButton Command1 
         Height          =   240
         Left            =   3030
         Picture         =   "positionsingleform.frx":0000
         Style           =   1  'Graphical
         TabIndex        =   35
         Top             =   750
         Width           =   300
      End
      Begin VB.TextBox Text5 
         Height          =   300
         Left            =   1320
         TabIndex        =   34
         Top             =   720
         Width           =   2055
      End
      Begin VB.TextBox Text4 
         Alignment       =   1  'Right Justify
         Height          =   300
         Left            =   1320
         MaxLength       =   10
         TabIndex        =   33
         Text            =   "1"
         Top             =   2640
         Width           =   2055
      End
      Begin VB.TextBox Text3 
         Alignment       =   1  'Right Justify
         Height          =   300
         Left            =   4560
         MaxLength       =   10
         TabIndex        =   32
         Text            =   "1"
         Top             =   2160
         Width           =   2055
      End
      Begin VB.TextBox Text2 
         Alignment       =   1  'Right Justify
         Height          =   300
         Left            =   1320
         MaxLength       =   10
         TabIndex        =   31
         Text            =   "1"
         Top             =   2160
         Width           =   2055
      End
      Begin VB.ComboBox Combo2 
         Enabled         =   0   'False
         Height          =   300
         Left            =   1320
         TabIndex        =   27
         Top             =   720
         Visible         =   0   'False
         Width           =   1575
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         Left            =   1320
         TabIndex        =   26
         Top             =   240
         Width           =   2055
      End
      Begin MSComCtl2.DTPicker DTPicker1 
         Height          =   300
         Left            =   1320
         TabIndex        =   21
         Top             =   3720
         Width           =   2055
         _ExtentX        =   3625
         _ExtentY        =   529
         _Version        =   393216
         Format          =   71303169
         CurrentDate     =   38602
      End
      Begin VB.TextBox Text1 
         Height          =   300
         Index           =   9
         Left            =   1320
         MaxLength       =   255
         TabIndex        =   20
         Top             =   3120
         Width           =   5295
      End
      Begin VB.TextBox T_lowerlimmit 
         Alignment       =   1  'Right Justify
         Height          =   300
         Index           =   7
         Left            =   4560
         MaxLength       =   8
         TabIndex        =   19
         Text            =   "0"
         Top             =   1200
         Width           =   2055
      End
      Begin VB.TextBox T_upperlimmit 
         Alignment       =   1  'Right Justify
         Height          =   300
         Index           =   6
         Left            =   4560
         MaxLength       =   8
         TabIndex        =   18
         Text            =   "0"
         Top             =   720
         Width           =   2055
      End
      Begin VB.TextBox T_money 
         Alignment       =   1  'Right Justify
         Height          =   300
         Index           =   5
         Left            =   1320
         MaxLength       =   8
         TabIndex        =   17
         Top             =   1680
         Width           =   2055
      End
      Begin VB.TextBox T_cost 
         Alignment       =   1  'Right Justify
         Height          =   300
         Index           =   4
         Left            =   1320
         MaxLength       =   8
         TabIndex        =   16
         Top             =   1200
         Width           =   2055
      End
      Begin VB.TextBox T_quantity 
         Alignment       =   1  'Right Justify
         Height          =   300
         Index           =   3
         Left            =   4560
         MaxLength       =   8
         TabIndex        =   15
         Top             =   1680
         Width           =   2055
      End
      Begin VB.TextBox Text1 
         Height          =   300
         Index           =   2
         Left            =   4560
         MaxLength       =   20
         TabIndex        =   14
         Top             =   240
         Width           =   2055
      End
      Begin VB.TextBox Text1 
         Enabled         =   0   'False
         Height          =   300
         Index           =   1
         Left            =   1320
         TabIndex        =   13
         Top             =   240
         Visible         =   0   'False
         Width           =   2055
      End
      Begin VB.TextBox Text1 
         Height          =   300
         Index           =   0
         Left            =   1320
         TabIndex        =   12
         Top             =   240
         Visible         =   0   'False
         Width           =   2055
      End
      Begin VB.Label Label4 
         Caption         =   "位    号:"
         Height          =   255
         Left            =   360
         TabIndex        =   30
         Top             =   2760
         Width           =   1095
      End
      Begin VB.Label Label3 
         Caption         =   "层    号:"
         Height          =   255
         Left            =   3600
         TabIndex        =   29
         Top             =   2280
         Width           =   975
      End
      Begin VB.Label Label2 
         Caption         =   "架    号:"
         Height          =   255
         Left            =   360
         TabIndex        =   28
         Top             =   2280
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "备注"
         Height          =   255
         Index           =   10
         Left            =   360
         TabIndex        =   11
         Top             =   3240
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "存物有效期"
         Height          =   255
         Index           =   9
         Left            =   360
         TabIndex        =   10
         Top             =   3720
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "存物名称:"
         Height          =   255
         Index           =   8
         Left            =   360
         TabIndex        =   9
         Top             =   840
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "存物类别:"
         Height          =   255
         Index           =   7
         Left            =   360
         TabIndex        =   8
         Top             =   360
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "库存下限:"
         Height          =   255
         Index           =   6
         Left            =   3600
         TabIndex        =   7
         Top             =   1260
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "库存上限:"
         Height          =   255
         Index           =   5
         Left            =   3600
         TabIndex        =   6
         Top             =   760
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "库存金额:"
         Height          =   255
         Index           =   4
         Left            =   360
         TabIndex        =   5
         Top             =   1800
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "库存成本:"
         Height          =   255
         Index           =   3
         Left            =   360
         TabIndex        =   4
         Top             =   1320
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "库存的数量:"
         Height          =   255
         Index           =   2
         Left            =   3435
         TabIndex        =   3
         Top             =   1740
         Width           =   1095
      End
      Begin VB.Label Label1 
         Caption         =   "库位名称:"
         Height          =   255
         Index           =   1
         Left            =   3600
         TabIndex        =   2
         Top             =   320
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "仓库ID"
         Height          =   255
         Index           =   0
         Left            =   360
         TabIndex        =   1
         Top             =   360
         Visible         =   0   'False
         Width           =   975
      End
   End
End
Attribute VB_Name = "positionsingleform"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'**************************************
'*    模 块 名 称 :库存资料管理用户操作界面
'*    功 能 描 述 :库存资料管理用户操作界面
'*    程序员姓名  : 石春晓
'*    最后修改人  : 石春晓
'*    最后修改时间:2005/09/07
'**************************************
Option Explicit
Public m_operatorType As Integer       ' 操作类型 0 - 新增 1 - 修改
Public m_positionId  As String        ' 修改时其它窗体传递过来的参数
Private m_positionDAO As positionDAO ' 数据库操作类
Private m_bomDAO As BomDAO
Private m_recordset As ADODB.Recordset ' 数据操作数据集对象
Private m_stockorderDAO As stockorderDAO
Private m_productionDAO As productionDAO
Private m_partDAO As partDAO
Public f As String
Public warehouseid As String
Public articleid As String
Public articletype As String
Dim A As Single
Dim b As Single

Private m_exitFromButton As Boolean      ' 标志用户是否从确认按钮退出



Private Sub c_cancel_Click()
    Unload Me
End Sub

Private Sub c_new_Click()
    Call Check
    If m_operatorType = 0 Then
        If f = "0" Then
           Exit Sub
        Else
           Call Newposition
           clear
        End If
    ElseIf m_operatorType = 1 Then
        Call Modifyposition
        clear
        m_operatorType = 0
        Combo1.Enabled = True
        Text5.Enabled = True
    End If

End Sub

Private Sub c_save_Click()
    Call Check
    If m_operatorType = 0 Or m_operatorType = 2 Then
        If f = "0" Then
           Exit Sub
        Else
           Call Newposition
        End If
    ElseIf m_operatorType = 1 Then
        If f = "0" Then
           Exit Sub
        Else
           Call Modifyposition
        End If
    End If
    m_exitFromButton = True
    Unload Me
End Sub

Private Sub Combo1_Click()
    Text5.text = ""
End Sub

Private Sub Command1_Click()
    If Combo1.text <> "" Then
        If Combo1.text = "原料" Then
            QueryFom.m_currentQuery = QUERY_GOODS
            QueryFom.show 1
            m_stockorderDAO.showgoods m_recordset, MainForm.g_application.m_queryResultId
            With m_recordset
                If Not .EOF Then
                    Text5.text = Trim(.Fields("name"))                         '商品名称
                    Text5.Tag = Trim(.Fields("goodsid"))                      '商品编号
                    Text1(2).text = Trim(.Fields("name")) + "库位"
                End If
            End With
            m_recordset.Close
        End If
        
        If Combo1.text = "产品" Then
            QueryFom.m_currentQuery = QUERY_PRODUCTION1
            QueryFom.show vbModal
            ' 如果此原料已有BOM记录,则调出些条BOM的信息
             m_productionDAO.Findproduction m_recordset, Trim(MainForm.g_application.m_queryResultId)

⌨️ 快捷键说明

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