예제 #1
0
        public RouteUserMappingEntity GetRouteUser(Guid routeid)
        {
            List <IWhereCondition> wheres = new List <IWhereCondition>();

            if (routeid != null)
            {
                wheres.Add(new EqualsCondition()
                {
                    FieldName = "routeid", Value = routeid.ToString()
                });
            }

            PagedQueryResult <RouteUserMappingEntity> pEntity = new RouteUserMappingDAO(CurrentUserInfo).PagedQuery(wheres.ToArray(), null, 2, 1);
            int rowCount = pEntity.RowCount;

            if (pEntity.RowCount == 1)
            {
                return(pEntity.Entities[0]);
            }
            else
            {
                return(null);
            }
        }
예제 #2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public RouteUserMappingBLL(LoggingSessionInfo pUserInfo)
 {
     this.CurrentUserInfo = pUserInfo;
     this._currentDAO     = new RouteUserMappingDAO(pUserInfo);
 }