Exemple #1
0
        public List <RingNumbers> GetRing_Numbers()
        {
            List <RingNumbers> retVal = new List <RingNumbers>();

            try
            {
                RingNumbersBL ringNumbers = new RingNumbersBL(_connString);
                tblRing_Numbers = ringNumbers.GetRing_Numbers();

                if (tblRing_Numbers != null && tblRing_Numbers.Rows.Count > 0)
                {
                    foreach (DataRow row in tblRing_Numbers.Rows)
                    {
                        RingNumbers ringNumber = new RingNumbers(_connString);
                        ringNumber.Ring_No         = Utils.DBNullToShort(row["Ring_No"]);
                        ringNumber.Dog_ID          = Utils.DBNullToGuid(row["Dog_ID"]);
                        ringNumber.Dog_KC_Name     = Utils.DBNullToString(row["Dog_KC_Name"]);
                        ringNumber.Person_Forename = Utils.DBNullToString(row["Person_Forename"]);
                        ringNumber.Person_Surname  = Utils.DBNullToString(row["Person_Surname"]);
                        retVal.Add(ringNumber);
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(retVal);
        }
Exemple #2
0
        public bool PopulateRing_Numbers(Guid show_ID)
        {
            bool retVal = false;

            try
            {
                RingNumbersBL ringNumbers = new RingNumbersBL(_connString);
                retVal = ringNumbers.PopulateRing_Numbers(show_ID);
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(retVal);
        }
Exemple #3
0
        public List<RingNumbers> GetRing_Numbers()
        {
            List<RingNumbers> ringNumberList = new List<RingNumbers>();
            RingNumbersBL ringNumbers = new RingNumbersBL();
            tblRing_Numbers = ringNumbers.GetRing_Numbers();

            if (tblRing_Numbers != null && tblRing_Numbers.Count > 0)
            {
                foreach (sss.tblRing_NumbersRow row in tblRing_Numbers)
                {
                    RingNumbers ringNumber = new RingNumbers();
                    ringNumber.Ring_No = row.Ring_No;
                    ringNumber.Dog_ID = row.Dog_ID;
                    ringNumber.Dog_KC_Name = row.Dog_KC_Name;
                    ringNumber.Person_Forename = row.Person_Forename;
                    ringNumber.Person_Surname = row.Person_Surname;
                    ringNumberList.Add(ringNumber);
                }
            }

            return ringNumberList;
        }
Exemple #4
0
        public bool PopulateRing_Numbers(Guid show_ID)
        {
            bool success = false;

            RingNumbersBL ringNumbers = new RingNumbersBL();
            success = ringNumbers.PopulateRing_Numbers(show_ID);

            return success;
        }