public frmBlockPriceSet(DailyShowPlanManage datamager) { InitializeComponent(); //生成辅助按钮 BuildBlockButton(); blockPriceSet = new BlockPriceSet(); this.dataManager = datamager; //获取影厅信息 hallList = blockPriceSet.GetHallList(); //获取放映场次计划信息 showPlanInfoList = blockPriceSet.GetShowPlanInfoList(dataManager); // seatingChartList = new List <SeatingChart>(); seatingChartList = blockPriceSet.GetSeatingChartList(); dgvList.CellClick += new DataGridViewCellEventHandler(dgvList_CellClick); dgvList.DataError += new DataGridViewDataErrorEventHandler(dgvList_DataError); dgvList.CellParsing += new DataGridViewCellParsingEventHandler(dgvList_CellParsing); dgvList.CellFormatting += new DataGridViewCellFormattingEventHandler(dgvList_CellFormatting); dgvList.EditingControlShowing += new DataGridViewEditingControlShowingEventHandler(dgvList_EditingControlShowing); }
public frmShowPlanPriceSet(DailyShowPlanManage datamager) { InitializeComponent(); this.dataManager = datamager; this.showPlanInfoList = this.dataManager.GetShowPlanInfoList(); this.hallList = dataManager.DailyShowPlan.HallList; }
/// <summary> /// 读取初始化数据 /// </summary> private void LoadInitData() { try { isPreLoad = true; dataManager = new DailyShowPlanManage(); spPanShowPlan.DataManager = dataManager; dataManager.IsSaleChanged += new EventHandler(dataManager_DailyPlanIsSaleChanged); dtDateTime.Value = DateTime.Now; dtDateTime.ValueChanged += new EventHandler(dtDateTime_ValueChanged); RefreshData(); spPanShowPlan.ShowFilmLabelTime(); isInitDataLoadSuccress = true; } catch (Exception) { isInitDataLoadSuccress = false; } }
public frmCopyShowPlan(DailyShowPlanManage datamanager, string Theter) { InitializeComponent(); this.dataManager = datamanager; lblTheter.Text = Theter; oldHallList = new List <Hall>(); newHallList = new List <Hall>(); }
public frmManualWeave(DailyShowPlanManage datemager, int timeSpan) { this.dataMager = datemager; InitializeComponent(); manualWeave = new ManualWeave(this.dataMager); this.dailyPlanTimeSpan = timeSpan; nuTimeSpan.Value = timeSpan; }
public frmFilmSet(DailyShowPlanManage datamanager, string FilmId, int Mode) { filmId = FilmId; InitializeComponent(); filmSet = new FilmSet(); this.dataManager = datamanager; Set(Mode); }
public FilmSet() { this.dataMager = new DailyShowPlanManage(); // 获取新的数据实体 de = Database.GetNewDataEntity(); this.filmList = de.Film.ToList(); this.film_FilmModeList = de.Film_FilmMode.ToList(); this.defineColor = dataMager.GetColor; }
public frmDayilyShowPlan(string theter, string Date, DailyShowPlanManage datamanager) { InitializeComponent(); this.dataManager = datamanager; txtDate.Text = Date; txtTheter.Text = theter; oldHallList = new List <Hall>(); showPlanList = new List <ShowPlan>(); }
public frmUpdateShowPlanInfo(ShowPlan Showplan, DailyShowPlanManage datamager) { InitializeComponent(); this.showPlan = Showplan; this.dataManager = datamager; de = Database.GetNewDataEntity(); employeeInfoList = new List <EmployeeInfo>(); }
public ManualWeave(DailyShowPlanManage datemager) { showPlanList = new List <ShowPlan>(); this.dataMager = datemager; // 获取新的数据实体 de = Database.GetNewDataEntity(); this.filmList = de.Film.ToList(); this.film_FilmModeList = de.Film_FilmMode.ToList(); this.defineColor = this.dataMager.GetColor; GetFilmAndFilmModeList(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Database.LoadDatabaseConfig(); DailyShowPlanManage.DelPrice(); Application.Run(new frmMain()); }
public frmPeriodPriceSet(DailyShowPlanManage dataManager) { InitializeComponent(); this.dataManager = dataManager; dgvList.CellClick += new DataGridViewCellEventHandler(dgvList_CellClick); dgvList.DataError += new DataGridViewDataErrorEventHandler(dgvList_DataError); dgvList.CellParsing += new DataGridViewCellParsingEventHandler(dgvList_CellParsing); dgvList.CellFormatting += new DataGridViewCellFormattingEventHandler(dgvList_CellFormatting); dgvList.CellEndEdit += new DataGridViewCellEventHandler(dgvList_CellEndEdit); }
public ColorBorderLabel(DailyShowPlanManage datemaneger) { InitializeComponent(); this.dataManager = datemaneger; // 设置双缓冲 this.DoubleBuffered = true; this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.AllPaintingInWmPaint, true); this.minutesPerScale = 5; this.pixelsOfScale = 5; this.Click += new EventHandler(ColorBorderLabel_Click); this.ParentChanged += new EventHandler(ColorBorderLabel_ParentChanged); }
/// <summary> /// 获取某天的放映场次信息 /// </summary> /// <param name="datamager"></param> /// <returns></returns> public List <ShowPlanInfo> GetShowPlanInfoList(DailyShowPlanManage datamager) { List <ShowPlanInfo> list = new List <ShowPlanInfo>(); // var tmpList = de.ShowPlan.Where(p => p.DailyPlan.PlanDate == datamager.DailyShowPlan.DailyPlan.PlanDate); var tmpList = datamager.DailyShowPlan.ShowPlanList; foreach (var tmp in tmpList) { ShowPlanInfo showplaninfo = new ShowPlanInfo(); showplaninfo.ShowPlanName = tmp.Position + "--" + tmp.ShowPlanName; showplaninfo.ShowPlanId = tmp.ShowPlanId; showplaninfo.HallId = tmp.HallId; showplaninfo.IsLocked = tmp.IsLocked; list.Add(showplaninfo); } return(list); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Database.LoadDatabaseConfig(); DailyShowPlanManage.DelPrice(); //Catch Exception--------------------------------------------------------------- Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException); Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException); //------------------------------------------------------------------------------ string szSalesConn = Flamingo.Common.ConfigHelper.GetConnectionString("ConnectionString"); //加密 //DataObject.App_UTIL.DBOHelper.connString = "server=localhost;User Id=root;password=p@ssw0rd;Persist Security Info=True;database=flamingo;Default Command Timeout=90;Connect Timeout=900"; DataObject.App_UTIL.DBOHelper.connString = szSalesConn; _Main = new FrmMain(); Application.Run(_Main); //Application.Run(new WinFormUI.SaleTicket.frmSaleChoose()); //Application.Run(new Form1()); }
public frmFilmPriceSet(DailyShowPlanManage DataManager) { InitializeComponent(); this.dataManager = DataManager; }
public frmTheterPriceSet(DailyShowPlanManage dataManager) { InitializeComponent(); this.dataManager = dataManager; }
public frmHallPriceSet(DailyShowPlanManage dataManager) { this.dataManager = dataManager; InitializeComponent(); hallPriceSet = new HallPriceSet(); }