public Camping(int ShowID) : base() { _camping = new Fpp.WebModules.Data.Camping(_moduleSettings); DataSet ds = _camping.getCampingForShow(ShowID); if (ds.Tables[0].Rows.Count > 0) { LoadFromRow(ds.Tables[0].Rows[0]); } }
public static void SetPitchNo(int CampingID, int PitchNo) { String moduleSettings = ModuleConfig.GetSettings(); Data.Camping c = new Data.Camping(moduleSettings); c.SetPitchNo(CampingID, PitchNo); }
public static void SetPartyName(int CampingID, String PartyName) { String moduleSettings = ModuleConfig.GetSettings(); Data.Camping c = new Data.Camping(moduleSettings); //c.SetPitchNo(CampingID, PartyName); }
public static void SetCode(int CampingID, String Code) { String moduleSettings = ModuleConfig.GetSettings(); Data.Camping c = new Data.Camping(moduleSettings); c.SetCode(CampingID, Code); }
public static DataSet GetDays(int ShowID) { String moduleSettings = ModuleConfig.GetSettings(); Data.Camping c = new Data.Camping(moduleSettings); return c.getCampingForShow(ShowID); }
public static void DeleteForUser(int UserShowID) { String moduleSettings = ModuleConfig.GetSettings(); Data.Camping c = new Data.Camping(moduleSettings); c.DeleteForUser(UserShowID); }
public static void Add(int UserShowID, String campingParty, String campingComments, String campingDates) { String moduleSettings = ModuleConfig.GetSettings(); Data.Camping c = new Data.Camping(moduleSettings); c.DeleteForUser(UserShowID); c.AddUserCamping(UserShowID, campingParty, campingComments, campingDates); }
public static List<MemberCamping> getCampingMembersFor(int ShowID) { String moduleSettings = ModuleConfig.GetSettings(); Data.Camping c = new Data.Camping(moduleSettings); List<MemberCamping> mc = new List<MemberCamping>(); DataSet ds = c.getCampingMembersFor(ShowID); foreach (DataRow row in ds.Tables[0].Rows) { mc.Add(new MemberCamping(row)); } return mc; }
public UserCamping(DataRow row) : base() { initialise(); _camping = new Fpp.WebModules.Data.Camping(_moduleSettings); LoadFromRow(row); }
public UserCamping(int UserShowID) : base() { initialise(); _camping = new Fpp.WebModules.Data.Camping(_moduleSettings); DataSet ds = _camping.getCampingForUserShow(UserShowID); if (ds.Tables[0].Rows.Count > 0) { LoadFromRow(ds.Tables[0].Rows[0]); } }
public UserCamping() : base() { _camping = new Fpp.WebModules.Data.Camping(_moduleSettings); initialise(); }
public Camping() : base() { _camping = new Fpp.WebModules.Data.Camping(_moduleSettings); }
public static List<ShowCampingList> getShowCampingList(int ShowID, String sorttype) { String moduleSettings = ModuleConfig.GetSettings(); Data.Camping c = new Data.Camping(moduleSettings); List<ShowCampingList> list = new List<ShowCampingList>(); DataSet ds = c.getShowCampingList(ShowID, sorttype); foreach (DataRow row in ds.Tables[0].Rows) { list.Add(new ShowCampingList(row)); } return list; }
public static List<int> getCampingTotals(int ShowID) { String moduleSettings = ModuleConfig.GetSettings(); Data.Camping c = new Data.Camping(moduleSettings); List<int> list = new List<int>(); DataSet ds = c.getCampingTotals(ShowID); foreach (DataRow row in ds.Tables[0].Rows) { int tmp = Convert.ToInt32(row[0]); list.Add(tmp); } return list; }
public Camping(DataRow row) : base() { _camping = new Fpp.WebModules.Data.Camping(_moduleSettings); LoadFromRow(row); }
public static void Add(CampingFormDetails campingDetails) { var moduleSettings = ModuleConfig.GetSettings(); var c = new Data.Camping(moduleSettings); c.Add(campingDetails); }
public static void Add(int newShowID, DateTime newStartDate, DateTime newEndDate, Decimal costpernight, Decimal costpershow, int maxplots, int limit) { String moduleSettings = ModuleConfig.GetSettings(); Data.Camping c = new Data.Camping(moduleSettings); c.Add(newShowID, newStartDate, newEndDate, costpernight, costpershow, maxplots, limit); }