public List <MettingJson> GetAllMetting(string fullQualifyName)
        {
            UserBLL           userbll            = new UserBLL();
            var               UserLogin          = userbll.GetByFullQualify(fullQualifyName);
            var               result             = new List <MettingJson>();
            MettingRepository _MettingRepository = new MettingRepository();
            MeetingTranslator _MeetingTranslator = new MeetingTranslator();

            result = _MeetingTranslator.ToDomainObjects(_MettingRepository.GetAll(Guid.Parse(UserLogin.ID)));
            return(result);
        }
示例#2
0
        public List <MettingJson> GetAllMeetingWithoutMinut(string fullQualifyName)
        {
            var     result    = new List <MettingJson>();
            UserBLL userbll   = new UserBLL();
            var     UserLogin = userbll.GetByFullQualify(fullQualifyName);

            MettingRepository _MettingRepository = new MettingRepository();
            MeetingTranslator _MeetingTranslator = new MeetingTranslator();

            result = _MeetingTranslator.ToDomainObjects(_MettingRepository.GetAll(Guid.Parse(UserLogin.ID)).Where(x => x.HaveMinuts == false && x.DateMetting <= DateTime.Now));


            return(result);
        }
示例#3
0
        public List <JsonTimeGuage> GetPlaceTimingGuage(string date, string usereid)
        {
            List <JsonTimeGuage> result = new List <JsonTimeGuage>();

            List <MettingJson> MettingJson = null;

            var meetingdate = DateTime.Now;


            meetingdate = DateTimeUtil.PersiantoMiladi(date).Date;



            MettingRepository _MettingRepository = new MettingRepository();
            MeetingTranslator _MeetingTranslator = new MeetingTranslator();

            MettingJson = _MeetingTranslator.ToDomainObjects(_MettingRepository.GetMeetingsByDateAndPlaceID(meetingdate, Guid.Parse(usereid)).ToList());



            foreach (var meeting in MettingJson)
            {
                var timeobject = new JsonTimeGuage();


                timeobject.from = DateTimeUtil.ConvertStringTopercent(meeting.StartTime);
                timeobject.to   = DateTimeUtil.ConvertStringTopercent(meeting.FinishTime);


                timeobject.color = "#c20000";

                result.Add(timeobject);
            }

            return(result);
        }