/// <summary> /// 设置电话区密码 /// </summary> //public void InitPhoneSector() //{ // JocatDevice.SetCardPassword(m_intComPort, "10", m_strPhonePassword); //} /// <summary> /// 设置用水收集卡 /// </summary> public void ResetWaterCollectCard() { //设置读卡器密码 JocatDevice.SetReaderPassWord(m_intComPort, m_strWaterCollectCardPW); //写入资料 JocatDevice.WriteCard(m_intComPort, "9", 2, m_strCollectionNormal + m_strCollectionNormal); }
/// <summary> /// 设置热水管理卡 /// </summary> public void SetWaterAdminCard(string p_strPassword, int p_intPreUse, int p_intDailyUse, decimal p_decPrice) { //设置读卡器密码 JocatDevice.SetReaderPassWord(m_intComPort, m_strAdminPassword); string l_strCRC = "FFFF9E10"; string l_strPreUse = EquipmentGeneral.IntToHexInSorting(p_intPreUse, 4); string l_strDailyUse = EquipmentGeneral.IntToHexInSorting(p_intDailyUse, 4); string l_strPrice = EquipmentGeneral.IntToHexInSorting(Convert.ToInt32(p_decPrice * 100), 4); string l_strAdmin = p_strPassword + l_strPreUse + l_strDailyUse + l_strPrice + l_strCRC; //写入数据 JocatDevice.WriteCard(m_intComPort, "9", 2, l_strAdmin + l_strAdmin); }
/// <summary> /// 设置读卡器密码 /// </summary> /// <param name="port"></param> /// <param name="p_strPassword"></param> /// <returns></returns> public override bool SetWriterPassword(int port, string p_strPassword) { this._strWriterPwd = p_strPassword; return(JocatDevice.SetReaderPassWord(port, p_strPassword)); }