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

📄 main_xszz_xsxlgl_lr.frm

📁 EMS是一个企业营销管理系统,功能强大,供大家享用,希望大家多多支持!!
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form main_xszz_xsxlgl_lr 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Form1"
   ClientHeight    =   3465
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   7290
   Icon            =   "main_xszz_xsxlgl_lr.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3465
   ScaleWidth      =   7290
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   390
      Left            =   3870
      TabIndex        =   20
      Top             =   2970
      Width           =   1770
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   390
      Left            =   1980
      TabIndex        =   19
      Top             =   2970
      Width           =   1770
   End
   Begin VB.Frame Frame1 
      Height          =   2940
      Left            =   15
      TabIndex        =   0
      Top             =   -60
      Width           =   7275
      Begin VB.TextBox txtID 
         Enabled         =   0   'False
         Height          =   330
         Left            =   6015
         TabIndex        =   22
         Top             =   225
         Visible         =   0   'False
         Width           =   1140
      End
      Begin VB.TextBox Text1 
         Enabled         =   0   'False
         Height          =   330
         Index           =   0
         Left            =   990
         TabIndex        =   8
         Top             =   225
         Width           =   1170
      End
      Begin VB.TextBox Text1 
         Enabled         =   0   'False
         Height          =   330
         Index           =   1
         Left            =   3180
         TabIndex        =   7
         Top             =   225
         Width           =   2400
      End
      Begin VB.TextBox Text1 
         Height          =   330
         Index           =   2
         Left            =   4755
         TabIndex        =   5
         Text            =   "0"
         Top             =   630
         Width           =   2400
      End
      Begin VB.TextBox Text1 
         Height          =   330
         Index           =   3
         Left            =   990
         TabIndex        =   3
         Top             =   1365
         Width           =   2730
      End
      Begin VB.TextBox Text1 
         Height          =   330
         Index           =   4
         Left            =   4755
         TabIndex        =   2
         Text            =   "0"
         Top             =   1365
         Width           =   2400
      End
      Begin VB.TextBox Text1 
         Height          =   1050
         Index           =   5
         Left            =   990
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   1
         Top             =   1740
         Width           =   6165
      End
      Begin MSComCtl2.DTPicker DTP1 
         Height          =   300
         Left            =   990
         TabIndex        =   4
         Top             =   1005
         Width           =   2730
         _ExtentX        =   4815
         _ExtentY        =   529
         _Version        =   393216
         Format          =   19726337
         CurrentDate     =   38698
      End
      Begin MSDataListLib.DataCombo DataCombo1 
         Bindings        =   "main_xszz_xsxlgl_lr.frx":000C
         Height          =   330
         Left            =   990
         TabIndex        =   6
         Top             =   615
         Width           =   2730
         _ExtentX        =   4815
         _ExtentY        =   582
         _Version        =   393216
         ListField       =   "训练项目"
         Text            =   ""
      End
      Begin MSComCtl2.DTPicker DTP2 
         Height          =   300
         Left            =   4755
         TabIndex        =   17
         Top             =   1005
         Width           =   2400
         _ExtentX        =   4233
         _ExtentY        =   529
         _Version        =   393216
         Format          =   19726337
         CurrentDate     =   38698
      End
      Begin VB.Label lblID 
         BackStyle       =   0  'Transparent
         Caption         =   "ID:"
         Height          =   255
         Left            =   5670
         TabIndex        =   21
         Top             =   300
         Visible         =   0   'False
         Width           =   270
      End
      Begin VB.Label Label9 
         BackStyle       =   0  'Transparent
         Caption         =   "备注:"
         Height          =   255
         Left            =   420
         TabIndex        =   18
         Top             =   1770
         Width           =   555
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "编号:"
         Height          =   255
         Left            =   420
         TabIndex        =   16
         Top             =   300
         Width           =   570
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "员工姓名:"
         Height          =   210
         Left            =   2265
         TabIndex        =   15
         Top             =   300
         Width           =   1005
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "训练项目:"
         Height          =   255
         Left            =   75
         TabIndex        =   14
         Top             =   705
         Width           =   1005
      End
      Begin VB.Label Label4 
         BackStyle       =   0  'Transparent
         Caption         =   "时数:"
         Height          =   255
         Left            =   4170
         TabIndex        =   13
         Top             =   705
         Width           =   555
      End
      Begin VB.Label Label5 
         BackStyle       =   0  'Transparent
         Caption         =   "开始时间:"
         Height          =   255
         Left            =   60
         TabIndex        =   12
         Top             =   1080
         Width           =   1005
      End
      Begin VB.Label Label6 
         BackStyle       =   0  'Transparent
         Caption         =   "结束时间:"
         Height          =   255
         Left            =   3825
         TabIndex        =   11
         Top             =   1080
         Width           =   1005
      End
      Begin VB.Label Label7 
         BackStyle       =   0  'Transparent
         Caption         =   "成绩:"
         Height          =   255
         Left            =   420
         TabIndex        =   10
         Top             =   1425
         Width           =   555
      End
      Begin VB.Label Label8 
         BackStyle       =   0  'Transparent
         Caption         =   "费用:"
         Height          =   255
         Left            =   4200
         TabIndex        =   9
         Top             =   1425
         Width           =   555
      End
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   0
      Top             =   0
      Visible         =   0   'False
      Width           =   2040
      _ExtentX        =   3598
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_CSell"
      OLEDBString     =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_CSell"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "训练项目表"
      Caption         =   "Adodc1"
      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 = "main_xszz_xsxlgl_lr"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub DataCombo1_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = vbKeyReturn Then DTP1.SetFocus
