CardHost.CardService.WriteGasCard C# (CSharp) Метод

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

public WriteGasCard ( Stream param, string factory, string kmm, string kh, string dqdm, string ql, string csql, string ccsql, string cs, string ljgql, string bjql, string czsx, string tzed, string sqrq, string cssqrq, string oldprice, string newprice, string sxrq, string sxbj ) : WriteRet
param Stream
factory string
kmm string
kh string
dqdm string
ql string
csql string
ccsql string
cs string
ljgql string
bjql string
czsx string
tzed string
sqrq string
cssqrq string
oldprice string
newprice string
sxrq string
sxbj string
Результат WriteRet
        public WriteRet WriteGasCard(Stream param, string factory, string kmm, string kh, string dqdm,
            string ql, string csql, string ccsql, string cs, string ljgql, string bjql, string czsx, string tzed,
            string sqrq, string cssqrq, string oldprice, string newprice, string sxrq, string sxbj)
        {
            String args = "WriteGasCard";
            Log.Debug(args + " started.");
            StreamReader paramReader = new StreamReader(param);
            string paramStr = paramReader.ReadToEnd();
            args += " " + (String.IsNullOrWhiteSpace(paramStr) ? "0" : paramStr);
            args += " " + (String.IsNullOrWhiteSpace(factory) ? "0" : factory);
            args += " " + (String.IsNullOrWhiteSpace(kmm) ? "\"0\"" : "\"" + kmm + "\"");
            args += " " + (String.IsNullOrWhiteSpace(kh) ? "0" : kh);
            args += " " + (String.IsNullOrWhiteSpace(dqdm) ? "0" : dqdm);

            args += " " + ql;
            args += " " + csql;
            args += " " + ccsql;
            args += " " + cs;
            args += " " + ljgql;
            args += " " + bjql;
            args += " " + czsx;
            args += " " + tzed;

            args += " " + (String.IsNullOrWhiteSpace(sqrq) ? "0" : sqrq);
            args += " " + (String.IsNullOrWhiteSpace(cssqrq) ? "0" : cssqrq);
            args += " " + oldprice;
            args += " " + newprice;
            args += " " + (String.IsNullOrWhiteSpace(sxrq) ? "0" : sxrq);
            args += " " + (String.IsNullOrWhiteSpace(sxbj) ? "0" : sxbj);


            String result = null;
            WriteRet ret = new WriteRet();
            try
            {
                if (this.Spawn(args, out result))
                {
                    ret = JsonConvert.DeserializeObject<WriteRet>(result);
                    Log.Debug(args + "=" + result);
                }
                else
                {
                    ret.Err = "调用未返回。";
                    Log.Debug(args + "=" + ret.Err);
                }
            }
            catch (Exception e)
            {
                ret.Exception = e.Message;
                ret.Err = "调用错误。";
            }
            return ret;
        }