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

📄 mainfrm.frm

📁 金蝶财务软件主控台子功能管理,用于删除发布错误的BOS单据
💻 FRM
📖 第 1 页 / 共 2 页
字号:
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   2
      BeginProperty Column00 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         MarqueeStyle    =   3
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin MSDataGridLib.DataGrid DataGrid2 
      Bindings        =   "mainfrm.frx":002A
      Height          =   2055
      Left            =   120
      TabIndex        =   1
      Top             =   3000
      Width           =   7575
      _ExtentX        =   13361
      _ExtentY        =   3625
      _Version        =   393216
      AllowUpdate     =   -1  'True
      HeadLines       =   2
      RowHeight       =   15
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   2
      BeginProperty Column00 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         MarqueeStyle    =   3
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "mainfrm.frx":003F
      Height          =   2055
      Left            =   120
      TabIndex        =   0
      Top             =   480
      Width           =   7575
      _ExtentX        =   13361
      _ExtentY        =   3625
      _Version        =   393216
      AllowUpdate     =   -1  'True
      HeadLines       =   2
      RowHeight       =   15
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   2
      BeginProperty Column00 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         MarqueeStyle    =   3
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin VB.Label Label4 
      Caption         =   "t_DataFlowDetailFunc 表明细级"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   255
      Left            =   120
      TabIndex        =   7
      Top             =   7680
      Width           =   3495
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      Caption         =   "t_DataFlowSubFunc表三级"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   300
      Left            =   120
      TabIndex        =   6
      Top             =   5040
      Width           =   2925
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackColor       =   &H8000000A&
      Caption         =   "t_DataFlowSubSystem 表二级"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   300
      Left            =   120
      TabIndex        =   5
      Top             =   2520
      Width           =   3240
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "t_DataFlowTopClass表顶级"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   300
      Left            =   120
      TabIndex        =   4
      Top             =   0
      Width           =   2940
   End
End
Attribute VB_Name = "mainfrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Resize()
On Error Resume Next
    If Me.Width < 1500 Or Me.Height < 1500 Then
        Exit Sub
    End If
With DataGrid1
    .Left = Me.ScaleLeft + 100
    .Top = 360
    .Width = Me.ScaleWidth - 300
End With
With DataGrid2
    .Left = Me.ScaleLeft + 100
    .Top = 2900
    .Width = Me.ScaleWidth - 300
End With
With DataGrid3
    .Left = Me.ScaleLeft + 100
    .Top = 5400
    .Width = Me.ScaleWidth - 300
End With
With DataGrid4
    .Left = Me.ScaleLeft + 100
    .Top = 8100
    .Width = Me.ScaleWidth - 300
End With

With Command1
    .Left = Me.ScaleLeft + 100
    .Top = 10560
    .Width = Me.ScaleWidth - 300
End With
End Sub
Private Sub Command1_Click()
    On Error GoTo ww
    
    Dim con As New ADODB.Connection
    con.ConnectionString = g_ConnStr
    con.Open
    con.Execute "update t_dataflowtimestamp set fname=fname"
    con.Close
    Set con = Nothing
    MsgBox "更新成功!"
    Exit Sub
ww:
    MsgBox "更新失败!"
End Sub

Private Sub Command2_Click()
    If MsgBox("删除后无法恢复,是否继续??", vbQuestion Or vbYesNo, "旺旺") = vbYes Then
        If Not (Adodc1.Recordset.BOF = True And Adodc1.Recordset.EOF = True) Then
            Adodc1.Recordset.Delete
        End If
    End If
End Sub

Private Sub Command3_Click()
    If MsgBox("删除后无法恢复,是否继续??", vbQuestion Or vbYesNo, "旺旺") = vbYes Then
        If Not (Adodc2.Recordset.BOF = True And Adodc2.Recordset.EOF = True) Then
            Adodc2.Recordset.Delete
        End If
    End If
End Sub

Private Sub Command4_Click()
    If MsgBox("删除后无法恢复,是否继续??", vbQuestion Or vbYesNo, "旺旺") = vbYes Then
        If Not (Adodc3.Recordset.BOF = True And Adodc3.Recordset.EOF = True) Then
            Adodc3.Recordset.Delete
        End If
    End If
End Sub

Private Sub Command5_Click()
    If MsgBox("删除后无法恢复,是否继续??", vbQuestion Or vbYesNo, "旺旺") = vbYes Then
        If Not (Adodc4.Recordset.BOF = True And Adodc4.Recordset.EOF = True) Then
            Adodc4.Recordset.Delete
        End If
    End If
End Sub

Private Sub Command6_Click()
    Adodc1.Recordset.UpdateBatch
End Sub

Private Sub Command7_Click()
    Adodc2.Recordset.UpdateBatch
