2020年1月19日
摘要:
//dtH System.Data.DataTable dttemp = new System.Data.DataTable(); DataView tempDv = dtH.DefaultView; dtH = tempDv.ToTable(); dttemp = tempDv.ToTable(t
阅读全文
posted @ 2020-01-19 15:30
幽冥20
阅读(165)
推荐(0)
摘要:
public string GetJpgFile(string strFileServerPath ,string strReportDir) { string strPath = ""; strJpgFileName = ""; try { WebClient web = new WebClien
阅读全文
posted @ 2020-01-19 10:25
幽冥20
阅读(240)
推荐(0)
摘要:
下载iTextSharp.dll using iTextSharp.text.pdf; PdfReader reader = new PdfReader(strPath + "\\" + strPdfFileName);reader.Close();
阅读全文
posted @ 2020-01-19 10:14
幽冥20
阅读(424)
推荐(0)
摘要:
/// <summary> /// 中文字符工具类 /// </summary> private const int LOCALE_SYSTEM_DEFAULT = 0x0800; private const int LCMAP_SIMPLIFIED_CHINESE = 0x02000000; pr
阅读全文
posted @ 2020-01-19 09:16
幽冥20
阅读(166)
推荐(0)
摘要:
public DataTable ConnMySql(string strRegisterNo) { try { DataTable dt = new DataTable("table"); string constr = IP"server=.;database=DB;uid=sa; pwd=sa
阅读全文
posted @ 2020-01-19 09:01
幽冥20
阅读(125)
推荐(0)
2020年1月17日
摘要:
///<summary> /// 清空指定的文件,但不删除文件夹 /// </summary> /// <param name="dir"></param> public bool DeleteFolder(string dir) { try { bool blFalg = false; if (F
阅读全文
posted @ 2020-01-17 17:22
幽冥20
阅读(218)
推荐(0)
摘要:
private string GetWeather(string strRegisterNo) { string getWeatherUrl = "http://XX.XX.XX.XX :XXXX/QuestionResult.aspx?method=GetQuestionResultData&re
阅读全文
posted @ 2020-01-17 17:16
幽冥20
阅读(294)
推荐(0)
摘要:
/// <summary> /// 限定输入框只能输入数字, TextBox的TextChanged事件调用 /// </summary> /// <param name="e">控件对象</param> /// <param name="strText">空间中原有的文本</param> ///
阅读全文
posted @ 2020-01-17 17:10
幽冥20
阅读(347)
推荐(0)
摘要:
private void H0_KeyDown(object sender, KeyEventArgs e) { try { switch (e.KeyCode) { case Keys.F1: btn_Clear.PerformClick(); break; case Keys.F10: btn_
阅读全文
posted @ 2020-01-17 16:32
幽冥20
阅读(127)
推荐(0)
摘要:
private PropertyInfo _PropertyInfo = null; bool isNeedCreateDBMakerRegistry = false; public L10() { try { InitializeComponent(); #region 改善加载画面时闪烁 thi
阅读全文
posted @ 2020-01-17 16:17
幽冥20
阅读(179)
推荐(0)
摘要:
public delegate void SpeechDelegate(string strGNo, string strNumber); private void SpeechNumber(string strGNo, string strNumber) { try { if (this.Invo
阅读全文
posted @ 2020-01-17 16:08
幽冥20
阅读(173)
推荐(0)
摘要:
/// <summary> /// 发送信息至消息队列 /// </summary> private void sendNumberToMessageQuee() { try { System.Messaging.MessageQueue MQ = new System.Messaging.Mess
阅读全文
posted @ 2020-01-17 15:33
幽冥20
阅读(232)
推荐(0)
摘要:
/// <summary> /// 接收队列信息 /// </summary> /// <returns></returns> private bool receiveSimpleMsg() { try { MessageQueue MQ = new MessageQueue(@".\private
阅读全文
posted @ 2020-01-17 15:28
幽冥20
阅读(157)
推荐(0)
摘要:
/// <summary> /// 根据日期获得节气 /// </summary> /// <param name="date"></param> /// <returns></returns> public string terms(DateTime date) { string[] SolarT
阅读全文
posted @ 2020-01-17 14:57
幽冥20
阅读(401)
推荐(0)
摘要:
/// <summary> /// List和DataTable互转 /// </summary> static class ListUtility { /// <summary> /// 将List转换成DataTable /// </summary> /// <typeparam name="T
阅读全文
posted @ 2020-01-17 14:49
幽冥20
阅读(215)
推荐(0)
摘要:
/// <summary> /// 设置datagridview隔行变色 /// </summary> /// <param name="e">datagridview控件</param> public void setDgvRowColor(ref object sender) { try { D
阅读全文
posted @ 2020-01-17 14:47
幽冥20
阅读(257)
推荐(0)
摘要:
/// <summary> /// 检核文件类型 /// </summary> /// <param name="strFileName"></param> /// <returns></returns> public string getFileType(string strFileName) {
阅读全文
posted @ 2020-01-17 14:44
幽冥20
阅读(158)
推荐(0)
摘要:
/// <summary> /// 上传本地文件到文件服务器 /// </summary> /// <param name="strFileServerPath">文件服务器地址</param> /// <param name="StrLocalFileName">本地文件名,带文件完整路径</pa
阅读全文
posted @ 2020-01-17 14:40
幽冥20
阅读(573)
推荐(0)
摘要:
using iTextSharp.text; using iTextSharp.text.pdf; /// <summary> /// 将IMAGE转为PDF后上传 /// </summary> /// <param name="img"></param> /// <param name="strU
阅读全文
posted @ 2020-01-17 14:37
幽冥20
阅读(235)
推荐(0)
摘要:
SerialPort sp1 = new SerialPort(); getBloodPressur(); public void getBloodPressur() { try { string[] str = SerialPort.GetPortNames(); if (str == null)
阅读全文
posted @ 2020-01-17 12:01
幽冥20
阅读(611)
推荐(0)