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

📄 ck_bcpck_djb.frm

📁 基于SQL2000的企业管理MRPII,包含进销存,财务,报关等组件,VB6开发,带文档说明.
💻 FRM
📖 第 1 页 / 共 3 页
字号:
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9.75
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   610
         Left            =   1308
         Picture         =   "CK_BCpCk_DjB.frx":861C
         Style           =   1  'Graphical
         TabIndex        =   8
         Top             =   180
         Width           =   615
      End
      Begin VB.CommandButton cmdxq 
         Caption         =   "向前"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9.75
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   610
         Left            =   684
         Picture         =   "CK_BCpCk_DjB.frx":8BEE
         Style           =   1  'Graphical
         TabIndex        =   7
         Top             =   180
         Width           =   615
      End
      Begin VB.CommandButton cmdqd 
         Caption         =   "前端"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9.75
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   610
         Left            =   60
         Picture         =   "CK_BCpCk_DjB.frx":91C0
         Style           =   1  'Graphical
         TabIndex        =   6
         Top             =   180
         Width           =   615
      End
      Begin VB.CommandButton CmdOK 
         Caption         =   "确认"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9.75
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   610
         Left            =   6360
         Picture         =   "CK_BCpCk_DjB.frx":9792
         Style           =   1  'Graphical
         TabIndex        =   5
         Top             =   180
         Width           =   615
      End
      Begin VB.CommandButton Cmddelete 
         Caption         =   "删除"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9.75
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   610
         Left            =   5115
         Picture         =   "CK_BCpCk_DjB.frx":9884
         Style           =   1  'Graphical
         TabIndex        =   4
         Top             =   180
         Width           =   615
      End
      Begin VB.CommandButton Cmdedit 
         Caption         =   "编辑"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9.75
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   610
         Left            =   5745
         Picture         =   "CK_BCpCk_DjB.frx":9E56
         Style           =   1  'Graphical
         TabIndex        =   3
         Top             =   180
         Width           =   615
      End
      Begin VB.CommandButton Cmdcancel 
         Caption         =   "取消"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9.75
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   610
         Left            =   6990
         Picture         =   "CK_BCpCk_DjB.frx":A428
         Style           =   1  'Graphical
         TabIndex        =   2
         Top             =   180
         Width           =   615
      End
      Begin VB.CommandButton Cmdreturn 
         Caption         =   "返回"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9.75
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   610
         Left            =   7620
         Picture         =   "CK_BCpCk_DjB.frx":A9FA
         Style           =   1  'Graphical
         TabIndex        =   1
         Top             =   180
         Width           =   615
      End
   End
   Begin TrueOleDBGrid60.TDBGrid TDBGrid1 
      Bindings        =   "CK_BCpCk_DjB.frx":AC7D
      Height          =   4125
      Left            =   2790
      OleObjectBlob   =   "CK_BCpCk_DjB.frx":AC9E
      TabIndex        =   12
      Top             =   1860
      Width           =   8295
   End
   Begin MSAdodcLib.Adodc AdoprimaryRs 
      Height          =   330
      Left            =   4410
      Top             =   3660
      Width           =   3495
      _ExtentX        =   6165
      _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         =   "adoprimaryrs"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin MSAdodcLib.Adodc Adodc_body_general 
      Height          =   375
      Left            =   4410
      Top             =   2940
      Visible         =   0   'False
      Width           =   3855
      _ExtentX        =   6800
      _ExtentY        =   661
      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         =   "Adodc_body_general"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin TrueOleDBGrid60.TDBGrid TDBGrid3 
      Bindings        =   "CK_BCpCk_DjB.frx":14159
      Height          =   6285
      Left            =   0
      OleObjectBlob   =   "CK_BCpCk_DjB.frx":14174
      TabIndex        =   13
      Top             =   0
      Width           =   2745
   End
   Begin MSAdodcLib.Adodc Ado_cpxx 
      Height          =   615
      Left            =   540
      Top             =   3150
      Width           =   1695
      _ExtentX        =   2990
      _ExtentY        =   1085
      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         =   "Ado_cpxx"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin ResizeLibCtl.ReSize ReSize1 
      Left            =   750
      Top             =   4860
      _Version        =   196608
      _ExtentX        =   741
      _ExtentY        =   741
      _StockProps     =   64
      Enabled         =   -1  'True
      Enabled         =   -1  'True
      FormMinWidth    =   0
      FormMinHeight   =   0
      FormDesignHeight=   6930
      FormDesignWidth =   11130
   End
End
Attribute VB_Name = "CK_BCpCk_DjB"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
         
