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

📄 pduencoder.vb

📁 通过串口发送短信的模块,采用vb.net编写
💻 VB
📖 第 1 页 / 共 2 页
字号:

Imports ATSMS.SMS
Imports ATSMS.SMS.Encoder.SMS
Imports ATSMS.SMS.Encoder.ConcatenatedShortMessage

Public Class frmPDUEncoder
    Inherits System.Windows.Forms.Form
    Dim SMSObject As Object  'Object To Store SMS or ConcatenatedShortMessage. Late Blinding.
    Dim DataCodingScheme As ENUM_TP_DCS
    Dim ValidPeriod As ENUM_TP_VPF
    Dim PDUCodes() As String

#Region " Windows "

    Public Sub New()
        MyBase.New()


        InitializeComponent()



    End Sub

    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Windows 
    Private components As System.ComponentModel.IContainer

    Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
    Friend WithEvents txtMsgRef As System.Windows.Forms.TextBox
    Friend WithEvents cmbValidPeriod As System.Windows.Forms.ComboBox
    Friend WithEvents cmbDataCodingScheme As System.Windows.Forms.ComboBox
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents chkStatusReport As System.Windows.Forms.CheckBox
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents txtDestNum As System.Windows.Forms.TextBox
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents txtServiceCenterNum As System.Windows.Forms.TextBox
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox
    Friend WithEvents txtUserData As System.Windows.Forms.TextBox
    Friend WithEvents GroupBox4 As System.Windows.Forms.GroupBox
    Friend WithEvents cmdReset As System.Windows.Forms.Button
    Friend WithEvents cmdGetPDU As System.Windows.Forms.Button
    Friend WithEvents stsBar As System.Windows.Forms.StatusBar
    Friend WithEvents stsBarCharCount As System.Windows.Forms.StatusBarPanel
    Friend WithEvents txtPDU As System.Windows.Forms.TextBox
    Friend WithEvents cmdCopyToClipboard As System.Windows.Forms.Button
    Friend WithEvents stsPDULength As System.Windows.Forms.StatusBarPanel
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        'Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frmPDUEncoder))
        Me.GroupBox2 = New System.Windows.Forms.GroupBox
        Me.txtMsgRef = New System.Windows.Forms.TextBox
        Me.cmbValidPeriod = New System.Windows.Forms.ComboBox
        Me.cmbDataCodingScheme = New System.Windows.Forms.ComboBox
        Me.Label5 = New System.Windows.Forms.Label
        Me.Label4 = New System.Windows.Forms.Label
        Me.Label3 = New System.Windows.Forms.Label
        Me.chkStatusReport = New System.Windows.Forms.CheckBox
        Me.cmdReset = New System.Windows.Forms.Button
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.txtDestNum = New System.Windows.Forms.TextBox
        Me.Label2 = New System.Windows.Forms.Label
        Me.txtServiceCenterNum = New System.Windows.Forms.TextBox
        Me.Label1 = New System.Windows.Forms.Label
        Me.GroupBox3 = New System.Windows.Forms.GroupBox
        Me.txtUserData = New System.Windows.Forms.TextBox
        Me.GroupBox4 = New System.Windows.Forms.GroupBox
        Me.txtPDU = New System.Windows.Forms.TextBox
        Me.cmdGetPDU = New System.Windows.Forms.Button
        Me.stsBar = New System.Windows.Forms.StatusBar
        Me.stsBarCharCount = New System.Windows.Forms.StatusBarPanel
        Me.stsPDULength = New System.Windows.Forms.StatusBarPanel
        Me.cmdCopyToClipboard = New System.Windows.Forms.Button
        Me.GroupBox2.SuspendLayout()
        Me.GroupBox1.SuspendLayout()
        Me.GroupBox3.SuspendLayout()
        Me.GroupBox4.SuspendLayout()
        CType(Me.stsBarCharCount, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.stsPDULength, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'GroupBox2
        '
        Me.GroupBox2.Controls.Add(Me.txtMsgRef)
        Me.GroupBox2.Controls.Add(Me.cmbValidPeriod)
        Me.GroupBox2.Controls.Add(Me.cmbDataCodingScheme)
        Me.GroupBox2.Controls.Add(Me.Label5)
        Me.GroupBox2.Controls.Add(Me.Label4)
        Me.GroupBox2.Controls.Add(Me.Label3)
        Me.GroupBox2.Controls.Add(Me.chkStatusReport)
        Me.GroupBox2.Controls.Add(Me.cmdReset)
        Me.GroupBox2.Location = New System.Drawing.Point(7, 104)
        Me.GroupBox2.Name = "GroupBox2"
        Me.GroupBox2.Size = New System.Drawing.Size(280, 145)
        Me.GroupBox2.TabIndex = 7
        Me.GroupBox2.TabStop = False
        Me.GroupBox2.Text = "Options"
        '
        'txtMsgRef
        '
        Me.txtMsgRef.Location = New System.Drawing.Point(137, 82)
        Me.txtMsgRef.Name = "txtMsgRef"
        Me.txtMsgRef.Size = New System.Drawing.Size(133, 20)
        Me.txtMsgRef.TabIndex = 9
        '
        'cmbValidPeriod
        '
        Me.cmbValidPeriod.Location = New System.Drawing.Point(137, 52)
        Me.cmbValidPeriod.Name = "cmbValidPeriod"
        Me.cmbValidPeriod.Size = New System.Drawing.Size(136, 21)
        Me.cmbValidPeriod.TabIndex = 8
        '
        'cmbDataCodingScheme
        '
        Me.cmbDataCodingScheme.Location = New System.Drawing.Point(137, 22)
        Me.cmbDataCodingScheme.Name = "cmbDataCodingScheme"
        Me.cmbDataCodingScheme.Size = New System.Drawing.Size(136, 21)
        Me.cmbDataCodingScheme.TabIndex = 7
        '
        'Label5
        '
        Me.Label5.Location = New System.Drawing.Point(23, 85)
        Me.Label5.Name = "Label5"
        Me.Label5.Size = New System.Drawing.Size(94, 15)
        Me.Label5.TabIndex = 5
        Me.Label5.Text = "Message Reference"
        Me.Label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
        '
        'Label4
        '
        Me.Label4.Location = New System.Drawing.Point(23, 56)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(94, 15)
        Me.Label4.TabIndex = 3
        Me.Label4.Text = "ValidityPeriod"
        Me.Label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
        '
        'Label3
        '
        Me.Label3.Location = New System.Drawing.Point(23, 22)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(108, 19)
        Me.Label3.TabIndex = 1
        Me.Label3.Text = "DataCodingScheme"
        Me.Label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
        '
        'chkStatusReport
        '
        Me.chkStatusReport.CheckAlign = System.Drawing.ContentAlignment.BottomRight
        Me.chkStatusReport.FlatStyle = System.Windows.Forms.FlatStyle.System
        Me.chkStatusReport.Location = New System.Drawing.Point(27, 115)
        Me.chkStatusReport.Name = "chkStatusReport"
        Me.chkStatusReport.Size = New System.Drawing.Size(120, 15)
        Me.chkStatusReport.TabIndex = 0
        Me.chkStatusReport.Text = "Status Report"
        Me.chkStatusReport.TextAlign = System.Drawing.ContentAlignment.BottomLeft
        '
        'cmdReset
        '
        Me.cmdReset.FlatStyle = System.Windows.Forms.FlatStyle.System
        Me.cmdReset.Location = New System.Drawing.Point(177, 110)
        Me.cmdReset.Name = "cmdReset"
        Me.cmdReset.Size = New System.Drawing.Size(90, 26)
        Me.cmdReset.TabIndex = 10
        Me.cmdReset.Text = "&Reset To Default"
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.Add(Me.txtDestNum)
        Me.GroupBox1.Controls.Add(Me.Label2)
        Me.GroupBox1.Controls.Add(Me.txtServiceCenterNum)
        Me.GroupBox1.Controls.Add(Me.Label1)
        Me.GroupBox1.Location = New System.Drawing.Point(7, 11)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(280, 86)
        Me.GroupBox1.TabIndex = 6
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "Number"
        '
        'txtDestNum
        '
        Me.txtDestNum.Location = New System.Drawing.Point(137, 54)
        Me.txtDestNum.Name = "txtDestNum"
        Me.txtDestNum.Size = New System.Drawing.Size(136, 20)
        Me.txtDestNum.TabIndex = 7
        '
        'Label2
        '
        Me.Label2.Location = New System.Drawing.Point(13, 52)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(107, 22)
        Me.Label2.TabIndex = 6
        Me.Label2.Text = "Destination Number"
        Me.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
        '
        'txtServiceCenterNum
        '
        Me.txtServiceCenterNum.Location = New System.Drawing.Point(137, 24)
        Me.txtServiceCenterNum.Name = "txtServiceCenterNum"
        Me.txtServiceCenterNum.Size = New System.Drawing.Size(136, 20)
        Me.txtServiceCenterNum.TabIndex = 5
        '
        'Label1
        '
        Me.Label1.Location = New System.Drawing.Point(10, 22)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(113, 23)
        Me.Label1.TabIndex = 4
        Me.Label1.Text = "Service Center Number"
        Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
        '
        'GroupBox3
        '
        Me.GroupBox3.Controls.Add(Me.txtUserData)
        Me.GroupBox3.Location = New System.Drawing.Point(293, 11)
        Me.GroupBox3.Name = "GroupBox3"
        Me.GroupBox3.Size = New System.Drawing.Size(294, 86)
        Me.GroupBox3.TabIndex = 8
        Me.GroupBox3.TabStop = False
        Me.GroupBox3.Text = "User Data"
        '
        'txtUserData
        '
        Me.txtUserData.Dock = System.Windows.Forms.DockStyle.Fill
        Me.txtUserData.Location = New System.Drawing.Point(3, 16)
        Me.txtUserData.Multiline = True
        Me.txtUserData.Name = "txtUserData"
        Me.txtUserData.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
        Me.txtUserData.Size = New System.Drawing.Size(288, 67)
        Me.txtUserData.TabIndex = 0
        '
        'GroupBox4
        '
        Me.GroupBox4.Controls.Add(Me.txtPDU)
        Me.GroupBox4.Location = New System.Drawing.Point(293, 104)

⌨️ 快捷键说明

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