End Sub
Private Sub DTP1_Change()
  Text1(2) = DateDiff("h", DTP1.Value, DTP2.Value)
End Sub

Private Sub DTP1_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = vbKeyReturn Then DTP2.SetFocus
End Sub

Private Sub DTP2_Change()
  Text1(2) = DateDiff("h", DTP1.Value, DTP2.Value)
End Sub
Private Sub DTP2_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = vbKeyReturn Then Text1(3).SetFocus
End Sub
Private Sub Form_Load()
  If blnAddXSXL = True Then
    Me.Caption = "销售训练信息添加"
  Else
    Me.Caption = "销售训练信息修改"
    lblID.Visible = True
    txtID.Visible = True
    With main_xszz_xsxlgl.Adodc1.Recordset
     If .RecordCount > 0 Then
        txtID = .Fields("ID")
        Text1(0) = .Fields("业务员编号")
        Text1(1) = .Fields("业务员姓名")
        DataCombo1 = .Fields("训练项目")
        Text1(2) = .Fields("时数")
        DTP1.Value = .Fields("开始时间")
        DTP2.Value = .Fields("结束时间")
        Text1(3) = .Fields("成绩")
        Text1(4) = .Fields("费用")
        Text1(5) = .Fields("备注")
    End If
   End With
  End If
End Sub
Private Sub Command1_Click()
  If IsNumeric(Text1(2)) = False Or IsNumeric(Text1(4)) = False Then
    MsgBox "请输入数值型数据!"
    Exit Sub
  End If
  If blnAddXSXL = True Then
    Cnn.Execute ("insert into 销售训练表(业务员编号,业务员姓名,训练项目,时数,开始时间,结束时间,成绩,费用,备注) " _
     & "values('" + Text1(0) + "','" + Text1(1) + "','" + DataCombo1 + "'," + Text1(2) + ",'" + _
     Str(DTP1.Value) + "','" + Str(DTP2.Value) + "','" + Text1(3) + "'," + Text1(4) + ",'" + Text1(5) + "')")
  Else
    Cnn.Execute ("update 销售训练表 set 训练项目='" + DataCombo1 + "',时数=" + Text1(2) + ",开始时间='" + _
    Str(DTP1.Value) + "',结束时间='" + Str(DTP2.Value) + "',成绩='" + Text1(3) + "',费用=" + Text1(4) + _
    ",备注='" + Text1(5) + "'where ID=" + txtID + "")
  End If
  main_xszz_xsxlgl.Adodc1.Refresh
  If XSXLBookmark <> "" Then main_xszz_xsxlgl.DataGrid1.Bookmark = XSXLBookmark
  Unload Me
End Sub
Private Sub Command2_Click()
  Unload Me
End Sub
Private Sub Text1_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer)
   If KeyCode = vbKeyReturn And Index >= 3 And Index < 5 Then Text1(Index + 1).SetFocus
End Sub

⌨️ 快捷键说明

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