public ShowDetails(DataRow row) : base() { _showDetails = new Fpp.Data.ShowDetails(ModuleSettings); try { LoadFromRow(row); } catch (Exception e) { AppException.LogEvent("ShowDetails.ShowDetails:" + e.Message); } }
public ShowDetails(string showDate) : base() { _showDetails = new Fpp.Data.ShowDetails(ModuleSettings); try { DataSet ds = _showDetails.GetFromShowDetails(showDate); if (ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { LoadFromRow(ds.Tables[0].Rows[0]); } } catch (Exception e) { AppException.LogEvent("ShowDetails.ShowDetails(string):" + e.Message); } }
public ShowDetails(int ShowDetailsID) : base() { ID = ShowDetailsID; _showDetails = new Fpp.Data.ShowDetails(ModuleSettings); try { DataSet ds = _showDetails.GetFromShowDetails(ID); if (ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { LoadFromRow(_showDetails.GetFromShowDetails(ID).Tables[0].Rows[0]); } } catch (Exception e) { AppException.LogEvent("ShowDetails.ShowDetails(" + ShowDetailsID.ToString() + "): " + e.Message); } }
public bool Delete() { Fpp.Data.ShowDetails showDetails = new Fpp.Data.ShowDetails(ModuleSettings); ShowClasses sc = new ShowClasses(); sc.RemoveRing(ID); Judge j = new Judge(); j.removeRing(ID); Fpp.Business.Helpers h = new Fpp.Business.Helpers(); h.removeRing(ID); _ring.Delete(ID); int ringNo = 1; var rings = GetRingsForShowDayList(_showDetailsID).OrderBy(x => x.RingNo); foreach (var r in rings) { r.RingNo = ringNo; r.Save(); ringNo++; } return true; }
// add a news public int Add(string orgName) { Fpp.Data.ShowDetails showDetails = new Fpp.Data.ShowDetails(ModuleSettings); return showDetails.Add(orgName); }
public ShowDetails() : base() { _showDetails = new Fpp.Data.ShowDetails(ModuleSettings); }
public static List<ShowDetails> GetShowDetails(int ShowID) { String moduleSettings = ModuleConfig.GetSettings(); var showDetails = new Fpp.Data.ShowDetails(moduleSettings); var ds = showDetails.GetClassCount(ShowID); List<ShowDetails> list = new List<ShowDetails>(); foreach (DataRow row in ds.Tables[0].Rows) { list.Add(new ShowDetails(row)); } return list; }
public static List<ShowDetails> GetShowDaysForUser(int ShowID, int UserID) { String moduleSettings = ModuleConfig.GetSettings(); Fpp.Data.ShowDetails showDetails = new Fpp.Data.ShowDetails(moduleSettings); List<ShowDetails> userList = new List<ShowDetails>(); DataSet ds = showDetails.GetShowDetailsUser(ShowID, UserID); foreach (DataRow row in ds.Tables[0].Rows) { userList.Add(new ShowDetails(row)); } return userList; }