Ejemplo n.º 1
0
        public DogClasses(Guid dog_Class_ID)
        {
            DogClassesBL dogClasses = new DogClassesBL();
            tblDogClasses = dogClasses.GetDog_ClassByDog_Class_ID(dog_Class_ID);

            Dog_Class_ID = dog_Class_ID;
            IsEntrant_IDNull = tblDogClasses[0].IsEntrant_IDNull();
            if (!IsEntrant_IDNull)
                Entrant_ID = tblDogClasses[0].Entrant_ID;
            IsDog_IDNull = tblDogClasses[0].IsDog_IDNull();
            if (!IsDog_IDNull)
                Dog_ID = tblDogClasses[0].Dog_ID;
            IsShow_Entry_Class_IDNull = tblDogClasses[0].IsShow_Entry_Class_IDNull();
            if (!IsShow_Entry_Class_IDNull)
                Show_Entry_Class_ID = tblDogClasses[0].Show_Entry_Class_ID;
            IsShow_Final_Class_IDNull = tblDogClasses[0].IsShow_Final_Class_IDNull();
            if (!IsShow_Final_Class_IDNull)
                Show_Final_Class_ID = tblDogClasses[0].Show_Final_Class_ID;
            IsHandler_IDNull = tblDogClasses[0].IsHandler_IDNull();
            if (!IsHandler_IDNull)
                Handler_ID = tblDogClasses[0].Handler_ID;
            IsRing_NoNull = tblDogClasses[0].IsRing_NoNull();
            if (!IsRing_NoNull)
                Ring_No = tblDogClasses[0].Ring_No;
            IsRunning_OrderNull = tblDogClasses[0].IsRunning_OrderNull();
            if (!IsRunning_OrderNull)
                Running_Order = tblDogClasses[0].Running_Order;
            IsSpecial_RequestNull = tblDogClasses[0].IsSpecial_RequestNull();
            if (!IsSpecial_RequestNull)
                Special_Request = tblDogClasses[0].Special_Request;
            if (Show_Entry_Class_ID != null)
            {
                Guid sec_id = new Guid(Show_Entry_Class_ID.ToString());
                ShowEntryClasses sec = new ShowEntryClasses(sec_id);
                if (sec.IsNFC)
                    IsNFC = true;
            }
        }
Ejemplo n.º 2
0
        public List<DogClasses> GetDog_ClassesByShow_Final_Class_ID(Guid show_Final_Class_ID)
        {
            List<DogClasses> dogClassesList = new List<DogClasses>();
            DogClassesBL dogClasses = new DogClassesBL();
            tblDogClasses = dogClasses.GetDog_ClassesByShow_Final_Class_ID(show_Final_Class_ID);

            if (tblDogClasses != null && tblDogClasses.Count > 0)
            {
                foreach (sss.tblDog_ClassesRow row in tblDogClasses)
                {
                    DogClasses dogClass = new DogClasses(row.Dog_Class_ID);
                    dogClassesList.Add(dogClass);
                }
            }

            return dogClassesList;
        }
Ejemplo n.º 3
0
        public List<DogClasses> GetDog_ClassesByEntrant_ID(Guid entrant_ID, bool excl_NFC)
        {
            List<DogClasses> dogClassesList = new List<DogClasses>();
            DogClassesBL dogClasses = new DogClassesBL();
            tblDogClasses = dogClasses.GetDog_ClassesByEntrant_ID(entrant_ID);

            if (tblDogClasses != null && tblDogClasses.Count > 0)
            {
                foreach (sss.tblDog_ClassesRow row in tblDogClasses)
                {
                    DogClasses dogClass = new DogClasses(row.Dog_Class_ID);
                    if ((excl_NFC && !dogClass.IsNFC) || !excl_NFC)
                        dogClassesList.Add(dogClass);
                }
            }

            return dogClassesList;
        }