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

📄 frm_销货合同.frm

📁 这是个很好比较齐全的合同管理系统大家可以下载有很多用途
💻 FRM
📖 第 1 页 / 共 4 页
字号:
               BeginProperty Column00 
               EndProperty
               BeginProperty Column01 
               EndProperty
            EndProperty
         End
         Begin VB.Label lblLabels 
            Alignment       =   1  'Right Justify
            Caption         =   "职员编号:"
            Height          =   255
            Index           =   13
            Left            =   3000
            TabIndex        =   42
            Top             =   1650
            Width           =   990
         End
         Begin VB.Label lblLabels 
            Alignment       =   1  'Right Justify
            Caption         =   "客户编号:"
            Height          =   255
            Index           =   12
            Left            =   375
            TabIndex        =   41
            Top             =   1650
            Width           =   990
         End
         Begin VB.Label lblLabels 
            Alignment       =   1  'Right Justify
            Caption         =   "报价时间:"
            Height          =   255
            Index           =   11
            Left            =   3000
            TabIndex        =   40
            Top             =   1050
            Width           =   990
         End
         Begin VB.Label lblLabels 
            Alignment       =   1  'Right Justify
            Caption         =   "签约币种:"
            Height          =   255
            Index           =   10
            Left            =   3000
            TabIndex        =   39
            Top             =   4950
            Width           =   990
         End
         Begin VB.Label lblLabels 
            Alignment       =   1  'Right Justify
            Caption         =   "签约金额:"
            Height          =   255
            Index           =   9
            Left            =   375
            TabIndex        =   38
            Top             =   4875
            Width           =   990
         End
         Begin VB.Label lblLabels 
            Alignment       =   1  'Right Justify
            Caption         =   "优惠后总价:"
            Height          =   255
            Index           =   8
            Left            =   3000
            TabIndex        =   37
            Top             =   4275
            Width           =   990
         End
         Begin VB.Label lblLabels 
            Alignment       =   1  'Right Justify
            Caption         =   "优惠百分比:"
            Height          =   255
            Index           =   7
            Left            =   375
            TabIndex        =   36
            Top             =   4275
            Width           =   990
         End
         Begin VB.Label lblLabels 
            Alignment       =   1  'Right Justify
            Caption         =   "合同总价:"
            Height          =   255
            Index           =   6
            Left            =   3000
            TabIndex        =   35
            Top             =   3600
            Width           =   990
         End
         Begin VB.Label lblLabels 
            Alignment       =   1  'Right Justify
            Caption         =   "设备总价:"
            Height          =   255
            Index           =   5
            Left            =   375
            TabIndex        =   34
            Top             =   3600
            Width           =   990
         End
         Begin VB.Label lblLabels 
            Alignment       =   1  'Right Justify
            Caption         =   "乙方:"
            Height          =   255
            Index           =   4
            Left            =   375
            TabIndex        =   33
            Top             =   2850
            Width           =   990
         End
         Begin VB.Label lblLabels 
            Alignment       =   1  'Right Justify
            Caption         =   "甲方:"
            Height          =   255
            Index           =   3
            Left            =   375
            TabIndex        =   32
            Top             =   2325
            Width           =   990
         End
         Begin VB.Label lblLabels 
            Alignment       =   1  'Right Justify
            Caption         =   "合同号:"
            Height          =   255
            Index           =   2
            Left            =   375
            TabIndex        =   31
            Top             =   1050
            Width           =   990
         End
         Begin VB.Label lblLabels 
            Alignment       =   1  'Right Justify
            Caption         =   "项目编号:"
            Height          =   255
            Index           =   1
            Left            =   3000
            TabIndex        =   30
            Top             =   450
            Width           =   990
         End
         Begin VB.Label lblLabels 
            Alignment       =   1  'Right Justify
            Caption         =   "公司合同号:"
            Height          =   255
            Index           =   0
            Left            =   375
            TabIndex        =   29
            Top             =   450
            Width           =   990
         End
      End
      Begin MSAdodcLib.Adodc datPrimaryRS 
         Height          =   330
         Index           =   0
         Left            =   120
         Top             =   6960
         Width           =   11415
         _ExtentX        =   20135
         _ExtentY        =   582
         ConnectMode     =   0
         CursorLocation  =   3
         IsolationLevel  =   -1
         ConnectionTimeout=   15
         CommandTimeout  =   30
         CursorType      =   3
         LockType        =   3
         CommandType     =   8
         CursorOptions   =   0
         CacheSize       =   50
         MaxRecords      =   0
         BOFAction       =   0
         EOFAction       =   0
         ConnectStringType=   3
         Appearance      =   1
         BackColor       =   -2147483643
         ForeColor       =   -2147483640
         Orientation     =   0
         Enabled         =   -1
         Connect         =   "DSN=Contract"
         OLEDBString     =   ""
         OLEDBFile       =   ""
         DataSourceName  =   "Contract"
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   $"frm_销货合同.frx":00FF
         Caption         =   " "
         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
      Begin MSAdodcLib.Adodc datPrimaryRS 
         Height          =   330
         Index           =   2
         Left            =   -74880
         Top             =   5955
         Width           =   5775
         _ExtentX        =   10186
         _ExtentY        =   582
         ConnectMode     =   0
         CursorLocation  =   3
         IsolationLevel  =   -1
         ConnectionTimeout=   15
         CommandTimeout  =   30
         CursorType      =   3
         LockType        =   3
         CommandType     =   8
         CursorOptions   =   0
         CacheSize       =   50
         MaxRecords      =   0
         BOFAction       =   0
         EOFAction       =   0
         ConnectStringType=   1
         Appearance      =   1
         BackColor       =   -2147483643
         ForeColor       =   -2147483640
         Orientation     =   0
         Enabled         =   -1
         Connect         =   "PROVIDER=MSDASQL;dsn=e_ms;uid=sa;pwd=;"
         OLEDBString     =   "PROVIDER=MSDASQL;dsn=e_ms;uid=sa;pwd=;"
         OLEDBFile       =   ""
         DataSourceName  =   ""
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   $"frm_销货合同.frx":01AE
         Caption         =   " "
         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
