• 大小: 20.65MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-06-13
  • 语言: C#
  • 标签: C#  

资源简介

中控消费机cm50,cm60消费机通用开发包,用C#开发。含发卡器源码,消费机源码

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using zkonline;

namespace Card
{
    public partial class frmCard : Form
    {
        private zkonline.AFXOnlineMain zkonline;
        public frmCard()
        {
            InitializeComponent();
            zkonline = new AFXOnlineMain();
        }

        public static string getErrorStr(int errorCode)
        {
            if (errorCode == -1)
            {
                return “传入参数非法“;
            }
            if (errorCode == -2)
            {
                return “主、备份扇区数据不一致“;
            }
            if (errorCode == 1)
            {
                return “操作失败“;
            }
            if (errorCode == 2)
            {
                return “数据丢包“;
            }
            if (errorCode == 3)
            {
                return “没有选择准确的COM口“;
            }
            if (errorCode == 4)
            {
                return “和卡通讯超时“;
            }
            if ((errorCode == 5) && (errorCode == 7))
            {
                return “XOR校验出错“;
            }
            if (errorCode == 10)
            {
                return “输入的参数大于最大允许范围,溢出“;
            }
            if (errorCode == 0x80)
            {
                return “参数设置成功“;
            }
            if (errorCode == 0x81)
            {
                return “参数设置失败“;
            }
            if (errorCode == 130)
            {
                return “通讯超时“;
            }
            if (errorCode == 0x83)
            {
                return “卡片不存在“;
            }
            if (errorCode == 0x84)
            {
                return “接收卡数据出错“;
            }
            if (errorCode == 0x85)
            {
                return “输入参数或者输入命令格式错误“;
            }
            if (errorCode == 0x87)
            {
                return “未知的错误“;
            }
            if (errorCode == 0x8a)
            {
                return “在块初始化中出现错误“;
            }
            if (errorCode == 0x8b)
            {
                return “在防冲突过程中得到错误的序列号“;
            }
            if (errorCode == 140)
            {
                return “密码认证没通过“;
            }
            if (errorCode == 0x8f)
            {
                return “读写设备接收到了未定义的命令“;
            }
            if (errorCode == 0x90)
            {
                return “卡不支持这个命令“;
            }
            if (errorCode == 0x91)
            {
                return “命令格式有错误“;
            }
            if (errorCode == 0x92)
            {
                return “在命令的FLAG参数中 不支持OPTION模式“;
            }
            if (errorCode == 0x93)
            {
                return “要操作的BLOCK不存在“;
            }
            if (errorCode == 0x94)
            {
                retur

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      26112  2014-04-21 10:20  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\bin\Debug\ClassDLL.dll

     文件      40448  2014-04-21 10:20  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\bin\Debug\ClassDLL.pdb

     文件        664  2014-04-21 10:20  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\bin\Debug\ClassDLL.xml

     文件      22016  2018-05-16 19:58  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\bin\Release\ClassDLL.dll

     文件      30208  2018-05-16 19:58  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\bin\Release\ClassDLL.pdb

     文件        664  2018-05-16 19:58  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\bin\Release\ClassDLL.xml

     文件     372822  2008-08-25 10:30  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\bin\Release\commpro.dll

     文件      45056  2008-06-11 16:48  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\bin\Release\comms.dll

     文件      86016  2012-07-24 10:43  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\bin\Release\http_commpro.dll

     文件      86016  2012-07-24 10:43  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\bin\Release\http_dataapi.dll

     文件     126976  2012-07-24 10:43  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\bin\Release\http_rscomm.dll

     文件    1052672  2008-06-19 20:08  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\bin\Release\libeay32.dll

     文件     929844  1998-06-17 00:00  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\bin\Release\MFC42D.DLL

     文件     798773  2004-05-23 00:24  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\bin\Release\mfco42d.dll

     文件     401484  2004-03-18 18:36  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\bin\Release\msvcrtd.dll

     文件     110592  2008-06-11 16:48  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\bin\Release\rscagent.dll

     文件     126976  2008-06-11 16:48  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\bin\Release\rscomm.dll

     文件     204800  2008-06-19 20:08  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\bin\Release\ssleay32.dll

     文件       4587  2014-04-21 10:17  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\ClassDLL.vbproj

     文件       5255  2014-04-21 10:20  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\Class_DLL.vb

     文件        441  2014-04-19 13:55  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\My Project\Application.Designer.vb

     文件        481  2012-04-02 23:39  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\My Project\Application.myapp

     文件       1065  2014-04-19 13:55  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\My Project\AssemblyInfo.vb

     文件       2779  2014-04-19 13:55  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\My Project\Resources.Designer.vb

     文件       5612  2012-04-02 23:39  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\My Project\Resources.resx

     文件       2995  2014-04-19 13:55  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\My Project\Settings.Designer.vb

     文件        279  2012-04-02 23:39  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\My Project\Settings.settings

     文件      26112  2014-04-21 10:20  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\obj\Debug\ClassDLL.dll

     文件      40448  2014-04-21 10:20  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\obj\Debug\ClassDLL.pdb

     文件        180  2014-04-21 10:20  中控消费SDK\C#_Demo\dll\ClassDLL\ClassDLL\obj\Debug\ClassDLL.Resources.resources

............此处省略267个文件信息

评论

共有 条评论