public void DelClient(t_Client mClient, string OperatorID)
        {
            if (mClient == null)
            {
                return;
            }

            Func.tClient.Del(mClient, OperatorID);
        }
        public void SetClient(t_Client mClient, string OperatorID)
        {
            if (mClient == null)
            {
                return;
            }

            Func.tClient.Edit(mClient, OperatorID);
        }
Example #3
0
        static internal void Del(t_Client mClient, string OperatorID)
        {
            mClient.IsEnable   = false;
            mClient.LastUpdate = DateTime.Now;

            string sName = Func.tSystemUser.GetName(OperatorID);

            Func.tLog.AddLog(string.Format("用户『{0}』删除了客户『{1}』的资料", sName, mClient.sClientName), eLogType.信息);
        }
Example #4
0
        static internal void Edit(t_Client mClient, string OperatorID)
        {
            mClient.LastUpdate = DateTime.Now;

            bClient.Update(mClient);

            string sSYSName = Func.tSystemUser.GetName(OperatorID);

            Func.tLog.AddLog(string.Format("用户『{0}』更新了客户『{1}』的资料", sSYSName, mClient.sClientName), eLogType.信息);
        }
Example #5
0
        static internal void Add(t_Client mClient, string OperatorID)
        {
            //if (!ValidUser(OperaterID))
            //{

            //}
            if (mClient == null)
            {
                return;
            }

            mClient.CreateUserID = OperatorID;
            mClient.LastUpdate   = DateTime.Now;
            mClient.KeyID        = "Client:" + DateTime.Now.Ticks.ToString();
            bClient.Add(mClient);

            string sName = Func.tSystemUser.GetName(OperatorID);

            Func.tLog.AddLog(string.Format("用户『{0}』添加了客户『{1}』", sName, mClient.sClientName), eLogType.信息);
        }