public int ReadGasCard(short com, int baud, ref string kh, ref int ql, ref decimal money, ref short cs, ref short bkcs, ref string yhh)
{
Log.Debug("com:" + com + "," + "baud:" + baud + "," + "kh" + kh + "," + "ql:" + ql + "," + "money:" + money + "," + "cs:" + cs + "," + "bkcs:" + bkcs + "," + "yhh:" + yhh);
kh = "";
ql = 0;
int BuyTimes = 0;
Int16 CardState = 0;
Int16 DevT = 0;
Int16 IsInsert = 0;
int icdev = auto_init(com, (UInt32)baud); //打开设备
if (icdev <= 0)
{
return -10;
}
StringBuilder sMeterNo = new StringBuilder(11);
double dSumCharge = 0;
int ret = DoReadUserCard2(icdev, sMeterNo, ref dSumCharge, ref BuyTimes, ref CardState, ref DevT, ref IsInsert);
kh = sMeterNo.ToString().Trim();
ql = (int)dSumCharge;
cs = Convert.ToInt16(BuyTimes);
Log.Debug("com:" + com + "," + "baud:" + baud + "," + "kh" + kh + "," + "ql:" + ql + "," + "money:" + money + "," + "cs:" + cs + "," + "bkcs:" + bkcs + "," + "yhh:" + yhh);
ic_exit(icdev);
return ret;
}
/// <summary>