public string WriteMsg()
        {
            UserDataAll += SerialNumber.ToString("X").PadLeft(4, '0');
            UserDataAll += SendTime.ToString("yyMMddHHmmss").PadLeft(12, '0');
            UserDataAll += RType.ToString("X").PadLeft(2, '0');
            UserDataAll += IsSend.ToString("X").PadLeft(2, '0');
            //kqz 2016-12-31 增加
            UserDataAll += NumAuthenType.ToString("X").PadLeft(2, '0');
            //kqz 2016-12-31 增加
            byte[]             UserDataBytesAllTmp;
            WaterBaseMessage[] MsgListTmp;
            string             msg = WaterBaseMessageService.GetMsgList_WriteMsg(this, UserDataAll, out UserDataBytesAllTmp, out MsgListTmp);

            if (msg == "")
            {
                UserDataBytesAll = UserDataBytesAllTmp;
                MsgList          = MsgListTmp;
            }
            else
            {
                if (ShowLog)
                {
                    logHelper.Error(msg);
                }
            }
            return(msg);
        }
예제 #2
0
        //kqz 2016-12-31 增加
        public string WriteMsg()
        {
            UserData  = "";
            UserData += SerialNumber.ToString("X").PadLeft(4, '0');
            UserData += SendTime.ToString("yyMMddHHmmss").PadLeft(12, '0');
            UserData += RType.ToString("X").PadLeft(2, '0');
            UserData += IsSend.ToString("X").PadLeft(2, '0');
            //kqz 2016-12-31 增加
            UserData += NumAuthenType.ToString("X").PadLeft(2, '0');
            //kqz 2016-12-31 增加
            UserDataBytes = HexStringUtility.HexStringToByteArray(UserData);

            return(WriteMsgBase());
        }