我需要在C#剧院预订项目中预订座位。 [英] I need an idea for seat booking in my project of theatre booking in C#

查看:101
本文介绍了我需要在C#剧院预订项目中预订座位。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在数据库中制作了一个屏幕表,其中包括类型(PREMIUM,GOLD,SILVER)等座位。

因此,每天将有6个节目将在该屏幕上播放。

就像第一次出现在8.30,然后是10.00,13.30,16.00,19.00,22.00。

显然每次出演时我必须保持不同的座位状态。 show。





还有比这更好的想法,以节省时间空间吗?



我尝试了什么:



i有一个想法,为第一个屏幕创建6个表,然后在表单中连接每个表具有特定的时间段。

但这样我需要维护6个表

解决方案

引用:

有没有比这更好的想法,以节省时间空间?

不,我相信。毕竟,它是独立的信息。


有一个显示表



 ID StartTime 
1 8:30
2 10:00









将座位表扩展为ShowID



 ID,ShowID,SeatNumber,SeatType 
1 1 101 ,银币
2 1 102 ,Silver
...
1001 2 101 ,黄金
1002 2 102 ,Premium
....


I have made a screen table in database that consists of seats like of type (PREMIUM,GOLD,SILVER).
So there will be 6 shows in a day that will be playing on that screen.
like first show at 8.30, then 10.00,13.30,16.00,19.00,22.00.
Obviously for each show time i have to maintain different seat status of screen for the show.


is there any better idea than this, to save time space?

What I have tried:

i have an idea to create 6 tables for screen one and then connect each in the form with its particular time slot.
But this way i need to maintain 6 tables

解决方案

Quote:

is there any better idea than this, to save time space?

Nope, I believe. After all, it is independent information.


Have a "Show" table

ID StartTime
1 8:30
2 10:00



etc

Extend your Seat table to have ShowID

ID, ShowID, SeatNumber, SeatType
1, 1, 101, Silver
2, 1, 102, Silver
...
1001, 2, 101, Gold
1002, 2, 102, Premium
....


这篇关于我需要在C#剧院预订项目中预订座位。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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