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

📄 frmkfprint.frm

📁 此为我2001年为东莞建发楦头开发的企业管理软件他们使用至今,望斑竹指教! 其他会员最好不要随意下载,需经斑竹同意或我本人同意,谢谢!
💻 FRM
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frmkfprint 
   Caption         =   "开发排单明细表"
   ClientHeight    =   3105
   ClientLeft      =   3090
   ClientTop       =   2805
   ClientWidth     =   5580
   Icon            =   "frmkfprint.frx":0000
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3105
   ScaleWidth      =   5580
   Begin VB.CommandButton cmdok 
      Caption         =   "查询(&F)"
      Height          =   340
      Left            =   1440
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   2520
      UseMaskColor    =   -1  'True
      Width           =   1095
   End
   Begin VB.CommandButton cmdcancel 
      Caption         =   "关闭(&C)"
      Height          =   340
      Left            =   3000
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   2520
      UseMaskColor    =   -1  'True
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      Caption         =   "参数选项"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000C0&
      Height          =   2175
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   5295
      Begin VB.ComboBox cmbTown 
         Enabled         =   0   'False
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         ItemData        =   "frmkfprint.frx":0442
         Left            =   3720
         List            =   "frmkfprint.frx":0444
         Style           =   2  'Dropdown List
         TabIndex        =   11
         Top             =   960
         Visible         =   0   'False
         Width           =   1455
      End
      Begin VB.ComboBox cmbfang 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         ItemData        =   "frmkfprint.frx":0446
         Left            =   1200
         List            =   "frmkfprint.frx":045C
         Style           =   2  'Dropdown List
         TabIndex        =   9
         Top             =   960
         Width           =   1455
      End
      Begin MSComCtl2.DTPicker DTP2 
         Height          =   375
         Left            =   3720
         TabIndex        =   5
         Top             =   360
         Width           =   1455
         _ExtentX        =   2566
         _ExtentY        =   661
         _Version        =   393216
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         CalendarForeColor=   16711680
         CalendarTitleBackColor=   255
         Format          =   62390273
         CurrentDate     =   36400
      End
      Begin MSComCtl2.DTPicker DTP1 
         Height          =   375
         Left            =   1200
         TabIndex        =   4
         Top             =   360
         Width           =   1455
         _ExtentX        =   2566
         _ExtentY        =   661
         _Version        =   393216
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         CalendarForeColor=   16711680
         CalendarTitleBackColor=   255
         Format          =   62390273
         CurrentDate     =   36400
      End
      Begin MSComCtl2.DTPicker DTP3 
         Height          =   375
         Left            =   1200
         TabIndex        =   6
         Top             =   1560
         Width           =   1455
         _ExtentX        =   2566
         _ExtentY        =   661
         _Version        =   393216
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         CalendarForeColor=   16711680
         CalendarTitleBackColor=   255
         Format          =   62390273
         CurrentDate     =   36400
      End
      Begin VB.Label lbl1 
         Caption         =   "客户范围:"
         Enabled         =   0   'False
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   255
         Index           =   1
         Left            =   2760
         TabIndex        =   12
         Top             =   960
         Visible         =   0   'False
         Width           =   1095
      End
      Begin VB.Label lblLabels 
         Caption         =   "客户方向:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00C00000&
         Height          =   255
         Index           =   26
         Left            =   120
         TabIndex        =   10
         Top             =   960
         Width           =   975
      End
      Begin VB.Label lbl 
         Caption         =   "到:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   255
         Index           =   0
         Left            =   3000
         TabIndex        =   8
         Top             =   360
         Width           =   375
      End
      Begin VB.Label lbl4 
         Caption         =   "显示日期:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   255
         Left            =   120
         TabIndex        =   7
         Top             =   1560
         Width           =   1215
      End
      Begin VB.Label lbl1 
         Caption         =   "交货日期:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   255
         Index           =   2
         Left            =   120
         TabIndex        =   1
         Top             =   360
         Width           =   1215
      End
   End
End
Attribute VB_Name = "frmkfprint"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub cmbfang_Click()
    If cmbfang <> "全部" Then
        Set clitb = New Recordset
        
        cmbTown.Clear
        cmbTown.AddItem "全部"
        clitb.Open "select distinct town from client where fangxiang='" & cmbfang.Text & "'", db, adOpenStatic, adLockOptimistic
        For i = 1 To clitb.RecordCount
            If Not IsNull(clitb!town) Then cmbTown.AddItem clitb!town
            clitb.MoveNext
        Next
        cmbTown.ListIndex = 0
        clitb.Close
        
        Set clitb = Nothing
    End If
