[转发]我想要剧院座位选择逻辑和布局 [英] [Repost] I Want Theater Seat Selection Logic And Layout

查看:74
本文介绍了[转发]我想要剧院座位选择逻辑和布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要座位选择逻辑和布局...帮助我。

I want seat selection logic and layout...help me.

推荐答案

我想要很多东西 - 在这里,在这个网站上,你得到的很少在这样一个盲目的问题上



如果不了解更多关于这个问题的信息,你可以用2 x 2矩阵表示座位 - 这样你就可以在矩阵中标记条目因为'没有座位'来解释边缘各种剧院几何形状



每个'座位'然后可以是一个对象,其中一个字段/属性用于状态'已分配','未分配' - 所以要分配一个座位,你只需要提供状态为未分配的座位列表,让用户选择一个座位,然后将其状态更改为已分配,并且可能有一个字段在座位对象中识别分配给谁



ps'帮帮我' - 真的吗? ..下次学习一些礼仪
I want lots of things - around here, on this site, you get very little on such a blind question

Without knowing more about the problem, you could probably represent seats in a 2 x 2 matrix - this allows you to have entries in the matrix marked as 'no seat exists' to account for various theatre geometries around the edges

Each 'seat' then could be an object, with a field/property for status 'allocated', 'not allocated' - so to allocate a seat you simply present a list of the seats where the status is 'not allocated', let the user choose a seat, then change its status to 'allocated', and maybe have a field in the seat object to identify 'who' its allocated to

ps 'help me' - really ? .. next time, learn some manners


这篇关于[转发]我想要剧院座位选择逻辑和布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