Esempio n. 1
0
        public STTransactVP GetParam(TransactModelsViewParam prm)
        {
            STTransactVP ret = new STTransactVP();
            string       msg;

            try
            {
                ret.strdata  = null;
                ret.dtbegin  = prm.BeginDate;
                ret.strdata += string.Format("<DateBegin={0}>", ret.dtbegin.ToString("yyyy-MM-dd HH:mm:ss"));
                ret.dtend    = prm.EndDate;
                ret.strdata += string.Format("<DateEnd={0}>", ret.dtend.ToString("yyyy-MM-dd HH:mm:ss"));

                if (prm.MaskPan != null)
                {
                    ret.maskedpan = prm.MaskPan;
                    ret.strdata  += string.Format("<MaskPAN={0}>", ret.maskedpan);
                }
                if (prm.MaskPos != null)
                {
                    ret.maskedpos = prm.MaskPos;
                    ret.strdata  += string.Format("<MaskPOS={0}>", ret.maskedpos);
                }
            }
            catch (Exception ex) { msg = ex.Message; }
            return(ret);
        }
Esempio n. 2
0
        public TransactModelsViewParam SetParam(STTransactVP param)
        {
            TransactModelsViewParam ret = new TransactModelsViewParam();
            string msg;

            try
            {
                ret.MaskPan   = param.maskedpan;
                ret.MaskPos   = param.maskedpos;
                ret.BeginDate = param.dtbegin;
                ret.EndDate   = param.dtend;
            }
            catch (Exception ex) { msg = ex.Message; }
            return(ret);
        }