'*******************************************************
'*            曹汉华   2004.3.3  编写   产品入库单      *
'*******************************************************
Dim HZk_cx As Recordset
Dim combo_data, Combo_dATA2 As Recordset
Dim Tjbz As Boolean
Dim Data_Cx As Recordset
Dim a(6) As String
Dim LC As Boolean
Dim rs As Recordset

Private Sub CMd_Find_Click()
On Error Resume Next
Set CX_FrM_SjY = CK_BCpCk_DjB.AdoprimaryRs
CX_SJy = "select * from ck_bcpck_h where not ckdh is null "
With SEC_Dialog
  .Combo1(0).Clear
  .Combo1(1).Clear
  .Combo1(0).AddItem ("cklx(入库类型)")
  .Combo1(1).AddItem ("cklx(入库类型)")
  .Combo1(0).AddItem ("bmmc(仓库名称)")
  .Combo1(1).AddItem ("bmmc(仓库名称)")
  .Combo1(0).AddItem ("ckdh(入库单号)")
  .Combo1(1).AddItem ("ckdh(入库单号)")
End With
Load SEC_Dialog
SEC_Dialog.Show 1
End Sub

Private Sub CmD_SH_Click()
 Dim Sh_Dh As String
 Sh_Dh = Text1(0).Text
 DB.Execute "update ck_bcpck_h set sh = '已审' where ckdh='" & Text1(0).Text & "'"
 AdoprimaryRs.Refresh
 AdoprimaryRs.Recordset.Requery
 AdoprimaryRs.Recordset.Find ("ckdh='" & Sh_Dh & "'")
End Sub

Private Sub CmdPrint_Click()
If Trim(Text1(0).Text) = "" Then
MsgBox "没有记录,不能打印!", vbOKOnly + 16, "系统提示"
Exit Sub
End If
Ck_BcPcK_Rpt.DataControl1.ConnectionString = Conn_Str
Ck_BcPcK_Rpt.DataControl1.Source = "select ck_BcpCk_H.CkDh as CkDh,ck_BcpCk_H.ckmc as ckmc,ck_BcpCk_H.*,ck_BcpCk_B.* from ck_BcpCk_H inner join ck_BcpCk_B on ck_BcpCk_H.CkDh=ck_BcpCk_B.CkDh where ck_BcpCk_H.CkDh='" & Text1(0).Text & "' order BY cpmc,gg"
Ck_BcPcK_Rpt.Show VBRUN.FormShowConstants.vbModal
End Sub
Private Sub Cmdreturn_Click()
Unload Me
End Sub
Private Sub cmdnext_Click() '向后
  On Error Resume Next
  If Not AdoprimaryRs.Recordset.EOF Then AdoprimaryRs.Recordset.MoveNext
  If AdoprimaryRs.Recordset.EOF And AdoprimaryRs.Recordset.RecordCount > 0 Then
    Beep
    AdoprimaryRs.Recordset.MoveLast
  End If
  Exit Sub
End Sub

Private Sub Cmdqd_Click() '首端
   On Error Resume Next
  If AdoprimaryRs.Recordset.RecordCount > 0 Then
  If AdoprimaryRs.BOFAction = False Then
  AdoprimaryRs.Recordset.MoveFirst
  Else
  AdoprimaryRs.Recordset.MoveNext
  End If
  Else
  Exit Sub
  End If
  End Sub

Private Sub cmdxq_Click() '向前
  On Error Resume Next
  If Not AdoprimaryRs.Recordset.BOF Then AdoprimaryRs.Recordset.MovePrevious
  If AdoprimaryRs.Recordset.BOF And AdoprimaryRs.Recordset.RecordCount > 0 Then
    Beep
    AdoprimaryRs.Recordset.MoveFirst
  End If
  Exit Sub
End Sub

Private Sub cmdmd_Click() '末端
 On Error Resume Next
 If AdoprimaryRs.Recordset.RecordCount > 0 Then
 If AdoprimaryRs.Recordset.EOF = False Then
    AdoprimaryRs.Recordset.MoveLast
    Else
    AdoprimaryRs.Recordset.MovePrevious
 End If
 Else
 Exit Sub
 End If
End Sub

Private Sub Combo_Click(Index As Integer)
On Error Resume Next
If Index = 1 And Cmdadd.Enabled = False Then
Adodc_body_general.Recordset.ActiveConnection.Execute "update ck_bcpck_b set ckmc='" & Combo(1).Text & "' where ckdh='" & Text1(0).Text & "'"
Adodc_body_general.Recordset.Requery
End If
End Sub

Private Sub combo_KeyPress(Index As Integer, KeyAscii As Integer)

 If KeyAscii = 13 Then    ' 按回车
      KeyAscii = 0
      SendKeys "{TAB}"

⌨️ 快捷键说明

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