Exemplo n.º 1
0
        public static EventTypeCollection GetbyEventCode(string EventCode)
        {
            EventTypeCollection collection = new EventTypeCollection();
            EventType           obj;

            using (var reader = SqlHelper.ExecuteReader("tblItemType_GetByEventCode", new SqlParameter("@EventCode", EventCode)))
            {
                while (reader.Read())
                {
                    obj = GetItemFromReader(reader);
                    collection.Add(obj);
                }
            }
            return(collection);
        }
Exemplo n.º 2
0
        public static EventTypeCollection GetbyUser(string CreatedUser)
        {
            EventTypeCollection collection = new EventTypeCollection();
            EventType           obj;

            using (var reader = SqlHelper.ExecuteReader("tblEventType_GetAll_byUser", new SqlParameter("@CreatedUser", CreatedUser)))
            {
                while (reader.Read())
                {
                    obj = GetItemFromReader(reader);
                    collection.Add(obj);
                }
            }
            return(collection);
        }
Exemplo n.º 3
0
        public static EventTypeCollection GetAllItem()
        {
            EventTypeCollection collection = new EventTypeCollection();

            using (var reader = SqlHelper.ExecuteReader("tblEventType_GetAll", null))
            {
                while (reader.Read())
                {
                    EventType obj = new EventType();
                    obj = GetItemFromReader(reader);
                    collection.Add(obj);
                }
            }
            return(collection);
        }
        public EventTypeCollection GetAvailabilityEntityMethod(CallUIElementMethodEvent.EnumCallUIElementMethodTargetForm objectForm)
        {
            EventTypeCollection availabilityEvent = new EventTypeCollection();

            switch (objectForm)
            {
            case CallUIElementMethodEvent.EnumCallUIElementMethodTargetForm.Current:
                availabilityEvent.Add(typeof(DataListRefreshEvent));
                availabilityEvent.Add(typeof(DataListAddRowEvent));
                availabilityEvent.Add(typeof(DataListUpdateRowEvent));
                availabilityEvent.Add(typeof(DataListDeleteRowEvent));
                break;

            case CallUIElementMethodEvent.EnumCallUIElementMethodTargetForm.Caller:
                availabilityEvent.Add(typeof(DataListAddRowEvent));
                availabilityEvent.Add(typeof(DataListUpdateRowEvent));
                availabilityEvent.Add(typeof(DataListDeleteRowEvent));
                break;
            }
            return(availabilityEvent);
        }