コード例 #1
0
        // 1.6 CPU卡月票充值初始化
        public string CpuMonthInitHandler()
        {
            string temp = "";
            int    flag;

            byte[] resultByte = new byte[1000];
            flag = Recharge.CpuMonthInit(resultByte);
            temp = Convertor.Ascii2Str(resultByte);
            return(flag + ";" + temp);
        }
コード例 #2
0
        // 1.4 CPU卡钱包圈存初始化
        public string CpuCardRechargeInitHandler(uint money)
        {
            byte[] resultByte = new byte[1000];
            string temp       = "";
            int    flag;

            flag = Recharge.CpuCardRechargeInit(money, resultByte);
            temp = Convertor.Ascii2Str(resultByte);
            return(flag + ";" + temp);
        }
コード例 #3
0
        // 1.7 CPU卡月票充值
        public string CpuMonthRecharge(string rechargeCmdString)
        {
            string temp = "";
            int    flag;

            byte[] resultByte = new byte[1000];
            flag = Recharge.CpuMonthRecharge(rechargeCmdString, resultByte);
            temp = Convertor.Ascii2Str(resultByte);

            return(flag + "" + temp);
        }
コード例 #4
0
        // 1.5 CPU卡钱包充值
        public string CpuCardRechargeHandler(string rechargeCmdString)
        {
            // rechargeCmdString 服务器返回充值字符串(3.5  公交CPU卡申请充值 中的APDU)
            string temp = "";
            int    flag;

            byte[] resultByte = new byte[1000];
            flag = Recharge.CpuCardRecharge(rechargeCmdString, resultByte);
            temp = Convertor.Ascii2Str(resultByte);
            return(flag + ";" + temp);
        }
コード例 #5
0
        // 1.3 寻卡
        public string SearchCardHandler()
        {
            byte[] resultByte = new byte[1000];
            string temp       = "";
            int    flag;

            flag = Recharge.SearchCard(resultByte);
            temp = Convertor.Ascii2Str(resultByte);

            return(flag + ";" + temp);
        }
コード例 #6
0
        // 1.14 M1异常处理
        public string M1Exception(DllM1ExceptionIn dllM1ExceptionIn)
        {
            string temp = "";
            int    flag;

            byte[] resultByte = new byte[1000];
            temp = JsonConvert.SerializeObject(dllM1ExceptionIn);
            flag = Recharge.M1Exception(temp, resultByte);
            temp = Convertor.Ascii2Str(resultByte);
            return(flag + ";" + temp);
        }
コード例 #7
0
        // 1.12 M1卡充值
        public string M1RechargeHandler(string keyB)
        {
            string temp = "";
            int    flag;

            byte[] resultByte = new byte[1000];
            flag = Recharge.M1Recharge(keyB, resultByte);
            temp = Convertor.Ascii2Str(resultByte);

            return(flag + ";" + temp);
        }
コード例 #8
0
        // 1.10 M1卡获取账户信息
        public string M1ReadAccountInfoHandler(uint rechargeMoney, string keyA, uint rechargeType)
        {
            string temp = "";
            int    flag;

            byte[] resultByte = new byte[1000];
            flag = Recharge.M1ReadAccountInfo(rechargeMoney, keyA, rechargeType, resultByte);
            temp = Convertor.Ascii2Str(resultByte);

            return(flag + ";" + temp);
        }
コード例 #9
0
        //1.9 M1获取余额
        public string M1GetBalance(string keyString)
        {
            string temp = "";
            int    flag;

            byte[] resultByte = new byte[1000];
            flag = Recharge.M1GetBalance(keyString, resultByte);
            temp = Convertor.Ascii2Str(resultByte);

            return(flag + ";" + temp);
        }