Esempio n. 1
0
 private void seatChartDisp1__LeftOneClick(object sender, SeatMaDll.SelectOneSeat_Events e)
 {
     SeatMaDll.BHSeatControl seat = e.m_bhSeat;
     if (seat == null)
     {
         return;
     }
     if (seat.Tag == null)
     {
         return;
     }
     SeatMaDll.Seat st = (SeatMaDll.Seat)seat.Tag;
     if (st == null)
     {
         return;
     }
     if (st._brotherList.Count <= 0)
     {
         st._seatFlag  = this._seatTypeFlag;
         seat.SeatType = SeatMaDll.EditSeatItem.GetControl_ByFlag(this._seatTypeFlag);
     }
     else
     {
         DlgGroupControlSetType dlgMultiSelect = new DlgGroupControlSetType(seat, this._seatTypeFlag);
         dlgMultiSelect.ShowDialog();
         if (dlgMultiSelect.DialogResult == System.Windows.Forms.DialogResult.OK)
         {
             seat.Invalidate();
         }
     }
 }
Esempio n. 2
0
        private void seatChartDisp1__LeftOneClick(object sender, SeatMaDll.SelectOneSeat_Events e)
        {
            SeatMaDll.BHSeatControl     seat = e.m_bhSeat;
            SeatMaDll.Seat              st   = (SeatMaDll.Seat)seat.Tag;
            List <DataObject.PO.SeatPo> list = SeatAction.SplitDBObj(st);

            string AlowLeftClickSeatType = "0,1,2,3";

            //判断座位类型是否允许选中
            if (!AlowLeftClickSeatType.Contains(list[0].SEATTYPE))
            {
                return;
            }
            if (st._seatStatusFlag == "0")
            {
                int statusNum = Flamingo.BLL.SeatStatus.Lock(_szShowplanId, list[0].SEATID, FrmMain.curUser.UserId);
                MouseClickSetStatus(seat, statusNum.ToString());
            }
        }
Esempio n. 3
0
        private void seatChartDisp1__LeftOneClick(object sender, SeatMaDll.SelectOneSeat_Events e)
        {
            SeatMaDll.BHSeatControl seat = e.m_bhSeat;
            if (seat == null)
            {
                return;
            }
            if (seat.Tag == null)
            {
                return;
            }
            SeatMaDll.Seat st = (SeatMaDll.Seat)seat.Tag;
            if (st == null)
            {
                return;
            }
            if (st._brotherList.Count <= 0)
            {
                if (_SimBlockObj == null)
                {
                    MessageBox.Show("请选择一个区域!", "系统提示");
                    return;
                }
                st._seatBlockId = _SimBlockObj._BlockId;
                st._BackColor   = _SimBlockObj._BgColour;
            }

            else
            {
                DlgGroupControlSetBlock dlgMultiSelect = new DlgGroupControlSetBlock(seat, this._SimBlockObj);
                dlgMultiSelect.ShowDialog();
                if (dlgMultiSelect.DialogResult == System.Windows.Forms.DialogResult.OK)
                {
                }
            }
        }
 private void seatChartDisp1__LeftOneClick(object sender, SeatMaDll.SelectOneSeat_Events e)
 {
 }
Esempio n. 5
0
 private void seatChartDisp1__LeftOneClick(object sender, SeatMaDll.SelectOneSeat_Events e)
 {
     SeatMaDll.BHSeatControl seat = e.m_bhSeat;
     MouseClickSetType(seat, _SimBlockObj);
 }