コード例 #1
0
ファイル: CLogMsg.cs プロジェクト: szp11/openwebframe
        public CLogMsg_WuQi(uint sid, string smark, string stype, string smsg, string sowner, DateTime logtime)
        {
            this.ui_id        = sid;
            this.str_mark     = smark;
            this.str_logmsg   = smsg;
            this.str_logtype  = stype;
            this.str_logowner = sowner;
            this.d_logtime    = logtime;

            if (null == msginfo)
            {
                msginfo = new CLogMsgInfo();
            }
            msginfo.ui_id        = this.ui_id;
            msginfo.str_mark     = this.str_mark;
            msginfo.str_logmsg   = this.str_logmsg;
            msginfo.str_logtype  = this.str_logtype;
            msginfo.str_logowner = this.str_logowner;
            msginfo.d_logtime    = this.d_logtime;
        }
コード例 #2
0
ファイル: CLogMsg.cs プロジェクト: szp11/openwebframe
        public CLogMsg_WuQi(string smsg, string sowner, string stype, string smark)
        {
            lock (CLogMsg_WuQi.obj_lock)
            {
                CLogMsg_WuQi.ui_guid++;
                this.ui_id = CLogMsg_WuQi.ui_guid;
            }

            this.str_mark     = smark;
            this.str_logmsg   = smsg;
            this.str_logtype  = stype;
            this.str_logowner = sowner;
            this.d_logtime    = DateTime.Now;
            if (null == msginfo)
            {
                msginfo = new CLogMsgInfo();
            }
            msginfo.ui_id        = this.ui_id;
            msginfo.str_mark     = this.str_mark;
            msginfo.str_logmsg   = this.str_logmsg;
            msginfo.str_logtype  = this.str_logtype;
            msginfo.str_logowner = this.str_logowner;
            msginfo.d_logtime    = this.d_logtime;
        }