public static Block RetrieveObj(string szSeatingChartId, string szBlockName) { BlockDbo dbo = new BlockDbo(); DataTable dt = dbo.RetrieveALLItems(szSeatingChartId, szBlockName); if (dt == null || dt.Rows.Count <= 0) { return(null); } Block obj = ChangeObj(dt.Rows[0]); return(obj); }
public static BlockPrice RetrieveObj(string szShowPlanId, string szBlockId) { BlockDbo dbo = new BlockDbo(); DataTable dt = dbo.RetrieveALLItems(szShowPlanId, szBlockId); if (dt == null || dt.Rows.Count <= 0) { return(null); } BlockPrice obj = ChangeObj(dt.Rows[0]); return(obj); }
public static List <Block> RetrieveObjList(string szSeatingChartId) { List <Block> list = new List <Block>(); BlockDbo dbo = new BlockDbo(); DataTable dt = dbo.RetrieveALLItems(szSeatingChartId); if (dt == null || dt.Rows.Count <= 0) { return(list); } foreach (DataRow dr in dt.Rows) { Block obj = ChangeObj(dr); if (obj != null) { list.Add(obj); } } return(list); }