예제 #1
0
        IList <InfoRequest> IUserRegisteredRequests.GetAllRequests(decimal personId, RequestState requestState, DateTime fromDate, DateTime toDate)
        {
            RequestRepository       requestRep = new RequestRepository(false);
            IUserRegisteredRequests bus        = new BUnderManagment();
            IList <InfoRequest>     result     = requestRep.GetAllUserRequest(fromDate, toDate, requestState, personId);

            return(result);
        }
예제 #2
0
        /// <summary>
        /// افراد تحت مدیریت اپراتوری که کاربر فعلی سیستم است را برمیگرداند
        /// </summary>
        /// <returns></returns>
        private IList <decimal> GetOperatorUnderManagment1(decimal personId)
        {
            IList <Operator> opList    = new BOperator().GetOperator(personId);
            List <decimal>   personIds = new List <decimal>();

            foreach (Operator op in opList)
            {
                IList <Person> personList = new BUnderManagment().GetUnderManagmentPersonsByFlow(op.Flow);
                var            ids        = from person in personList
                                            select person.ID;
                personIds.AddRange(ids.ToList <decimal>());
            }
            return(personIds);
        }