コード例 #1
0
        public static void UpdateAltHandler(int HandlerID, int AltHandlerID)
        {
            String moduleSettings = ModuleConfig.GetSettings();
            Data.DogClasses dc = new Fpp.WebModules.Data.DogClasses(moduleSettings);

            dc.UpdateAltHandler(HandlerID, AltHandlerID);
        }
コード例 #2
0
 public static int Insert(int dogid, int showid, int classid, int RO)
 {
     String moduleSettings = ModuleConfig.GetSettings();
     Data.DogClasses dc = new Fpp.WebModules.Data.DogClasses(moduleSettings);
     return dc.Insert(dogid, showid, classid, RO);
 }
コード例 #3
0
        public static List<DogClasses> Retrieve(int DogID, int ShowID)
        {
            List<DogClasses> dclist = new List<DogClasses>();
            String moduleSettings = ModuleConfig.GetSettings();
            Data.DogClasses dc = new Fpp.WebModules.Data.DogClasses(moduleSettings);

            DataSet ds = dc.getDogsClasses(DogID, ShowID);
            foreach (DataRow row in ds.Tables[0].Rows)
            {
                dclist.Add(new DogClasses(row));
            }

            return dclist;
        }
コード例 #4
0
        public static List<int> getROforClass(int clsid)
        {
            String moduleSettings = ModuleConfig.GetSettings();
            Data.DogClasses dc = new Fpp.WebModules.Data.DogClasses(moduleSettings);

            DataSet ds = dc.getROforClass(clsid);
            List<int> ros = new List<int>();
            foreach (DataRow row in ds.Tables[0].Rows)
            {
                ros.Add(Convert.ToInt32(row["RO"]));
            }
            return ros;
        }
コード例 #5
0
        public static DataSet getMasterList(int ShowID, String orderBy)
        {
            String moduleSettings = ModuleConfig.GetSettings();
            Data.DogClasses dc = new Fpp.WebModules.Data.DogClasses(moduleSettings);

            return dc.getMasterList(ShowID, orderBy);
        }
コード例 #6
0
        public static void deleteUserDogs(int UserID, int ShowID)
        {
            String moduleSettings = ModuleConfig.GetSettings();
            Data.DogClasses dc = new Fpp.WebModules.Data.DogClasses(moduleSettings);

            dc.Delete(UserID, ShowID);
        }
コード例 #7
0
 public static void DeleteDog(int ShowID, int DogID)
 {
     String moduleSettings = ModuleConfig.GetSettings();
     Data.DogClasses dc = new Fpp.WebModules.Data.DogClasses(moduleSettings);
     dc.DeleteDog(DogID, ShowID);
 }
コード例 #8
0
        public static int countDogsInClassForShow(int HandlerID, int ShowID)
        {
            String moduleSettings = ModuleConfig.GetSettings();
            Data.DogClasses dc = new Fpp.WebModules.Data.DogClasses(moduleSettings);

            int count = 0;
            DataSet ds = dc.countDogsInClassForShow(HandlerID, ShowID);
            if (ds.Tables[0].Rows.Count > 0)
            {
                count = Convert.ToInt32(ds.Tables[0].Rows[0]["DogInClass"]);
            }
            return count;
        }