示例#1
0
        /// <summary>
        /// 读卡
        /// </summary>
        /// <returns></returns>
        public static string readCard()
        {
            SysBLL.RunCmd(mainPath + "\\Rd.exe " + SysConfigHelper.readerNode("baggRdPort") + " read");
            Thread.Sleep(2000);
            string cardNo = readerBAGGNode("beianCard");

            writeBAGGNode("");
            return(cardNo);
        }
示例#2
0
 /// <summary>
 /// 写卡
 /// </summary>
 /// <param name="payType"></param>
 /// <param name="amount"></param>
 public static void writeCard(string payType, string amount)
 {
     if (payType.Equals("01"))
     {
         payType = "00";
     }
     if (payType.Equals("02"))
     {
         payType = "01";
     }
     SysBLL.RunCmd(mainPath + "\\BAGG\\Rd.exe " + SysConfigHelper.readerNode("baggRdPort") + " write " + payType + " " + amount + "");
     Thread.Sleep(2000);
     writeBAGGNode("");
 }