Ejemplo n.º 1
0
        public void GetMessage(string strType, int nCode, string strMessage)
        {
            string strInfo = "";

            if (nCode != 0)
            {
                strInfo = "【" + m_pSKCenter.SKCenterLib_GetLastLogInfo() + "】";
            }

            WriteMessage("【" + strType + "】【" + strMessage + "】【" + m_pSKCenter.SKCenterLib_GetReturnCodeMessage(nCode) + "】" + strInfo);
        }
Ejemplo n.º 2
0
        private void GetMessage(string strType, int nCode, string strMessage)
        {
            string strInfo = "", infotype = util.INFO;

            if (nCode != 0)
            {
                strInfo  = "【" + m_pSKCenter.SKCenterLib_GetLastLogInfo() + "】";
                infotype = util.ALARM;
            }

            WriteMessage("【" + strType + "】【" + strMessage + "】【" + m_pSKCenter.SKCenterLib_GetReturnCodeMessage(nCode) + "】" + Encoding(strInfo));
            util.RecordLog(connectionstr, "1.3 Message returned : " + "(" + strType + ")(" + strMessage + ")(" + m_pSKCenter.SKCenterLib_GetReturnCodeMessage(nCode) + ")" + Encoding(strInfo), infotype);
        }