End Sub

Private Sub cmdcancel_Click()
    Unload Me
End Sub

Private Sub cmdok_Click()
Me.MousePointer = 11
   db.Execute "delete  from kftemp "
   If cmbfang.Text = "全部" Then
        If cmbTown = "全部" Then
            db.Execute " INSERT INTO kftemp (kfflag,miflag,dinno,finish_date,sname,Din_date, model, model_shape, unit, qty,state ) SELECT dflag,miflag,dinno,finish_date,s_name,din_date, model, model_shape, unit, total_qty,state FROM tap_view where state='未开发' and finish_date>=" & "'" & DTP1.value & "'" & " and finish_date<=" & "'" & DTP2.value & "'"
        Else
            db.Execute " INSERT INTO kftemp (kfflag,miflag,dinno,finish_date,sname,Din_date, model, model_shape, unit, qty,state ) SELECT dflag,miflag,dinno,finish_date,s_name,din_date, model, model_shape, unit, total_qty,state FROM tap_view where state='未开发' and finish_date>=" & "'" & DTP1.value & "'" & " and finish_date<=" & "'" & DTP2.value & "'" & " and fw='" & cmbTown.Text & "'"
        End If
   Else
        If cmbTown = "全部" Then
            db.Execute " INSERT INTO kftemp (kfflag,miflag,dinno,finish_date,sname,Din_date, model, model_shape, unit, qty,state ) SELECT dflag,miflag,dinno,finish_date,s_name,din_date, model, model_shape, unit, total_qty,state FROM tap_view where state='未开发' and finish_date>=" & "'" & DTP1.value & "'" & " and finish_date<=" & "'" & DTP2.value & "'" & " and fang='" & cmbfang.Text & "'"
        Else
            db.Execute " INSERT INTO kftemp (kfflag,miflag,dinno,finish_date,sname,Din_date, model, model_shape, unit, qty,state ) SELECT dflag,miflag,dinno,finish_date,s_name,din_date, model, model_shape, unit, total_qty,state FROM tap_view where state='未开发' and finish_date>=" & "'" & DTP1.value & "'" & " and finish_date<=" & "'" & DTP2.value & "'" & " and fang='" & cmbfang.Text & "' and fw='" & cmbTown.Text & "'"
        End If
   End If
   sqlcc2 = "select * from kftemp order by finish_date"
   Dim rs As Recordset
   Set rs = New Recordset
   rs.Open sqlcc2, db, adOpenStatic, adLockOptimistic
   If rs.RecordCount > 0 Then
        rs.Close
        Set rs = Nothing
        Arkfprint.Show 1
   Else
        rs.Close
        Set rs = Nothing
        MsgBox "不能找到相应的记录!!!", vbCritical + vbOKOnly, MSG2
        Me.MousePointer = 0
        Exit Sub
   End If
Me.MousePointer = 0
End Sub

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = vbKeyEscape Then Unload Me
End Sub

Private Sub Form_Load()
    DTP1.value = Date
    DTP2.value = Date
    DTP3.value = Date
     
'    cmbfang.AddItem "全部"
'    cmbfang.Text = "全部"
'Define Recordset
    Dim clitb As Recordset
    Set clitb = New Recordset
'Init Client FangXiang
    cmbfang.Clear
    cmbfang.AddItem "全部"
    clitb.Open "select distinct fangxiang from fangxiang", db, adOpenStatic, adLockOptimistic
    For i = 1 To clitb.RecordCount
        cmbfang.AddItem clitb!fangxiang
        clitb.MoveNext
    Next
    cmbfang.ListIndex = 0
    clitb.Close
'Init Client Town
    cmbTown.Clear
    cmbTown.AddItem "全部"
    clitb.Open "select distinct town from scope", db, adOpenStatic, adLockOptimistic
    For i = 1 To clitb.RecordCount
        cmbTown.AddItem clitb!town
        clitb.MoveNext
    Next
    cmbTown.ListIndex = 0
    clitb.Close
    
End Sub

Private Sub Label1_Click()

End Sub

Private Sub Form_Resize()
'On Error Resume Next
'Me.Top = 0
'Me.Left = 50
End Sub

⌨️ 快捷键说明

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