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

📄 productschemesingleform.frm

📁 即时通讯
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Begin VB.Form ProductSchemeSingleForm 
   Caption         =   "生产计划资料"
   ClientHeight    =   5280
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5475
   LinkTopic       =   "Form1"
   ScaleHeight     =   5280
   ScaleWidth      =   5475
   Begin VB.Frame Frame3 
      Height          =   735
      Left            =   0
      TabIndex        =   27
      Top             =   0
      Width           =   5415
      Begin VB.CommandButton Command1 
         Height          =   240
         Left            =   2200
         Picture         =   "ProductSchemeSingleForm.frx":0000
         Style           =   1  'Graphical
         TabIndex        =   32
         Top             =   270
         Width           =   300
      End
      Begin VB.TextBox T_no 
         Enabled         =   0   'False
         Height          =   300
         Left            =   3120
         TabIndex        =   30
         Text            =   "Text1"
         Top             =   240
         Width           =   1815
      End
      Begin VB.TextBox T_production 
         Enabled         =   0   'False
         Height          =   300
         Left            =   1080
         TabIndex        =   28
         Top             =   240
         Width           =   1455
      End
      Begin VB.Label TsLabel 
         AutoSize        =   -1  'True
         Caption         =   "单号:"
         Height          =   180
         Index           =   11
         Left            =   2640
         TabIndex        =   31
         Top             =   360
         Width           =   450
      End
      Begin VB.Label L_selectProduction 
         Caption         =   "计划物料:"
         ForeColor       =   &H00000000&
         Height          =   300
         Left            =   240
         TabIndex        =   29
         Top             =   360
         Width           =   855
      End
   End
   Begin VB.Frame Frame2 
      BorderStyle     =   0  'None
      Height          =   495
      Left            =   240
      TabIndex        =   14
      Top             =   4800
      Width           =   5175
      Begin VB.CommandButton c_new 
         Caption         =   "新 增"
         Height          =   375
         Left            =   2400
         TabIndex        =   17
         Top             =   0
         Visible         =   0   'False
         Width           =   735
      End
      Begin VB.CommandButton c_cancel 
         Caption         =   "取 消"
         Height          =   375
         Left            =   4080
         TabIndex        =   16
         Top             =   0
         Width           =   735
      End
      Begin VB.CommandButton c_save 
         Caption         =   "保 存"
         Height          =   375
         Left            =   3240
         TabIndex        =   15
         Top             =   0
         Width           =   735
      End
   End
   Begin VB.Frame Frame1 
      Height          =   3975
      Left            =   0
      TabIndex        =   0
      Top             =   720
      Width           =   5415
      Begin VB.CommandButton Command3 
         Height          =   240
         Left            =   4600
         Picture         =   "ProductSchemeSingleForm.frx":01F2
         Style           =   1  'Graphical
         TabIndex        =   34
         Top             =   2190
         Width           =   300
      End
      Begin VB.CommandButton Command2 
         Height          =   240
         Left            =   2200
         Picture         =   "ProductSchemeSingleForm.frx":03E4
         Style           =   1  'Graphical
         TabIndex        =   33
         Top             =   2190
         Width           =   300
      End
      Begin VB.TextBox T_finishDate 
         Enabled         =   0   'False
         Height          =   300
         Left            =   3480
         MaxLength       =   10
         TabIndex        =   25
         Text            =   "Text1"
         Top             =   2160
         Width           =   1455
      End
      Begin VB.TextBox T_groupNo 
         Enabled         =   0   'False
         Height          =   300
         Left            =   1080
         MaxLength       =   4
         TabIndex        =   3
         Text            =   "Text1"
         Top             =   1440
         Width           =   1455
      End
      Begin VB.TextBox T_makeBillDate 
         Enabled         =   0   'False
         Height          =   300
         Left            =   3480
         MaxLength       =   10
         TabIndex        =   21
         Text            =   "Text1"
         Top             =   1440
         Width           =   1455
      End
      Begin VB.TextBox T_beginDate 
         Enabled         =   0   'False
         Height          =   300
         Left            =   1080
         MaxLength       =   10
         TabIndex        =   20
         Text            =   "Text1"
         Top             =   2160
         Width           =   1455
      End
      Begin VB.TextBox T_totalMoney 
         Enabled         =   0   'False
         Height          =   375
         Left            =   8280
         MaxLength       =   8
         TabIndex        =   18
         Text            =   "0"
         Top             =   2520
         Visible         =   0   'False
         Width           =   1455
      End
      Begin VB.TextBox T_name 
         Height          =   300
         Left            =   1080
         MaxLength       =   20
         TabIndex        =   1
         Text            =   "Text1"
         Top             =   240
         Width           =   3855
      End
      Begin VB.TextBox T_specification 
         Height          =   375
         Left            =   6120
         TabIndex        =   4
         Text            =   "Text1"
         Top             =   1320
         Visible         =   0   'False
         Width           =   1455
      End
      Begin VB.TextBox T_singleNum 
         Height          =   375
         Left            =   6120
         TabIndex        =   5
         Text            =   "0"
         Top             =   960
         Visible         =   0   'False
         Width           =   1455
      End
      Begin VB.TextBox T_totalNum 
         Alignment       =   1  'Right Justify
         Height          =   300
         Left            =   1080
         MaxLength       =   8
         TabIndex        =   2
         Text            =   "Text1"
         Top             =   840
         Width           =   3855
      End
      Begin VB.TextBox T_costPrice 
         Height          =   375
         Left            =   5880
         MaxLength       =   8
         TabIndex        =   7
         Text            =   "Text1"
         Top             =   2520
         Visible         =   0   'False
         Width           =   1455
      End
      Begin VB.TextBox T_memo 
         Height          =   975
         Left            =   1080
         MaxLength       =   255
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   6
         Text            =   "ProductSchemeSingleForm.frx":05D6
         Top             =   2880
         Width           =   3855
      End
      Begin VB.Label TsLabel 
         AutoSize        =   -1  'True
         Caption         =   "计划完成:"
         ForeColor       =   &H00000000&
         Height          =   180
         Index           =   10
         Left            =   2640
         TabIndex        =   26
         Top             =   2280
         Width           =   810
      End
      Begin VB.Label TsLabel 
         AutoSize        =   -1  'True
         Caption         =   "开始执行:"
         ForeColor       =   &H00000000&
         Height          =   180
         Index           =   9
         Left            =   240
         TabIndex        =   24
         Top             =   2280
         Width           =   810
      End
      Begin VB.Label TsLabel 
         AutoSize        =   -1  'True
         Caption         =   "生产批号:"
         Height          =   180
         Index           =   8
         Left            =   240
         TabIndex        =   23
         Top             =   1560
         Width           =   810
      End
      Begin VB.Label TsLabel 
         AutoSize        =   -1  'True
         Caption         =   "制单日期:"
         ForeColor       =   &H00000000&
         Height          =   180
         Index           =   7
         Left            =   2640
         TabIndex        =   22
         Top             =   1560
         Width           =   810
      End
      Begin VB.Label TsLabel 
         AutoSize        =   -1  'True
         Caption         =   "总 金 额:"
         Height          =   180
         Index           =   6
         Left            =   7440
         TabIndex        =   19
         Top             =   2640
         Visible         =   0   'False
         Width           =   810
      End
      Begin VB.Label TsLabel 
         AutoSize        =   -1  'True
         Caption         =   "计划名称:"
         Height          =   180
         Index           =   1
         Left            =   240
         TabIndex        =   13
         Top             =   360
         Width           =   810
      End
      Begin VB.Label TsLabel 
         AutoSize        =   -1  'True
         Caption         =   "成本单价:"
         Height          =   180
         Index           =   0
         Left            =   4440
         TabIndex        =   12
         Top             =   1200
         Visible         =   0   'False
         Width           =   810
      End
      Begin VB.Label TsLabel 
         AutoSize        =   -1  'True
         Caption         =   "产品规格:"
         Height          =   180
         Index           =   2
         Left            =   4440
         TabIndex        =   11
         Top             =   1200
         Visible         =   0   'False
         Width           =   810
      End
      Begin VB.Label TsLabel 
         AutoSize        =   -1  'True
         Caption         =   "单 件 数:"
         Height          =   180
         Index           =   3
         Left            =   4320
         TabIndex        =   10
         Top             =   1200
         Visible         =   0   'False
         Width           =   810
      End
      Begin VB.Label TsLabel 
         AutoSize        =   -1  'True
         Caption         =   "总 数 量:"
         Height          =   180
         Index           =   4
         Left            =   240
         TabIndex        =   9
         Top             =   960
         Width           =   810
      End
      Begin VB.Label TsLabel 
         AutoSize        =   -1  'True
         Caption         =   "备    注:"
         Height          =   180
         Index           =   5
         Left            =   240
         TabIndex        =   8
         Top             =   3000
         Width           =   810
      End
   End
