2013年1月9日
摘要: /// 十六进制转换字符串 /// </summary> /// <param name="bts"></param> /// <param name="startIndex"></param> /// <param name="lenth"></param> /// <returns></returns> public string ByteArrayToHexString(byte[] bts) { if (bts == n 阅读全文
posted @ 2013-01-09 14:39 酒歌 阅读(338) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// string转ascci码 /// </summary> /// <param name="asciiCode"></param> /// <returns></returns> public byte[] Asc(string readStr) { try { byte[] asciiByte = new byte[readStr.Length]; if (readS... 阅读全文
posted @ 2013-01-09 14:37 酒歌 阅读(239) 评论(0) 推荐(0) 编辑
摘要: private string BCDToString(byte bts) { try { string bs = (bts >> 4).ToString() + (((byte)(bts << 4)) >> 4).ToString(); return bs; } catch (Exception ex) { throw ex; } } priva... 阅读全文
posted @ 2013-01-09 14:36 酒歌 阅读(742) 评论(0) 推荐(0) 编辑
摘要: SELECT id FROM HouseHold t WHERE (SELECT count(*) FROM HouseHold WHERE hh_MonitorAreaID=t.hh_MonitorAreaID AND t.id<id)<1显示要查询的属于HouseHold表的归属于同一个MonitorAreaID的前2个id 阅读全文
posted @ 2013-01-09 14:34 酒歌 阅读(388) 评论(0) 推荐(0) 编辑