public static SeatMaDll.SeatingChart RetrieveObj(string szHallId, int nLevel) { SeatingchartDbo dbo = new SeatingchartDbo(); DataTable dt = dbo.RetrieveALLItems(szHallId, nLevel); if (dt == null || dt.Rows.Count <= 0) { return(null); } SeatMaDll.SeatingChart obj = ChangeObj(dt.Rows[0]); if (obj != null) { obj._listSiteItem = SeatAction.RetrieveItems(obj.SeatingChartId); } return(obj); }
public static List <SeatMaDll.SeatingChart> RetrieveObjListWithBlock(string szHallId, int nLevel) { List <SeatMaDll.SeatingChart> list = new List <SeatMaDll.SeatingChart>(); SeatingchartDbo dbo = new SeatingchartDbo(); DataTable dt = dbo.RetrieveALLItems(szHallId, nLevel); if (dt == null || dt.Rows.Count <= 0) { return(list); } foreach (DataRow dr in dt.Rows) { SeatMaDll.SeatingChart obj = ChangeObj(dr); obj._listSiteItem = SeatAction.RetrieveItemsWithBlock(obj.SeatingChartId); list.Add(obj); } return(list); }