Ejemplo n.º 1
0
        public int WriteLoginLog(string UserID, string IPAddress, string ClientType)
        {
            UserID     = Tool.InspectBitLength(UserID, 20, "");
            IPAddress  = Tool.InspectBitLength(IPAddress, 40, "");
            ClientType = Tool.InspectLength(ClientType, 10);
            LogHelpDataAccess logHelpDataAccess = new LogHelpDataAccess(this.dbkey);

            return(logHelpDataAccess.Insertloginlog(UserID, IPAddress, ClientType));
        }
Ejemplo n.º 2
0
        public int WriteErrorLog(ErrorLogObject errorlogobject)
        {
            errorlogobject.ErrorSQL     = Tool.InspectLength(errorlogobject.ErrorSQL, 1000);
            errorlogobject.ErrorMessage = Tool.InspectLength(errorlogobject.ErrorMessage, 500);
            errorlogobject.ErrorData    = Tool.InspectLength(errorlogobject.ErrorData, 500);
            errorlogobject.ErrorAddress = Tool.InspectLength(errorlogobject.ErrorAddress, 100);
            errorlogobject.ErrorCode    = Tool.InspectLength(errorlogobject.ErrorCode, 500);
            LogHelpDataAccess logHelpDataAccess = new LogHelpDataAccess(this.dbkey);

            return(logHelpDataAccess.InsertErrorLog(errorlogobject));
        }
Ejemplo n.º 3
0
        public int WriteOperateLog(OperateLogObject operateLogObject)
        {
            operateLogObject.UserID        = Tool.InspectBitLength(operateLogObject.UserID, 20, "");
            operateLogObject.IPAddress     = Tool.InspectBitLength(operateLogObject.IPAddress, 40, "");
            operateLogObject.ClientType    = Tool.InspectLength(operateLogObject.ClientType, 10);
            operateLogObject.OperateData   = Tool.InspectLength(operateLogObject.OperateData, 1000);
            operateLogObject.OperateKey    = Tool.InspectLength(operateLogObject.OperateKey, 100);
            operateLogObject.OperateMethod = Tool.InspectLength(operateLogObject.OperateMethod, 100);
            operateLogObject.OperateTable  = Tool.InspectLength(operateLogObject.OperateTable, 100);
            LogHelpDataAccess logHelpDataAccess = new LogHelpDataAccess(this.dbkey);

            return(logHelpDataAccess.InsertOperateLog(operateLogObject));
        }