📄 frmsendsms.frm
字号:
VERSION 5.00
Begin VB.Form frmSendsms
Caption = "发送一个短信"
ClientHeight = 3810
ClientLeft = 4950
ClientTop = 3600
ClientWidth = 5250
LinkTopic = "Form1"
ScaleHeight = 3810
ScaleWidth = 5250
Begin VB.CommandButton cmdrefsms
Caption = "..."
BeginProperty Font
Name = "Arial"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 4680
TabIndex = 14
Top = 1440
Width = 375
End
Begin VB.CommandButton Cmdrefcus
Caption = "..."
BeginProperty Font
Name = "Arial"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 4680
TabIndex = 13
Top = 480
Width = 375
End
Begin VB.TextBox txtCid
DataField = "userid"
Height = 285
Left = 3120
TabIndex = 12
Top = 4440
Width = 3375
End
Begin VB.CommandButton cmdok
Caption = "保存"
Default = -1 'True
Height = 375
Left = 2040
TabIndex = 6
Top = 3390
Width = 1215
End
Begin VB.CommandButton cmdcancel
Cancel = -1 'True
Caption = "取消"
Height = 375
Left = 3480
TabIndex = 5
Top = 3390
Width = 1215
End
Begin VB.TextBox txtCname
DataField = "username"
Enabled = 0 'False
Height = 285
Left = 1440
TabIndex = 4
Top = 480
Width = 3135
End
Begin VB.TextBox txtsmsID
DataField = "userid"
Height = 285
Left = 3120
TabIndex = 3
Top = 3870
Width = 3375
End
Begin VB.TextBox txtMobile
DataField = "username"
Height = 285
Left = 1440
TabIndex = 2
Top = 960
Width = 3135
End
Begin VB.TextBox txtSms
DataField = "username"
Height = 1365
Left = 1440
MultiLine = -1 'True
TabIndex = 1
Top = 1440
Width = 3135
End
Begin VB.TextBox txtStime
DataField = "username"
Height = 285
Left = 1440
TabIndex = 0
Top = 2880
Width = 3135
End
Begin VB.Label lblLabels
Caption = "客户名称:"
Height = 255
Index = 2
Left = 240
TabIndex = 11
Top = 495
Width = 1095
End
Begin VB.Label lblLabels
Caption = "User ID:"
Height = 255
Index = 1
Left = 1320
TabIndex = 10
Top = 3870
Width = 1815
End
Begin VB.Label lblLabels
Caption = "手机号码:"
Height = 255
Index = 0
Left = 240
TabIndex = 9
Top = 975
Width = 1095
End
Begin VB.Label lblLabels
Caption = "短信:"
Height = 255
Index = 3
Left = 240
TabIndex = 8
Top = 1455
Width = 1095
End
Begin VB.Label lblLabels
Caption = "发送时间:"
Height = 255
Index = 4
Left = 240
TabIndex = 7
Top = 2895
Width = 1095
End
End
Attribute VB_Name = "frmSendsms"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public ok As String
Public value As m_sendsms
Private Sub Cmdcancel_Click()
ok = False
Me.Hide
End Sub
Private Sub CmdOk_Click()
On Error GoTo eh
value.smsid = Me.txtsmsID
value.cid = IIf(Me.txtCid = "", 0, Me.txtCid)
value.cname = Me.txtCname
value.mobile = Me.txtMobile
value.sms = Me.txtSms
value.stime = CDate(Me.txtStime)
value.smsfrom = False
value.sendisok = False
If (value.rtime = value.stime) Then
value.imsend = True
Else
value.imsend = False
End If
ok = True
Me.Hide
Exit Sub
eh:
MsgBox "输入错误,请检查!", vbInformation, "输入错误"
End Sub
Private Sub Form_Load()
value.rtime = Date + Time
value.stime = value.rtime
Me.txtsmsID = value.smsid
Me.txtCid = value.cid
Me.txtCname = value.cname
Me.txtMobile = value.mobile
Me.txtSms = value.sms
Me.txtStime = Format(value.stime, Dateformat)
End Sub
Private Sub cmdrefsms_Click()
Dim vc As vc_in
Set vc = Ins_vc_smsm
Dim sps As spListHeaders
Set sps = vc.Ref
Me.txtSms = sps(sps.SUBIndex("text")).Other1
releObject sps
End Sub
Private Sub Cmdrefcus_Click()
Dim vc As vc_in
Set vc = Ins_vc_customer
Dim sps As spListHeaders
Set sps = vc.Ref
Me.txtCid = sps(sps.SUBIndex("cid")).Other1
Me.txtCname = sps(sps.SUBIndex("cname")).Other1
Me.txtMobile = sps(sps.SUBIndex("mobile")).Other1
releObject sps
End Sub
Private Sub Form_Unload(Cancel As Integer)
ok = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -