如何在mvc实体框架代码的第一种方法中级联下拉列表 [英] how to cascade dropdown in mvc entity framework code first approach

查看:85
本文介绍了如何在mvc实体框架代码的第一种方法中级联下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

课程分配给教师

用户将从DropDownList中选择一个部门,该特定部门的所有教师姓名和课程代码将加载到教师和课程代码DropDownList中。当用户选择教师时,将获得学分并相应地显示剩余学分。当用户选择课程代码时,将显示该课程的名称和学分。您必须确保避免重叠问题。课程不能分配给多个教师,即不能再分配指定的课程。如果用户尝试分配课程,哪个学分超过教师的剩余学分,系统将显示一个选项(是/否)对话框并相应地工作。

Course Assign to Teacher
User will select a department from the DropDownList and all the teachers’ name and course code of that specific department will be loaded in the Teacher and Course Code DropDownList. When user will select a teacher, Credit to be taken and Remaining credit will be displayed accordingly. When user will select a course code, Name and Credit of that course will be displayed. You must ensure to avoid overlapping problem. A course cannot be assigned to more than one teacher, i.e. an assigned course cannot be assigned again. If user tries to assign a course, which credit is more than teacher’s remaining credit, system will show an option (Yes/No) dialog box and work accordingly.

推荐答案

是的,方式去。你有逻辑,你落后于你想要实现的东西。



没有(一个大的没有),我们不会写任何东西为了你。这是你需要做的事情。

我认为这是一个功课;它不会在这里受理。

如果你希望我们做你的功课,那就不行了。这背后有一个很好的理由:你不会学到任何东西,如果你希望别人为你做你的工作。



你可以尝试一下一开始就拥有,当你在任何地方停留时,来自这里的任何人都会尽力帮助你。但不直接询问源代码。 :笑:



感谢理查德 [ ^ ] ,

请阅读第6个点:指南的链接

[ ^ ]



-KR
Yeah, way to go. You have the logic, and you're step behind from what you want to implement.

And no (a big no), we're not going to write anything for you. That's is something you need to do.
As I assume, this a homework; it won't entertained here.
If you expect us to do your homework, that's not going to work. There's a pretty good reason behind this: "You won't be learn anything, if you expect others do your work for you".

You can try something on your own at first and when you stuck anywhere, anyone from here would do his/her best to help you out. But don't directly ask for the source code. :laugh:

Thanks to Richard [^],
please read the 6th point from this: A link to the Guidelines
[^]

-KR


这篇关于如何在mvc实体框架代码的第一种方法中级联下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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