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

📄 frmstoretran.frm

📁 这是一个利用VB编写的中小企业ERP。功能比较全
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "msadodc.ocx"
Begin VB.Form FrmStoreTran 
   Caption         =   "库存转移"
   ClientHeight    =   4755
   ClientLeft      =   60
   ClientTop       =   510
   ClientWidth     =   4680
   Icon            =   "FrmStoreTran.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   4755
   ScaleWidth      =   4680
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame1 
      Caption         =   "转移库位"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   3255
      Left            =   2280
      TabIndex        =   2
      Top             =   240
      Width           =   2055
      Begin VB.ComboBox CmbLocation 
         Height          =   315
         ItemData        =   "FrmStoreTran.frx":0CCA
         Left            =   240
         List            =   "FrmStoreTran.frx":0CCC
         Style           =   2  'Dropdown List
         TabIndex        =   4
         Top             =   1560
         Width           =   1575
      End
      Begin VB.ComboBox CmbStoreRoom 
         Height          =   315
         ItemData        =   "FrmStoreTran.frx":0CCE
         Left            =   240
         List            =   "FrmStoreTran.frx":0CD0
         Style           =   2  'Dropdown List
         TabIndex        =   3
         Top             =   720
         Width           =   1575
      End
      Begin MSAdodcLib.Adodc Adodc2 
         Height          =   330
         Left            =   240
         Top             =   2880
         Visible         =   0   'False
         Width           =   1440
         _ExtentX        =   2540
         _ExtentY        =   582
         ConnectMode     =   0
         CursorLocation  =   3
         IsolationLevel  =   -1
         ConnectionTimeout=   15
         CommandTimeout  =   30
         CursorType      =   3
         LockType        =   3
         CommandType     =   8
         CursorOptions   =   0
         CacheSize       =   50
         MaxRecords      =   0
         BOFAction       =   0
         EOFAction       =   0
         ConnectStringType=   1
         Appearance      =   1
         BackColor       =   -2147483643
         ForeColor       =   -2147483640
         Orientation     =   0
         Enabled         =   -1
         Connect         =   ""
         OLEDBString     =   ""
         OLEDBFile       =   ""
         DataSourceName  =   ""
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   ""
         Caption         =   "Adodc2"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         _Version        =   393216
      End
      Begin VB.Label LblDescription 
         Height          =   255
         Left            =   240
         TabIndex        =   8
         Top             =   2400
         Width           =   1455
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "库位描述:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   240
         Left            =   240
         TabIndex        =   7
         Top             =   2040
         Width           =   1275
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "选择位置"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   240
         Left            =   240
         TabIndex        =   6
         Top             =   1200
         Width           =   1020
      End
      Begin VB.Label Label24 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "选择仓库"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   240
         Left            =   240
         TabIndex        =   5
         Top             =   360
         Width           =   1020
      End
   End
   Begin VB.Label LblOriLocation 
      Caption         =   "Label7"
      Height          =   255
      Left            =   600
      TabIndex        =   16
      Top             =   2760
      Width           =   1935
   End
   Begin VB.Label LblOriStoreroom 
      Caption         =   "Label7"
      Height          =   255
      Left            =   600
      TabIndex        =   15
      Top             =   2040
      Width           =   1935
   End
   Begin VB.Label LblName 
      Caption         =   "Label7"
      Height          =   255
      Left            =   600
      TabIndex        =   14
      Top             =   1320
      Width           =   1935
   End
   Begin VB.Label LblItem 
      Caption         =   "Label7"
      Height          =   255
      Left            =   600
      TabIndex        =   13
      Top             =   600
      Width           =   1935
   End
   Begin VB.Label LblOK 
      BackStyle       =   0  'Transparent
      Caption         =   "确 定"
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   1080
      MouseIcon       =   "FrmStoreTran.frx":0CD2
      MousePointer    =   99  'Custom
      TabIndex        =   12
      Top             =   3960
      Width           =   735
   End
   Begin VB.Image Image3 
      Height          =   300
      Left            =   480
      Picture         =   "FrmStoreTran.frx":0FDC
      Top             =   3960
      Width           =   300
   End
   Begin VB.Label LblCancel 
      BackStyle       =   0  'Transparent
      Caption         =   "取 消"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   3480
      MouseIcon       =   "FrmStoreTran.frx":13F8
      MousePointer    =   99  'Custom
      TabIndex        =   11
      Top             =   3960
      Width           =   855
   End
   Begin VB.Image Image4 
      Height          =   300
      Left            =   2880
      Picture         =   "FrmStoreTran.frx":1702
      Top             =   3960
      Width           =   300
   End
   Begin VB.Label Label5 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "所在位置:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   240
      Left            =   120
      TabIndex        =   10
      Top             =   2400
      Width           =   1275
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "所在库房:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   240
      Left            =   120
      TabIndex        =   9
      Top             =   1680
      Width           =   1275
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "名称:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   240
      Left            =   120
      TabIndex        =   1
      Top             =   960
      Width           =   765
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "货号:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   240
      Left            =   120
      TabIndex        =   0
      Top             =   240
      Width           =   765
   End
End
Attribute VB_Name = "FrmStoreTran"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmbLocation_Click()
    Adodc2.ConnectionString = "driver={SQL Server};server=" + Trim(Server) + ";uid=" + Trim(User) + ";pwd=" + Trim(Password) + ";database=ERP"
    Adodc2.RecordSource = "select * from StoreRoom where StoreRoom='" + Trim(CmbStoreRoom.Text) + "' and Location='" + Trim(CmbLocation.Text) + "'"
    Adodc2.Refresh
    Set LblDescription.DataSource = Adodc2
    If Adodc2.Recordset.RecordCount <> 0 Then
        LblDescription.Caption = Adodc2.Recordset.Fields(3)
        
    End If
    If Trim(CmbLocation.Text) = "请选择库号" Then
        LblDescription.Caption = ""
    End If
    If Trim(LblDescription.Caption) <> "" Then
        LblOK.Enabled = True
    End If
    
End Sub
Private Sub CmbStoreRoom_Click()
    If CmbStoreRoom.Text <> "请选择库号" Then
        CmbLocation.Enabled = True
        CmbLocation.Clear
        '装入CmbLocation的信息
        CmbLocation.AddItem "请选择位号"
        MyStoreIn.Load_Location (CmbStoreRoom.Text)
        i = 0
        Do While Arr_Item(i) <> ""
            CmbLocation.AddItem Arr_Item(i)
            i = i + 1
        Loop
        CmbLocation.ListIndex = 0
    Else
        CmbLocation.Clear
        CmbLocation.Enabled = False
        LblDescription.Caption = ""
    End If
End Sub

Private Sub Form_Load()
    '装入CmbStoreRoom的信息
    CmbStoreRoom.AddItem "请选择库号"
    MyStoreIn.Load_StoreRoom
    i = 0
    Do While Arr_Item(i) <> ""
        CmbStoreRoom.AddItem Arr_Item(i)
        i = i + 1
    Loop
    CmbStoreRoom.ListIndex = 0
    CmbLocation.Enabled = False
End Sub

Private Sub LblCancel_Click()
    Unload Me
End Sub

Private Sub LblOK_Click()
    With MyStoreIn
        .Item = LblItem.Caption
        .StoreRoom = CmbStoreRoom.Text
        .Location = CmbLocation.Text
        
        .UpdateStoreTran LblItem.Caption, LblOriStoreroom, LblOriLocation
    End With
    MsgBox "转移成功"
    Unload Me
    FrmStore.Adodc1.Refresh
End Sub

⌨️ 快捷键说明

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