main_gzgl_kqgl_lr.frm
上传用户:ake0106
上传日期:2022-07-23
资源大小:4052k
文件大小:8k
源码类别:

企业管理

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
  3. Begin VB.Form main_gzgl_kqgl_lr 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "Form1"
  6.    ClientHeight    =   2400
  7.    ClientLeft      =   45
  8.    ClientTop       =   330
  9.    ClientWidth     =   6795
  10.    Icon            =   "main_gzgl_kqgl_lr.frx":0000
  11.    LinkTopic       =   "Form1"
  12.    MaxButton       =   0   'False
  13.    MinButton       =   0   'False
  14.    ScaleHeight     =   2400
  15.    ScaleWidth      =   6795
  16.    ShowInTaskbar   =   0   'False
  17.    StartUpPosition =   2  '屏幕中心
  18.    Begin VB.CommandButton Command2 
  19.       Caption         =   "取消"
  20.       Height          =   390
  21.       Left            =   3450
  22.       TabIndex        =   11
  23.       Top             =   1845
  24.       Width           =   1770
  25.    End
  26.    Begin VB.CommandButton Command1 
  27.       Caption         =   "确定"
  28.       Height          =   390
  29.       Left            =   1560
  30.       TabIndex        =   10
  31.       Top             =   1845
  32.       Width           =   1770
  33.    End
  34.    Begin VB.Frame Frame1 
  35.       Height          =   1755
  36.       Left            =   0
  37.       TabIndex        =   0
  38.       Top             =   -60
  39.       Width           =   6780
  40.       Begin VB.TextBox Text1 
  41.          Height          =   330
  42.          Index           =   7
  43.          Left            =   4920
  44.          Locked          =   -1  'True
  45.          TabIndex        =   17
  46.          Top             =   1305
  47.          Width           =   1740
  48.       End
  49.       Begin VB.TextBox Text1 
  50.          Height          =   330
  51.          Index           =   6
  52.          Left            =   1650
  53.          TabIndex        =   15
  54.          Top             =   1305
  55.          Width           =   1740
  56.       End
  57.       Begin VB.TextBox Text1 
  58.          Height          =   330
  59.          Index           =   5
  60.          Left            =   4920
  61.          TabIndex        =   13
  62.          Top             =   960
  63.          Width           =   1740
  64.       End
  65.       Begin VB.TextBox Text1 
  66.          Enabled         =   0   'False
  67.          Height          =   330
  68.          Index           =   0
  69.          Left            =   1650
  70.          TabIndex        =   5
  71.          Top             =   225
  72.          Width           =   1740
  73.       End
  74.       Begin VB.TextBox Text1 
  75.          Enabled         =   0   'False
  76.          Height          =   330
  77.          Index           =   1
  78.          Left            =   4920
  79.          TabIndex        =   4
  80.          Top             =   225
  81.          Width           =   1740
  82.       End
  83.       Begin VB.TextBox Text1 
  84.          Height          =   330
  85.          Index           =   2
  86.          Left            =   1650
  87.          TabIndex        =   3
  88.          Top             =   585
  89.          Width           =   1740
  90.       End
  91.       Begin VB.TextBox Text1 
  92.          Height          =   330
  93.          Index           =   3
  94.          Left            =   4920
  95.          TabIndex        =   2
  96.          Top             =   600
  97.          Width           =   1740
  98.       End
  99.       Begin VB.TextBox Text1 
  100.          Height          =   330
  101.          Index           =   4
  102.          Left            =   1650
  103.          TabIndex        =   1
  104.          Top             =   945
  105.          Width           =   1740
  106.       End
  107.       Begin VB.Label Label6 
  108.          BackStyle       =   0  'Transparent
  109.          Caption         =   "所属工资月份:"
  110.          Height          =   255
  111.          Left            =   3600
  112.          TabIndex        =   18
  113.          Top             =   1365
  114.          Width           =   1620
  115.       End
  116.       Begin VB.Label Label5 
  117.          BackStyle       =   0  'Transparent
  118.          Caption         =   "加班次数:"
  119.          Height          =   180
  120.          Left            =   705
  121.          TabIndex        =   16
  122.          Top             =   1380
  123.          Width           =   900
  124.       End
  125.       Begin VB.Label Label4 
  126.          BackStyle       =   0  'Transparent
  127.          Caption         =   "旷工天数:"
  128.          Height          =   255
  129.          Left            =   3975
  130.          TabIndex        =   14
  131.          Top             =   1050
  132.          Width           =   915
  133.       End
  134.       Begin VB.Label Label3 
  135.          Caption         =   "请假天数:"
  136.          Height          =   255
  137.          Left            =   3975
  138.          TabIndex        =   12
  139.          Top             =   675
  140.          Width           =   915
  141.       End
  142.       Begin VB.Label Label9 
  143.          BackStyle       =   0  'Transparent
  144.          Caption         =   "迟到或早退次数:"
  145.          Height          =   255
  146.          Left            =   90
  147.          TabIndex        =   9
  148.          Top             =   1050
  149.          Width           =   1620
  150.       End
  151.       Begin VB.Label Label1 
  152.          BackStyle       =   0  'Transparent
  153.          Caption         =   "员工编号:"
  154.          Height          =   255
  155.          Left            =   720
  156.          TabIndex        =   8
  157.          Top             =   300
  158.          Width           =   1005
  159.       End
  160.       Begin VB.Label Label2 
  161.          BackStyle       =   0  'Transparent
  162.          Caption         =   "员工姓名:"
  163.          Height          =   255
  164.          Left            =   3975
  165.          TabIndex        =   7
  166.          Top             =   315
  167.          Width           =   915
  168.       End
  169.       Begin VB.Label Label7 
  170.          BackStyle       =   0  'Transparent
  171.          Caption         =   "出勤天数:"
  172.          Height          =   255
  173.          Left            =   720
  174.          TabIndex        =   6
  175.          Top             =   660
  176.          Width           =   960
  177.       End
  178.    End
  179.    Begin MSAdodcLib.Adodc Adodc1 
  180.       Height          =   330
  181.       Left            =   0
  182.       Top             =   0
  183.       Visible         =   0   'False
  184.       Width           =   2040
  185.       _ExtentX        =   3598
  186.       _ExtentY        =   582
  187.       ConnectMode     =   0
  188.       CursorLocation  =   3
  189.       IsolationLevel  =   -1
  190.       ConnectionTimeout=   15
  191.       CommandTimeout  =   30
  192.       CursorType      =   3
  193.       LockType        =   3
  194.       CommandType     =   2
  195.       CursorOptions   =   0
  196.       CacheSize       =   50
  197.       MaxRecords      =   0
  198.       BOFAction       =   0
  199.       EOFAction       =   0
  200.       ConnectStringType=   1
  201.       Appearance      =   1
  202.       BackColor       =   -2147483643
  203.       ForeColor       =   -2147483640
  204.       Orientation     =   0
  205.       Enabled         =   -1
  206.       Connect         =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_manpowerinfo"
  207.       OLEDBString     =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_manpowerinfo"
  208.       OLEDBFile       =   ""
  209.       DataSourceName  =   ""
  210.       OtherAttributes =   ""
  211.       UserName        =   ""
  212.       Password        =   ""
  213.       RecordSource    =   "奖励项目表"
  214.       Caption         =   "Adodc1"
  215.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  216.          Name            =   "宋体"
  217.          Size            =   9
  218.          Charset         =   134
  219.          Weight          =   400
  220.          Underline       =   0   'False
  221.          Italic          =   0   'False
  222.          Strikethrough   =   0   'False
  223.       EndProperty
  224.       _Version        =   393216
  225.    End
  226. End
  227. Attribute VB_Name = "main_gzgl_kqgl_lr"
  228. Attribute VB_GlobalNameSpace = False
  229. Attribute VB_Creatable = False
  230. Attribute VB_PredeclaredId = True
  231. Attribute VB_Exposed = False
  232. Private Sub Form_Load()
  233.     Me.Caption = "考勤信息修改"
  234.     With main_gzgl_kqgl.Adodc1.Recordset
  235.      If .RecordCount > 0 Then
  236.         Text1(0) = .Fields("员工编号")
  237.         Text1(1) = .Fields("员工姓名")
  238.         Text1(2) = .Fields("出勤天数")
  239.         Text1(3) = .Fields("请假天数")
  240.         Text1(4) = .Fields("迟到或早退次数")
  241.         Text1(5) = .Fields("旷工天数")
  242.         Text1(6) = .Fields("加班次数")
  243.         Text1(7) = .Fields("所属工资月份")
  244.     End If
  245.    End With
  246. End Sub
  247. Private Sub Command1_Click()
  248.   Cnn.Execute ("update 考勤表 set 出勤天数=" + Text1(2) + ",请假天数=" + Text1(3) + ",迟到或早退次数=" + Text1(4) + ",旷工天数=" + Text1(5) + ",加班次数=" + Text1(6) + "where 员工编号='" + Text1(0) + "'and 所属工资月份='" + Text1(7) + "'")
  249.   main_gzgl_kqgl.Adodc1.Refresh
  250.   Unload Me
  251. End Sub
  252. Private Sub Command2_Click()
  253.   Unload Me
  254. End Sub