Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }