示例#1
0
 public CLogMark_WuQi(uint id, string sdesc, string sowner, int iopen, DateTime dtime)
 {
     this.i_Guid       = id;
     this.s_Owner      = sowner;
     this.s_Desc       = sdesc;
     this.i_IsOpen     = iopen;
     this.d_CreateTime = DateTime.Now;
     if (null == info)
     {
         info              = new CLogMarkInfo();
         info.i_Guid       = this.i_Guid;
         info.i_IsOpen     = this.i_IsOpen;
         info.s_Desc       = this.s_Desc;
         info.s_Owner      = this.s_Owner;
         info.d_CreateTime = this.d_CreateTime;
     }
     else
     {
         info.i_Guid       = this.i_Guid;
         info.i_IsOpen     = this.i_IsOpen;
         info.s_Desc       = this.s_Desc;
         info.s_Owner      = this.s_Owner;
         info.d_CreateTime = this.d_CreateTime;
     }
 }
示例#2
0
        private CLogMark_WuQi(string sdesc, string sowner, int iopen, DateTime dtime)
        {
            lock (CLogMark_WuQi.obj_lock)
            {
                CLogMark_WuQi.ui_guid++;
                this.i_Guid = CLogMark_WuQi.ui_guid;
            }

            this.s_Owner      = sowner;
            this.s_Desc       = sdesc;
            this.i_IsOpen     = 1;
            this.d_CreateTime = DateTime.Now;

            if (null == info)
            {
                info              = new CLogMarkInfo();
                info.i_Guid       = this.i_Guid;
                info.i_IsOpen     = this.i_IsOpen;
                info.s_Desc       = this.s_Desc;
                info.s_Owner      = this.s_Owner;
                info.d_CreateTime = this.d_CreateTime;
            }
            else
            {
                info.i_Guid       = this.i_Guid;
                info.i_IsOpen     = this.i_IsOpen;
                info.s_Desc       = this.s_Desc;
                info.s_Owner      = this.s_Owner;
                info.d_CreateTime = this.d_CreateTime;
            }
        }