Ejemplo n.º 1
0
        private static string SaveTaskResult(LibDataAccess dataAccess, string progId, string data)
        {
            string execTaskDataId = Guid.NewGuid().ToString();

            dataAccess.ExecuteStoredProcedure("axpInsertExecTaskData", execTaskDataId, LibDateUtils.GetCurrentDateTime(), progId, data);
            return(execTaskDataId);
        }
Ejemplo n.º 2
0
        public override bool Remove(string key, string regionName = null)
        {
            LibHandle handle = this.Get <LibHandle>(key);

            if (base.Remove(key))
            {
                try
                {
                    LibDataAccess dataAccess = new LibDataAccess();
                    dataAccess.ExecuteStoredProcedure("axpInsertUserLogin", handle.UserId, LibDateUtils.DateTimeToLibDateTime(handle.CreateTime), handle.Type, LibDateUtils.GetCurrentDateTime());
                }
                catch
                {
                    //即使有错也不抛出
                }
                return(true);
            }
            return(false);
        }