Example #1
0
        public DogGender(int dog_Gender_ID)
        {
            DogGenderBL dogGender = new DogGenderBL();
            lkpDogGender = dogGender.GetDog_GenderByDog_Gender_ID(dog_Gender_ID);

            Dog_Gender_ID = dog_Gender_ID;
            Description = lkpDogGender[0].Dog_Gender;
        }
Example #2
0
        public DogGender(string connString, int dog_Gender_ID)
        {
            _connString = connString;
            DogGenderBL dogGender = new DogGenderBL(_connString);

            lkpDogGender = dogGender.GetDog_GenderByDog_Gender_ID(dog_Gender_ID);
            DataRow row = lkpDogGender.Rows[0];

            _dog_Gender_ID = dog_Gender_ID;
            _description   = Utils.DBNullToString(row["Dog_Gender"]);
        }
Example #3
0
        public int GetDog_Gender(string gender)
        {
            int retVal = 0;

            List <DogGender> dogGenderList = new List <DogGender>();
            DogGenderBL      dogGender     = new DogGenderBL(_connString);

            lkpDogGender = dogGender.GetDog_GenderLikeDog_Gender(gender);

            if (lkpDogGender != null && lkpDogGender.Rows.Count > 0)
            {
                retVal = Utils.DBNullToInt(lkpDogGender.Rows[0]["Dog_Gender_ID"]);
            }

            return(retVal);
        }
Example #4
0
        public List<DogGender> GetDog_Gender()
        {
            List<DogGender> dogGenderList = new List<DogGender>();
            DogGenderBL dogGender = new DogGenderBL();
            lkpDogGender = dogGender.GetDog_Gender();

            if (lkpDogGender != null && lkpDogGender.Count > 0)
            {
                foreach (sss.lkpDog_GenderRow row in lkpDogGender)
                {
                    DogGender gender = new DogGender(row.Dog_Gender_ID);
                    dogGenderList.Add(gender);
                }
            }
            return dogGenderList;
        }
Example #5
0
        public List <DogGender> GetDog_Gender()
        {
            List <DogGender> dogGenderList = new List <DogGender>();
            DogGenderBL      dogGender     = new DogGenderBL(_connString);

            lkpDogGender = dogGender.GetDog_Gender();

            if (lkpDogGender != null && lkpDogGender.Rows.Count > 0)
            {
                foreach (DataRow row in lkpDogGender.Rows)
                {
                    DogGender gender = new DogGender(_connString, Utils.DBNullToInt(row["Dog_Gender_ID"]));
                    dogGenderList.Add(gender);
                }
            }
            return(dogGenderList);
        }
Example #6
0
 public DogGender()
 {
     DogGenderBL dogGender = new DogGenderBL();
     lkpDogGender = dogGender.GetDog_Gender();
 }