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

📄 call.cs

📁 车载GPS?今天这个就是最好的工具
💻 CS
字号:
using System;
using System.Data.SqlClient;
using System.Windows.Forms;
namespace GEROSYS
{
	/// <summary>
	/// Call 的摘要说明。
	/// </summary>
	public class Call
	{
		public Call()
		{
			//
			// TODO: 在此处添加构造函数逻辑
			//
		}
		public void SendSMS(string strNumber,string txtNote)
		{
			DateTime d= DateTime.Now;
			AccessData AppClient=new AccessData ();
			int liCount=1;
			string sms;
			if (txtNote.Trim().Length>70)
			{
				liCount=txtNote.Trim().Length/70;
				
			}
			for (int liScore=0;liScore<liCount;liScore++)
			{
				if (liScore==liCount-1)
					sms=txtNote.Substring(liScore*70);
				else
					sms=txtNote.Substring(liScore*70,70);

				int ret=WinApi.tecoSMS_send(GlobalPara.ComValue,strNumber,sms);

				if (ret!=0)
				{
					MessageBox.Show("短消息发送不成功!");
				}
			}
					
			string strSQL="insert into shortmess (note_id,sendman,receiveman,send_date,style,note) values('" +AppClient.GetMakeId("shortmess","note_id") +"','调度室','" + strNumber +"',convert(char(120),'" + d +"',10),'0','" +txtNote.ToString()+"')";
			AppClient.ExecuteSQL(strSQL);
		
		
		}
		public void CallPhone(string strNumber)
		{
			WinApi.tecoPhone_dial(strNumber);
		}


	}
}

⌨️ 快捷键说明

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