public FrmSeatChartResetBlockPrice(string szShowPlanId, string szHallId)
        {
            _HallId       = szHallId;
            _ShowPlanId   = szShowPlanId;
            _ShowPlanRich = ShowPlanRich.RetrieveObj(szShowPlanId);

            InitializeComponent();
            ReSetSeatPanelAttribute();
        }
Beispiel #2
0
        public static ShowPlanRich RetrieveObj(string szShowPlanId)
        {
            ShowPlanDbo dbo = new ShowPlanDbo();
            DataTable   dt  = dbo.RetrieveALLItems_Ext(szShowPlanId);

            if (dt == null || dt.Rows.Count <= 0)
            {
                return(null);
            }

            ShowPlanRich spR = new ShowPlanRich();

            spR._ObjShowPlan = ShowPlan.ChangeObj(dt.Rows[0]);
            spR._HallName    = dt.Rows[0]["HallName"] == DBNull.Value ? "" : dt.Rows[0]["HallName"].ToString();
            spR._FilmCode    = dt.Rows[0]["FilmCode"] == DBNull.Value ? "" : dt.Rows[0]["FilmCode"].ToString();
            spR._FilmName    = dt.Rows[0]["FilmName"] == DBNull.Value ? "" : dt.Rows[0]["FilmName"].ToString();

            return(spR);
        }