End Sub

Private Sub Command8_Click()
    Adodc3.Recordset.UpdateBatch
End Sub

Private Sub Command9_Click()
    Adodc4.Recordset.UpdateBatch
End Sub

Private Sub DataGrid1_RowColChange(LastRow As Variant, ByVal LastCol As Integer)
    If Adodc1.Recordset.BOF = True And Adodc1.Recordset.EOF = True Then
        Adodc2.RecordSource = "select * from t_DataFlowSubSystem where FTopClassID = 0"
    Else
        Adodc2.RecordSource = "select * from t_DataFlowSubSystem where FTopClassID = " & CStr(Adodc1.Recordset!FTopClassID)
    End If
    Adodc2.Refresh
    
    
    If Adodc2.Recordset.BOF = True And Adodc2.Recordset.EOF = True Then
        Adodc3.RecordSource = "select * from t_DataFlowSubFunc where FSubSysID = 0"
    Else
         Adodc3.RecordSource = "select * from t_DataFlowSubFunc where FSubSysID = " & Adodc2.Recordset!FSubSysID
    End If
    Adodc3.Refresh
    

    If Adodc3.Recordset.BOF = True And Adodc3.Recordset.EOF = True Then

        Adodc4.RecordSource = "select * from t_DataFlowDetailFunc where FSubFuncID = 0"
    Else
        Adodc4.RecordSource = "select * from t_DataFlowDetailFunc where FSubFuncID = " & Adodc3.Recordset!FSubFuncID
    End If
    Adodc4.Refresh
End Sub

Private Sub DataGrid2_RowColChange(LastRow As Variant, ByVal LastCol As Integer)
     If Adodc2.Recordset.BOF = True And Adodc2.Recordset.EOF = True Then
        Adodc3.RecordSource = "select * from t_DataFlowSubFunc where FSubSysID = 0"
    Else
         Adodc3.RecordSource = "select * from t_DataFlowSubFunc where FSubSysID = " & Adodc2.Recordset!FSubSysID
    End If
    Adodc3.Refresh
    
    If Adodc3.Recordset.BOF = True And Adodc3.Recordset.EOF = True Then

        Adodc4.RecordSource = "select * from t_DataFlowDetailFunc where FSubFuncID = 0"
    Else
        Adodc4.RecordSource = "select * from t_DataFlowDetailFunc where FSubFuncID = " & Adodc3.Recordset!FSubFuncID
    End If
    Adodc4.Refresh
End Sub

Private Sub DataGrid3_RowColChange(LastRow As Variant, ByVal LastCol As Integer)
 
    If Adodc3.Recordset.BOF = True And Adodc3.Recordset.EOF = True Then

        Adodc4.RecordSource = "select * from t_DataFlowDetailFunc where FSubFuncID = 0"
    Else
        Adodc4.RecordSource = "select * from t_DataFlowDetailFunc where FSubFuncID = " & Adodc3.Recordset!FSubFuncID
    End If
    Adodc4.Refresh
End Sub

Private Sub Form_Load()
    
    'conStr = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;User ID=sa;Initial Catalog=AIS20050428142331;Data Source=."
    
    Adodc1.ConnectionString = g_ConnStr
    Adodc1.RecordSource = "select * from t_DataFlowTopClass"
    Adodc1.Refresh
    
    
    Adodc2.ConnectionString = g_ConnStr
    If Adodc1.Recordset.BOF = True And Adodc1.Recordset.EOF = True Then
        Adodc2.RecordSource = "select * from t_DataFlowSubSystem where FTopClassID = 0"
    Else
        Adodc2.RecordSource = "select * from t_DataFlowSubSystem where FTopClassID = " & CStr(Adodc1.Recordset!FTopClassID)
    End If
    Adodc2.Refresh
    
    
    Adodc3.ConnectionString = g_ConnStr
    If Adodc2.Recordset.BOF = True And Adodc2.Recordset.EOF = True Then
        Adodc3.RecordSource = "select * from t_DataFlowSubFunc where FSubSysID = 0"
    Else
         Adodc3.RecordSource = "select * from t_DataFlowSubFunc where FSubSysID = " & Adodc2.Recordset!FSubSysID
    End If
    Adodc3.Refresh
    
    Adodc4.ConnectionString = g_ConnStr
    If Adodc3.Recordset.BOF = True And Adodc3.Recordset.EOF = True Then

        Adodc4.RecordSource = "select * from t_DataFlowDetailFunc where FSubFuncID = 0"
    Else
        Adodc4.RecordSource = "select * from t_DataFlowDetailFunc where FSubFuncID = " & Adodc3.Recordset!FSubFuncID
    End If
    Adodc4.Refresh
    
    
End Sub

⌨️ 快捷键说明

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