Пример #1
0
        public byte[] MDSSignIn(MDSSignIn _MDSSignIn)
        {
            byte[] Header     = this.Header("A2");
            byte[] ByteVector = new byte[Header.Length + _MDSSignIn.Message.Length];

            System.Buffer.BlockCopy(Header, 0, ByteVector, 0, Header.Length);
            System.Buffer.BlockCopy(_MDSSignIn.Message, 0, ByteVector, Header.Length, _MDSSignIn.Message.Length);

            return(ByteVector);
        }
Пример #2
0
        public string  MDSSignInAsString(MDSSignIn _MDSSignIn)
        {
            string TpMensagem        = GenericMessage.GetPosition(2, "A2", ' ');
            string TpBolsa           = GenericMessage.GetPosition(2, "", ' ');
            string DataHota          = DateTime.Now.ToString("yyyyMMddHHmmssfff");
            string CodigoInstrumento = GenericMessage.GetPosition(20, "", ' ');

            return(TpMensagem + TpBolsa + DataHota + CodigoInstrumento + _MDSSignIn.pStrStatusRequest +
                   _MDSSignIn.pStrIdCliente +
                   _MDSSignIn.pStrIdSistema +
                   _MDSSignIn.pStrUniqueId +
                   _MDSSignIn.pStrErrorCode);
        }