コード例 #1
0
 public MovieSeatSelectorPanel(RoomPlanObject roomPlan,MovieObject movie,MoviePlanObject moviePlan,DateTime dt)
 {
     InitializeComponent();
     this.roomPlan = roomPlan;
     this.movie = movie;
     this.dt = dt;
     this.moviePlan = moviePlan;
     CheckForIllegalCrossThreadCalls = false;
     this.SetOperationTime(60);
 }
コード例 #2
0
        public ConfirmPayPwdPanel(List<TicketPrintObject> tickets,MovieObject movie,MoviePlanObject moviePlan,RoomPlanObject roomPlan,DateTime dt)
        {
            InitializeComponent();
            this.lists = tickets;

            this.movieInfo = movie;
            this.roomPlan = roomPlan;
            this.moviePlan = moviePlan;
            this.dt = dt;
        }
コード例 #3
0
ファイル: HiPiaoCache.cs プロジェクト: marcellus/fivemen
        private static RoomPlanObject ParseRoomPlan(XmlNode node)
        {
            RoomPlanObject obj = new RoomPlanObject();

            obj.Color    = node.Attributes["color"].Value;
            obj.PlanId   = node.Attributes["planId"].Value;
            obj.Playtime = node.Attributes["playtime"].Value;
            obj.Price    = Convert.ToDouble(node.Attributes["price"].Value.TrimEnd('元'));
            obj.SPrice   = Convert.ToDouble(node.Attributes["sprice"].Value.TrimEnd('元'));
            obj.RoomId   = node.Attributes["hallId"].Value;
            obj.RoomName = node.Attributes["hname"].Value;
            return(obj);
        }
コード例 #4
0
 public RoomPlanShowPanel(RoomPlanObject plan)
 {
     InitializeComponent();
     this.plan = plan;
 }
コード例 #5
0
ファイル: HiPiaoCache.cs プロジェクト: romanu6891/fivemen
 private static RoomPlanObject ParseRoomPlan(XmlNode node)
 {
     RoomPlanObject obj = new RoomPlanObject();
     obj.Color = node.Attributes["color"].Value;
     obj.PlanId = node.Attributes["planId"].Value;
     obj.Playtime = node.Attributes["playtime"].Value;
     obj.Price = Convert.ToDouble(node.Attributes["price"].Value.TrimEnd('元'));
     obj.SPrice = Convert.ToDouble(node.Attributes["sprice"].Value.TrimEnd('元'));
     obj.RoomId = node.Attributes["hallId"].Value;
     obj.RoomName = node.Attributes["hname"].Value;
     return obj;
 }
コード例 #6
0
        public UserPayCheckPanel(List<TicketPrintObject> tickets,MovieObject movie,MoviePlanObject moviePlan,RoomPlanObject roomPlan,DateTime dt)
        {
            InitializeComponent();
            this.SetSepartor(false);

            this.lists = tickets;
            this.movieInfo = movie;
            this.moviePlan = moviePlan;
            this.roomPlan = roomPlan;
            this.dt = dt;
            if (tickets != null)
            {
                TicketPrintObject ticket = tickets[0];
                this.picAdImage.Image = movieInfo.AdImage;
                //ticket.MovieName = "假如真的是爱情有天意的话";
                if (ticket.MovieName.Length > 9)
                {
                    this.lbMovieName.Text = ticket.MovieName.Substring(0, 9) + "\n" +  ticket.MovieName.Substring(9);
                    this.lbMovieInfo.Location = new Point(this.lbMovieName.Location.X, this.lbMovieName.Location.Y + this.lbMovieName.Height + 2);
                }
                else
                {
                    this.lbMovieName.Text = ticket.MovieName;
                }
                this.lbMovieInfo.Text = string.Format(this.lbMovieInfo.Text, moviePlan.Type, moviePlan.Language, movieInfo.TotalMinutes);
                //DateTime  playDate=Convert.ToDateTime(ticket.PlayDate);
               // DateTime playDate = movie.PlayTime;
                DateTime playDate = dt;
                this.lbDate.Text = playDate.ToString("MM月dd日")+" "+DateTimeHelper.GetChineseXq(playDate);
                WinFormHelper.LocationAfter(this.lbDate, this.lbDateHint);

                this.lbTime.Text = ticket.PlayTime;
                WinFormHelper.LocationAfter(this.lbDateHint, this.lbTime);
                WinFormHelper.LocationAfter(this.lbTime, this.lbTimeHint);

                this.lbRoom.Text = ticket.RoomName;
                WinFormHelper.LocationAfter(this.lbTimeHint, this.lbRoom);

                //this.lbRoom.Location = new Point(this.lbTimeHint.Location.X + this.lbTimeHint.Width, this.lbTimeHint.Location.Y);

                int num=6;
                string seat = string.Empty;
                for (int i = 0; i < lists.Count; i++)
                {
                    if (i != 0 && i % num == 0)
                    {
                     // seat += "\n座位:"
                        seat += "\n          ";
                    }
                    seat += lists[i].Seat+" ";

                }
                this.lbSeats.Text = string.Format(this.lbSeats.Text, seat);
                this.lbTicketPrice.Text = ticket.Price.ToString();
                WinFormHelper.LocationAfter(this.lbTicketPrice,this.lbTicketPriceHint);
                this.lbTicketCount.Text = this.lists.Count.ToString();
                WinFormHelper.LocationAfter(this.lbTicketPriceHint, this.lbTicketCount);
                WinFormHelper.LocationAfter(this.lbTicketCount, this.lbTicketCountHint);
                this.lbTicketTotalPrice.Text = (ticket.Price * this.lists.Count).ToString();
                WinFormHelper.LocationAfter(this.lbTicketTotalPrice, this.lbTicketTotalPriceHint);
            }
            this.SetOperationTime(30);
        }