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

📄 main_xszz_xsyjgl_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_xsyjgl_lr 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5655
   Icon            =   "main_xszz_xsyjgl_lr.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3195
   ScaleWidth      =   5655
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   390
      Left            =   2820
      TabIndex        =   12
      Top             =   2670
      Width           =   1770
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   390
      Left            =   930
      TabIndex        =   11
      Top             =   2670
      Width           =   1770
   End
   Begin VB.Frame Frame1 
      Height          =   2595
      Left            =   15
      TabIndex        =   0
      Top             =   -60
      Width           =   5550
      Begin MSComCtl2.DTPicker DTPicker1 
         Height          =   300
         Left            =   3495
         TabIndex        =   19
         Top             =   2160
         Width           =   1950
         _ExtentX        =   3440
         _ExtentY        =   529
         _Version        =   393216
         Format          =   19791873
         CurrentDate     =   38721
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         Left            =   1230
         TabIndex        =   17
         Text            =   "Combo1"
         Top             =   2160
         Width           =   1275
      End
      Begin VB.TextBox txtID 
         Enabled         =   0   'False
         Height          =   330
         Left            =   2805
         TabIndex        =   14
         Top             =   225
         Visible         =   0   'False
         Width           =   1140
      End
      Begin VB.TextBox Text1 
         Enabled         =   0   'False
         Height          =   330
         Index           =   0
         Left            =   1230
         TabIndex        =   5
         Top             =   225
         Width           =   1170
      End
      Begin VB.TextBox Text1 
         Enabled         =   0   'False
         Height          =   330
         Index           =   1
         Left            =   1230
         TabIndex        =   4
         Top             =   615
         Width           =   4215
      End
      Begin VB.TextBox Text1 
         Height          =   330
         Index           =   2
         Left            =   1230
         TabIndex        =   2
         Top             =   1395
         Width           =   3930
      End
      Begin VB.TextBox Text1 
         Height          =   330
         Index           =   3
         Left            =   1230
         TabIndex        =   1
         Text            =   "0"
         Top             =   1770
         Width           =   4215
      End
      Begin MSDataListLib.DataCombo DataCombo1 
         Bindings        =   "main_xszz_xsyjgl_lr.frx":000C
         Height          =   330
         Left            =   1230
         TabIndex        =   3
         Top             =   1005
         Width           =   4215
         _ExtentX        =   7435
         _ExtentY        =   582
         _Version        =   393216
         ListField       =   "考核指标"
         Text            =   ""
      End
      Begin VB.Label Label6 
         Caption         =   "考核日期:"
         Height          =   225
         Left            =   2580
         TabIndex        =   18
         Top             =   2235
         Width           =   915
      End
      Begin VB.Label Label5 
         BackStyle       =   0  'Transparent
         Caption         =   "年度:"
         Height          =   255
         Left            =   645
         TabIndex        =   16
         Top             =   2190
         Width           =   555
      End
      Begin VB.Label lblp 
         BackStyle       =   0  'Transparent
         Caption         =   "%"
         Height          =   210
         Left            =   5265
         TabIndex        =   15
         Top             =   1440
         Width           =   180
      End
      Begin VB.Label lblID 
         BackStyle       =   0  'Transparent
         Caption         =   "ID:"
         Height          =   255
         Left            =   2460
         TabIndex        =   13
         Top             =   270
         Visible         =   0   'False
         Width           =   270
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "编号:"
         Height          =   255
         Left            =   660
         TabIndex        =   10
         Top             =   300
         Width           =   570
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "业务员姓名:"
         Height          =   210
         Left            =   105
         TabIndex        =   9
         Top             =   690
         Width           =   1230
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "考核指标:"
         Height          =   255
         Left            =   315
         TabIndex        =   8
         Top             =   1095
         Width           =   1005
      End
      Begin VB.Label Label4 
         BackStyle       =   0  'Transparent
         Caption         =   "完成率:"
         Height          =   255
         Left            =   480
         TabIndex        =   7
         Top             =   1455
         Width           =   795
      End
      Begin VB.Label Label7 
         BackStyle       =   0  'Transparent
         Caption         =   "分数:"
         Height          =   255
         Left            =   645
         TabIndex        =   6
         Top             =   1830
         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_xsyjgl_lr"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim n1 As Single
Private Sub Form_Activate()
  DataCombo1.SetFocus
End Sub
Private Sub Form_Load()
  For i = 2005 To 3010
    Combo1.AddItem i & "年"
  Next i
  Combo1.ListIndex = 1
  If blnAddXSKH = True Then
    Me.Caption = "销售业绩考核信息添加"
  Else
    Me.Caption = "销售业绩考核信息修改"
    lblID.Visible = True
    txtID.Visible = True
    With main_xszz_xsyjgl.Adodc1.Recordset
     If .RecordCount > 0 Then
        txtID = .Fields("ID")
        Text1(0) = .Fields("业务员编号")
        Text1(1) = .Fields("业务员姓名")
        DataCombo1 = .Fields("考核指标")
        Text1(2) = .Fields("完成率")
        Text1(3) = .Fields("分数")
        If .Fields("年度") <> "" Then Combo1 = .Fields("年度")
        If .Fields("考核日期") <> "" Then DTPicker1 = .Fields("考核日期")
    End If
   End With
  End If
End Sub
Private Sub Text1_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer)
  If KeyCode = vbKeyReturn And Index = 2 Then
    n1 = Val(Text1(2))
    Text1(3) = Round(3 * (n1 / 100) / (2 * (n1 / 100) + 1), 2) * 100
  End If
End Sub
Private Sub Command1_Click()
  n1 = Val(Text1(2))
  Text1(3) = Round(3 * (n1 / 100) / (2 * (n1 / 100) + 1), 2) * 100
  If blnAddXSKH = True Then
    Cnn.Execute ("insert into 销售考核表(业务员编号,业务员姓名,考核指标,完成率,分数,年度,考核日期)" _
     & "values('" + Text1(0) + "','" + Text1(1) + "','" + DataCombo1 + "','" + Text1(2) + _
     "'," + Text1(3) + ",'" + Combo1 + "','" + Str(DTPicker1) + "')")
  Else
    Cnn.Execute ("update 销售考核表 set 考核指标='" + DataCombo1 + "',完成率='" + Text1(2) + _
    "',分数=" + Text1(3) + ",年度='" + Combo1 + "',考核日期='" + Str(DTPicker1) + "'where ID=" + txtID + "")
  End If
  main_xszz_xsyjgl.Adodc1.Refresh
  If XSKHBookmark <> "" Then main_xszz_xsyjgl.DataGrid1.Bookmark = XSKHBookmark
  Unload Me
End Sub
Private Sub Command2_Click()
  Unload Me
End Sub


⌨️ 快捷键说明

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