Card.PengSheng.ReadGasCard C# (CSharp) Метод

ReadGasCard() публичный Метод

public ReadGasCard ( short com, int baud, string &kh, int &ql, decimal &money, short &cs, short &bkcs, string &dm ) : int
com short
baud int
kh string
ql int
money decimal
cs short
bkcs short
dm string
Результат int
        public int ReadGasCard(short com, int baud, ref string kh, ref int ql, ref decimal money, ref short cs, ref short bkcs,ref string dm )
        {
            int PintCardCode = 0;
            short PboolCard = 0;
            StringBuilder PstrCustomer16Id = new StringBuilder(16);
            StringBuilder PstrCardId = new StringBuilder(8);
            StringBuilder PstrOtherCardId = new StringBuilder(8);
            StringBuilder PstrOperatorId = new StringBuilder(8);
            int PlongEnableUseGas = 0;
            int PlongReturnGas = 0;
            int PlongBuyGasNumber = 0;
            int PlongAlarmGas = 0;
            int PlongCardNumber = 0;

            Log.Debug("PengSheng ReadCard Start");
            int rs = PSTestCard(com , baud, ref PintCardCode, ref PboolCard, PstrCustomer16Id, PstrCardId, ref PlongEnableUseGas,
                ref PlongReturnGas, ref PlongBuyGasNumber, ref PlongAlarmGas, ref PlongCardNumber, PstrOtherCardId,
                 PstrOperatorId, 88888888);
            Log.Debug("PengSheng ReadCard end and rs is "+rs);
            kh = PstrCardId.ToString();
            cs = (short)PlongBuyGasNumber;
            ql = PlongEnableUseGas;
            bkcs = (short)PlongCardNumber;
            return rs;
        }
        public int WriteGasCard(short com, int baud, ref string kmm, string kh, string dqdm, int ql, int csql, int ccsql, short cs, int ljgql, int bjql, int czsx, int tzed, string sqrq, string cssqrq, int oldprice, int newprice, string sxrq, string sxbj)