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

📄 yy_khdd.frm

📁 基于SQL2000的企业管理MRPII,包含进销存,财务,报关等组件,VB6开发,带文档说明.
💻 FRM
📖 第 1 页 / 共 4 页
字号:
      End
      Begin VB.CommandButton Cmddelete 
         Caption         =   "删除"
         Height          =   610
         Left            =   5010
         Picture         =   "Yy_khdd.frx":16938
         Style           =   1  'Graphical
         TabIndex        =   19
         Top             =   180
         Width           =   615
      End
      Begin VB.CommandButton Cmdedit 
         Caption         =   "编辑"
         Height          =   610
         Left            =   5655
         Picture         =   "Yy_khdd.frx":16F0A
         Style           =   1  'Graphical
         TabIndex        =   18
         Top             =   180
         Width           =   615
      End
      Begin VB.CommandButton Cmdcancel 
         Caption         =   "取消"
         Height          =   610
         Left            =   6945
         Picture         =   "Yy_khdd.frx":174DC
         Style           =   1  'Graphical
         TabIndex        =   17
         Top             =   180
         Width           =   615
      End
      Begin VB.CommandButton Cmdreturn 
         Caption         =   "返回"
         Height          =   610
         Left            =   7590
         Picture         =   "Yy_khdd.frx":17AAE
         Style           =   1  'Graphical
         TabIndex        =   16
         Top             =   180
         Width           =   615
      End
   End
   Begin MSAdodcLib.Adodc AdoprimaryRs 
      Height          =   330
      Left            =   4350
      Top             =   3600
      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            =   4350
      Top             =   2880
      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 MSAdodcLib.Adodc Ado_zztZ_xg 
      Height          =   495
      Left            =   3900
      Top             =   2790
      Width           =   2835
      _ExtentX        =   5001
      _ExtentY        =   873
      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_zztZ_xg"
      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 Ado_sc_kc 
      Height          =   525
      Left            =   4650
      Top             =   3960
      Width           =   2385
      _ExtentX        =   4207
      _ExtentY        =   926
      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_sc_kc"
      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 Ado_cpxx 
      Height          =   615
      Left            =   600
      Top             =   3120
      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
End
Attribute VB_Name = "yy_khdd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Dim khdk As Adodb.Recordset
Dim ddxg_RPT As Adodb.Recordset
Dim zztz_rpt As Adodb.Recordset
Dim Tjbz As Boolean
Dim DdBh_Ado As Recordset
Private Sub CmD_SH_Click()
 Dim Sh_Dh As String
 Sh_Dh = Text1(0).Text
 DB.Execute "update yy_khddt set sh = '已审' where ddbh='" & Text1(0).Text & "'"
 AdoprimaryRs.Recordset.Requery
 AdoprimaryRs.Recordset.Find ("ddbh='" & Sh_Dh & "'")
End Sub
'*******************************************************
'*            曹汉华   2003.8.8  编写                 *
'*******************************************************
Private Sub cmdnext_Click() '向后
On Error GoTo GoNextError
  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
GoNextError:
  MsgBox Err.Description
End Sub

Private Sub CmdPrint_Click()
If Trim(Text1(0).Text) <> "" Then
   yy_dd_rpt.HZJe.Caption = HZJe(Val(Text1(7).Text))
   yy_dd_rpt.DataControl1.ConnectionString = Conn_Str
   yy_dd_rpt.DataControl1.Source = "select yy_khddt.*,yy_khdd.*,yy_khzl.fax as CZHM  from yy_khdd inner join yy_khddt on yy_khdd.ddbh=yy_khddt.ddbh inner join yy_khzl on yy_khddt.khbh=yy_khzl.khbh where yy_khdd.ddbh='" & Text1(0).Text & "'"
   yy_dd_rpt.Show VBRUN.FormShowConstants.vbModal
End If
End Sub

Private Sub Cmdqd_Click() '首端
  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 Cmdreturn_Click()
Tjbz = False
Unload Me
End Sub

Private Sub cmdxq_Click() '向前
  On Error GoTo GoPrevError
  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
GoPrevError:
  MsgBox Err.Description
End Sub

Private Sub cmdmd_Click() '末端
 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 = 5 And Cmdadd.Enabled = False Then
   Set khdk = New Adodb.Recordset
   khdk.Open "select * from yy_khzl where khbh='" & Combo(5).Text & "'", DB, adOpenStatic, adLockBatchOptimistic
    If khdk.RecordCount >= 1 Then
   khdk.MoveFirst
   AdoprimaryRs.Recordset.Fields("lxr").Value = khdk!lxr
   AdoprimaryRs.Recordset.Fields("khmc").Value = khdk!KHMc
   AdoprimaryRs.Recordset.Fields("phone").Value = khdk!Phone
   AdoprimaryRs.Recordset.Fields("fax").Value = khdk!Fax
   AdoprimaryRs.Recordset.Fields("fkfs").Value = khdk!fkfs
   AdoprimaryRs.Recordset.Fields("bizh").Value = khdk!bizh
   AdoprimaryRs.Recordset.Fields("hl").Value = khdk!hl
   AdoprimaryRs.Recordset.Fields("zffs").Value = khdk!zffs
   AdoprimaryRs.Recordset.Fields("shdz").Value = khdk!dizhi
   End If
End If
End Sub
Private Sub combo_KeyPress(Index As Integer, KeyAscii As Integer)
   If KeyAscii = 13 Then    ' 按回车
      KeyAscii = 0
      SendKeys "{TAB}"
   End If
End Sub
Private Sub Command1_Click()

⌨️ 快捷键说明

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