- /////////////////////////////////////
- ///文 件:PDUdecoding.cs
- ///程 序 员:klude
- ///编制日期:2007-11-04
- ///概 要:针对国内短信编码(USC2)
- ///组成结构:包含四个函数:
- /// smsDecodedCenterNumber(string srvCenterNumber) 短信中心号编码
- /// smsPDUEncoded(string srvContent) 短信内容编码
- /// smsDecodedNumber(string srvNumber) 接收短信手机号编码
- /// smsDecodedsms(string strCenterNumber, string strNumber, string strSMScontent) 整个短信的编码
- /// 一个字段
- /// string nLength; //要发送内容的长度,由两部分组成,接收手机号加上要发送的内容
- ///
- ///版 本:1.0.20071104
- ///用 法:
- /// 1,把文件拷贝到你的项目中,添加引用 using SMS;
- /// 2,定义本类,例如:PDUdecoding ss = new SMS.PDUdecoding();
- /// 3,现在你就可以使用本类了,例如:
- /// textBox2.Text = ss.smsDecodedsms(txtCenterNumber.Text,txtNumber.Text,textBox1.Text);
- ////////////////////////////////////
- using System;
- using System.Text;
- namespace SMS
- {
- public class PDUdecoding
- {
- public string nLength; //要发送内容的长度,由两部分组成,接收手机号加上要发送的内容
- /// <summary>
- /// 函数功能:短信内容编码
- /// 函数名称:smsPDUEncoded(string srvContent)
- /// 参 数:srvContent 要进行转换的短信内容,string类型
- /// 返 回 值:编码后的短信内容,string类型
- /// 程 序 员:klude
- /// 编制日期:2007-11-04
- /// 函数说明: