摘要:
/// 十六进制转换字符串 /// </summary> /// <param name="bts"></param> /// <param name="startIndex"></param> /// <param name="lenth"></param> /// <returns></returns> public string ByteArrayToHexString(byte[] bts) { if (bts == n 阅读全文
摘要:
/// <summary> /// string转ascci码 /// </summary> /// <param name="asciiCode"></param> /// <returns></returns> public byte[] Asc(string readStr) { try { byte[] asciiByte = new byte[readStr.Length]; if (readS... 阅读全文
摘要:
private string BCDToString(byte bts) { try { string bs = (bts >> 4).ToString() + (((byte)(bts << 4)) >> 4).ToString(); return bs; } catch (Exception ex) { throw ex; } } priva... 阅读全文
摘要:
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 阅读全文