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

📄 frmproblemedit.frm

📁 售后服务系统 优质的售后服务是企业生存和市场竞争的保障
💻 FRM
📖 第 1 页 / 共 2 页
字号:
      _ExtentY        =   661
      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         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "AdoCustomer"
      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 AdoLevel 
      Height          =   375
      Left            =   3600
      Top             =   3840
      Visible         =   0   'False
      Width           =   1935
      _ExtentX        =   3413
      _ExtentY        =   661
      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         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "AdoLevel"
      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 AdoType 
      Height          =   375
      Left            =   3600
      Top             =   4200
      Visible         =   0   'False
      Width           =   1935
      _ExtentX        =   3413
      _ExtentY        =   661
      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         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "AdoType"
      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 = "FrmProblemEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Modify As Boolean
Public OriProId As Long

Private Sub Cmd_Cancel_Click()
  Unload Me
End Sub

Private Sub Cmd_OK_Click()
  '判断用户录入数据的有效性
  '必须录入问题题目
  If Len(Trim(txtTitle)) = 0 Then
    MsgBox "请输入问题题目"
    txtTitle.SetFocus
    Exit Sub
  End If
  '必须录入客户单位
  If Len(Trim(dco_Customer.Text)) = 0 Then
    MsgBox "请选择客户单位"
    dco_Customer.SetFocus
    Exit Sub
  End If
  '必须录入联系人
  If Len(Trim(txtContact.Text)) = 0 Then
    MsgBox "请输入问题联系人"
    txtContact.SetFocus
    Exit Sub
  End If
  '必须选择问题严重级别
  If Len(Trim(dco_Level.Text)) = 0 Then
    MsgBox "请选择问题严重级别"
    dco_Level.SetFocus
    Exit Sub
  End If
  '必须选择问题类型
  If Len(Trim(dco_Type.Text)) = 0 Then
    MsgBox "请选择问题类型"
    dco_Type.SetFocus
    Exit Sub
  End If
  '必须录入问题描述
  If Trim(txtDetail) = "" Then
    MsgBox "请输入问题描述"
    txtDetail.SetFocus
    Exit Sub
  End If
  '把用户录入的数据赋值到MyPro对象中
  With MyPro
    .CustId = Val(dco_Customer.BoundText)
    .Contact = Trim(txtContact)
    .Title = Trim(txtTitle)
    .ProLevel = Val(dco_Level.BoundText)
    .ProType = Val(dco_Type.BoundText)
    .Detail = Trim(txtDetail)
    .Status = Trim(txtStatus)
    .SolveDate = Trim(txtSDate)
    .Poster = Trim(lblFillin)
    .Createdate = lblFillDate
    '根据变量Modify的值,决定是插入新数据,还是修改已有的数据
    If Modify = False Then
      .Insert
    Else
      Call .Update(OriProId)
    End If
  End With
  '关闭窗体
  Unload Me
End Sub

Private Sub txtClient_KeyPress(KeyAscii As Integer)
  EnterTAB (KeyAscii)
End Sub

Private Sub txtContact_KeyPress(KeyAscii As Integer)
  EnterTAB (KeyAscii)
End Sub

Private Sub txtTel_KeyPress(KeyAscii As Integer)
  EnterTAB (KeyAscii)
End Sub

Private Sub Form_Load()
  LoadData
End Sub

Private Sub LoadData()
  '读取客户信息
  AdoCustomer.ConnectionString = Conn
  AdoCustomer.RecordSource = "SELECT * FROM BaseInfo Where Flag=3 ORDER BY Id"
  AdoCustomer.Refresh
  Set dco_Customer.RowSource = AdoCustomer  '设置行记录源
  dco_Customer.ListField = "BaseName"       '设置显示字段
  dco_Customer.BoundColumn = "Id"       '设置绑定字段
  '读取问题严重级别
  AdoLevel.ConnectionString = Conn
  AdoLevel.RecordSource = "SELECT * FROM BaseInfo WHERE Flag=2 ORDER BY Id"
  AdoLevel.Refresh
  Set dco_Level.RowSource = AdoLevel
  dco_Level.ListField = "BaseName"
  dco_Level.BoundColumn = "Id"
  '读取问题类型
  AdoType.ConnectionString = Conn
  AdoType.RecordSource = "SELECT * FROM BaseInfo WHERE Flag=1 ORDER BY Id"
  AdoType.Refresh
  Set dco_Type.RowSource = AdoType
  dco_Type.ListField = "BaseName"
  dco_Type.BoundColumn = "Id"
End Sub

⌨️ 快捷键说明

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