Ejemplo n.º 1
0
        public int WriteNewCard(short com, int baud, ref string kmm, short kzt, string kh, string dqdm, string yhh, string tm, int ql, int csql, int ccsql, short cs, int ljgql, short bkcs, int ljyql, int bjql, int czsx, int tzed, string sqrq, string cssqrq, int oldprice, int newprice, string sxrq, string sxbj)
        {
            //清卡,新卡,卡上有内容
            MingHua.ClearCard(com, baud);

            HtDll.HTDL card = new HtDll.HTDL();
            //用户卡清卡
            card.ClearCard(com, baud);

            int result;

            //发卡
            if (kzt == 0)
            {
                //调用发卡
                result = card.NewCard(com, baud, 1, ql, kh, bjql);
            }
            else
            {
                //调用补卡
                result = card.CardInit(com, baud, 1, ql, kh, bjql, 5, "20131008", 0, cs);
            }
            Log.Debug("write card end ret=" + result);
            return(result);
        }
Ejemplo n.º 2
0
        public int FormatGasCard(short com, int baud, string kmm, string kh, string dqdm)
        {
            HtDll.HTDL card   = new HtDll.HTDL();
            int        result = card.ClearCard(com, baud);

            return(result);
        }
Ejemplo n.º 3
0
        public int WriteNewCard(short com, int baud, ref string kmm, short kzt, string kh, string dqdm, string yhh, string tm, int ql, int csql, int ccsql, short cs, int ljgql, short bkcs, int ljyql, int bjql, int czsx, int tzed, string sqrq, string cssqrq, int oldprice, int newprice, string sxrq, string sxbj)
        {
            //清卡,新卡,卡上有内容
            MingHua.ClearCard(com, baud);

            HtDll.HTDL card = new HtDll.HTDL();
            //用户卡清卡
            card.ClearCard(com, baud);

            int result;
            //发卡
	        if(kzt==0)
	        {
		        //调用发卡
		        result = card.NewCard(com, baud, 1, ql, kh, bjql); 
	        }
	        else
	        {
		        //调用补卡
                result = card.CardInit(com, baud, 1, ql, kh, bjql, 5, "20131008", 0, cs);
	        }
            Log.Debug("write card end ret=" + result);
            return result;
        }
Ejemplo n.º 4
0
 public int FormatGasCard(short com, int baud, string kmm, string kh, string dqdm)
 {
     HtDll.HTDL card = new HtDll.HTDL();
     int result = card.ClearCard(com, baud); 
     return result;
 }