public void ReQueryDataBy(int nIndex) { _SimBlockObj = null; uC_ImageButtonVPanel_Block.Clear(); _SimBlockObj = null; if (_seatingChart == null) { return; } List <BlockPriceRich> list = BlockPriceRich.RetrieveObjList(_seatingChart.SeatingChartId, _ShowPlanId); if (list == null || list.Count <= 0) { return; } uC_ImageButtonVPanel_Block.Clear(); List <ImageButtonItem> listImgButton = new List <ImageButtonItem>(); foreach (BlockPriceRich bpr in list) { ImageButtonItem ibi = new ImageButtonItem(); ibi._Img = global::WinFormUI.Properties.Resources.SeatChartFlag; string szSinglePrice = bpr._blockPrice.SinglePrice == 0 ? "无" : bpr._blockPrice.SinglePrice.ToString(); ibi._DisplayText = bpr._block.BlockName + "\r\n价格:" + szSinglePrice; ibi._BackColor = bpr._block.Bgcolour; ibi._objFlag = bpr; listImgButton.Add(ibi); } uC_ImageButtonVPanel_Block.CreateControl(listImgButton); }
public void QueryData() { seatChartDispScreen1.seatChartDisp1.ClearItems(); seatChartDispScreen1.seatChartDisp1.Invalidate(); seatChartDispScreen1.SetBottomDisplay_Right(""); if (uC_HallInfoSeek1.cbb_SeatingChart.SelectedItem == null) { return; } _seatingChart = (SeatMaDll.SeatingChart)uC_HallInfoSeek1.cbb_SeatingChart.SelectedItem; SetSeatResource(_seatingChart.BgColour); int nLeftPad = (int)((tableLayoutPanel_All.ColumnStyles[2].Width - _nSCPanelWidth) / 2); int nTopPad = (int)((tableLayoutPanel_All.RowStyles[3].Height - _nSCPanelContainerHeight) / 2); seatChartDispScreen1.seatChartDisp1.ImportSeatChartWithBlockAndPad(_seatingChart, nLeftPad, nTopPad); int nSeatCount = seatChartDispScreen1.seatChartDisp1.GetAllSeatCount(); seatChartDispScreen1.SetBottomDisplay_Right("座位数量:" + nSeatCount.ToString()); _SimBlockObj = null; uC_ImageButtonVPanel_Block.Clear(); _SimBlockObj = null; if (_seatingChart == null) { return; } List <SimBlock> list = SimBlock.RetrieveItems(_seatingChart.SeatingChartId); if (list == null || list.Count <= 0) { return; } uC_ImageButtonVPanel_Block.Clear(); List <ImageButtonItem> listImgButton = new List <ImageButtonItem>(); foreach (SimBlock sb in list) { ImageButtonItem ibi = new ImageButtonItem(); ibi._Img = global::WinFormUI.Properties.Resources.SeatChartFlag; ibi._DisplayText = sb._BlockName; ibi._BackColor = sb._BgColour; ibi._objFlag = sb; listImgButton.Add(ibi); } uC_ImageButtonVPanel_Block.CreateControl(listImgButton); }
public void ReQueryDataBy(int nIndex) { uC_HallInfoSeek1.cbb_SeatingChart.SelectedIndex = nIndex; if (uC_HallInfoSeek1.cbb_SeatingChart.SelectedItem == null) { return; } _seatingChart = (SeatMaDll.SeatingChart)uC_HallInfoSeek1.cbb_SeatingChart.SelectedItem; seatChartDispScreen1.seatChartDisp1.ImportSeatChartWithBlock(_seatingChart); _SimBlockObj = null; uC_ImageButtonVPanel_Block.Clear(); _SimBlockObj = null; if (_seatingChart == null) { return; } List <SimBlock> list = SimBlock.RetrieveItems(_seatingChart.SeatingChartId); if (list == null || list.Count <= 0) { return; } uC_ImageButtonVPanel_Block.Clear(); List <ImageButtonItem> listImgButton = new List <ImageButtonItem>(); foreach (SimBlock sb in list) { ImageButtonItem ibi = new ImageButtonItem(); ibi._Img = global::WinFormUI.Properties.Resources.SeatChartFlag; ibi._DisplayText = sb._BlockName; ibi._BackColor = sb._BgColour; ibi._objFlag = sb; listImgButton.Add(ibi); } uC_ImageButtonVPanel_Block.CreateControl(listImgButton); }
private void InitBlock() { List <SimBlock> list = SimBlock.RetrieveItems(_SeatingChartId); if (list == null || list.Count <= 0) { return; } uC_ImageButtonPanel1.Clear(); List <ImageButtonItem> listImgButton = new List <ImageButtonItem>(); foreach (SimBlock sb in list) { ImageButtonItem ibi = new ImageButtonItem(); ibi._Img = global::WinFormUI.Properties.Resources.SeatChartFlag; ibi._DisplayText = sb._BlockName; ibi._BackColor = sb._BgColour; ibi._objFlag = sb; listImgButton.Add(ibi); } uC_ImageButtonPanel1.CreateControl(listImgButton); }