End
Attribute VB_Name = "frm_销货合同"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Form_Load()
    With tempPrimaryRS
        .ConnectionString = datPrimaryRS(SSTab1.Tab).ConnectionString
        .CursorType = datPrimaryRS(SSTab1.Tab).CursorType
        .RecordSource = datPrimaryRS(SSTab1.Tab).RecordSource
        .Refresh
    End With
End Sub

Private Sub Form_Unload(Cancel As Integer)
  Screen.MousePointer = vbDefault
End Sub

Private Sub SSTab1_Click(PreviousTab As Integer)
    With tempPrimaryRS
        .ConnectionString = datPrimaryRS(SSTab1.Tab).ConnectionString
        .CursorType = datPrimaryRS(SSTab1.Tab).CursorType
        .RecordSource = datPrimaryRS(SSTab1.Tab).RecordSource
        .Refresh
    End With
End Sub

Private Sub tempPrimaryRS_Error(ByVal ErrorNumber As Long, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, fCancelDisplay As Boolean)
  '错误处理程序代码置于此处
  '想要忽略错误,注释掉下一行
  '想要捕获它们,在此添加代码以处理它们
  MsgBox "Data error event hit err:" & Description
End Sub

Private Sub tempPrimaryRS_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
  '为这个 recordset 显示当前记录位置
  tempPrimaryRS.Caption = "Record: " & CStr(tempPrimaryRS.Recordset.AbsolutePosition)
End Sub

Private Sub tempPrimaryRS_WillChangeRecord(ByVal adReason As ADODB.EventReasonEnum, ByVal cRecords As Long, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
  '验证代码置于此处
  '下列动作发生时该事件被调用
  Dim bCancel As Boolean

  Select Case adReason
  Case adRsnAddNew
  Case adRsnClose
  Case adRsnDelete
  Case adRsnFirstChange
  Case adRsnMove
  Case adRsnRequery
  Case adRsnResynch
  Case adRsnUndoAddNew
  Case adRsnUndoDelete
  Case adRsnUndoUpdate
  Case adRsnUpdate
  End Select

  If bCancel Then adStatus = adStatusCancel
End Sub

Private Sub cmdAdd_Click()
  On Error GoTo AddErr
  tempPrimaryRS.Recordset.AddNew

  Exit Sub
AddErr:
  MsgBox Err.Description
End Sub

Private Sub cmdDelete_Click()
  On Error GoTo DeleteErr
  With tempPrimaryRS.Recordset
    .Delete
    .MoveNext
    If .EOF Then .MoveLast
  End With
  Exit Sub
DeleteErr:
  MsgBox Err.Description
End Sub

Private Sub cmdRefresh_Click()
  '只有多用户应用程序需要
  On Error GoTo RefreshErr
  tempPrimaryRS.Refresh
  Exit Sub
RefreshErr:
  MsgBox Err.Description
End Sub

Private Sub cmdUpdate_Click()
  On Error GoTo UpdateErr

  tempPrimaryRS.Recordset.UpdateBatch adAffectAll
  Exit Sub
UpdateErr:
  MsgBox Err.Description
End Sub

Private Sub cmdClose_Click()
  Unload Me
End Sub


⌨️ 快捷键说明

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