Professional Documents
Culture Documents
INTRODUCTION
About Organization
INTRODUCTION
About Organization
The system has been developed for Shekhawati College of Management and Information Technology, Sikar, Rajasthan. Currently the college is running the various courses of Management and Information Technology. The college is providing these courses since 2002.The College is having the strength of more than 1000 student and expecting 800 new admissions in coming session. The college is having 45 staff personal. The college administration is using manual system to keep records in the files. The college is having a department named Administrative Department with one administrative officer and five clerks to support him in various administrative and managerial tasks. All these clerks are assigned various predefined tasks. Basically they are assigned racks in which the keep concern files and various important papers. The college manual system is relying on the files that are kept in racks. Some of the files are described here. Fees Details: - This file is created in every session to keep record of fees deposited by every student. The file is accessed almost everyday and updated regularly in order to provide current status. Due Lists: - This file is also created in every session and accessed almost every day for instance when a no dues certificate is issued to any student. Students Personal details: - Every course has its own student detail file. The file has all the personal details of a particular student. A file is accessed by clerks and faculty members when they require any personal detail of
any student for instance their address, phone numbers etc. Students Lists: - This is file which contains list of students with their personal details in some pre defined formats. These lists are required when any task is performed on a group of students for instance to make a phone calls to students to inform them about any college activity. Mark sheet received and Issue detail: - The file has the information of all mark sheet received from University and issued to students. Documents received and returned: - This file has details of the documents received at the time of admission from student and returned. Internal Examination and Results : - The file has list of students along with their marks obtained in the internal examinations.
And many other file like University Correspondence. Letter received, letter dispatched, Notice issued, student biodata, staff biodata, important documents etc. As the time passes the files and their categories are increasing in number and the system is going to be more complex day by day. The Administrative officer, Principal, Director and other staff members are fully dependent on these clerks to get the required information regarding taking any decision. As we know the human nature as compared to computer, it is slow and error prone so the college administrative authorities are facing a problem of under information with low quality and with a long time taken. And in the next coming session the problem is going to be worst and more terrified. Now if we think of computers, the college administrative room is bearing two Pentium-IV computers with printer attached. But the clerks and other members are limited to work on these
College Management System, Submitted By Amit K. Dhaka E/No 04884873
computers. They work on these computers to type correspondence letters, Notices etc. using MS WORD application and print the list of students using the MS EXCEL WORKSHEETS, which is already stored in some files. In short we can say that they are very much limited in their work because of non-availability of any appropriate software solution. There may be two solutions that can overcome the abovementioned problems. One is to hire more staff and provide more accommodation so that the work can be done quickly and efficiently. But if we think according to the next session we have to hire five more clerks and other supportive staff like peons etc. and accommodation and furniture like racks, almiras, counters etc. and obviously a separate room also. That will result into a large amount of investment and increase the salary expenses. Second solution is to develop a computer based software solution, which can cope with the problems that the college is currently facing and going to face in future. Therefore I, with my respected guide have decided to work on a computer based software solution and develop a system that will behave like a mini MIS (Management Information System) and support all the concern staff members including Director, Principal, Administrative Officer, Librarian, clerks and even other staff members.
specific applications, but they are not a necessary part of all .NET applications. Looking at the overall architecture, .NET consists of three primary
components:
www.syngress.com The .NET Framework A completely new application development platform. Several .NET products Various applications from Microsoft based on the .NET Framework, including new versions of Exchange and SQL Server, which are Extensible Markup Language (XML)enabled and integrated into the .NET platform. Several .NET services Provided by Microsoft for use in developing applications running under the .NET Framework. Microsofts Hailstorm project is actually an attempt to package some of the most crucial Web Services under the Microsoft brand name. The .NET Framework itself can be divided into three parts: The CLR A managed execution environment that handles memory allocation, error trapping, and interacting with the operating-system services. The Base Class Library An extensive collection of programming components and application program interfaces (APIs). Two top-level development targets One for Web applications (ASP.NET) and another for regular Windows applications (Windows Forms). The advantages offered by the .NET Framework include shorter development cycles (code reuse, fewer programming surprises, support for multiple programming languages), easier deployment, fewer data type related bugs due to integral type safety, reduced memory leaks thanks to the garbage collector, and, in general more scalable, reliable applications. Microsoft .NET and Windows DNA If some of the marketing speak surrounding .NET sounds familiar, theres a good reason:The .NET platform is the next generation of what was called Windows DNA. However, although Windows DNA did offer some of the building blocks for creating robust, scalable, distributed systems, it generally had little substance in and of itself. Windows DNA was a technical specification that focused on building software based on Microsoft server products, utilizing numerous technologies and languages (ASP, HTML, JavaScript, MTS, COM, and so on), many of which are quite unrelated from a
College Management System, Submitted By Amit K. Dhaka E/No 04884873
developers point of view. The servers and languages involved all have varying APIs and type systems, making interoperability a challenge at best. Herein lies the big difference: .NET is much more than a specification. A product in its own right, it includes the tools and languages required to make developing these types of ntiered applications easier, neatly packaged as a single coherent and comprehensive API. Microsoft .NET Architecture Hierarchy The diagram in Figure 1.1 shows the .NET platform architecture. Essentially, the .NET families of languages are each compiled into Microsoft Intermediate Language (MSIL, or just IL) output according to the Common Language Specification.The primary types of application development are Web Forms,Web Services, and Windows Forms applications.These applications communicate using XML and Simple Object Access Protocol (SOAP), getting their functionality from the Base Class Library and run within the Common Language Runtime environment.Visual Studio.NET is not required in order to develop .NET Framework applications, however it does offer an extensible architecture that makes it an ideal choice for developing .NET software. ww.syngress.com The core of the .NET platform is found in the Common Language Runtime, Base Class Library, and the Common Language Specification.The .NET Base Class Library exposes the features of the Common Language Runtime in much the same way that the Windows API allows you to utilize the features of the Windows operating system; however, it also provides many higher-level features that facilitate code reuse. This architecture gives a great number of benefits, not the least of which is a consistent API. By writing to the Common Language Runtime and using the .NET Base Class library, all application services are available via a common objectoriented programming model.Today some OS functions are accessed via DLL calls using the C-based API and other facilities are accessed via COM objects, making the developer do the necessary legwork to make everything work together smoothly. Some features are available only to developers working in low-level languages, forcing design decisions. This new programming model greatly simplifies the efforts that were required when writing Windows DNA applications, or for that matter, almost any Win32 and COM project. Developers no longer need to be a Windows or COM architecture guru with
College Management System, Submitted By Amit K. Dhaka E/No 04884873
an in-depth understanding of GUIDs, IUnknown,AddRef, Release, HRESULTS, and so on. .NET doesnt just hide these from the developer; in the new .NET platform, these concepts simply do not exist at all.Another great benefit for .NET developers is its model for error handling via exceptions. Developing software for the Windows platform has always meant you were pulled into its own inconsistencies; particularly in the ways errors were returned. Some functions would return Win32 error codes, some return HRESULTS, and some raise exceptions, all requiring the programmer to write different types of error-handling code. In .NET, all errors are reported via exceptions, which greatly simplifies writing, reading, and maintaining code. Thanks to the Common Language Specification and Common Type System, .NET exceptions work across module and language boundaries as well. Multilanguage Development Because many languages target the .NET Common Language Runtime, it is now much easier to implement portions of your application using the language thats best suited for it. Older methods of allowing different programming languages to interoperate, such as COM or CORBA did so through the use of an Interface Definition Language (IDL).The .NET platform allows languages to be integrated with one another through the use of the MSIL. Although it contains instructions that appear similar to assembly code, such as pushing and popping values and moving variables in and out of registers, it also contains instructions for managing objects and invoking their methods, manipulating arrays, and raising and catching exceptions. The Microsoft Common Language Specification describes what other development tool authors must do in order for their compilers to output IL code that will allow them to integrate well with other .NET languages. Microsoft currently provides several compilers that produce IL code targeting the .NET Common Language Runtime: C++ with managed extensions, C#, Jscript, and Visual Basic. In addition, several companies other than Microsoft are producing compilers for languages that also target the .NET Common Language Runtime. Currently support for COBOL, Eiffle, Fortran, Perl, Python, Scheme, and many more have been announced by various vendors.
Introducing C# Programming
The C# language is a modern object-oriented language. In some ways, it can be seen as an extension of other languages that came before it. C# is most often compared with Java and C++. If you are not familiar with C# programming. It supports the notion of data types, flow of control statements, operators, arrays, properties,and exceptions. Depending on the language(s) you are accustomed to programming in, most of these concepts should be familiar to you.Throughout the chapter, you will see examples and/or discussions of most of these features of C#. C# is an object-oriented language. It supports the notion of classes and the object-oriented nature of classes including encapsulation, inheritance, and polymorphism. C# also supports interfaces in conjunction with the .NET Common Language Runtime (CLR) garbage collection, which some feel is necessary in an object-oriented language. It also supports the notion of indexers, which in simplified terms lets you manipulate objects as arrays and delegates, which you can think of as method callbacks on steroids. The .NET Framework supports console applications, graphical user interface (GUI) applications (Windows Forms), browser-based applications (Web Forms and ASP.NET), and Web Services.This chapter will focus on command line applications, which are known as console applications. Console applications have a text-only user interface. In later chapters, you will learn how to create other types of applications.The focus of this chapter is to explain the concepts that are new and/or different in C# from other object-oriented languages. Concepts that are familiar to object-oriented programmers are covered in brief. Throughout the chapter, a series of sample programs are presented that illustrate the concepts introduced in each section.The sample programs are available on the CD included with this book. Although there are separate sample programs for each section, each sample builds on concepts covered in earlier sections of this chapter. www.syngress.com .syngress.com Microsoft supplies a full-blown development environment Visual Studio .NETfor building .NET applications. But, you dont need to buy anything to get started writing C# programs.The Microsoft.NET Framework software development
College Management System, Submitted By Amit K. Dhaka E/No 04884873
kit (SDK) is available for download from Microsofts Web site for free (http://msdn.microsoft.com/net). It contains a command line C# compiler that we use to compile the examples in this chapter.This chapter assumes you have already installed the Microsoft.NET Framework SDK.The only other thing you need to get started is a text editor. Because you are writing C# programs for the Microsoft.NET Framework on Microsoft Windows platforms, you have several choices freely available in the Windows operating system.We will stick with the old reliable Notepad as our source code editor of choice. For users that may be new to the Windows operating system, we run through some explicit instructions on using the command line and Notepad. If you are familiar with Windows, or if you arent interested in typing the programs in yourself, you can skip ahead to the next section. The first things you need to do are start a command line session and create some directories to store your sample programs in.To start a new command line session, click Start on the lower-left corner of the screen. Select the Run menu option from the pop-up menu.The Run dialog box will appear.Type cmd in the edit box and click OK. The sample program of C# is as foloows using System; namespace FirstCSharpProgram { /// <summary> /// My first C# class. Contains the program entry point. /// </summary> class FirstCSharpClass { static void Main( string[] args ) { try { /* * Show when we wrote our first program on screen. */ DateTime today = DateTime.Now; Console.WriteLine( "I wrote my first C# program at: " + today.ToString() ); www.syngress.com if ( args.Length > 0 ) { // Show an optional message on screen.
College Management System, Submitted By Amit K. Dhaka E/No 04884873
10
string msg = "You wanted to say: " + args[0]; Console.WriteLine( msg ); } } catch ( Exception exception ) { // Display any errors on screen Console.WriteLine( exception.Message ); } } } } Compiling and Executing The command line compiler included in the Microsoft.NET Framework
BACK END
RELATIONAL DATABASE MANAGEMENT SYSTEM A Relational database management system (RDBMS) consists of a collection of interrelated data and a set of programs to access those data. The collection of data is referred to as database. Traditional methods of information management include fileprocessing system. A number of application programs are written to manipulate the files. Keeping information in a fileprocessing system has a number of major disadvantages: 1. Data redundancy and inconsistency: Since different programmers create the file and application programs, the various files are likely to have different formats and the programs may be written in several programming languages. Moreover, the same information may be duplicated in several files. This redundancy leads to higher storage cost. In addition it may lead to data inconsistency i.e. the various copies of the same data may no longer agree.
College Management System, Submitted By Amit K. Dhaka E/No 04884873
11
changes in the needs a new query arises. To gather information according to that query, a new application program may need to be written. This might take a few days and if after few days again a new demand arises then again an application program has to be written.
3. Integrity problem: The data stored in the database must
satisfy certain consistency constraints. When new constraints are added, it is difficult to change the programs to enforce them.
4. Atomicity problems: A computer system is subject to
failure. So it is crucial to ensure that once a failure has occurred, the data are restored to the consistent state that existed prior to the failure.
5. Concurrent
access anomalies: Many systems allow multiple users to update the data simultaneously. In such case there are chances of inconsistency creeping in the database.
To overcome these problems, the development of DBMS has been prompted. Some Terminologies of RDBMS: Data abstraction A major purpose of a RDBMS is to provide users with an abstract view of the data. That is, the system hides certain details of how the data are stored and maintained. Types of data abstraction are: 1. Physical level: The lowest level of abstraction describes how the data are actually stored. At this level, complex lowlevel data structures are described in detail.
2. Logical
level: The next higher level of abstraction describes what data are stored in the database and what relationships exist between them.
12
part of the entire database. There is huge amount of information stored in the database. Many users of the system will not be concerned with all this information. Instead, they need to access only a part of the database. To simplify this interaction of the users with the system, the view level of abstraction is described. Instances and Schemas The collection of information stored in the database at a particular moment is called instance of the database. The overall design of the database is called the database schema. A database corresponds to the programming language type definition. A variable of a particular type has a particular value at a given instant. Thus, the value of a variable in programming languages corresponds to an instance of database schema. Data Independence The ability to modify a schema definition in one level without affecting a schema definition in the next higher level is called data independence. There are two levels of data independence:
1. Physical data independence is the ability to modify the
logical schema without causing application program to be rewritten. Data models Data model is a set of concepts that can be used to describe the structure if a database. The common data models are: 1. E-R Model: the E-R model is based on a perception of a real world that consists of a collection of basic objects, called entities, and of relationships among these objects. An
College Management System, Submitted By Amit K. Dhaka E/No 04884873
13
entity is a 'thing' in the real world that is distinguishable from other objects. In addition to entities and relationships, the E-R model represents certain constraints to which the contains of a database must conform. One important constraint is mapping cardinalities, which express the number of entities to which another entity can be associated via a relationship set. The overall logical structure of a database can be expressed graphically by an E-R diagram, which is built up from the following components: Rectangles , which represent entity sets Ellipses , which represent attributes Diamonds , which represent relationships among entity sets Lines, which link attributes to entity sets and entity sets to relationships Relational Model: This model uses a collection of tables to represent both data and the relationships among those data. A row in a table represents a relationship among a set of values.
14
Chapter 2
PROJECT/PROBLEM SELECTION
15
project his guidance is provided during development of this project and we are thankful to him for providing the guidance. He is a Head of Department Seth Motilal PG College, Jhunjhunu and having the experience of more than 12 years in computer science.
Mr. Felix : - He is the Lecturer of CSE and IT
Department SCMIT Sikar. He provided his full support during development of this project.
Amit K. Dhaka (Team Member): - He is the student of
MCA (Final Semester). He performed whole the tasks of executing the processing of project development including requirement analysis, design, construction, release and maintenance.
16
PEOPLE
Hardware/software tools
Figure 2: - Resources
17
Each resource specifies the four characteristics: description of the resources, a statement of availability, time will be the resources required and duration of time that will be resources required. The last two characteristics can be view as the time window. These resources described as follows
Human Resources:-
The following people required to develop and use the software developed by me -
Employee user (clerks and other staff): These users are registered user of the college and user of s/w. they can search and take reports but not have authority to remove, delete and change the things. These are the people requirement of the project.
18
Re useable software Resources: The component-based software engineering emphasizes reusabilitythat is the creation and reuses the software building blocks. These building blocks often called components. In this software we use following components that come in some categories
existing s/w taken from third party or that has been developed internally in past projects. We have not used any type of such s/w in our project.
Full-experience
components:
Existing
specifications, design, code or test data developed for past projects that are similar to the s/w to be built for the current project. We have not used such type of component in our project.
Partial Experience components: - Use of the project component through which the
Past
development team not experienced. We have not used such type of components in our projects.
be built by the s/w team specifically for the need of current project. We have used this type of component in our project. These are the reusable s/w resources requirements of the projects.
19
Environmental Resources:
The environment that supports the s/w project often
calls
the
software
engineering
environment
(SEE),
Requirement of environment: - The following environment is require for project running correctly1. Sufficient space for all the equipment of the system. 2. Dust/smoke free environment. 3. Department well equipped with components. Requirement of hardware: - The following h/w are required to run our project efficiently 1. PC-ATX / CELRON 850/PENTIUM who can work on Internet. 2. A Server that can manage the network traffic. 3. Printers of high quality like a DMP, LASER and INKJET COLOURED PRINTER Requirement of software: 1. Accurate and feasible software like, XP/2000 etc. 2. Visual Studio.NET tool. 3. A Database management tool such as MS-ACCESS, SQL Server, and Oracle etc. These are the requirement of the environment resources and also shows resource requirement of the project. After planning we do the Risk Analysis of the project in next section.
20
Chapter 4
SYSTEM STUDY
Existing System along with limitation/deficiencies Proposed system along with intended objectives Feasibility study Operational Technical Economic, etc.
21
22
4.2 PROPOSED SYSTEM ALONG WITH INTENDED OBJECTIVES The primary aim of this proposed system is to overcome the drawbacks of the manual system and to provide efficient timely services to the college staff. Being the GUI , it goes without saying that the new system will be more user friendly , accepting less inputs from user and minimizing on data entry errors. Since the proposed system uses Microsoft SQL SERVER in the preliminary stage if the college desires to make its systems web enabled, it will be a handy procesure to make Microsoft SQL SERVER web enabled . This leads to an easy way to College eenabled vision .with the Microsoft SQL SERVER , with an ability to marry with crystal report the system will provide flexibility for advanced user to develop and generate there own report formats which is restricted in the current system . In its future expansion of the project , in the college desires to deploy electronic data interchange system with its other branches (if it would have in future), the SQL Server provides the facilities to export the data in various output formats , which can be transferred over an electronic media using the electronic data interchange,the flexibility is also maintained to integrate the other functional areas .
23
24
1. 2. 3. 4. 5. 6. 7.
RAM - 256 MB Processer - Pentium-III Hard Disk - 10 GB Floppy Drive - 1.44 MB (Optional) Mouse - Scroll (Recommended) keyboard - 104 Keys Keyboard Display - VGA Color Monitor
25
B) S/W Specification
ECONOMICAL :- This Feasibility used for evaluating the effectiveness of the system. It is also known cost/benefit analysis, economic feasibility determines the benefits and saving the expected from the automobile finance system and compare with costs. If the benefits are outweigh costs, then the decision is made to design and implement the project of auto finance else, further design the purposed system and improves accuracy of system phase. To make it approachable for small college libraries the cost feasibility keep in mind. The PC, Operating System, Language and Back End tool are quit cheap comparing the manual work, time consume, and worker wages. Even small college may purchase this it comes under their budget. This project is productive with low operating cost. OPERATIONAL :-The form appears in front of the user in the way that user wants. Even semi -qualified user can operate this project very effectually. It improves organizational planning, improve asset utilization, quick output it has management feasibility, legal feasibility and time feasibility. LEGAL: - All the Legal aspect, Acts, and statutes have been considered before develop this project. This project is not infringes any boundaries of its limit and full fill all the legislatorial aspects. MANAGERIAL:-This project can modify and update as per management personnel of the firm to whom this project would work. All the minimum aspect of the Library Administration is used in it.
26
Behavioral Feasibility: - The behavioral feasibility is belong the peoples that uses the system, because when all system computerize then retraining, transfers, and changes in employee job status. This study is generally for staff of user.
The Feasibility study for a best system will have some organization steps or a project team. The Feasibility study steps for a Project: Form a Project team and appoint a project leader: - In this firstly create a project team for system project; a user is also in this team because its knowledge and way of thinking are giving success of the project. In the project team, analysts and user staff are involved. For the project, we occupy a specific time period, ranging from several weeks to months. The senior analysts appointed as a leader of the project team, that will have more experience then others. Prepare System Flowchart: -In this steps prepared generalized system flow chart for the system project. This flowchart is prepared by its initial investigations, this chart show inputs, outputs, and also processing. Enumerate Potential Candidate System: -This step is describe that the system are capable of producing the output for this requires the transformation from logical to physical model means we design a physical system of the project. For this we require hardware and software. Describe and Identify characteristics of Candidate System: - The Characters of a candidate system is almost related to Technical knowledge and experience about hardware & software because they are determine what each candidate system can and can not do. In the characters of a system is memory space (k
27
bytes), Source language, Purchase price, Number Installed data etc. Determine and Evaluate performance and cost Effectiveness of Each Candidate System: - in this step, we evaluate system performance against the candidate system via feasibility study and select the best system. The cost also affects the designing user training, updating the physical facilities, and documenting. System performance criteria are evaluated against the cost of each system and determine the system, which most cost effective and also performance requirements. So, in the finance of vehicle we plot performance criteria and cost for each system. Weight System Performance and Cost Data: - in this step, we select the criteria of cost and performance because some time situations not so clear-cut. For selecting a best system we applying a rating figure and the select the highest score system. In the Performance criteria some characters like system accuracy, growth potential, and Response time, User friendly are present. And in the cost criteria system development, User training, system operations etc. Select the Best candidate System: -for selecting the best system needs highest score. This assumes the weighting factors are fair the rating of each evaluation criterion is accurate.
28
Chapter 5
SYSTEM ANALYSIS
29
We consider the following problems Following requirement Computer Automation of college management. Reduce paper work. Manage large database Shorten long processing requirement. 2. Who will use the software? Clerks who are currently who using will the get manual system. Administrative officers instance access to the student report. College lecturers who will use it to get information about students and personal details. academic
30
Unstructured analysis:
we consider the following problems. 1. Where the solution will be provided? In whole college using the network. 2. What cost benefits they wants? The reduction of manpower and space required. Reduction of Paper and material cost. Cost of communication. Extra requirements we can use in this software. Query tools for allowing authorized access to candidates User-friendly GUI.
3.2 Solution
According to requirement, there is one best solutions arises A computer automation system for college in which a database, for each registered user,student details, fees details etc should be stored in SQL SERVER. A software should be developed using a modern language like C#.NET that would provide a good interface and intelligent working environment.
31
Program flow of the application is depicted in the flow charts shown below.
Start
Login Screen
Power Login
Clerk Login
Yes
User is Admi n
No
Error Message is displayed Error Message is displayed
32
The administrator edit the eligibilities like documents and course passed and cutoff marks that should a student must have
33
Add student personal and academic details Sale Prospectus Add fees Details Edit students records Deposit the admission form,return documents Prints the Identity Cards Issue No dues Certificate
Prints the various reports Students list Due list Students Phone Number Students Address Address on envelope Set the formats for the lists
34
Fees Details: - This file is created in every session to keep record of fees deposited by every student. The file is accessed almost everyday and updated regularly in order to provide current status. Due Lists: - This file is also created in every session and accessed almost every day for instance when a no dues certificate is issued to any student. Students Personal details: - Every course has its own student detail file. The file has all the personal details of a particular student. A file is accessed by clerks and faculty members when they require any personal detail of any student for instance their address, phone numbers etc. Students Lists: - This is file which contains list of students with their personal details in some pre defined formats. These lists are required when any task is performed on a group of students for instance to make a phone calls to students to inform them about any college activity. Mark sheet received and Issue detail: - The file has the information of all mark sheet received from University and issued to students. Documents received and returned: - This file has details of the documents received at the time of admission from student and returned. Internal Examination and Results : - The file has list of students along with their marks obtained in the internal examinations.
And many other file like University Correspondence. Letter received, letter dispatched, Notice issued, student biodata, staff biodata, important documents etc.
College Management System, Submitted By Amit K. Dhaka E/No 04884873
35
As the time passes the files and their categories are increasing in number and the system is going to be more complex day by day. The Administrative officer, Principal, Director and other staff members are fully dependent on these clerks to get the required information regarding taking any decision. Now if we think of computers, the college administrative room is bearing two Pentium-IV computers with printer attached. But the clerks and other members are limited to work on these computers. They work on these computers to type correspondence letters, Notices etc. using MS WORD application and print the list of students using the MS EXCEL WORKSHEETS, which is already stored in some files..
36
Chapter 6
SYSTEM DESIGN
File and Database Design Program Design Coding Input/Output Form Design Screen Design Report Design
37
38
14
Status
Status of student (Active=1,Dropout=2,Passo ut=3) Session in which the student got admission Form number Address of photo that is stored in C:\scmit\st_photo folder
Tinyint
15 16 17.
2.Student_acm_detail
Discription : The Table is used to store the academic details of the each student registered to the college. Data Dictionary S.N. 1. 2. 3. Field Name Reg_no Xper Xmso Description Students Registration Number Percentage acquired in X Data Type Varchar(8) Float Constraint Primary Key
class Indicate whether the original int marksheet of X is Not deposited (if 0), Deposited (if 1) or Returned (if 2) Indicate whether the Xerox marksheet of X is Not deposited (if 0), Deposited (if 1) Indicate whether the student was having the supplementary in the class X and stores the details about
4.
Xmsx
int
5.
Xsup
Varchar(50)
39
Indicate whether the original int certificate of X is Not deposited (if 0), Deposited (if 1) or Returned (if 2) Indicate whether the Xerox certificate of X is Not deposited (if 0), Deposited (if 1) Percentage acquired in XII
8.
Xcx
int
9. 10.
Xiiper Xiimso
Float
class Indicate whether the original int marksheet of XII is Not deposited (if 0), Deposited (if 1) or Returned (if 2) Indicate whether the Xerox marksheet of XII is Not deposited (if 0), Deposited (if 1) Indicate whether the student was having the supplementary in the class XII and stores the details about it Indicate the board of class XII Indicate the stream of class XII Percentage acquired in
11.
Xiimsx
int
12.
Xiisup
Varchar(50)
graduation class Indicate whether the original int marksheet of graduation is Not deposited (if 0), Deposited (if 1) or Returned (if 2) Indicate whether the Xerox
17.
gradmsx
int
40
marksheet of graduation is Not deposited (if 0), 18. gradsup Deposited (if 1) Indicate whether the student was having the supplementary in the class graduation and stores the 19. 20. 21 22. Graduni pgdcourse pgdper pgdmso details about it Indicate the University of graduation course Indicate the course done in post graduation diploma Percentage acquired in post Int Int Float Varchar(50)
graduation diploma Indicate whether the original int marksheet of post graduation diploma is Not deposited (if 0), Deposited (if 1) or Returned (if 2) Indicate whether the original int marksheet of post graduation diploma is Not deposited (if 0), Deposited (if 1) Indicate whether the student was having the supplementary in the class post graduation diploma and stores the details about it Indicate the University of post graduation diploma course Indicate the course done in post graduation diploma Indicate whether the Original TC has been deposited or not
23.
pgdmsx
24.
pgdsup
Varchar(50)
25.
pgduni
Int
26. 27
pgdcourse Tco
Int Int
41
27
Tcx
Indicate whether the Xerox TC has been deposited or not Indicate whether the Original CC has been deposited or not Indicate whether the Xerox CC has been deposited or not Indicate whether the Original Migration Certificate has been deposited or not Indicate whether the Xerox Migration Certificate has been deposited or not
Int
27
cco
Int
27
ccx
Int
27
mco
Int
27
mcx
Int
42
3.Student_acm_detail
Description : The Table is used to store the course details that are conducted by the college. Data Dictionary S.N. 1. 2 3 4 5 6 7 8 9 10 Field Name Course_id Course_lavel1 Course_lavel2 Course_lavel3 Course_lavel4 Year1 Year2 Year3 Year4 Year5 Description Identity of Course name Name of the course at the academic level Name of the course at the university level Name of the course for pseudo course name For further use Indicate whether the course have first year Indicate whether the course have second year Indicate whether the course have third year Indicate whether the course have fourth year Indicate whether the course have fifth year Data Type Int Varchar(25) Varchar(25) Varchar(25) Varchar(25) tiniInt tiniInt tiniInt tiniInt tiniInt Constraint Primary Key
43
4. Eligibility_detail
Description : The Table is used to store the course that a student might have. Data Dictionary S.N. 1. 2. 3. 4. Field Name Course_id Cat Qper Qual Description Identity of Course name Category (SC/ST/OBC/GEN) Indicates the qualifying percentage Set of course ids from table eligibility (discussed further) 5. X that a student may have. (0) Indicates the student must have Marksheet of Class X. (1) Indicates the student is not necessarily to 6 Xc have M.S. of class X (0) indicates it is not necessary to have X board certificate (1) indicates the student must have board certificate 6. XII with him (0) Indicates the student must have mark sheet of Class XII. (1)Indicates the student is not necessarily to have marksheet of the class XII College Management System, Submitted By Amit K. Dhaka E/No 04884873 Tinyint Tinyint Tinyint Data Type Int Varchar(3) Float Varchar(50) Constraint Primary Key
44
7.
Grad
(0) Indicates the student must have mark sheet of graduation (1)Indicates the student is not necessarily to have marksheet of the graduation (0) Indicates the student must have mark sheet of post graduation (1)Indicates the student is not necessarily to have marksheet of the post graduation
Tinyint
7.
pgd
Tinyint
5. Eligibility
Description : The Table is used to store the course and their ids that a student might have. Data Dictionary S.N. 1. 2. Field Name Course_id Course_name Description Identity of Course name Name of eligibility course Data Type Int Varchar(50) Constraint Primary Key
45
6.form_sale_detail
Description : The Table is used to store the course and their ids that a student might have. Data Dictionary S.N. 1. Field Name Uni_id Description Indicates to which the form belongs (100 if University of 2. 3. 4. 5. 6. 7. 8. Form_no Course St_name Fname Ph_home Padd Date Rajasthan, 200 if GJUS&T) Number of form Name of the course Name of the student Name of father Phone numbers Address Date on which the prospectus was sold out Long Varchar(25) Varchar(50) Varchar(50) Varchar(20) Varchar(100) Date/time Data Type Int Constraint
46
7.Utility
Description : The table is used to store some required info. Data Dictionary S.N. 1. Field Name Cur_reg_no Description The next registration number that a student would be assigned on new 2. 3. 4. Session Form_no_low er Form_no_upp er registration Indicates the current session Varchar(7) Indicates the lower limit of form number. Indicates the upper limit of form number. Long Long Data Type Varchar(8) Constraint
8.Sem_year
Description : The table is used to store the information of students in which year. Data Dictionary S.N. 1. 2. Field Name reg_no Year Description Registration number Year Data Type Varchar(8) Tinyint Constraint
47
Function Search the student and his details according to the supplied information.The student can be searched out by many ways viz. by form no.,by name, by class, by registration number etc. This function is overloaded and takes the various arguments according to search Search the course name from the course detail on a given course_id as an argument. This module search the course id of a given course name from the course detail. It is a reverse function of above mentioned course This course search the eligibilities on a given course_id. It uses the two tables
48
2.
Search_course
Searching
3.
Search_course_id
Searching
4.
Search_eligiblity
Searching
5.
Connection (constructor)
Connection
6.
Cmd_save_click
Addupdt_per_d etail
7. 8. 9. 10.
11.
Set_reg_no
Addupdt_per_d etail Addupdt_per_d etail Addupdt_per_d etail Addupdt_per_d etail Addupdt_per_d etail
12. 13.
Cmd_academic_cli ck Valid_entries
14. 15.
Get_sex Get_cat
course_detail and eligibility detail to search eligibility. This is a constructor which is used to initialize the connection to the SQL SERVER. This is a command button click event which is used to add_update the student personal details. The command button which is used to cancel the transaction. The member function used to add personal details The member function used to update personal details The member function used to get the current registration number from the table utility. The member function used to set the utility table to the next registration number. The click event that is used to show the form academic detail This member function is used to know that all entries which are correct or not. Used to know the sex of a student Used to know the category of a student
49
16.
Fill_var_cont
Addupdt_per_d etail
17. 18
Clr_scr Updt_acm_detail
Addupdt_per_d etail Addupdt_acm_ detail Addupdt_acm_ detail Addupdt_acm_ detail Addupdt_acm_ detail Form_sale
Member function that is used to fill the values of variables to their respective controls. Member function used to clear all control Member function used to update the academic details of a student. Member function used to know whether the entries in the form are correct or not. Click event which updates all the details as per the entries filled in the controls. Member function used to store the values of variables to the controls. Member function used to update the fees of a prospectus sold out. Member function used to get the course name from course detail according to the university id
19.
Valid_entries
20
Cmd_updt_click
21
Fill_value_to_cont
22. 23
Update_form_fees Search_course
50
6.3 Coding
AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("scmit project")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("home")] [assembly: AssemblyProduct("scmit project")] [assembly: AssemblyCopyright("Copyright home 2007")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("de648dd3-e5a8-4ebe-965a-41fe710f1aac")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
Resourse Design
//----------------------------------------------------------------------------// <auto-generated>
51
// This code was generated by a tool. // Runtime Version:2.0.50727.42 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----------------------------------------------------------------------------namespace scmit_project.Properties { using System; /// <summary> /// A strongly-typed resource class, for looking up localized strings, etc. /// </summary> // This class was auto-generated by the StronglyTypedResourceBuilder // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.R esources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribu te()] internal class Resources { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttri bute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal Resources() { } /// <summary> /// Returns the cached ResourceManager instance used by this class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(globa l::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("scmit_project.Properties.Re sources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; } }
52
/// <summary> /// Overrides the current thread's CurrentUICulture property for all /// resource lookups using this strongly typed resource class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(globa l::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } } }
Setting.cs
//----------------------------------------------------------------------------// <auto-generated> // This code was generated by a tool. // Runtime Version:2.0.50727.42 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----------------------------------------------------------------------------namespace scmit_project.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribu te()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsof t.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings) (global::System.Configuration.ApplicationSettingsBase.Synchronized(ne w Settings()))); public static Settings Default { get { return defaultInstance; } }
53
te()]
[global::System.Configuration.ApplicationScopedSettingAttribu
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.SpecialSettingAttribute(global: :System.Configuration.SpecialSetting.ConnectionString)] [global::System.Configuration.DefaultSettingValueAttribute("D ata Source=home;Initial Catalog=scmit;Integrated Security=True")] public string scmitConnectionString { get { return ((string)(this["scmitConnectionString"])); } } } }
Application Info
<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> </configSections> <connectionStrings> <add name="scmit_project.Properties.Settings.scmitConnectionString" connectionString="Data Source=home;Initial Catalog=scmit;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings> </configuration>
Connection.cs
using System; using System.Collections.Generic; using System.Text; using System.Data.SqlClient; using System.Windows.Forms; namespace scmit_project { public class connection { public static string session; public static bool open; public static SqlConnection conn = new SqlConnection("Data Source=scmit-105;Initial Catalog=scmit1;Integrated Security=True"); public connection() { if (open == false) { conn.Open();
54
55
this.radiodep_xo = new System.Windows.Forms.RadioButton(); this.radiondep_xo = new System.Windows.Forms.RadioButton(); this.label1 = new System.Windows.Forms.Label(); this.txtper_x = new System.Windows.Forms.TextBox(); this.groupxii = new System.Windows.Forms.GroupBox(); this.cmdsupxii = new System.Windows.Forms.Button(); this.groupBox5 = new System.Windows.Forms.GroupBox(); this.radiodep_xiix = new System.Windows.Forms.RadioButton(); this.radiondep_xiix = new System.Windows.Forms.RadioButton(); this.groupBox6 = new System.Windows.Forms.GroupBox(); this.radioret_xiio = new System.Windows.Forms.RadioButton(); this.radiodep_xiio = new System.Windows.Forms.RadioButton(); this.radiondep_xiio = new System.Windows.Forms.RadioButton(); this.comboboard_xii = new System.Windows.Forms.ComboBox(); this.combostream_xii = new System.Windows.Forms.ComboBox(); this.checksupxii = new System.Windows.Forms.CheckBox(); this.label2 = new System.Windows.Forms.Label(); this.txtper_xii = new System.Windows.Forms.TextBox(); this.groupgrad = new System.Windows.Forms.GroupBox(); this.label3 = new System.Windows.Forms.Label(); this.txtper_gr = new System.Windows.Forms.TextBox(); this.cmdsupgrad = new System.Windows.Forms.Button(); this.checklowergrad = new System.Windows.Forms.CheckBox(); this.groupBox9 = new System.Windows.Forms.GroupBox(); this.radiodep_grx = new System.Windows.Forms.RadioButton(); this.radiondep_grx = new System.Windows.Forms.RadioButton(); this.groupBox8 = new System.Windows.Forms.GroupBox(); this.radioret_gro = new System.Windows.Forms.RadioButton(); this.radiodep_gro = new System.Windows.Forms.RadioButton(); this.radiondep_gro = new System.Windows.Forms.RadioButton(); this.combocourse_gr = new System.Windows.Forms.ComboBox(); this.combouni_gr = new System.Windows.Forms.ComboBox(); this.grouptc = new System.Windows.Forms.GroupBox(); this.checktc_x = new System.Windows.Forms.CheckBox(); this.checktc_o = new System.Windows.Forms.CheckBox(); this.groupcc = new System.Windows.Forms.GroupBox(); this.checkcc_x = new System.Windows.Forms.CheckBox(); this.checkcc_o = new System.Windows.Forms.CheckBox(); this.groupmc = new System.Windows.Forms.GroupBox(); this.checkmc_x = new System.Windows.Forms.CheckBox(); this.checkmc_o = new System.Windows.Forms.CheckBox(); this.grouppgd = new System.Windows.Forms.GroupBox(); this.label4 = new System.Windows.Forms.Label(); this.txtper_pgd = new System.Windows.Forms.TextBox(); this.cmdsuppgd = new System.Windows.Forms.Button();
56
this.checklowerpgd = new System.Windows.Forms.CheckBox(); this.groupBox11 = new System.Windows.Forms.GroupBox(); this.radiodep_pgdx = new System.Windows.Forms.RadioButton(); this.radiondep_pgdx = new System.Windows.Forms.RadioButton(); this.groupBox13 = new System.Windows.Forms.GroupBox(); this.radioret_pgdo = new System.Windows.Forms.RadioButton(); this.radiodep_pgdo = new System.Windows.Forms.RadioButton(); this.radiondep_pgdo = new System.Windows.Forms.RadioButton(); this.combocourse_pgd = new System.Windows.Forms.ComboBox(); this.combouni_pgd = new System.Windows.Forms.ComboBox(); this.cmdcancel = new System.Windows.Forms.Button(); this.groupx.SuspendLayout(); this.groupBox4.SuspendLayout(); this.groupBox3.SuspendLayout(); this.groupxii.SuspendLayout(); this.groupBox5.SuspendLayout(); this.groupBox6.SuspendLayout(); this.groupgrad.SuspendLayout(); this.groupBox9.SuspendLayout(); this.groupBox8.SuspendLayout(); this.grouptc.SuspendLayout(); this.groupcc.SuspendLayout(); this.groupmc.SuspendLayout(); this.grouppgd.SuspendLayout(); this.groupBox11.SuspendLayout(); this.groupBox13.SuspendLayout(); this.SuspendLayout(); // // cmddeposit // this.cmddeposit.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmddeposit.Location = new System.Drawing.Point(884, 588); this.cmddeposit.Name = "cmddeposit"; this.cmddeposit.Size = new System.Drawing.Size(105, 36); this.cmddeposit.TabIndex = 17; this.cmddeposit.Text = "&Deposit"; this.cmddeposit.UseVisualStyleBackColor = true; this.cmddeposit.Click += new System.EventHandler(this.cmddeposit_Click); // // groupx // this.groupx.Controls.Add(this.cmdsupx); this.groupx.Controls.Add(this.comboboard_x); this.groupx.Controls.Add(this.checksupx); this.groupx.Controls.Add(this.groupBox4); this.groupx.Controls.Add(this.groupBox3); this.groupx.Controls.Add(this.label1); this.groupx.Controls.Add(this.txtper_x); this.groupx.Enabled = false;
57
this.groupx.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupx.Location = new System.Drawing.Point(24, 69); this.groupx.Name = "groupx"; this.groupx.Size = new System.Drawing.Size(430, 192); this.groupx.TabIndex = 18; this.groupx.TabStop = false; this.groupx.Text = "Secondary"; this.groupx.EnabledChanged += new System.EventHandler(this.groupx_EnabledChanged); // // cmdsupx // this.cmdsupx.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmdsupx.Location = new System.Drawing.Point(379, 145); this.cmdsupx.Name = "cmdsupx"; this.cmdsupx.Size = new System.Drawing.Size(38, 31); this.cmdsupx.TabIndex = 11; this.cmdsupx.Text = "..."; this.cmdsupx.UseVisualStyleBackColor = true; this.cmdsupx.Click += new System.EventHandler(this.cmdsupx_Click); // // comboboard_x // this.comboboard_x.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.comboboard_x.FormattingEnabled = true; this.comboboard_x.Items.AddRange(new object[] { "Ajamer, Board", "CBSE, Delhi", "ICSE, Delhi"}); this.comboboard_x.Location = new System.Drawing.Point(20, 146); this.comboboard_x.Name = "comboboard_x"; this.comboboard_x.Size = new System.Drawing.Size(215, 30); this.comboboard_x.TabIndex = 10; this.comboboard_x.Text = "-------Select Board------"; // // checksupx // this.checksupx.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checksupx.AutoSize = true; this.checksupx.CheckAlign = System.Drawing.ContentAlignment.BottomRight; this.checksupx.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checksupx.Location = new System.Drawing.Point(241, 148); this.checksupx.Name = "checksupx";
58
this.checksupx.Size = new System.Drawing.Size(132, 26); this.checksupx.TabIndex = 5; this.checksupx.Text = "Supplimetary"; this.checksupx.UseVisualStyleBackColor = true; this.checksupx.CheckedChanged += new System.EventHandler(this.checksupx_CheckedChanged); // // groupBox4 // this.groupBox4.Controls.Add(this.radiodep_xx); this.groupBox4.Controls.Add(this.radiondep_xx); this.groupBox4.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBox4.Location = new System.Drawing.Point(106, 85); this.groupBox4.Name = "groupBox4"; this.groupBox4.Size = new System.Drawing.Size(262, 55); this.groupBox4.TabIndex = 3; this.groupBox4.TabStop = false; this.groupBox4.Text = "Xerox"; // // radiodep_xx // this.radiodep_xx.AutoSize = true; this.radiodep_xx.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiodep_xx.Location = new System.Drawing.Point(125, 21); this.radiodep_xx.Name = "radiodep_xx"; this.radiodep_xx.Size = new System.Drawing.Size(86, 26); this.radiodep_xx.TabIndex = 1; this.radiodep_xx.Text = "Deposit"; this.radiodep_xx.UseVisualStyleBackColor = true; this.radiodep_xx.CheckedChanged += new System.EventHandler(this.radiodep_xx_CheckedChanged); // // radiondep_xx // this.radiondep_xx.AutoSize = true; this.radiondep_xx.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiondep_xx.Location = new System.Drawing.Point(10, 19); this.radiondep_xx.Name = "radiondep_xx"; this.radiondep_xx.Size = new System.Drawing.Size(119, 26); this.radiondep_xx.TabIndex = 0; this.radiondep_xx.Text = "Not Deposit"; this.radiondep_xx.UseVisualStyleBackColor = true; this.radiondep_xx.CheckedChanged += new System.EventHandler(this.radiondep_xx_CheckedChanged); // // groupBox3 // this.groupBox3.Controls.Add(this.radioret_xo); this.groupBox3.Controls.Add(this.radiodep_xo); this.groupBox3.Controls.Add(this.radiondep_xo);
59
this.groupBox3.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBox3.Location = new System.Drawing.Point(103, 20); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(318, 59); this.groupBox3.TabIndex = 2; this.groupBox3.TabStop = false; this.groupBox3.Text = "Original"; // // radioret_xo // this.radioret_xo.AutoSize = true; this.radioret_xo.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radioret_xo.Location = new System.Drawing.Point(213, 22); this.radioret_xo.Name = "radioret_xo"; this.radioret_xo.Size = new System.Drawing.Size(98, 26); this.radioret_xo.TabIndex = 2; this.radioret_xo.Text = "Returned"; this.radioret_xo.UseVisualStyleBackColor = true; this.radioret_xo.CheckedChanged += new System.EventHandler(this.radioret_xo_CheckedChanged); // // radiodep_xo // this.radiodep_xo.AutoSize = true; this.radiodep_xo.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiodep_xo.Location = new System.Drawing.Point(129, 22); this.radiodep_xo.Name = "radiodep_xo"; this.radiodep_xo.Size = new System.Drawing.Size(86, 26); this.radiodep_xo.TabIndex = 1; this.radiodep_xo.Text = "Deposit"; this.radiodep_xo.UseVisualStyleBackColor = true; this.radiodep_xo.CheckedChanged += new System.EventHandler(this.radiodep_xo_CheckedChanged); // // radiondep_xo // this.radiondep_xo.AutoSize = true; this.radiondep_xo.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiondep_xo.Location = new System.Drawing.Point(13, 22); this.radiondep_xo.Name = "radiondep_xo"; this.radiondep_xo.Size = new System.Drawing.Size(119, 26); this.radiondep_xo.TabIndex = 0; this.radiondep_xo.Text = "Not Deposit"; this.radiondep_xo.UseVisualStyleBackColor = true; this.radiondep_xo.CheckedChanged += new System.EventHandler(this.radiondep_xo_CheckedChanged); // // label1
60
// this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(6, 77); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(24, 22); this.label1.TabIndex = 1; this.label1.Text = "%"; // // txtper_x // this.txtper_x.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtper_x.Location = new System.Drawing.Point(32, 70); this.txtper_x.Name = "txtper_x"; this.txtper_x.Size = new System.Drawing.Size(57, 29); this.txtper_x.TabIndex = 0; // // groupxii // this.groupxii.Controls.Add(this.cmdsupxii); this.groupxii.Controls.Add(this.groupBox5); this.groupxii.Controls.Add(this.groupBox6); this.groupxii.Controls.Add(this.comboboard_xii); this.groupxii.Controls.Add(this.combostream_xii); this.groupxii.Controls.Add(this.checksupxii); this.groupxii.Controls.Add(this.label2); this.groupxii.Controls.Add(this.txtper_xii); this.groupxii.Enabled = false; this.groupxii.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupxii.Location = new System.Drawing.Point(460, 69); this.groupxii.Name = "groupxii"; this.groupxii.Size = new System.Drawing.Size(529, 192); this.groupxii.TabIndex = 19; this.groupxii.TabStop = false; this.groupxii.Text = "Senior Secondary"; this.groupxii.EnabledChanged += new System.EventHandler(this.groupxii_EnabledChanged); // // cmdsupxii // this.cmdsupxii.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmdsupxii.Location = new System.Drawing.Point(469, 155); this.cmdsupxii.Name = "cmdsupxii"; this.cmdsupxii.Size = new System.Drawing.Size(37, 31); this.cmdsupxii.TabIndex = 14; this.cmdsupxii.Text = "..."; this.cmdsupxii.UseVisualStyleBackColor = true; // // groupBox5 //
61
this.groupBox5.Controls.Add(this.radiodep_xiix); this.groupBox5.Controls.Add(this.radiondep_xiix); this.groupBox5.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBox5.Location = new System.Drawing.Point(156, 85); this.groupBox5.Name = "groupBox5"; this.groupBox5.Size = new System.Drawing.Size(235, 55); this.groupBox5.TabIndex = 13; this.groupBox5.TabStop = false; this.groupBox5.Text = "Xerox"; // // radiodep_xiix // this.radiodep_xiix.AutoSize = true; this.radiodep_xiix.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiodep_xiix.Location = new System.Drawing.Point(143, 21); this.radiodep_xiix.Name = "radiodep_xiix"; this.radiodep_xiix.Size = new System.Drawing.Size(86, 26); this.radiodep_xiix.TabIndex = 1; this.radiodep_xiix.Text = "Deposit"; this.radiodep_xiix.UseVisualStyleBackColor = true; this.radiodep_xiix.CheckedChanged += new System.EventHandler(this.radiodep_xiix_CheckedChanged_1); // // radiondep_xiix // this.radiondep_xiix.AutoSize = true; this.radiondep_xiix.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiondep_xiix.Location = new System.Drawing.Point(13, 19); this.radiondep_xiix.Name = "radiondep_xiix"; this.radiondep_xiix.Size = new System.Drawing.Size(119, 26); this.radiondep_xiix.TabIndex = 0; this.radiondep_xiix.Text = "Not Deposit"; this.radiondep_xiix.UseVisualStyleBackColor = true; this.radiondep_xiix.CheckedChanged += new System.EventHandler(this.radiondep_xiix_CheckedChanged_1); // // groupBox6 // this.groupBox6.Controls.Add(this.radioret_xiio); this.groupBox6.Controls.Add(this.radiodep_xiio); this.groupBox6.Controls.Add(this.radiondep_xiio); this.groupBox6.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBox6.Location = new System.Drawing.Point(156, 20); this.groupBox6.Name = "groupBox6"; this.groupBox6.Size = new System.Drawing.Size(367, 59); this.groupBox6.TabIndex = 12; this.groupBox6.TabStop = false;
62
this.groupBox6.Text = "Original"; // // radioret_xiio // this.radioret_xiio.AutoSize = true; this.radioret_xiio.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radioret_xiio.Location = new System.Drawing.Point(243, 22); this.radioret_xiio.Name = "radioret_xiio"; this.radioret_xiio.Size = new System.Drawing.Size(98, 26); this.radioret_xiio.TabIndex = 2; this.radioret_xiio.Text = "Returned"; this.radioret_xiio.UseVisualStyleBackColor = true; this.radioret_xiio.CheckedChanged += new System.EventHandler(this.radioret_xiio_CheckedChanged_1); // // radiodep_xiio // this.radiodep_xiio.AutoSize = true; this.radiodep_xiio.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiodep_xiio.Location = new System.Drawing.Point(140, 22); this.radiodep_xiio.Name = "radiodep_xiio"; this.radiodep_xiio.Size = new System.Drawing.Size(86, 26); this.radiodep_xiio.TabIndex = 1; this.radiodep_xiio.Text = "Deposit"; this.radiodep_xiio.UseVisualStyleBackColor = true; this.radiodep_xiio.CheckedChanged += new System.EventHandler(this.radiodep_xiio_CheckedChanged_1); // // radiondep_xiio // this.radiondep_xiio.AutoSize = true; this.radiondep_xiio.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiondep_xiio.Location = new System.Drawing.Point(13, 22); this.radiondep_xiio.Name = "radiondep_xiio"; this.radiondep_xiio.Size = new System.Drawing.Size(119, 26); this.radiondep_xiio.TabIndex = 0; this.radiondep_xiio.Text = "Not Deposit"; this.radiondep_xiio.UseVisualStyleBackColor = true; this.radiondep_xiio.CheckedChanged += new System.EventHandler(this.radiondep_xiio_CheckedChanged); // // comboboard_xii // this.comboboard_xii.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.comboboard_xii.FormattingEnabled = true; this.comboboard_xii.Items.AddRange(new object[] { "Ajamer, Board",
63
"CBSE, Delhi", "ICSE, Delhi"}); this.comboboard_xii.Location = new System.Drawing.Point(6, 148); this.comboboard_xii.Name = "comboboard_xii"; this.comboboard_xii.Size = new System.Drawing.Size(319, 30); this.comboboard_xii.TabIndex = 11; this.comboboard_xii.Text = "------------------Select Board---------------"; this.comboboard_xii.SelectedIndexChanged += new System.EventHandler(this.comboboard_xii_SelectedIndexChanged); // // combostream_xii // this.combostream_xii.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.combostream_xii.FormattingEnabled = true; this.combostream_xii.Items.AddRange(new object[] { "PCB", "PCM", "Arts", "Commerce", ""}); this.combostream_xii.Location = new System.Drawing.Point(6, 85); this.combostream_xii.Name = "combostream_xii"; this.combostream_xii.Size = new System.Drawing.Size(134, 30); this.combostream_xii.TabIndex = 9; this.combostream_xii.Text = "-----Select Stream-----"; // // checksupxii // this.checksupxii.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checksupxii.AutoSize = true; this.checksupxii.CheckAlign = System.Drawing.ContentAlignment.BottomRight; this.checksupxii.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checksupxii.Location = new System.Drawing.Point(331, 158); this.checksupxii.Name = "checksupxii"; this.checksupxii.Size = new System.Drawing.Size(132, 26); this.checksupxii.TabIndex = 5; this.checksupxii.Text = "Supplimetary"; this.checksupxii.UseVisualStyleBackColor = true; this.checksupxii.CheckedChanged += new System.EventHandler(this.checksupxii_CheckedChanged); // // label2 // this.label2.AutoSize = true;
64
this.label2.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(16, 32); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(24, 22); this.label2.TabIndex = 1; this.label2.Text = "%"; // // txtper_xii // this.txtper_xii.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtper_xii.Location = new System.Drawing.Point(46, 32); this.txtper_xii.Name = "txtper_xii"; this.txtper_xii.Size = new System.Drawing.Size(57, 29); this.txtper_xii.TabIndex = 0; // // groupgrad // this.groupgrad.Controls.Add(this.label3); this.groupgrad.Controls.Add(this.txtper_gr); this.groupgrad.Controls.Add(this.cmdsupgrad); this.groupgrad.Controls.Add(this.checklowergrad); this.groupgrad.Controls.Add(this.groupBox9); this.groupgrad.Controls.Add(this.groupBox8); this.groupgrad.Controls.Add(this.combocourse_gr); this.groupgrad.Controls.Add(this.combouni_gr); this.groupgrad.Enabled = false; this.groupgrad.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupgrad.Location = new System.Drawing.Point(24, 267); this.groupgrad.Name = "groupgrad"; this.groupgrad.Size = new System.Drawing.Size(965, 161); this.groupgrad.TabIndex = 20; this.groupgrad.TabStop = false; this.groupgrad.Text = "Graduation"; this.groupgrad.EnabledChanged += new System.EventHandler(this.groupgrad_EnabledChanged); // // label3 // this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.Location = new System.Drawing.Point(8, 68); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(24, 22); this.label3.TabIndex = 28; this.label3.Text = "%"; // // txtper_gr // this.txtper_gr.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
65
65);
this.txtper_gr.Name = "txtper_gr"; this.txtper_gr.Size = new System.Drawing.Size(57, 29); this.txtper_gr.TabIndex = 27; // // cmdsupgrad // this.cmdsupgrad.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmdsupgrad.Location = new System.Drawing.Point(539, 96); this.cmdsupgrad.Name = "cmdsupgrad"; this.cmdsupgrad.Size = new System.Drawing.Size(37, 31); this.cmdsupgrad.TabIndex = 26; this.cmdsupgrad.Text = "..."; this.cmdsupgrad.UseVisualStyleBackColor = true; // // checklowergrad // this.checklowergrad.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checklowergrad.AutoSize = true; this.checklowergrad.CheckAlign = System.Drawing.ContentAlignment.BottomRight; this.checklowergrad.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checklowergrad.Location = new System.Drawing.Point(394, 99); this.checklowergrad.Name = "checklowergrad"; this.checklowergrad.Size = new System.Drawing.Size(116, 26); this.checklowergrad.TabIndex = 25; this.checklowergrad.Text = "Lower Year"; this.checklowergrad.UseVisualStyleBackColor = true; this.checklowergrad.CheckedChanged += new System.EventHandler(this.checklowergrad_CheckedChanged); // // groupBox9 // this.groupBox9.Controls.Add(this.radiodep_grx); this.groupBox9.Controls.Add(this.radiondep_grx); this.groupBox9.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBox9.Location = new System.Drawing.Point(592, 89); this.groupBox9.Name = "groupBox9"; this.groupBox9.Size = new System.Drawing.Size(261, 47); this.groupBox9.TabIndex = 22; this.groupBox9.TabStop = false; this.groupBox9.Text = "Xerox"; // // radiodep_grx // this.radiodep_grx.AutoSize = true;
66
this.radiodep_grx.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiodep_grx.Location = new System.Drawing.Point(138, 20); this.radiodep_grx.Name = "radiodep_grx"; this.radiodep_grx.Size = new System.Drawing.Size(86, 26); this.radiodep_grx.TabIndex = 1; this.radiodep_grx.Text = "Deposit"; this.radiodep_grx.UseVisualStyleBackColor = true; // // radiondep_grx // this.radiondep_grx.AutoSize = true; this.radiondep_grx.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiondep_grx.Location = new System.Drawing.Point(16, 20); this.radiondep_grx.Name = "radiondep_grx"; this.radiondep_grx.Size = new System.Drawing.Size(119, 26); this.radiondep_grx.TabIndex = 0; this.radiondep_grx.Text = "Not Deposit"; this.radiondep_grx.UseVisualStyleBackColor = true; // // groupBox8 // this.groupBox8.Controls.Add(this.radioret_gro); this.groupBox8.Controls.Add(this.radiodep_gro); this.groupBox8.Controls.Add(this.radiondep_gro); this.groupBox8.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBox8.Location = new System.Drawing.Point(592, 28); this.groupBox8.Name = "groupBox8"; this.groupBox8.Size = new System.Drawing.Size(350, 56); this.groupBox8.TabIndex = 21; this.groupBox8.TabStop = false; this.groupBox8.Text = "Original"; // // radioret_gro // this.radioret_gro.AutoSize = true; this.radioret_gro.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radioret_gro.Location = new System.Drawing.Point(232, 22); this.radioret_gro.Name = "radioret_gro"; this.radioret_gro.Size = new System.Drawing.Size(98, 26); this.radioret_gro.TabIndex = 2; this.radioret_gro.Text = "Returned"; this.radioret_gro.UseVisualStyleBackColor = true; // // radiodep_gro // this.radiodep_gro.AutoSize = true;
67
this.radiodep_gro.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiodep_gro.Location = new System.Drawing.Point(138, 22); this.radiodep_gro.Name = "radiodep_gro"; this.radiodep_gro.Size = new System.Drawing.Size(86, 26); this.radiodep_gro.TabIndex = 1; this.radiodep_gro.Text = "Deposit"; this.radiodep_gro.UseVisualStyleBackColor = true; // // radiondep_gro // this.radiondep_gro.AutoSize = true; this.radiondep_gro.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiondep_gro.Location = new System.Drawing.Point(13, 22); this.radiondep_gro.Name = "radiondep_gro"; this.radiondep_gro.Size = new System.Drawing.Size(119, 26); this.radiondep_gro.TabIndex = 0; this.radiondep_gro.Text = "Not Deposit"; this.radiondep_gro.UseVisualStyleBackColor = true; // // combocourse_gr // this.combocourse_gr.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.combocourse_gr.FormattingEnabled = true; this.combocourse_gr.Items.AddRange(new object[] { "PCB", "PCM", "Arts", "Commerce", ""}); this.combocourse_gr.Location = new System.Drawing.Point(103, 95); this.combocourse_gr.Name = "combocourse_gr"; this.combocourse_gr.Size = new System.Drawing.Size(288, 30); this.combocourse_gr.TabIndex = 11; this.combocourse_gr.Text = "------Select Graduation Course-----"; // // combouni_gr // this.combouni_gr.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.combouni_gr.FormattingEnabled = true; this.combouni_gr.Items.AddRange(new object[] { "Ajamer, Board", "CBSE, Delhi", "ICSE, Delhi"}); this.combouni_gr.Location = new System.Drawing.Point(103, 28); this.combouni_gr.Name = "combouni_gr"; this.combouni_gr.Size = new System.Drawing.Size(473, 30);
68
this.combouni_gr.TabIndex = 10; this.combouni_gr.Text = "--------------------------Select University------------------------"; this.combouni_gr.SelectedIndexChanged += new System.EventHandler(this.combouni_gr_SelectedIndexChanged); // // grouptc // this.grouptc.Controls.Add(this.checktc_x); this.grouptc.Controls.Add(this.checktc_o); this.grouptc.Enabled = false; this.grouptc.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.grouptc.Location = new System.Drawing.Point(24, 579); this.grouptc.Name = "grouptc"; this.grouptc.Size = new System.Drawing.Size(210, 53); this.grouptc.TabIndex = 22; this.grouptc.TabStop = false; this.grouptc.Text = "Transfer Certificate"; // // checktc_x // this.checktc_x.AutoSize = true; this.checktc_x.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checktc_x.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checktc_x.Location = new System.Drawing.Point(120, 24); this.checktc_x.Name = "checktc_x"; this.checktc_x.Size = new System.Drawing.Size(73, 26); this.checktc_x.TabIndex = 1; this.checktc_x.Text = "Xerox"; this.checktc_x.UseVisualStyleBackColor = true; // // checktc_o // this.checktc_o.AutoSize = true; this.checktc_o.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checktc_o.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checktc_o.Location = new System.Drawing.Point(22, 24); this.checktc_o.Name = "checktc_o"; this.checktc_o.Size = new System.Drawing.Size(92, 26); this.checktc_o.TabIndex = 0; this.checktc_o.Text = "Original"; this.checktc_o.UseVisualStyleBackColor = true; // // groupcc // this.groupcc.Controls.Add(this.checkcc_x); this.groupcc.Controls.Add(this.checkcc_o); this.groupcc.Enabled = false;
69
this.groupcc.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupcc.Location = new System.Drawing.Point(249, 579); this.groupcc.Name = "groupcc"; this.groupcc.Size = new System.Drawing.Size(218, 55); this.groupcc.TabIndex = 23; this.groupcc.TabStop = false; this.groupcc.Text = "Character Certificate"; // // checkcc_x // this.checkcc_x.AutoSize = true; this.checkcc_x.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkcc_x.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checkcc_x.Location = new System.Drawing.Point(128, 24); this.checkcc_x.Name = "checkcc_x"; this.checkcc_x.Size = new System.Drawing.Size(73, 26); this.checkcc_x.TabIndex = 1; this.checkcc_x.Text = "Xerox"; this.checkcc_x.UseVisualStyleBackColor = true; // // checkcc_o // this.checkcc_o.AutoSize = true; this.checkcc_o.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkcc_o.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checkcc_o.Location = new System.Drawing.Point(22, 24); this.checkcc_o.Name = "checkcc_o"; this.checkcc_o.Size = new System.Drawing.Size(92, 26); this.checkcc_o.TabIndex = 0; this.checkcc_o.Text = "Original"; this.checkcc_o.UseVisualStyleBackColor = true; // // groupmc // this.groupmc.Controls.Add(this.checkmc_x); this.groupmc.Controls.Add(this.checkmc_o); this.groupmc.Enabled = false; this.groupmc.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupmc.Location = new System.Drawing.Point(484, 580); this.groupmc.Name = "groupmc"; this.groupmc.Size = new System.Drawing.Size(215, 50); this.groupmc.TabIndex = 24; this.groupmc.TabStop = false; this.groupmc.Text = "Migration Certificate"; // // checkmc_x //
70
this.checkmc_x.AutoSize = true; this.checkmc_x.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkmc_x.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checkmc_x.Location = new System.Drawing.Point(128, 18); this.checkmc_x.Name = "checkmc_x"; this.checkmc_x.Size = new System.Drawing.Size(73, 26); this.checkmc_x.TabIndex = 1; this.checkmc_x.Text = "Xerox"; this.checkmc_x.UseVisualStyleBackColor = true; // // checkmc_o // this.checkmc_o.AutoSize = true; this.checkmc_o.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkmc_o.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checkmc_o.Location = new System.Drawing.Point(23, 21); this.checkmc_o.Name = "checkmc_o"; this.checkmc_o.Size = new System.Drawing.Size(92, 26); this.checkmc_o.TabIndex = 0; this.checkmc_o.Text = "Original"; this.checkmc_o.UseVisualStyleBackColor = true; // // grouppgd // this.grouppgd.Controls.Add(this.label4); this.grouppgd.Controls.Add(this.txtper_pgd); this.grouppgd.Controls.Add(this.cmdsuppgd); this.grouppgd.Controls.Add(this.checklowerpgd); this.grouppgd.Controls.Add(this.groupBox11); this.grouppgd.Controls.Add(this.groupBox13); this.grouppgd.Controls.Add(this.combocourse_pgd); this.grouppgd.Controls.Add(this.combouni_pgd); this.grouppgd.Enabled = false; this.grouppgd.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.grouppgd.Location = new System.Drawing.Point(24, 434); this.grouppgd.Name = "grouppgd"; this.grouppgd.Size = new System.Drawing.Size(965, 136); this.grouppgd.TabIndex = 25; this.grouppgd.TabStop = false; this.grouppgd.Text = "Post Graduation Diploma"; this.grouppgd.EnabledChanged += new System.EventHandler(this.grouppgd_EnabledChanged); // // label4 // this.label4.AutoSize = true; this.label4.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.Location = new System.Drawing.Point(8, 62);
71
this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(24, 22); this.label4.TabIndex = 29; this.label4.Text = "%"; // // txtper_pgd // this.txtper_pgd.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtper_pgd.Location = new System.Drawing.Point(38, 59); this.txtper_pgd.Name = "txtper_pgd"; this.txtper_pgd.Size = new System.Drawing.Size(57, 29); this.txtper_pgd.TabIndex = 27; // // cmdsuppgd // this.cmdsuppgd.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmdsuppgd.Location = new System.Drawing.Point(539, 94); this.cmdsuppgd.Name = "cmdsuppgd"; this.cmdsuppgd.Size = new System.Drawing.Size(37, 31); this.cmdsuppgd.TabIndex = 26; this.cmdsuppgd.Text = "..."; this.cmdsuppgd.UseVisualStyleBackColor = true; // // checklowerpgd // this.checklowerpgd.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checklowerpgd.AutoSize = true; this.checklowerpgd.CheckAlign = System.Drawing.ContentAlignment.BottomRight; this.checklowerpgd.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checklowerpgd.Location = new System.Drawing.Point(406, 97); this.checklowerpgd.Name = "checklowerpgd"; this.checklowerpgd.Size = new System.Drawing.Size(116, 26); this.checklowerpgd.TabIndex = 25; this.checklowerpgd.Text = "Lower Year"; this.checklowerpgd.UseVisualStyleBackColor = true; this.checklowerpgd.CheckedChanged += new System.EventHandler(this.checklowerpgd_CheckedChanged); // // groupBox11 // this.groupBox11.Controls.Add(this.radiodep_pgdx); this.groupBox11.Controls.Add(this.radiondep_pgdx); this.groupBox11.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
72
83);
this.groupBox11.Name = "groupBox11"; this.groupBox11.Size = new System.Drawing.Size(356, 47); this.groupBox11.TabIndex = 22; this.groupBox11.TabStop = false; this.groupBox11.Text = "Xerox"; // // radiodep_pgdx // this.radiodep_pgdx.AutoSize = true; this.radiodep_pgdx.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiodep_pgdx.Location = new System.Drawing.Point(141, 20); this.radiodep_pgdx.Name = "radiodep_pgdx"; this.radiodep_pgdx.Size = new System.Drawing.Size(86, 26); this.radiodep_pgdx.TabIndex = 1; this.radiodep_pgdx.Text = "Deposit"; this.radiodep_pgdx.UseVisualStyleBackColor = true; // // radiondep_pgdx // this.radiondep_pgdx.AutoSize = true; this.radiondep_pgdx.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiondep_pgdx.Location = new System.Drawing.Point(10, 19); this.radiondep_pgdx.Name = "radiondep_pgdx"; this.radiondep_pgdx.Size = new System.Drawing.Size(119, 26); this.radiondep_pgdx.TabIndex = 0; this.radiondep_pgdx.Text = "Not Deposit"; this.radiondep_pgdx.UseVisualStyleBackColor = true; // // groupBox13 // this.groupBox13.Controls.Add(this.radioret_pgdo); this.groupBox13.Controls.Add(this.radiodep_pgdo); this.groupBox13.Controls.Add(this.radiondep_pgdo); this.groupBox13.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBox13.Location = new System.Drawing.Point(592, 15); this.groupBox13.Name = "groupBox13"; this.groupBox13.Size = new System.Drawing.Size(359, 62); this.groupBox13.TabIndex = 21; this.groupBox13.TabStop = false; this.groupBox13.Text = "Original"; // // radioret_pgdo // this.radioret_pgdo.AutoSize = true; this.radioret_pgdo.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
73
this.radioret_pgdo.Location = new System.Drawing.Point(237, 22); this.radioret_pgdo.Name = "radioret_pgdo"; this.radioret_pgdo.Size = new System.Drawing.Size(98, 26); this.radioret_pgdo.TabIndex = 2; this.radioret_pgdo.Text = "Returned"; this.radioret_pgdo.UseVisualStyleBackColor = true; // // radiodep_pgdo // this.radiodep_pgdo.AutoSize = true; this.radiodep_pgdo.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiodep_pgdo.Location = new System.Drawing.Point(141, 22); this.radiodep_pgdo.Name = "radiodep_pgdo"; this.radiodep_pgdo.Size = new System.Drawing.Size(86, 26); this.radiodep_pgdo.TabIndex = 1; this.radiodep_pgdo.Text = "Deposit"; this.radiodep_pgdo.UseVisualStyleBackColor = true; // // radiondep_pgdo // this.radiondep_pgdo.AutoSize = true; this.radiondep_pgdo.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiondep_pgdo.Location = new System.Drawing.Point(13, 22); this.radiondep_pgdo.Name = "radiondep_pgdo"; this.radiondep_pgdo.Size = new System.Drawing.Size(119, 26); this.radiondep_pgdo.TabIndex = 0; this.radiondep_pgdo.Text = "Not Deposit"; this.radiondep_pgdo.UseVisualStyleBackColor = true; // // combocourse_pgd // this.combocourse_pgd.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.combocourse_pgd.FormattingEnabled = true; this.combocourse_pgd.Items.AddRange(new object[] { "PCB", "PCM", "Arts", "Commerce", ""}); this.combocourse_pgd.Location = new System.Drawing.Point(103, 95); this.combocourse_pgd.Name = "combocourse_pgd"; this.combocourse_pgd.Size = new System.Drawing.Size(288, 30); this.combocourse_pgd.TabIndex = 11; this.combocourse_pgd.Text = "---Select Post Graduate Diploma---"; // // combouni_pgd
74
// this.combouni_pgd.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.combouni_pgd.FormattingEnabled = true; this.combouni_pgd.Items.AddRange(new object[] { "Ajamer, Board", "CBSE, Delhi", "ICSE, Delhi"}); this.combouni_pgd.Location = new System.Drawing.Point(103, 33); this.combouni_pgd.Name = "combouni_pgd"; this.combouni_pgd.Size = new System.Drawing.Size(478, 30); this.combouni_pgd.TabIndex = 10; this.combouni_pgd.Text = "-------------------------Select University-------------------------"; this.combouni_pgd.SelectedIndexChanged += new System.EventHandler(this.combouni_pgd_SelectedIndexChanged); // // cmdcancel // this.cmdcancel.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmdcancel.Location = new System.Drawing.Point(756, 588); this.cmdcancel.Name = "cmdcancel"; this.cmdcancel.Size = new System.Drawing.Size(105, 36); this.cmdcancel.TabIndex = 26; this.cmdcancel.Text = "&Cancel"; this.cmdcancel.UseVisualStyleBackColor = true; this.cmdcancel.Click += new System.EventHandler(this.cmdcancel_Click); // // form_acm_addupdt // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1028, 746); this.Controls.Add(this.cmdcancel); this.Controls.Add(this.grouppgd); this.Controls.Add(this.groupmc); this.Controls.Add(this.groupcc); this.Controls.Add(this.grouptc); this.Controls.Add(this.groupgrad); this.Controls.Add(this.groupxii); this.Controls.Add(this.groupx); this.Controls.Add(this.cmddeposit); this.Name = "form_acm_addupdt"; this.Text = "Students Academic Details"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.form_acm_addupdt_Load); this.groupx.ResumeLayout(false); this.groupx.PerformLayout(); this.groupBox4.ResumeLayout(false); this.groupBox4.PerformLayout();
75
this.groupBox3.ResumeLayout(false); this.groupBox3.PerformLayout(); this.groupxii.ResumeLayout(false); this.groupxii.PerformLayout(); this.groupBox5.ResumeLayout(false); this.groupBox5.PerformLayout(); this.groupBox6.ResumeLayout(false); this.groupBox6.PerformLayout(); this.groupgrad.ResumeLayout(false); this.groupgrad.PerformLayout(); this.groupBox9.ResumeLayout(false); this.groupBox9.PerformLayout(); this.groupBox8.ResumeLayout(false); this.groupBox8.PerformLayout(); this.grouptc.ResumeLayout(false); this.grouptc.PerformLayout(); this.groupcc.ResumeLayout(false); this.groupcc.PerformLayout(); this.groupmc.ResumeLayout(false); this.groupmc.PerformLayout(); this.grouppgd.ResumeLayout(false); this.grouppgd.PerformLayout(); this.groupBox11.ResumeLayout(false); this.groupBox11.PerformLayout(); this.groupBox13.ResumeLayout(false); this.groupBox13.PerformLayout(); this.ResumeLayout(false); } #endregion private private private private private private private private private private private private private private private private private private private private private private private private private private private private private System.Windows.Forms.Button cmddeposit; System.Windows.Forms.GroupBox groupx; System.Windows.Forms.Label label1; System.Windows.Forms.TextBox txtper_x; System.Windows.Forms.GroupBox groupBox3; System.Windows.Forms.RadioButton radiodep_xo; System.Windows.Forms.RadioButton radiondep_xo; System.Windows.Forms.GroupBox groupBox4; System.Windows.Forms.RadioButton radiodep_xx; System.Windows.Forms.RadioButton radiondep_xx; System.Windows.Forms.RadioButton radioret_xo; System.Windows.Forms.CheckBox checksupx; System.Windows.Forms.GroupBox groupxii; System.Windows.Forms.CheckBox checksupxii; System.Windows.Forms.Label label2; System.Windows.Forms.TextBox txtper_xii; System.Windows.Forms.ComboBox comboboard_x; System.Windows.Forms.ComboBox combostream_xii; System.Windows.Forms.ComboBox comboboard_xii; System.Windows.Forms.GroupBox groupgrad; System.Windows.Forms.ComboBox combouni_gr; System.Windows.Forms.ComboBox combocourse_gr; System.Windows.Forms.GroupBox grouptc; System.Windows.Forms.CheckBox checktc_x; System.Windows.Forms.CheckBox checktc_o; System.Windows.Forms.GroupBox groupcc; System.Windows.Forms.CheckBox checkcc_x; System.Windows.Forms.CheckBox checkcc_o; System.Windows.Forms.GroupBox groupmc;
76
} }
private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private
System.Windows.Forms.CheckBox checkmc_x; System.Windows.Forms.CheckBox checkmc_o; System.Windows.Forms.Button cmdsupx; System.Windows.Forms.Button cmdsupxii; System.Windows.Forms.GroupBox groupBox5; System.Windows.Forms.RadioButton radiodep_xiix; System.Windows.Forms.RadioButton radiondep_xiix; System.Windows.Forms.GroupBox groupBox6; System.Windows.Forms.RadioButton radioret_xiio; System.Windows.Forms.RadioButton radiodep_xiio; System.Windows.Forms.RadioButton radiondep_xiio; System.Windows.Forms.GroupBox groupBox8; System.Windows.Forms.RadioButton radioret_gro; System.Windows.Forms.RadioButton radiodep_gro; System.Windows.Forms.RadioButton radiondep_gro; System.Windows.Forms.GroupBox groupBox9; System.Windows.Forms.RadioButton radiodep_grx; System.Windows.Forms.RadioButton radiondep_grx; System.Windows.Forms.Button cmdsupgrad; System.Windows.Forms.CheckBox checklowergrad; System.Windows.Forms.TextBox txtper_gr; System.Windows.Forms.GroupBox grouppgd; System.Windows.Forms.TextBox txtper_pgd; System.Windows.Forms.Button cmdsuppgd; System.Windows.Forms.CheckBox checklowerpgd; System.Windows.Forms.GroupBox groupBox11; System.Windows.Forms.RadioButton radiodep_pgdx; System.Windows.Forms.RadioButton radiondep_pgdx; System.Windows.Forms.GroupBox groupBox13; System.Windows.Forms.RadioButton radioret_pgdo; System.Windows.Forms.RadioButton radiodep_pgdo; System.Windows.Forms.RadioButton radiondep_pgdo; System.Windows.Forms.ComboBox combocourse_pgd; System.Windows.Forms.ComboBox combouni_pgd; System.Windows.Forms.Label label3; System.Windows.Forms.Label label4; System.Windows.Forms.Button cmdcancel;
2. form_acm_detail.cs
using using using using using using using using System; System.Collections.Generic; System.ComponentModel; System.Data; System.Drawing; System.Text; System.Windows.Forms; System.Data.SqlClient;
77
int course_id; string cat; char xboard,xmso,xmsx,xiiboard,xiistream,xiimso,graduni,gradcourse,gradmso ,gradmsx,pgduni,pgdcourse,pgdmso,pgdmsx,tco,tcx,cco,ccx,mco,mcx; float xper,xiiper,gradper,pgdper; string xsup,xiisup,gradsup,pgdsup; cat ) public form_acm_addupdt(string reg_no, int course_id ,string { InitializeComponent( ); this.reg_no = reg_no; this.course_id = course_id ; this.cat = cat;
SqlDataAdapter adapter = new SqlDataAdapter(); DataSet dst = new DataSet(); string qr ="select * from eligiblity_detail" + connection.session + " where course_id = " + course_id + " and cat ='" + cat + "'"; MessageBox.Show(qr); adapter.SelectCommand = new SqlCommand(qr, connection.conn); adapter.Fill(dst, "eligiblity" + connection.session); if (dst.Tables["eligiblity" + connection.session].Rows[0] ["x"].ToString()=="1") groupx.Enabled = true; if (dst.Tables["eligiblity" + connection.session].Rows[0] ["xii"].ToString() == "1") groupxii.Enabled = true; if (dst.Tables["eligiblity" + ["grad"].ToString() == "1") groupgrad.Enabled = true; if (dst.Tables["eligiblity" + ["pgd"].ToString() == "1") grouppgd.Enabled = true; if (dst.Tables["eligiblity" + ["tc"].ToString() == "1") grouptc.Enabled = true; if (dst.Tables["eligiblity" + ["cc"].ToString() == "1") groupcc.Enabled = true; } connection.session].Rows[0] connection.session].Rows[0] connection.session].Rows[0] connection.session].Rows[0]
78
private void comboboard_xii_SelectedIndexChanged(object sender, EventArgs e) { if (groupgrad.Enabled == false && grouppgd.Enabled == false) { if (comboboard_xii.SelectedIndex != 0) groupmc.Enabled = true; else groupmc.Enabled = false; } } private void combouni_gr_SelectedIndexChanged(object sender, EventArgs e) { if (grouppgd.Enabled == false) { if (comboboard_xii.SelectedIndex != 0) groupmc.Enabled = true; else groupmc.Enabled = false; } } private void combouni_pgd_SelectedIndexChanged(object sender, EventArgs e) { if (comboboard_xii.SelectedIndex != 0) groupmc.Enabled = true; else groupmc.Enabled = false; } private void cmdcancel_Click(object sender, EventArgs e) { Close(); } private void cmddeposit_Click(object sender, EventArgs e) { if (valid_entries) { update_acm_detail; } } private void update_acm_detail(string reg_no) { private void cmdsupx_Click(object sender, EventArgs e) { } private void checksupx_CheckedChanged(object sender, EventArgs e) { if (checksupx.Checked)
79
else }
private void checksupxii_CheckedChanged(object sender, EventArgs e) { if (checksupxii.Checked) cmdsupxii.Enabled = true; else cmdsupxii.Enabled = false; } private void checklowergrad_CheckedChanged(object sender, EventArgs e) { if (checklowergrad.Enabled) cmdsupgrad.Enabled=true; else cmdsupgrad.Enabled=false; } private void checklowerpgd_CheckedChanged(object sender, EventArgs e) { if (checklowerpgd.Checked) cmdsuppgd.Enabled = true; else cmdsuppgd.Enabled = true; } e) private void groupx_EnabledChanged(object sender, EventArgs { if (groupx.Enabled) { radiondep_xo.Enabled=true; radiodep_xx.Enabled=true; } else { radiondep_xo.Enabled=false; radiodep_xx.Enabled=false; }
} e)
private void groupxii_EnabledChanged(object sender, EventArgs { if (groupxii.Enabled) { radiondep_xiio.Enabled=true; radiodep_xiix.Enabled=true; } else { radiondep_xiio.Enabled=false; radiodep_xiix.Enabled=false; } }
80
private void groupgrad_EnabledChanged(object sender, EventArgs e) { if (groupgrad.Enabled) { radiondep_gro.Enabled=true; radiodep_grx.Enabled=true; } else { radiondep_gro.Enabled=false; radiodep_grx.Enabled=false; } } e) private void grouppgd_EnabledChanged(object sender, EventArgs { if (grouppgd.Enabled) { radiondep_pgdo.Enabled=true; radiodep_pgdx.Enabled=true; } else { radiondep_gro.Enabled=false; radiodep_grx.Enabled=false; } } private void radiondep_xo_CheckedChanged(object sender, EventArgs e) { if (radiodep_xo.Checked) xmso='0'; } private void radiodep_xo_CheckedChanged(object sender, EventArgs e) { if (radiodep_xo.Checked) xmso='1'; } private void radioret_xo_CheckedChanged(object sender, EventArgs e) { if (radioret_xo.Checked) xmso='2'; } private void radiondep_xx_CheckedChanged(object sender, EventArgs e) { if (radiondep_xx.Checked) xmsx='0'; }
81
private void radiodep_xx_CheckedChanged(object sender, EventArgs e) { if(radiodep_xx.Checked) xmsx='0'; } private void radiondep_xiio_CheckedChanged(object sender, EventArgs e) { if (radiodep_xiio.Checked) xiimso='0'; }
} }
Form_per_detail
using using using using using using using using System; System.Collections.Generic; System.ComponentModel; System.Data; System.Drawing; System.Text; System.Windows.Forms; System.Data.SqlClient;
namespace scmit_project { public partial class form_per_addupdt : Form { int uni_id; string course_name; string st_name; string fname; char sex='1'; string mname; string padd; string cadd; string ph_home; string ph_personal; string ph_parent; string ph_pp; bool add = true; string reg_no; int course_id; string cat; string photo = "NA"; int rec_count; search searching = new search();
82
public form_per_addupdt() { } private void form_per_add_Load(object sender, EventArgs e) { } private void combocourse_SelectedIndexChanged(object sender, EventArgs e) { cmdsave.Enabled = true; course_name = combocourse.Text; } private void search_student() { clrscr(); if (combouni.SelectedIndex != -1 && txtform_no.Text ! ="" ) { bool found=false; // used to check the form found or not found = searching.serach_student(1, long.Parse(txtform_no.Text), uni_id,out reg_no, out course_id, out st_name, out sex, out cat, out fname, out mname, out padd, out cadd, out ph_home, out ph_parent, out ph_personal, out ph_pp, out photo, out rec_count); if (found) { add = false; course_name = searching.get_course_name(course_id); combocourse.SelectedItem = course_name; fill_var_to_cont();// sets all variable to controlls cmdacademic.Enabled = true; return; } else { found = searching.serach_by_form_no(long.Parse(txtform_no.Text), uni_id, out course_name, out st_name, out fname, out ph_home, out padd); if (found) { add = true; fill_var_to_cont();// sets all variable to controlls return; } else { InitializeComponent();
83
MessageBox.Show("The Form Not Found", "Not Found", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); txtform_no.SelectAll(); txtform_no.Focus(); cmdsave.Enabled = false; cmdacademic.Enabled = false; } }
} } private void combouni_SelectedIndexChanged(object sender, EventArgs e) { if (combouni.SelectedIndex == 0) uni_id = 100; else uni_id = 200; string[] course_names = new string[100]; course_names = searching.serach_course_names(uni_id, 1); for (int i = 0; course_names[i] != "EOL"; i++) combocourse.Items.Add(course_names[i]); cmdsave.Enabled = true; search_student(); } private void cmdsave_Click(object sender, EventArgs e) { if (valid_entries()) { if (add == true) { add_per_details(); clrscr(); } else update_per_details(reg_no); cmdacademic.Enabled = true; } } private void add_per_details() { string add_per_query; byte sex= get_sex(); cat = get_cat(); course_id=searching.get_course_id(combocourse.Text); reg_no = get_reg_no(); set_reg_no(increment_regno(reg_no)); add_per_query = "insert into student_per_detail values('" + reg_no + "','" + txtst_name.Text + "'," + sex+ ",'" + txtfname.Text
84
+ "','" + txtmname.Text +"',"+ course_id + ",'" + txtpadd.Text + "','" + txtcadd.Text + "','" + txtph_home.Text +"','" + txtph_personal.Text +"','" + txtph_parent.Text + "','" + txtph_pp.Text + "','" +cat+"'," + 0 + ",'NA'," + int.Parse(txtform_no.Text)+ ",'" + photo+ "')"; MessageBox.Show(add_per_query); SqlCommand cmd_add_per_detail = new SqlCommand(add_per_query, connection.conn); cmd_add_per_detail.CommandType = CommandType.Text; cmd_add_per_detail.ExecuteNonQuery(); } private void update_per_details(string reg_no) { string updt_per_query; byte sex = get_sex(); cat = get_cat(); course_id = searching.get_course_id(combocourse.Text); updt_per_query = "update student_per_detail set st_name='"+ txtst_name.Text + "',st_sex = " + sex + ",fname ='" + txtfname.Text + "',mname='" + txtmname.Text + "',course_id =" + course_id + ",padd='" + txtpadd.Text + "',cadd='" + txtcadd.Text + "',ph_home='" + txtph_home.Text + "',ph_personal='" + txtph_personal.Text + "',ph_parent='" + txtph_parent.Text + "',ph_pp='" + txtph_pp.Text + "',cat='" + cat + "' where reg_no = '"+ reg_no + "'"; MessageBox.Show(updt_per_query); SqlCommand cmd_updt_per_detail = new SqlCommand(updt_per_query, connection.conn); cmd_updt_per_detail.CommandType = CommandType.Text; cmd_updt_per_detail.ExecuteNonQuery(); } private string get_reg_no() { SqlDataAdapter adapter = new SqlDataAdapter(); DataSet dst = new DataSet(); adapter.SelectCommand = new SqlCommand("select cur_reg_no from utility", connection.conn); adapter.Fill(dst, "utility"); return(dst.Tables["utility"].Rows[0] ["cur_reg_no"].ToString()); } private void set_reg_no(string new_reg_no ) { string updt_utility_query; updt_utility_query = "update utility set cur_reg_no = '" + new_reg_no + "' where 1=1" ; SqlCommand cmd_updt = new SqlCommand(updt_utility_query, connection.conn); cmd_updt.CommandType = CommandType.Text; cmd_updt.ExecuteNonQuery(); } private void cmdacademic_Click(object sender, EventArgs e) { SqlDataAdapter adapter = new SqlDataAdapter(); DataSet dst = new DataSet();
85
string qr ="select * from eligiblity_detail" + connection.session + " where course_id = " + course_id + " and cat ='" + cat + "'"; adapter.SelectCommand = new SqlCommand(qr, connection.conn); adapter.Fill(dst, "eligiblity" + connection.session); if (dst.Tables["eligiblity" + connection.session].Rows.Count == 0) MessageBox.Show("You have not declared the eligiblities for" + cat + "," + combocourse.Text, "Declaration Error", MessageBoxButtons.OK, MessageBoxIcon.Error); else { form_acm_addupdt acm_detail = new form_acm_addupdt(reg_no, course_id, cat); //acm_detail.MdiChildren ; acm_detail.Show(); } } private string increment_regno(string reg_no) { int next_reg_no_int = int.Parse(reg_no) + 1; string next_reg_no_str; next_reg_no_str = next_reg_no_int.ToString().Substring(1, string cur_session = connection.session.Substring(2,2); return(cur_session + next_reg_no_str); } private void txtform_no_Leave(object sender, EventArgs e) { bool valid_form_no = true; long form_no; valid_form_no = long.TryParse(txtform_no.Text, out
4);
form_no);
if (valid_form_no == false) { MessageBox.Show("Please write a valid form Numbers","Invalid Form No.",MessageBoxButtons.OK,MessageBoxIcon.Error); txtform_no.SelectAll(); txtform_no.Focus(); } else } e) private void txtform_no_TextChanged(object sender, EventArgs { } cmdsave.Enabled = true;
search_student();
86
e)
private void optionmale_CheckedChanged(object sender, EventArgs e) { cmdsave.Enabled = true; sex = '1'; } private void optionfemale_CheckedChanged(object sender, EventArgs e) { cmdsave.Enabled = true; sex = '0'; } private void radiocat_gen_CheckedChanged(object sender, EventArgs e) { cmdsave.Enabled = true; cat = "GEN"; } private void radiocat_sc_CheckedChanged(object sender, EventArgs e) { cmdsave.Enabled = true; cat = "SC"; } private void radiocat_st_CheckedChanged(object sender, EventArgs e) { cmdsave.Enabled = true; cat = "ST"; } private void radiocat_obc_CheckedChanged(object sender, EventArgs e) { cmdsave.Enabled = true; cat = "OBC"; } private void txtfname_TextChanged(object sender, EventArgs e) { cmdsave.Enabled = true; fname = txtfname.Text; } private void txtmname_TextChanged(object sender, EventArgs e) { cmdsave.Enabled = true; mname = txtmname.Text; }
87
private void txtpadd_TextChanged(object sender, EventArgs e) { cmdsave.Enabled = true; padd = txtpadd.Text; } private void txtcadd_TextChanged(object sender, EventArgs e) { cmdsave.Enabled = true; cadd = txtcadd.Text; } private void txtph_home_TextChanged(object sender, EventArgs e) { cmdsave.Enabled = true; ph_home = txtph_home.Text; } private void txtph_personal_TextChanged(object sender, EventArgs e) { cmdsave.Enabled = true; ph_personal = txtph_personal.Text; } private void txtph_parent_TextChanged(object sender, EventArgs e) { cmdsave.Enabled = true; ph_parent = txtph_parent.Text; } private void txtph_pp_TextChanged(object sender, EventArgs e) { cmdsave.Enabled = true; ph_pp = txtph_pp.Text; } e) private void cmdsave_EnabledChanged(object sender, EventArgs { if (cmdsave.Enabled) cmdacademic.Enabled = false; else cmdacademic.Enabled = true;
} private bool valid_entries() { int temp2; if (combouni.SelectedIndex == -1) { MessageBox.Show("Select University"); combouni.Focus(); return (false); } if (combocourse.SelectedIndex == -1)
88
} if (int.TryParse(txtst_name.Text, out temp2)) { MessageBox.Show("Please write a valid Name of txtst_name.SelectAll(); txtst_name.Focus(); return (false);
student");
if (int.TryParse(txtfname.Text, out temp2)) { MessageBox.Show("Please write a valid Name for Father's Name "); txtfname.SelectAll(); txtfname.Focus(); return (false); } == false) student"); if (optionfemale.Checked == false && optionmale.Checked { MessageBox.Show("Please check the gender of
return (false); } if (radiocat_gen.Checked == false && radiocat_obc.Checked == false && radiocat_st.Checked && radiocat_sc.Checked) { MessageBox.Show("Please check the category of student"); return (false); } return (true);
89
} private void fill_var_to_cont() { txtst_name.Text=st_name; txtfname.Text=fname; txtmname.Text=mname; if (sex=='1') optionmale.Checked=true; else optionfemale.Checked=true; if (cat=="GEN") radiocat_gen.Checked=true; else if (cat=="OBC") radiocat_obc.Checked=true; else if (cat=="SC") radiocat_sc.Checked=true; else if (cat=="ST") radiocat_st.Checked=true; txtcadd.Text=cadd; txtpadd.Text=padd; txtph_home.Text=ph_home; txtph_parent.Text=ph_parent; txtph_personal.Text=ph_personal; txtph_pp.Text=ph_pp; } private void clrscr() { combocourse.SelectedIndex = -1; txtst_name.Text = ""; optionmale.Checked = true; radiocat_gen.Checked = true; txtfname.Text = ""; txtmname.Text = ""; txtpadd.Text = ""; txtcadd.Text = ""; txtph_home.Text = ""; txtph_parent.Text = ""; txtph_pp.Text = ""; txtph_personal.Text = ""; } private void cmdcancel_Click(object sender, EventArgs e) { Close(); }
} }
90
namespace scmit_project { partial class form_per_addupdt { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.txtst_name = new System.Windows.Forms.TextBox(); this.txtfname = new System.Windows.Forms.TextBox(); this.txtmname = new System.Windows.Forms.TextBox(); this.txtph_parent = new System.Windows.Forms.TextBox(); this.label10 = new System.Windows.Forms.Label(); this.txtph_personal = new System.Windows.Forms.TextBox(); this.label11 = new System.Windows.Forms.Label(); this.txtph_home = new System.Windows.Forms.TextBox(); this.txtcadd = new System.Windows.Forms.TextBox(); this.txtpadd = new System.Windows.Forms.TextBox(); this.label15 = new System.Windows.Forms.Label(); this.txtform_no = new System.Windows.Forms.TextBox(); this.combouni = new System.Windows.Forms.ComboBox(); this.label16 = new System.Windows.Forms.Label(); this.label17 = new System.Windows.Forms.Label(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.optionfemale = new System.Windows.Forms.RadioButton(); this.optionmale = new System.Windows.Forms.RadioButton(); this.label4 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.imgphoto = new System.Windows.Forms.PictureBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.txtph_pp = new System.Windows.Forms.TextBox();
91
this.label12 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label(); this.cmdsave = new System.Windows.Forms.Button(); this.cmdcancel = new System.Windows.Forms.Button(); this.cmdacademic = new System.Windows.Forms.Button(); this.openphoto = new System.Windows.Forms.OpenFileDialog(); this.button2 = new System.Windows.Forms.Button(); this.combocourse = new System.Windows.Forms.ComboBox(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.radiocat_obc = new System.Windows.Forms.RadioButton(); this.radiocat_st = new System.Windows.Forms.RadioButton(); this.radiocat_sc = new System.Windows.Forms.RadioButton(); this.radiocat_gen = new System.Windows.Forms.RadioButton(); this.monthCalendar1 = new System.Windows.Forms.MonthCalendar(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize) (this.imgphoto)).BeginInit(); this.groupBox2.SuspendLayout(); this.groupBox3.SuspendLayout(); this.SuspendLayout(); // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(33, 163); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(77, 22); this.label1.TabIndex = 0; this.label1.Text = "Form No"; // // label2 // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(33, 126); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(90, 22); this.label2.TabIndex = 1; this.label2.Text = "University"; // // label3 // this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.Location = new System.Drawing.Point(33, 203); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(63, 22); this.label3.TabIndex = 2;
92
this.label3.Text = "Course"; // // label5 // this.label5.AutoSize = true; this.label5.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label5.Location = new System.Drawing.Point(33, 236); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(119, 22); this.label5.TabIndex = 4; this.label5.Text = "Student Name"; // // label6 // this.label6.AutoSize = true; this.label6.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label6.Location = new System.Drawing.Point(33, 384); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(109, 22); this.label6.TabIndex = 5; this.label6.Text = "Father Name"; // // label7 // this.label7.AutoSize = true; this.label7.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label7.Location = new System.Drawing.Point(33, 420); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(116, 22); this.label7.TabIndex = 6; this.label7.Text = "Mother Name"; // // txtst_name // this.txtst_name.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtst_name.Location = new System.Drawing.Point(176, 233); this.txtst_name.Name = "txtst_name"; this.txtst_name.Size = new System.Drawing.Size(376, 29); this.txtst_name.TabIndex = 3; this.txtst_name.TextChanged += new System.EventHandler(this.txtst_name_TextChanged); // // txtfname // this.txtfname.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtfname.Location = new System.Drawing.Point(176, 381); this.txtfname.Name = "txtfname"; this.txtfname.Size = new System.Drawing.Size(376, 29); this.txtfname.TabIndex = 10;
93
this.txtfname.TextChanged += new System.EventHandler(this.txtfname_TextChanged); // // txtmname // this.txtmname.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtmname.Location = new System.Drawing.Point(176, 417); this.txtmname.Name = "txtmname"; this.txtmname.Size = new System.Drawing.Size(376, 29); this.txtmname.TabIndex = 11; this.txtmname.TextChanged += new System.EventHandler(this.txtmname_TextChanged); // // txtph_parent // this.txtph_parent.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtph_parent.Location = new System.Drawing.Point(130, 101); this.txtph_parent.Name = "txtph_parent"; this.txtph_parent.Size = new System.Drawing.Size(228, 29); this.txtph_parent.TabIndex = 17; this.txtph_parent.TextChanged += new System.EventHandler(this.txtph_parent_TextChanged); // // label10 // this.label10.AutoSize = true; this.label10.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label10.Location = new System.Drawing.Point(25, 64); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(79, 22); this.label10.TabIndex = 30; this.label10.Text = "Personal "; // // txtph_personal // this.txtph_personal.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtph_personal.Location = new System.Drawing.Point(130, 64); this.txtph_personal.Name = "txtph_personal"; this.txtph_personal.Size = new System.Drawing.Size(228, 29); this.txtph_personal.TabIndex = 16; this.txtph_personal.TextChanged += new System.EventHandler(this.txtph_personal_TextChanged); // // label11 // this.label11.AutoSize = true;
94
this.label11.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label11.Location = new System.Drawing.Point(25, 104); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(75, 22); this.label11.TabIndex = 28; this.label11.Text = "Parent\'s "; // // txtph_home // this.txtph_home.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtph_home.Location = new System.Drawing.Point(130, 28); this.txtph_home.Name = "txtph_home"; this.txtph_home.Size = new System.Drawing.Size(228, 29); this.txtph_home.TabIndex = 15; this.txtph_home.TextChanged += new System.EventHandler(this.txtph_home_TextChanged); // // txtcadd // this.txtcadd.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtcadd.Location = new System.Drawing.Point(176, 558); this.txtcadd.Multiline = true; this.txtcadd.Name = "txtcadd"; this.txtcadd.Size = new System.Drawing.Size(376, 103); this.txtcadd.TabIndex = 13; this.txtcadd.TextChanged += new System.EventHandler(this.txtcadd_TextChanged); // // txtpadd // this.txtpadd.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtpadd.Location = new System.Drawing.Point(176, 453); this.txtpadd.Multiline = true; this.txtpadd.Name = "txtpadd"; this.txtpadd.Size = new System.Drawing.Size(376, 97); this.txtpadd.TabIndex = 12; this.txtpadd.TextChanged += new System.EventHandler(this.txtpadd_TextChanged); // // label15 // this.label15.AutoSize = true; this.label15.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label15.Location = new System.Drawing.Point(33, 456); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(72, 22);
95
this.label15.TabIndex = 21; this.label15.Text = "Address"; // // txtform_no // this.txtform_no.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtform_no.Location = new System.Drawing.Point(176, 160); this.txtform_no.Name = "txtform_no"; this.txtform_no.Size = new System.Drawing.Size(99, 29); this.txtform_no.TabIndex = 1; this.txtform_no.Leave += new System.EventHandler(this.txtform_no_Leave); this.txtform_no.TextChanged += new System.EventHandler(this.txtform_no_TextChanged); // // combouni // this.combouni.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.combouni.FormattingEnabled = true; this.combouni.Items.AddRange(new object[] { "University Of Rajasthan, Jaipur", "Guru Jambheshwar University, Hisar"}); this.combouni.Location = new System.Drawing.Point(176, 123); this.combouni.Name = "combouni"; this.combouni.Size = new System.Drawing.Size(376, 30); this.combouni.TabIndex = 0; this.combouni.SelectedIndexChanged += new System.EventHandler(this.combouni_SelectedIndexChanged); // // label16 // this.label16.AutoSize = true; this.label16.Font = new System.Drawing.Font("Monotype Corsiva", 42.75F, ((System.Drawing.FontStyle) ((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(161))); this.label16.ForeColor = System.Drawing.Color.Black; this.label16.Location = new System.Drawing.Point(193, -2); this.label16.Name = "label16"; this.label16.Size = new System.Drawing.Size(831, 68); this.label16.TabIndex = 34; this.label16.Text = "SHEKHAWATI COLLEGE, SIKAR"; // // label17 // this.label17.AutoSize = true; this.label17.Font = new System.Drawing.Font("Monotype Corsiva", 20.25F, ((System.Drawing.FontStyle) ((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(161))); this.label17.ForeColor = System.Drawing.Color.Black; this.label17.Location = new System.Drawing.Point(231, 66); this.label17.Name = "label17";
96
MANAGEMENT";
this.label17.Size = new System.Drawing.Size(752, 33); this.label17.TabIndex = 35; this.label17.Text = "INFORMATION TECNOLOGY * SCIENCE
// // groupBox1 // this.groupBox1.Controls.Add(this.optionfemale); this.groupBox1.Controls.Add(this.optionmale); this.groupBox1.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBox1.ForeColor = System.Drawing.Color.Black; this.groupBox1.Location = new System.Drawing.Point(176, 259); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(376, 51); this.groupBox1.TabIndex = 36; this.groupBox1.TabStop = false; this.groupBox1.Text = "Sex"; // // optionfemale // this.optionfemale.AutoSize = true; this.optionfemale.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.optionfemale.Location = new System.Drawing.Point(272, 19); this.optionfemale.Name = "optionfemale"; this.optionfemale.Size = new System.Drawing.Size(82, 26); this.optionfemale.TabIndex = 5; this.optionfemale.Text = "Female"; this.optionfemale.UseVisualStyleBackColor = true; this.optionfemale.CheckedChanged += new System.EventHandler(this.optionfemale_CheckedChanged); // // optionmale // this.optionmale.AutoSize = true; this.optionmale.Checked = true; this.optionmale.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.optionmale.Location = new System.Drawing.Point(97, 17); this.optionmale.Name = "optionmale"; this.optionmale.Size = new System.Drawing.Size(66, 26); this.optionmale.TabIndex = 4; this.optionmale.TabStop = true; this.optionmale.Text = "Male"; this.optionmale.UseVisualStyleBackColor = true; this.optionmale.CheckedChanged += new System.EventHandler(this.optionmale_CheckedChanged); // // label4 // this.label4.AutoSize = true; this.label4.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
97
this.label4.Location = new System.Drawing.Point(68, 494); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(93, 22); this.label4.TabIndex = 37; this.label4.Text = "Permanent"; // // label8 // this.label8.AutoSize = true; this.label8.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label8.Location = new System.Drawing.Point(73, 596); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(74, 22); this.label8.TabIndex = 38; this.label8.Text = "Corresp."; // // imgphoto // this.imgphoto.Location = new System.Drawing.Point(778, 123); this.imgphoto.Name = "imgphoto"; this.imgphoto.Size = new System.Drawing.Size(176, 193); this.imgphoto.TabIndex = 39; this.imgphoto.TabStop = false; // // groupBox2 // this.groupBox2.Controls.Add(this.txtph_pp); this.groupBox2.Controls.Add(this.label12); this.groupBox2.Controls.Add(this.label9); this.groupBox2.Controls.Add(this.label11); this.groupBox2.Controls.Add(this.txtph_home); this.groupBox2.Controls.Add(this.label10); this.groupBox2.Controls.Add(this.txtph_personal); this.groupBox2.Controls.Add(this.txtph_parent); this.groupBox2.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBox2.ForeColor = System.Drawing.Color.Black; this.groupBox2.Location = new System.Drawing.Point(585, 381); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(373, 188); this.groupBox2.TabIndex = 40; this.groupBox2.TabStop = false; this.groupBox2.Text = "Contact Numbers"; // // txtph_pp // this.txtph_pp.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtph_pp.Location = new System.Drawing.Point(130, 140); this.txtph_pp.Name = "txtph_pp"; this.txtph_pp.Size = new System.Drawing.Size(228, 29); this.txtph_pp.TabIndex = 18; this.txtph_pp.TextChanged += new System.EventHandler(this.txtph_pp_TextChanged);
98
// // label12 // this.label12.AutoSize = true; this.label12.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label12.Location = new System.Drawing.Point(25, 143); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(61, 22); this.label12.TabIndex = 33; this.label12.Text = "PP No."; // // label9 // this.label9.AutoSize = true; this.label9.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(25, 25); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(56, 22); this.label9.TabIndex = 32; this.label9.Text = "Home"; // // cmdsave // this.cmdsave.Enabled = false; this.cmdsave.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmdsave.Location = new System.Drawing.Point(715, 615); this.cmdsave.Name = "cmdsave"; this.cmdsave.Size = new System.Drawing.Size(116, 46); this.cmdsave.TabIndex = 20; this.cmdsave.Text = "&Save"; this.cmdsave.UseVisualStyleBackColor = true; this.cmdsave.Click += new System.EventHandler(this.cmdsave_Click); this.cmdsave.EnabledChanged += new System.EventHandler(this.cmdsave_EnabledChanged); // // cmdcancel // this.cmdcancel.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmdcancel.Location = new System.Drawing.Point(585, 615); this.cmdcancel.Name = "cmdcancel"; this.cmdcancel.Size = new System.Drawing.Size(107, 46); this.cmdcancel.TabIndex = 19; this.cmdcancel.Text = "&Cancel"; this.cmdcancel.UseVisualStyleBackColor = true; this.cmdcancel.Click += new System.EventHandler(this.cmdcancel_Click); // // cmdacademic //
99
this.cmdacademic.Enabled = false; this.cmdacademic.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmdacademic.Location = new System.Drawing.Point(843, 615); this.cmdacademic.Name = "cmdacademic"; this.cmdacademic.Size = new System.Drawing.Size(115, 45); this.cmdacademic.TabIndex = 21; this.cmdacademic.Text = "&Academic"; this.cmdacademic.UseVisualStyleBackColor = true; this.cmdacademic.Click += new System.EventHandler(this.cmdacademic_Click); // // openphoto // this.openphoto.FileName = "openFileDialog1"; // // button2 // this.button2.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button2.Location = new System.Drawing.Point(806, 329); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(116, 46); this.button2.TabIndex = 14; this.button2.Text = "&Photo"; this.button2.UseVisualStyleBackColor = true; // // combocourse // this.combocourse.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.combocourse.FormattingEnabled = true; this.combocourse.Location = new System.Drawing.Point(176, 195); this.combocourse.Name = "combocourse"; this.combocourse.Size = new System.Drawing.Size(376, 30); this.combocourse.TabIndex = 2; this.combocourse.SelectedIndexChanged += new System.EventHandler(this.combocourse_SelectedIndexChanged); // // groupBox3 // this.groupBox3.Controls.Add(this.radiocat_obc); this.groupBox3.Controls.Add(this.radiocat_st); this.groupBox3.Controls.Add(this.radiocat_sc); this.groupBox3.Controls.Add(this.radiocat_gen); this.groupBox3.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBox3.Location = new System.Drawing.Point(176, 318); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(376, 57); this.groupBox3.TabIndex = 45; this.groupBox3.TabStop = false; this.groupBox3.Text = "Category";
100
// // radiocat_obc // this.radiocat_obc.AutoSize = true; this.radiocat_obc.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiocat_obc.Location = new System.Drawing.Point(272, 22); this.radiocat_obc.Name = "radiocat_obc"; this.radiocat_obc.Size = new System.Drawing.Size(63, 26); this.radiocat_obc.TabIndex = 9; this.radiocat_obc.TabStop = true; this.radiocat_obc.Text = "OBC"; this.radiocat_obc.UseVisualStyleBackColor = true; this.radiocat_obc.CheckedChanged += new System.EventHandler(this.radiocat_obc_CheckedChanged); // // radiocat_st // this.radiocat_st.AutoSize = true; this.radiocat_st.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiocat_st.Location = new System.Drawing.Point(187, 22); this.radiocat_st.Name = "radiocat_st"; this.radiocat_st.Size = new System.Drawing.Size(47, 26); this.radiocat_st.TabIndex = 8; this.radiocat_st.TabStop = true; this.radiocat_st.Text = "ST"; this.radiocat_st.UseVisualStyleBackColor = true; this.radiocat_st.CheckedChanged += new System.EventHandler(this.radiocat_st_CheckedChanged); // // radiocat_sc // this.radiocat_sc.AutoSize = true; this.radiocat_sc.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiocat_sc.Location = new System.Drawing.Point(97, 22); this.radiocat_sc.Name = "radiocat_sc"; this.radiocat_sc.Size = new System.Drawing.Size(49, 26); this.radiocat_sc.TabIndex = 7; this.radiocat_sc.TabStop = true; this.radiocat_sc.Text = "SC"; this.radiocat_sc.UseVisualStyleBackColor = true; this.radiocat_sc.CheckedChanged += new System.EventHandler(this.radiocat_sc_CheckedChanged); // // radiocat_gen // this.radiocat_gen.AutoSize = true; this.radiocat_gen.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radiocat_gen.Location = new System.Drawing.Point(6, 22); this.radiocat_gen.Name = "radiocat_gen";
101
this.radiocat_gen.Size = new System.Drawing.Size(59, 26); this.radiocat_gen.TabIndex = 6; this.radiocat_gen.TabStop = true; this.radiocat_gen.Text = "Gen"; this.radiocat_gen.UseVisualStyleBackColor = true; this.radiocat_gen.CheckedChanged += new System.EventHandler(this.radiocat_gen_CheckedChanged); // // monthCalendar1 // this.monthCalendar1.Location = new System.Drawing.Point(560, 123); this.monthCalendar1.Name = "monthCalendar1"; this.monthCalendar1.TabIndex = 46; // // form_per_addupdt // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.Silver; this.ClientSize = new System.Drawing.Size(1028, 746); this.Controls.Add(this.monthCalendar1); this.Controls.Add(this.groupBox3); this.Controls.Add(this.txtform_no); this.Controls.Add(this.combouni); this.Controls.Add(this.label1); this.Controls.Add(this.button2); this.Controls.Add(this.combocourse); this.Controls.Add(this.label2); this.Controls.Add(this.cmdacademic); this.Controls.Add(this.txtst_name); this.Controls.Add(this.cmdcancel); this.Controls.Add(this.label3); this.Controls.Add(this.cmdsave); this.Controls.Add(this.groupBox2); this.Controls.Add(this.imgphoto); this.Controls.Add(this.label8); this.Controls.Add(this.label4); this.Controls.Add(this.groupBox1); this.Controls.Add(this.label17); this.Controls.Add(this.label16); this.Controls.Add(this.txtcadd); this.Controls.Add(this.txtpadd); this.Controls.Add(this.label15); this.Controls.Add(this.txtmname); this.Controls.Add(this.txtfname); this.Controls.Add(this.label7); this.Controls.Add(this.label6); this.Controls.Add(this.label5); this.Name = "form_per_addupdt"; this.Text = "Student\'s Personal Details"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.form_per_add_Load); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize) (this.imgphoto)).EndInit();
102
this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.groupBox3.ResumeLayout(false); this.groupBox3.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private private } } System.Windows.Forms.Label label1; System.Windows.Forms.Label label2; System.Windows.Forms.Label label3; System.Windows.Forms.Label label5; System.Windows.Forms.Label label6; System.Windows.Forms.Label label7; System.Windows.Forms.TextBox txtst_name; System.Windows.Forms.TextBox txtfname; System.Windows.Forms.TextBox txtmname; System.Windows.Forms.TextBox txtph_parent; System.Windows.Forms.Label label10; System.Windows.Forms.TextBox txtph_personal; System.Windows.Forms.Label label11; System.Windows.Forms.TextBox txtph_home; System.Windows.Forms.TextBox txtcadd; System.Windows.Forms.TextBox txtpadd; System.Windows.Forms.Label label15; System.Windows.Forms.TextBox txtform_no; System.Windows.Forms.ComboBox combouni; System.Windows.Forms.Label label16; System.Windows.Forms.Label label17; System.Windows.Forms.GroupBox groupBox1; System.Windows.Forms.RadioButton optionfemale; System.Windows.Forms.RadioButton optionmale; System.Windows.Forms.Label label4; System.Windows.Forms.Label label8; System.Windows.Forms.PictureBox imgphoto; System.Windows.Forms.GroupBox groupBox2; System.Windows.Forms.TextBox txtph_pp; System.Windows.Forms.Label label12; System.Windows.Forms.Label label9; System.Windows.Forms.Button cmdsave; System.Windows.Forms.Button cmdcancel; System.Windows.Forms.Button cmdacademic; System.Windows.Forms.OpenFileDialog openphoto; System.Windows.Forms.Button button2; System.Windows.Forms.ComboBox combocourse; System.Windows.Forms.GroupBox groupBox3; System.Windows.Forms.RadioButton radiocat_obc; System.Windows.Forms.RadioButton radiocat_st; System.Windows.Forms.RadioButton radiocat_sc; System.Windows.Forms.RadioButton radiocat_gen; System.Windows.Forms.MonthCalendar monthCalendar1;
Form_sale
103
namespace scmit_project { public partial class form_sale : Form { int uni_id; SqlDataAdapter adapter = new SqlDataAdapter(); public form_sale() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { //if (txtfrmno.Text == "" || combouni.Text == "" || combocourse.Text == "" || txtst_name.Text == "" || txtamount.Text == "") // cmddeposit.Enabled = false; } private void combouni_SelectedIndexChanged(object sender, EventArgs e) { string[] course_names = new string[100]; combocourse.Items.Clear(); if (combouni.SelectedIndex == 0) uni_id = 100; else uni_id = 200; search course_search = new search(); course_names = course_search.serach_course_names(uni_id, 2); i++) } private void txtfrmno_OnLostFocus(object sender, EventArgs e) { if (txtfrmno.Text == "") { MessageBox.Show("Form No should be filled"); txtfrmno.Focus(); for (int i=0 ; String.Compare(course_names[i],"EOL")!=0 ; combocourse.Items.Add(course_names[i]);
104
private void update_form_fees() { string updt_query; updt_query = "insert into form_sale_detail" + connection.session + " values(" + uni_id + "," + txtfrmno.Text + ",'" + combocourse.Text + "','" + txtst_name.Text + "','" + txtst_fname.Text + "','" + txtphone.Text+ "','" + txtadd.Text + "',19-04-06)" ; SqlCommand cmd_updt = new SqlCommand(updt_query, connection.conn); cmd_updt.CommandType = CommandType.Text; cmd_updt.ExecuteNonQuery(); }
private void txtfrmno_TextChanged(object sender, EventArgs e) { } e) private void txtst_name_TextChanged(object sender, EventArgs { } private void cmdsale_Click(object sender, EventArgs e) { if (valid_entries()) //MessageBox.Show("Are You Sure to Sale the Form","Form Sale"); { update_form_fees(); MessageBox.Show("Form slaes record Updated"); clrscr(); txtfrmno.Focus(); } } private bool valid_entries() { bool valid_form_no=true; long form_no, form_no_upper,form_no_lower; int temp2; get_form_no(out form_no_lower, out form_no_upper);//gets the lower and upper limit of form numbers valid_form_no=long.TryParse(txtfrmno.Text, out form_no); if (valid_form_no==false) { MessageBox.Show("Please write a valid form Numbers"); return(false); }
105
else if(int.Parse(txtfrmno.Text) < form_no_lower || int.Parse(txtfrmno.Text) > form_no_upper) { MessageBox.Show("Please write a valid form Numbers"); return(false); } if (combouni.SelectedIndex == -1) { MessageBox.Show("Select University"); return(false); } if (combocourse.SelectedIndex == -1) { MessageBox.Show("Select Course"); return(false); } if (int.TryParse(txtst_name.Text, out temp2)) { MessageBox.Show("Please write a valid Name of } return(false);
student");
if (int.TryParse(txtst_fname.Text, out temp2)) { MessageBox.Show("Please write a valid Father's Name of student"); return (false); } return (true); } private void get_form_no(out long form_no_lower,out long form_no_upper ) { SqlDataAdapter adapter = new SqlDataAdapter(); DataSet dst = new DataSet(); adapter.SelectCommand = new SqlCommand("select form_no_lower,form_no_upper from utility", connection.conn); adapter.Fill(dst, "utility"); form_no_lower = long.Parse(dst.Tables["utility"].Rows[0] ["form_no_lower"].ToString()); form_no_upper = long.Parse(dst.Tables["utility"].Rows[0] ["form_no_upper"].ToString()); } private void clrscr() { combocourse.SelectedIndex = -1; txtadd.Text = ""; txtfrmno.Text = ""; txtphone.Text = ""; txtst_fname.Text = ""; txtst_name.Text = ""; } private void cmdcancel_Click(object sender, EventArgs e) {
106
} } }
Close();
namespace scmit_project { partial class form_sale { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.txtfrmno = new System.Windows.Forms.TextBox(); this.cmdcancel = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.combouni = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.combocourse = new System.Windows.Forms.ComboBox(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.txtst_name = new System.Windows.Forms.TextBox(); this.txtst_fname = new System.Windows.Forms.TextBox(); this.cmdsale = new System.Windows.Forms.Button(); this.txtphone = new System.Windows.Forms.TextBox(); this.label6 = new System.Windows.Forms.Label(); this.txtadd = new System.Windows.Forms.TextBox();
107
this.label7 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // txtfrmno // this.txtfrmno.BackColor = System.Drawing.Color.White; this.txtfrmno.Font = new System.Drawing.Font("Book Antiqua", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtfrmno.Location = new System.Drawing.Point(157, 40); this.txtfrmno.Name = "txtfrmno"; this.txtfrmno.Size = new System.Drawing.Size(182, 27); this.txtfrmno.TabIndex = 0; this.txtfrmno.TextChanged += new System.EventHandler(this.txtfrmno_TextChanged); // // cmdcancel // this.cmdcancel.Font = new System.Drawing.Font("Book Antiqua", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmdcancel.Location = new System.Drawing.Point(406, 400); this.cmdcancel.Name = "cmdcancel"; this.cmdcancel.Size = new System.Drawing.Size(127, 30); this.cmdcancel.TabIndex = 8; this.cmdcancel.Text = "&Cancel"; this.cmdcancel.UseVisualStyleBackColor = true; this.cmdcancel.Click += new System.EventHandler(this.cmdcancel_Click); // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Book Antiqua", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(28, 44); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(77, 20); this.label1.TabIndex = 2; this.label1.Text = "Form No."; // // combouni // this.combouni.Font = new System.Drawing.Font("Book Antiqua", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.combouni.FormattingEnabled = true; this.combouni.Items.AddRange(new object[] { "University Of Rajasthan, Jaipur", "Guru Jambheshwar University, Hisar"}); this.combouni.Location = new System.Drawing.Point(157, 78); this.combouni.Name = "combouni"; this.combouni.Size = new System.Drawing.Size(376, 28); this.combouni.TabIndex = 1; this.combouni.SelectedIndexChanged += new System.EventHandler(this.combouni_SelectedIndexChanged); //
108
// label2 // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("Book Antiqua", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(28, 87); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(84, 20); this.label2.TabIndex = 4; this.label2.Text = "University"; // // label3 // this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font("Book Antiqua", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.Location = new System.Drawing.Point(28, 122); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(60, 20); this.label3.TabIndex = 5; this.label3.Text = "Course"; // // combocourse // this.combocourse.Font = new System.Drawing.Font("Book Antiqua", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.combocourse.FormattingEnabled = true; this.combocourse.Location = new System.Drawing.Point(157, 119); this.combocourse.Name = "combocourse"; this.combocourse.Size = new System.Drawing.Size(376, 28); this.combocourse.TabIndex = 2; // // label4 // this.label4.AutoSize = true; this.label4.Font = new System.Drawing.Font("Book Antiqua", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.Location = new System.Drawing.Point(28, 159); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(121, 20); this.label4.TabIndex = 7; this.label4.Text = "Student\'s Name"; // // label5 // this.label5.AutoSize = true; this.label5.Font = new System.Drawing.Font("Book Antiqua", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label5.Location = new System.Drawing.Point(28, 200); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(111, 20); this.label5.TabIndex = 8; this.label5.Text = "Father\'s Name"; // // txtst_name
109
// this.txtst_name.BackColor = System.Drawing.Color.White; this.txtst_name.Font = new System.Drawing.Font("Book Antiqua", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtst_name.Location = new System.Drawing.Point(155, 156); this.txtst_name.Name = "txtst_name"; this.txtst_name.Size = new System.Drawing.Size(378, 27); this.txtst_name.TabIndex = 3; this.txtst_name.TextChanged += new System.EventHandler(this.txtst_name_TextChanged); // // txtst_fname // this.txtst_fname.BackColor = System.Drawing.Color.White; this.txtst_fname.Font = new System.Drawing.Font("Book Antiqua", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtst_fname.Location = new System.Drawing.Point(155, 193); this.txtst_fname.Name = "txtst_fname"; this.txtst_fname.Size = new System.Drawing.Size(378, 27); this.txtst_fname.TabIndex = 4; // // cmdsale // this.cmdsale.Font = new System.Drawing.Font("Book Antiqua", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmdsale.Location = new System.Drawing.Point(261, 400); this.cmdsale.Name = "cmdsale"; this.cmdsale.Size = new System.Drawing.Size(127, 30); this.cmdsale.TabIndex = 7; this.cmdsale.Text = "&Sale"; this.cmdsale.UseVisualStyleBackColor = true; this.cmdsale.Click += new System.EventHandler(this.cmdsale_Click); // // txtphone // this.txtphone.BackColor = System.Drawing.Color.White; this.txtphone.Font = new System.Drawing.Font("Book Antiqua", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtphone.Location = new System.Drawing.Point(157, 233); this.txtphone.Name = "txtphone"; this.txtphone.Size = new System.Drawing.Size(378, 27); this.txtphone.TabIndex = 5; // // label6 // this.label6.AutoSize = true; this.label6.Font = new System.Drawing.Font("Book Antiqua", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label6.Location = new System.Drawing.Point(28, 236); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(134, 20);
110
this.label6.TabIndex = 14; this.label6.Text = "Contact Numbers"; // // txtadd // this.txtadd.BackColor = System.Drawing.Color.White; this.txtadd.Font = new System.Drawing.Font("Book Antiqua", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtadd.Location = new System.Drawing.Point(157, 276); this.txtadd.Multiline = true; this.txtadd.Name = "txtadd"; this.txtadd.Size = new System.Drawing.Size(378, 106); this.txtadd.TabIndex = 6; // // label7 // this.label7.AutoSize = true; this.label7.Font = new System.Drawing.Font("Book Antiqua", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label7.Location = new System.Drawing.Point(30, 283); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(69, 20); this.label7.TabIndex = 16; this.label7.Text = "Address"; // // form_sale // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.Silver; this.ClientSize = new System.Drawing.Size(564, 465); this.Controls.Add(this.txtadd); this.Controls.Add(this.label7); this.Controls.Add(this.txtphone); this.Controls.Add(this.label6); this.Controls.Add(this.cmdsale); this.Controls.Add(this.txtst_fname); this.Controls.Add(this.txtst_name); this.Controls.Add(this.label5); this.Controls.Add(this.label4); this.Controls.Add(this.combocourse); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.combouni); this.Controls.Add(this.label1); this.Controls.Add(this.cmdcancel); this.Controls.Add(this.txtfrmno); this.Font = new System.Drawing.Font("Book Antiqua", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "form_sale"; this.Text = "Form Sale"; this.Load += new System.EventHandler(this.Form1_Load); this.ResumeLayout(false); this.PerformLayout();
111
} #endregion private private private private private private private private private private private private private private private private } } System.Windows.Forms.TextBox txtfrmno; System.Windows.Forms.Button cmdcancel; System.Windows.Forms.Label label1; System.Windows.Forms.ComboBox combouni; System.Windows.Forms.Label label2; System.Windows.Forms.Label label3; System.Windows.Forms.ComboBox combocourse; System.Windows.Forms.Label label4; System.Windows.Forms.Label label5; System.Windows.Forms.TextBox txtst_name; System.Windows.Forms.TextBox txtst_fname; System.Windows.Forms.Button cmdsale; System.Windows.Forms.TextBox txtphone; System.Windows.Forms.Label label6; System.Windows.Forms.TextBox txtadd; System.Windows.Forms.Label label7;
form_set_eligiblity
using using using using using using using using System; System.Collections.Generic; System.ComponentModel; System.Data; System.Drawing; System.Text; System.Windows.Forms; System.Data.SqlClient;
namespace scmit_project { public partial class form_set_eligiblity : Form { search searching = new search(); int course_id; char x,xc, xii,grad, pgd, tc, cc, cat_cer; bool add_rec = true; float qper; public form_set_eligiblity() { InitializeComponent(); }
private void form_set_eligiblity_Load(object sender, EventArgs e) { } private void combocourse_name_SelectedIndexChanged(object sender, EventArgs e) {
112
fill_entries();
private void combouni_SelectedIndexChanged(object sender, EventArgs e) { int uni_id; combocourse.Items.Clear(); string[] course_names = new string[100]; if (combouni.SelectedIndex == 0) uni_id = 100; else uni_id = 200; course_names = searching.serach_course_names(uni_id, 1); 0; i++) } private void cmdremove_Click(object sender, EventArgs e) { listreq_eligiblity.Items.RemoveAt(listreq_eligiblity.Sele ctedIndex); } private void cmdadd_Click(object sender, EventArgs e) { listreq_eligiblity.Items.Add(listeligiblity.Text); } private string[] req_qualfications(int course_id, string cat,out float qper,out char x,out char xc,out char xii,out char grad,out char pgd,out char cc,out char tc,out char cat_cer, out bool add_rec )// Provides the required of Qualifications { int i=0; SqlDataAdapter adapter = new SqlDataAdapter(); DataSet dst = new DataSet(); string qual=""; x='0'; xc = '0'; xii='0'; qper=0; grad='0'; pgd='0'; cc='0'; tc='0'; cat_cer = '0'; add_rec=true; string[] course_ids = new string[50]; // stores the course ids for eligiblity purpose adapter.SelectCommand = new SqlCommand("select * from eligiblity_detail" + connection.session + " where course_id = " + course_id + " and cat = '" + cat + "'", connection.conn); for (int i = 0; String.Compare(course_names[i], "EOL") != combocourse.Items.Add(course_names[i]);
113
adapter.Fill(dst, "eligiblity_detail" + connection.session); if (dst.Tables["eligiblity_detail" + connection.session].Rows.Count != 0) { qual = dst.Tables["eligiblity_detail" + connection.session].Rows[i]["qual"].ToString(); x = char.Parse(dst.Tables["eligiblity_detail" + connection.session].Rows[i]["x"].ToString()); xc = char.Parse(dst.Tables["eligiblity_detail" + connection.session].Rows[i]["xc"].ToString()); xii = char.Parse(dst.Tables["eligiblity_detail" + connection.session].Rows[i]["xii"].ToString()); qper = float.Parse(dst.Tables["eligiblity_detail" + connection.session].Rows[i]["qper"].ToString()); grad = char.Parse(dst.Tables["eligiblity_detail" + connection.session].Rows[i]["grad"].ToString()); pgd = char.Parse(dst.Tables["eligiblity_detail" + connection.session].Rows[i]["pgd"].ToString()); cc = char.Parse(dst.Tables["eligiblity_detail" + connection.session].Rows[i]["cc"].ToString()); tc = char.Parse(dst.Tables["eligiblity_detail" + connection.session].Rows[i]["tc"].ToString()); cat_cer = char.Parse(dst.Tables["eligiblity_detail" + connection.session].Rows[i]["cat_cer"].ToString()); add_rec = false; } int n = 0; for (i = 0; n < qual.Length; i++ ) { course_ids[i] = qual.Substring(n, 2); n = n + 2; } course_ids[i] = "EOL"; return course_ids; } private string qual_names(string course_id)// Provides the name of Qualifications { SqlDataAdapter adapter = new SqlDataAdapter(); DataSet dst = new DataSet(); adapter.SelectCommand = new SqlCommand("select course_name from eligiblities where course_id = '" + course_id "'", connection.conn); adapter.Fill(dst, "eligiblities"); return(dst.Tables["eligiblities"].Rows[0] ["course_name"].ToString()); } private void fill_entries() { string[] qualification_id = new string[50]; string[] eligblities = new string[150]; course_id = searching.get_course_id(combocourse.Text); eligblities = searching.serach_eligiblities(course_id); +
114
listeligiblity.Items.Clear(); for (int i = 0; string.Compare(eligblities[i], "EOL") != 0; i++) listeligiblity.Items.Add(eligblities[i]); listreq_eligiblity.Items.Clear(); qualification_id = req_qualfications(course_id, combocat.Text,out qper,out x,out xc,out xii,out grad,out pgd,out cc,out tc,out cat_cer,out add_rec ); for (int i = 0; string.Compare(qualification_id[i], "EOL") != 0; i++) listreq_eligiblity.Items.Add(qual_names(qualification _id[i])); if (x.Equals('1')) checkx.Checked = true; else checkx.Checked = false; if (xc.Equals('1')) checkxc.Checked = true; else checkxc.Checked = false; if (xii.Equals('1')) checkxii.Checked = true; else checkxii.Checked = false; if (grad.Equals('1')) checkgr.Checked = true; else checkgr.Checked = false; if (pgd.Equals('1')) checkpgd.Checked = true; else checkpgd.Checked = false; if (cc.Equals('1')) checkcc.Checked = true; else checkcc.Checked = false; if (cat_cer.Equals('1')) checkcatc.Checked = true; else checkcatc.Checked = false; if (tc.Equals('1')) checktc.Checked = true; else checktc.Checked = false; if (qper.Equals(0)) txtqper.Text = "NA";
115
else
txtqper.Text =
qper.ToString();
} private void combocat_SelectedIndexChanged(object sender, EventArgs e) { fill_entries(); } private void cmdupdate_Click(object sender, EventArgs e) { string updt_query; string qual=""; string [] course_name = new string[listreq_eligiblity.Items.Count]; if (checkx.Checked) x = '1'; else x = '0'; if (checkxii.Checked) xii = '1'; else xii = '0'; if (checkgr.Checked) grad = '1'; else grad = '0'; if (checkpgd.Checked) pgd = '1'; else pgd = '0'; if (checktc.Checked) tc = '1'; else tc = '0'; if (checkcc.Checked) cc = '1'; else cc = '0'; if (checkcatc.Checked) cat_cer = '1'; else cat_cer = '0'; if (checkx.Checked) x = '1'; else x = '0'; if (checkxc.Checked) xc = '1'; else xc = '0';
116
listreq_eligiblity.Items.CopyTo(course_name,0); for (int i = 0; i <= listreq_eligiblity.Items.Count - 1;i+ +) // fills qual with the required ids qual = qual + qual_id((course_name[i])); if (add_rec) updt_query = "insert into eligiblity_detail" + connection.session + " values(" + course_id + ",'" + combocat.Text + "'," + float.Parse(txtqper.Text) + ",'" + qual + "','" + x + "','" + xc + "','" + xii + "','" + grad + "','" + pgd + "','" + cc + "','" + tc + "','" + cat_cer + "')"; else updt_query = "update eligiblity_detail" + connection.session + " set qper = " + qper + ",qual= '" + qual + "',x='" + x + "',xc='" + xc + "',xii='" + xii + "',grad='" + grad + "',pgd='" + pgd + "',cc='" + cc + "',tc='" + tc + "',cat_cer='" + cat_cer + "' where course_id = " + course_id + " and cat = '" + combocat.Text + "'" ; MessageBox.Show(updt_query); SqlCommand cmd_updt = new SqlCommand(updt_query, connection.conn); cmd_updt.CommandType = CommandType.Text; cmd_updt.ExecuteNonQuery(); } private string qual_id(string course_name)// Provides the name of Qualifications { SqlDataAdapter adapter = new SqlDataAdapter(); DataSet dst = new DataSet(); adapter.SelectCommand = new SqlCommand("select course_id from eligiblities where course_name = '" + course_name + "'", connection.conn); adapter.Fill(dst, "eligiblities"); return (dst.Tables["eligiblities"].Rows[0] ["course_id"].ToString()); } private void cmdcancel_Click(object sender, EventArgs e) { Close(); }
} }
117
118
this.label6 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(20, 126); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(113, 22); this.label1.TabIndex = 0; this.label1.Text = "Course Name"; // // listeligiblity // this.listeligiblity.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.listeligiblity.FormattingEnabled = true; this.listeligiblity.ItemHeight = 22; this.listeligiblity.Location = new System.Drawing.Point(142, 217); this.listeligiblity.Name = "listeligiblity"; this.listeligiblity.Size = new System.Drawing.Size(353, 158); this.listeligiblity.TabIndex = 3; // // Eligiblity // this.Eligiblity.AutoSize = true; this.Eligiblity.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Eligiblity.Location = new System.Drawing.Point(21, 227); this.Eligiblity.Name = "Eligiblity"; this.Eligiblity.Size = new System.Drawing.Size(89, 22); this.Eligiblity.TabIndex = 2; this.Eligiblity.Text = "Eligiblities"; // // listreq_eligiblity // this.listreq_eligiblity.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.listreq_eligiblity.FormattingEnabled = true; this.listreq_eligiblity.ItemHeight = 22; this.listreq_eligiblity.Location = new System.Drawing.Point(700, 126); this.listreq_eligiblity.Name = "listreq_eligiblity"; this.listreq_eligiblity.Size = new System.Drawing.Size(267, 246); this.listreq_eligiblity.TabIndex = 5; // // label3 //
119
this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.Location = new System.Drawing.Point(516, 134); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(162, 22); this.label3.TabIndex = 4; this.label3.Text = "Required Eligiblities"; // // label4 // this.label4.AutoSize = true; this.label4.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.Location = new System.Drawing.Point(21, 175); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(79, 22); this.label4.TabIndex = 6; this.label4.Text = "Category"; // // combocat // this.combocat.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.combocat.FormattingEnabled = true; this.combocat.Items.AddRange(new object[] { "GEN", "SC", "ST", "OBC"}); this.combocat.Location = new System.Drawing.Point(137, 172); this.combocat.Name = "combocat"; this.combocat.Size = new System.Drawing.Size(160, 30); this.combocat.TabIndex = 7; this.combocat.SelectedIndexChanged += new System.EventHandler(this.combocat_SelectedIndexChanged); // // checkx // this.checkx.AutoSize = true; this.checkx.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checkx.Location = new System.Drawing.Point(26, 56); this.checkx.Name = "checkx"; this.checkx.Size = new System.Drawing.Size(124, 26); this.checkx.TabIndex = 0; this.checkx.Text = "X Marksheet"; this.checkx.UseVisualStyleBackColor = true; // // checkxc // this.checkxc.AutoSize = true; this.checkxc.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
120
56);
this.checkxc.Name = "checkxc"; this.checkxc.Size = new System.Drawing.Size(173, 26); this.checkxc.TabIndex = 1; this.checkxc.Text = "X Board Certificate"; this.checkxc.UseVisualStyleBackColor = true; // // groupBox1 // this.groupBox1.Controls.Add(this.checkcatc); this.groupBox1.Controls.Add(this.checkcc); this.groupBox1.Controls.Add(this.checktc); this.groupBox1.Controls.Add(this.checkpgd); this.groupBox1.Controls.Add(this.checkgr); this.groupBox1.Controls.Add(this.checkxii); this.groupBox1.Controls.Add(this.checkx); this.groupBox1.Controls.Add(this.checkxc); this.groupBox1.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBox1.Location = new System.Drawing.Point(142, 392); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(825, 150); this.groupBox1.TabIndex = 3; this.groupBox1.TabStop = false; this.groupBox1.Text = "Reqired Documents"; // // checkcatc // this.checkcatc.AutoSize = true; this.checkcatc.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checkcatc.Location = new System.Drawing.Point(424, 119); this.checkcatc.Name = "checkcatc"; this.checkcatc.Size = new System.Drawing.Size(182, 26); this.checkcatc.TabIndex = 7; this.checkcatc.Text = "Category Certificate"; this.checkcatc.UseVisualStyleBackColor = true; // // checkcc // this.checkcc.AutoSize = true; this.checkcc.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checkcc.Location = new System.Drawing.Point(212, 119); this.checkcc.Name = "checkcc"; this.checkcc.Size = new System.Drawing.Size(189, 26); this.checkcc.TabIndex = 6; this.checkcc.Text = "Character Certificate"; this.checkcc.UseVisualStyleBackColor = true; // // checktc // this.checktc.AutoSize = true;
121
this.checktc.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checktc.Location = new System.Drawing.Point(26, 119); this.checktc.Name = "checktc"; this.checktc.Size = new System.Drawing.Size(177, 26); this.checktc.TabIndex = 5; this.checktc.Text = "Transfer Certificate"; this.checktc.UseVisualStyleBackColor = true; // // checkpgd // this.checkpgd.AutoSize = true; this.checkpgd.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checkpgd.Location = new System.Drawing.Point(612, 119); this.checkpgd.Name = "checkpgd"; this.checkpgd.Size = new System.Drawing.Size(207, 26); this.checkpgd.TabIndex = 4; this.checkpgd.Text = "Post Graduate Diploma"; this.checkpgd.UseVisualStyleBackColor = true; // // checkgr // this.checkgr.AutoSize = true; this.checkgr.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checkgr.Location = new System.Drawing.Point(612, 56); this.checkgr.Name = "checkgr"; this.checkgr.Size = new System.Drawing.Size(201, 26); this.checkgr.TabIndex = 3; this.checkgr.Text = "Graduation Marksheet"; this.checkgr.UseVisualStyleBackColor = true; // // checkxii // this.checkxii.AutoSize = true; this.checkxii.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checkxii.Location = new System.Drawing.Point(424, 56); this.checkxii.Name = "checkxii"; this.checkxii.Size = new System.Drawing.Size(136, 26); this.checkxii.TabIndex = 2; this.checkxii.Text = "XII Marksheet"; this.checkxii.UseVisualStyleBackColor = true; // // combocourse // this.combocourse.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.combocourse.FormattingEnabled = true; this.combocourse.Location = new System.Drawing.Point(139, 126);
122
this.combocourse.Name = "combocourse"; this.combocourse.Size = new System.Drawing.Size(353, 30); this.combocourse.TabIndex = 8; this.combocourse.SelectedIndexChanged += new System.EventHandler(this.combocourse_name_SelectedIndexChanged); // // cmdupdate // this.cmdupdate.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmdupdate.Location = new System.Drawing.Point(812, 569); this.cmdupdate.Name = "cmdupdate"; this.cmdupdate.Size = new System.Drawing.Size(155, 39); this.cmdupdate.TabIndex = 9; this.cmdupdate.Text = "&Add/Update"; this.cmdupdate.UseVisualStyleBackColor = true; this.cmdupdate.Click += new System.EventHandler(this.cmdupdate_Click); // // cmdcancel // this.cmdcancel.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmdcancel.Location = new System.Drawing.Point(636, 569); this.cmdcancel.Name = "cmdcancel"; this.cmdcancel.Size = new System.Drawing.Size(141, 39); this.cmdcancel.TabIndex = 10; this.cmdcancel.Text = "&Cancel"; this.cmdcancel.UseVisualStyleBackColor = true; this.cmdcancel.Click += new System.EventHandler(this.cmdcancel_Click); // // cmdremove // this.cmdremove.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmdremove.Location = new System.Drawing.Point(523, 292); this.cmdremove.Name = "cmdremove"; this.cmdremove.Size = new System.Drawing.Size(155, 39); this.cmdremove.TabIndex = 11; this.cmdremove.Text = "&<<"; this.cmdremove.UseVisualStyleBackColor = true; this.cmdremove.Click += new System.EventHandler(this.cmdremove_Click); // // cmdadd // this.cmdadd.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmdadd.Location = new System.Drawing.Point(523, 227); this.cmdadd.Name = "cmdadd"; this.cmdadd.Size = new System.Drawing.Size(155, 39); this.cmdadd.TabIndex = 12;
123
this.cmdadd.Text = "&>>"; this.cmdadd.UseVisualStyleBackColor = true; this.cmdadd.Click += new System.EventHandler(this.cmdadd_Click); // // label2 // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(21, 78); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(90, 22); this.label2.TabIndex = 14; this.label2.Text = "University"; // // combouni // this.combouni.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.combouni.FormattingEnabled = true; this.combouni.Items.AddRange(new object[] { "University Of Rajasthan, Jaipur", "Guru Jambheshwar University, Hisar"}); this.combouni.Location = new System.Drawing.Point(137, 78); this.combouni.Name = "combouni"; this.combouni.Size = new System.Drawing.Size(355, 30); this.combouni.TabIndex = 13; this.combouni.SelectedIndexChanged += new System.EventHandler(this.combouni_SelectedIndexChanged); // // txtqper // this.txtqper.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtqper.Location = new System.Drawing.Point(700, 77); this.txtqper.Name = "txtqper"; this.txtqper.Size = new System.Drawing.Size(77, 29); this.txtqper.TabIndex = 15; // // label5 // this.label5.AutoSize = true; this.label5.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label5.Location = new System.Drawing.Point(516, 81); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(183, 22); this.label5.TabIndex = 16; this.label5.Text = "Qualifiying Percentage"; // // label6 // this.label6.AutoSize = true;
124
this.label6.Font = new System.Drawing.Font("Book Antiqua", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label6.Location = new System.Drawing.Point(783, 81); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(24, 22); this.label6.TabIndex = 17; this.label6.Text = "%"; // // label7 // this.label7.AutoSize = true; this.label7.Font = new System.Drawing.Font("Book Antiqua", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label7.Location = new System.Drawing.Point(383, 9); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(270, 36); this.label7.TabIndex = 18; this.label7.Text = "Set Eligiblity Details"; // // form_set_eligiblity // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1028, 746); this.Controls.Add(this.label7); this.Controls.Add(this.label6); this.Controls.Add(this.label5); this.Controls.Add(this.txtqper); this.Controls.Add(this.label2); this.Controls.Add(this.combouni); this.Controls.Add(this.cmdadd); this.Controls.Add(this.cmdremove); this.Controls.Add(this.cmdcancel); this.Controls.Add(this.cmdupdate); this.Controls.Add(this.combocourse); this.Controls.Add(this.groupBox1); this.Controls.Add(this.combocat); this.Controls.Add(this.label4); this.Controls.Add(this.listreq_eligiblity); this.Controls.Add(this.label3); this.Controls.Add(this.listeligiblity); this.Controls.Add(this.Eligiblity); this.Controls.Add(this.label1); this.Name = "form_set_eligiblity"; this.Text = "Set eligiblities"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.form_set_eligiblity_Load); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); } #endregion
125
private private private private private private private private private private private private private private private private private private private private private private private private private private private } }
System.Windows.Forms.Label label1; System.Windows.Forms.ListBox listeligiblity; System.Windows.Forms.Label Eligiblity; System.Windows.Forms.ListBox listreq_eligiblity; System.Windows.Forms.Label label3; System.Windows.Forms.Label label4; System.Windows.Forms.ComboBox combocat; System.Windows.Forms.CheckBox checkx; System.Windows.Forms.CheckBox checkxc; System.Windows.Forms.GroupBox groupBox1; System.Windows.Forms.CheckBox checkcc; System.Windows.Forms.CheckBox checktc; System.Windows.Forms.CheckBox checkpgd; System.Windows.Forms.CheckBox checkgr; System.Windows.Forms.CheckBox checkxii; System.Windows.Forms.ComboBox combocourse; System.Windows.Forms.CheckBox checkcatc; System.Windows.Forms.Button cmdupdate; System.Windows.Forms.Button cmdcancel; System.Windows.Forms.Button cmdremove; System.Windows.Forms.Button cmdadd; System.Windows.Forms.Label label2; System.Windows.Forms.ComboBox combouni; System.Windows.Forms.TextBox txtqper; System.Windows.Forms.Label label5; System.Windows.Forms.Label label6; System.Windows.Forms.Label label7;
Main Form
using using using using using using using System; System.Collections.Generic; System.ComponentModel; System.Data; System.Drawing; System.Text; System.Windows.Forms;
namespace scmit_project { public partial class Main : Form { public Main() { InitializeComponent(); } private void depositToolStripMenuItem_Click(object sender, EventArgs e) { form_per_addupdt deposit_form = new form_per_addupdt(); deposit_form.MdiParent = this; deposit_form.Show(); }
126
private void cmdform_sale_Click(object sender, EventArgs e) { form_sale frm_sale = new form_sale(); frm_sale.MdiParent = this; frm_sale.Show(); } private void cmdaddUpdt_elig_Click(object sender, EventArgs e) { form_set_eligiblity frm_elig = new form_set_eligiblity(); frm_elig.MdiParent = this; frm_elig.Show(); } private void exitToolStripMenuItem_Click(object sender, EventArgs e) { Application.Exit(); } private void Main_Load(object sender, EventArgs e) { }
} }
127
128
2. Form_per_detail This form is used to add or update the personal details of a student.
129
3. Form Set Eligibility This form is used to set the eligibilities for a particular course.
130
4. Form Add Update Academic details This Form is used to Add Update and show the academic details of a student.
131
5. Form Change Password This form is used to change the password of its users.
132
6. Form Show Personal Details This form is used to show the personal details of a particular student.
133
134
8. Printing Identity Cards The Form is used to print the Identity Card. First Front side is printed and then back side is printed
135
9. Fee Deposit The form is used to deposit the fees of a particular student.
136
10. Show Fees Deposited This form shows the fees deposited in this financial year by a student.
137
11. Search Receipt Book This form search the receipt book using both by number and date option.
138
139
13. Add Marks This form is used to show and add/update the marks which he has obtained in various subjects.
140
14. Show/Print Mark sheet The form show and print the mark sheet of a given student.
141
15. Show Result Graphically This form shows the result of a student graphically for the whole sessional examinations.
142
Chapter 7
SYSTEM TESTING
Preparation of Test Data Testing with Dummy data Testing with Live Data
143
SYSTEM TESTING
The purpose of system testing is to identified and correct errors in the system. System testing is the most important part of the system implementation or we can say that the system testing is the most important methodology of the system implementation. Before Appling or implement of the system the testing is required to the system .in the testing we have search the system accuracy means the system is accurate or not this is decide in the testing part. System testing requires a test plan that consist of several keys activities and steps from program, string, system and user acceptance testing. The system performance criteria deal with turnaround time, backup, file protection, and the human factor. testing is the vital to the success of the system. System testing makes a logical assumption that if all the parts of the system is correct, the goal will be successfully achieved .so with the testing we have remove the errors of the system or project. another reason of testing is its utility as a user-oriented vehicle before implementation. The best program is worthless if the testing is not applied to on it. The testing of the project have become the efficiency and good utilization and perfect ness .so before the use of project or implement to it that is better that the testing has been come out in the system project. the first testing of the system is to see whether it produce the correct output.
144
145
(4) plan user training:User training is designed to prepare the user for testing and converting the system. User involvement and training take place parallel with programming for three reasons: (1) The system group has time available to spend on training while the programs are being written. (2) Initiating a user training program gives the systems group a clearer image of the users interest in the new system. (3) A trained user participates more effectively in system testing. For user training, preparation of a checklist is useful included are provision for developing. Training materials and other documents to complete the training activity. In effect, the checklist calls for a commitment of personnel, facilities, and efforts for implementing the candidate system. The training plan is followed by preparation of the user training manual and other text materials. Facility requirements and the necessary hardware are specified and documented. A common procedure is to train supervisors and department heads who in turn, train their staff as they see fit. The reasons are obvious: (1.) User supervisors are knowledgeable about the capabilities of their staff and the overall operation. (2.) Staff members usually respond more favourably and accept instruction better from supervisors then from outsiders. (3.) Familiarity of users with their particular problems (bugs) make them better candidates for handing user training than the systems analyst. The analyst gets feedback to ensure that proper training is provided. (5)compile/assemble programs: All programs have to be compiled/assembled for testing. Before this, however, a complete program description should be available. Included is the purpose of the program, its use, the programmer(s) who prepared it, and the amount of computer time it takes to run it . program and system flowcharts of the project should also be available for reference.
College Management System, Submitted By Amit K. Dhaka E/No 04884873
146
In addition to these activities, desk checking the source code uncovers programming errors or inconsistencies. Before actual program testing, a run order schedule and test scheme are finalized. A run order schedule specifies the transactions to test and the order in which they should be tested. High priority transactions that make special demands on the candidate system are tested first. In contrast, a test scheme specifies how program software should be debugged. A common approach, called bottom-up programming, tests small- scale program modules, which are linked to a higher-level module and so on until the program is completed. An alternative is the top- down approach, where the general program is tested first, followed by the addition of program modules, one level at a time to the lowest level. (6) prepare job performance aids : In this activity the materials to be used by personnel to run the system are specified and scheduled. This includes a display of materials such as program codes, a list of input codes attached to the CRT terminal, and a posted instruction schedule to load the disk drive. These aids reduce the training time and employ personnel at lower positions. (7) prepare operational documents: During the test plan stage, all operational documents are finalized, including copies of the operational formats required by the candidate system. Related to operational documentations is a section on the experience, training, and educational qualification of personnel for the proper operation of the new system.
147
148
points. The idea is to compare program values against deskcalculated value to isolate the problem. (2) String Testing:Programs are invariable related to one another and interact in a total system. Each program is tested to see whether it conforms to related programs in the system. Each portion of the system is tested against the entire module with both test and live data before the entire system is ready to be tested. (3)System Testing:System testing is designed to uncover weaknesses that were not found in earlier tests. This includes forced system failure and validation of the total system as it will be implemented by its user(s) in the operational environment. Generally, it begins with low volumes of transactions based on live data. The volume is increased until the maximum level for each transaction type is reached. The total system is also tested for recovery and fallback after various major failures to ensure that no data re lost during the emergency. All this is done with the old system still in operation. After the candidate system passes the test, the old system is discontinued. (4)System documentation:All design and test documentation should be finalized and entered in the library for future reference. The library is the central location for maintenance of the new system. The format, organization, and language of each documentation should be in line with system standards. (5)User Acceptance testing:An acceptance test has the objective of selling the user on the validity and reliability of the system. It verifies that the systems procedures operate to system specifications and that the integrity of vital data is maintained. Performance of an acceptance test is actually the users show. User motivation and knowledge are critical for the successful performance of the system. Then a comprehensive test report is prepared. The report indicates the systems tolerance, performance range, error rate, and accuracy.
College Management System, Submitted By Amit K. Dhaka E/No 04884873
149
150
important requirement is the correctness of the system. means the system should be work correctly. There are not occurred any error in the system then it doing the work.
2. Efficiency:-
the system second most important quality is the efficiency of the system means the user require the efficient system and they want the system is doing its work perfectly. So this character is most important to the system or in the successful project. is the reliability of the project. means project should be reliable and stable. means the system work in timely and perfectly. In the user requirement testing the developer of the system is also have attention on this character or user requirements.
the successful system. means those system have this ability it is a good system. portability of system means the ease of transporting a program from one hardware configuration to another.
5. Expandability:-
ease of adding or expanding the existing data base. means the user Want to update or change the information on its system. so this quality is should be present in the system. those system which have this great quality it may be a good project system. so this requirement is also should be remembered by the developer which design the system project. are located and corrected. Means the user want that the error of the system should be located by the system project and the project should be flexible. the user wants that the system project is searched the errors and solved to it.
151
ensure its correct performance. Means the user want that the system has firstly completed its testing then its going to implementation. so this is an important requirement of the user which should be remembered by the developer. When he or she design the system project.
8. Communicativeness:- how descriptive or useful the
input and output of the system are. The user wants that the system is doing the work successfully and the perfectly and all the input and output units of the system is doing work well here.
9. Access control and audit:- control of access to the
system and the extent to which that access can be audited. the user wants that the work of the system project will be audited and in the auditing the serve is going on to the access control and on work efficiency.
10. Error tolerance:- error detection and correction versus
error avoidance means user wants the system project should be avail the error tolerance, means the small errors doesnt be effected on the whole system this the good characteristics of the system testing. So when developer developed the system project than he or she should attend on this thing. So when the developer developed and testing the system project then he or she should remembered these user requirement.
In this methodology the software and hardware parts selection is also important. Before design the system project first we decided the which parts we have select and in selection we have seen the characteristics and uses of the parts. And after the selection of the parts then we going to on testing the parts. In the testing we should attend on the hardware and software parts. we have used only those parts which have the useful and those have minimum losses and
College Management System, Submitted By Amit K. Dhaka E/No 04884873
152
errors. If the hardware and software part is going so good then the system is designed so perfect efficient and good so developer remember it. In testing the hardware and software parts we have meet these things in the parts:1. Reliability of the parts:- In the testing we searched the
parts characteristic is that the hardware and software parts should be reliable. Reliability is particularly important in the parts. reliable software have a particular goal and desirable goal. Software and hardware parts have brings up the concept of modularity. Or we can easily modified the system project. with modularity come expandability. Which emphasizes the sensitivity of a system project to handled an increased volume of transactions or to integrate with programs.
2. Functionality of the parts:-With the functionality of the
parts the facilities, performance and the other factors have been come out. with the functionality of the hardware parts the system have doing work easily, perfectly and efficiently.
3. Capacity of the part:- In the testing of the hardware
and software parts we should have found the good capacity of the parts. Because if the parts have good capacity then the system have doing work with very fast and perfect and efficient.
4. Flexibility:- In the testing of the hardware and software
part we should found the parts very flexible because with the flexibility we can easily transferred the system to one place to another place and easily access to it.
5. Usability:-Usability of the hardware parts is divided in
the two parts one is the portability and another is the understand ability. portability is refer to different hardware and software parts to used on another operating system. and understand -ability means the hardware and software parts package is easily evaluated to in the simple language and user easily understand and assess to it.
College Management System, Submitted By Amit K. Dhaka E/No 04884873
153
parts should be have great security, because without security there is no chance to accept to it by the user. User wants the security of the system to against the destroy ration of the system.
7. Serviceability:- The user required those parts and
system which serviceability is good so when the developer testing the hardware and software parts then he or she remembered that the service of the parts and system should be very good. Means in the service of the parts the parts have been maintained and changeable if it have any occurred. So these requirements is most necessary in the testing of the software and hardware parts.
154
1. The system parts should be less expensive. 2. The user have access to it easily so there is no requirement of any training to the user. 3. In the testing the analyst try to do the system perfect because if the system have not given any error then there is not requirement of the servicing. 4. The parts of the system should be used very reliable quality which is not more expansive. 5. Functionality of the system have good in the system which have doing more work and time is saved and the cost is not going more expansive.
155
Above the condition is will be satisfied then the project environment is right to apply the condition.
156
Chapter 8
SYSTEM IMPLEMENTATION
Changeover
157
CHANGEOVER
The change over form the current system to this proposed system is staged not direct. The system is fully tested with the dummy and actual data. Both Unit and integrated testing has been accomplished. But as we know that there is still may complexities that arise in between the direct changeover. Some of complexity are as follows : 1. Exceptions There are many exceptional cases that may arise after the implementation of the system although the system is fully tested. 2. New Requirements It may happen that there are some requirements which were not covered by system. There may be some new requirements that may arise in near future. 3. Unpredictable situations There may any unpredictable situation like long power cut, hardware failure etc. for which the system is very prone to failure. 4. Training The staff of Shekhawati College is still to get the training of system operation.
158
Staged Changeover Looking at the above complexity I have decided to change the current system to proposed system into stages. As I have choose the Prototype model as the methodology therefore I will now install this prototype (proposed system) and the current system and proposed parallel and when it will found that the system can work on its own it will be implemented fully and college would be full computerized. Suppose the changeover requires N necessary steps to complete. Then proposed system will be implemented as follows Stage 1. First of all only two computer will be engaged in implementing the proposed system. One is server that is placed in computer lab comp Department of Computer Science. This is a server 2003 with SQL SERVER 2000 installed. The second computer will be at the table of clerk who is responsible to sale prospectus, deposit fees, deposit fees , maintain file. He will use this computer instead of manual system. The clerk will also note down the deficiencies and bugs of the system. Stage 2. In stage 2 the bugs that were found will be eliminated. The new requirements that were found will be covered using coding. After which the new prototype will come into existence.This protype will be implemented as it was implemented in stage 1. The refinement will be accomplished till the proposed system dosnot correspond to the current system. Therefore the step 1 and 2 will be repeated N-1 times.
159
Stage N (Final Stage) After the repeated stages of prototypes it is now time to discuess the final stage. 1. Detailed Design In this desin the whole new approach or updation in old design are made as per the requirements. 2. Testing After which the unit and integrated testing is accomplished using the dummy and actual data. 3. Final Implementation Now the software is fully functional and can cater every present needs and requirements..
160
Developement
Clerk Evaluates the software and notes the Bugs and deficiencies, in mean time some new requirements arise
Detailed Design
161
Chapter 9
DOCUMENTATION
162
Operational Manual
The operational manual is :The main form has following option in its menu. 1. Student Register Discard Edit Students Detail Personal Detail Academic Detail 2. Form Sale Deposit Discard 3. Result Add/Update Marks Show Marks Prepare DMC 4. Utility Print I Card Change Password
163
Chapter 10
Conclusion
164
CONCLUSION
Our slogan of paperless College Management system is successfully implemented in Shekhawati College of Management and Information Technology Sikar Rajasthan. C#.NET provides powerful graphical user interface for creating a good database based software. Due to time factor only basics of C#.NET and database of it are used in this software creation. College Management System maintains the records of every student for a large time period.These records can be further referred forenquiry purposes.Searching is done on multiple indexes . All these facilities makes it more flexible and efficient to use. Simplicity was our monogamy novice user who has basic knowledge of computer can easily handle this software.
165
Chapter 11
SCOPE OF THE PROJECT
166
SCOPE
Being the GUI , it goes without saying that the new system will be more user friendly , accepting less inputs from user and minimizing on data entry errors. Since the proposed system uses Microsoft SQL SERVER in the preliminary stage if the college desires to make its systems web enabled, it will be a handy procesure to make Microsoft SQL SERVER web enabled . This leads to an easy way to College eenabled vision .with the Microsoft SQL SERVER , with an ability to marry with crystal report the system will provide flexibility for advanced user to develop and generate there own report formats which is restricted in the current system . In its future expansion of the project , in the college desires to deploy electronic data interchange system with its other branches (if it would have in future), the SQL Server provides the facilities to export the data in various output formats , which can be transferred over an electronic media using the electronic data interchange,the flexibility is also maintained to integrate the other functional areas .
167
168