Esempio n. 1
0
        public static bool UpdateSeat(string szHallId)
        {
            int    nCount = SeatAction.GetSeatsByHallId(szHallId);
            HallPo po     = new HallPo();

            po.HALLID = szHallId;
            po.SEATS  = nCount;
            HallDbo dbo = new HallDbo();

            return(dbo.UpdateSeat(po));
        }
Esempio n. 2
0
        public static List <SimHall> RetrieveItems(string szTheaterId)
        {
            List <SimHall> list = new List <SimHall>();
            DataTable      dt   = new HallDbo().RetrieveALLItems(szTheaterId);

            if (dt == null || dt.Rows.Count <= 0)
            {
                return(list);
            }
            foreach (DataRow dr in dt.Rows)
            {
                SimHall obj = ChangeObj(dr);
                list.Add(obj);
            }
            return(list);
        }
Esempio n. 3
0
        public static List <SimHallLevel> RetrieveLevelItemsByTH(string szTheaterId, string szHallId)
        {
            List <SimHallLevel> list = new List <SimHallLevel>();
            int nLevels = new HallDbo().GetHallLevel(szTheaterId, szHallId);

            if (nLevels <= 0)
            {
                return(list);
            }
            for (int i = 1; i <= nLevels; i++)
            {
                SimHallLevel obj = new SimHallLevel();
                obj._TheaterId = szTheaterId;
                obj._HallId    = szHallId;
                obj._LevelId   = i.ToString();
                list.Add(obj);
            }
            return(list);
        }