End
Attribute VB_Name = "ProductSchemeSingleForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'**************************************
'*    模 块 名 称 : 生产计划单资料管理窗体
'*    功 能 描 述 : 管理生产计划单的资料
'*    程序员姓名  : 陈齐国
'*    最后修改人  : 陈齐国
'*    最后修改时间:2005/08/17
'**************************************
Option Explicit

Public m_operatorType As Integer       ' 操作类型 0 - 新增 1 - 修改
Public m_schemeId As String
Public m_schemeState As String         ' 生产计划单的状态

Private m_dao As ProductSchemeDAO      ' 数据库操作对象
Private m_productionDAO As productionDAO  ' 产品数据库操作对象
Private m_bomDAO As BomDAO             ' BOM数据库操作类
Private m_recordset As ADODB.Recordset ' 数据操作数据集对象

Private m_materialType As String       ' 当前做生产计划单的物料类型  1-零件 2-产品

Private Sub c_cancel_Click()
    Unload Me
End Sub
'**************************************
'*    功 能 描 述 :新增命令按钮的处理函数
'*    输 入 参 数 :无
'*    输 出 能 数 :无
'**************************************
Private Sub c_new_Click()
    If Check() Then
        If m_operatorType = 0 Then
            Call NewProductScheme
        ElseIf m_operatorType = 1 Then
            Call ModifyProductScheme
            m_operatorType = 0
        End If
        
        clear
    End If
End Sub

'**************************************
'*    功 能 描 述 :保存命令按钮的处理函数
'*    输 入 参 数 :无
'*    输 出 能 数 :无
'**************************************
Private Sub c_save_Click()
    If Check() Then

⌨️ 快捷键说明

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