project finalreport

130
ANALYSIS OF FININCIAL STATEMENT OF JYOTI BIKASH BANK NEPAL LTD. (Case Study Of Hakimchowk Branch ,Bharatpur Chitwan) Submitted By: BIPANA POUDEL T.U. Regd.No.: Symbol No.: A FIELDWORK REPORT Submitted to: Saptagandaki Multiple Campus, Bharatpur Tribhuvan University i

Upload: bijay-poudel

Post on 08-Sep-2015

35 views

Category:

Documents


2 download

DESCRIPTION

myzgzag report

TRANSCRIPT

ANALYSIS OF FININCIAL STATEMENT OFJYOTI BIKASH BANK NEPAL LTD.(Case Study Of Hakimchowk Branch ,Bharatpur Chitwan)

Submitted By:BIPANA POUDELT.U. Regd.No.:Symbol No.:

A FIELDWORK REPORT

Submitted to:Saptagandaki Multiple Campus, BharatpurTribhuvan University

In partial fulfillment of the requirement for the degree of Bachelor of Business Studies (B.B.S.)Bharatpur , Chitwan

2015

FACULTY OF MANAGEMENTTRIBHUVAN UNIVERSITY

RecommendationThis is to certify that the fieldwork assignmentreport:

Submitted By:Bipana PoudelT.U. Regd.No.:Symbol No.:

EntitledA Case study on ANALYSIS OF FININCIAL STATEMENT OF JYOTI BIKASH BANK LTD

Hakimchowk Branch,Bharatpur Chitwan Has been prepared as approved by this department,This fieldwork assignment report is forward for examination.

Supervisor(Head of Department)SAPTAGANDAKI MULTIPLE CAMPUSBHARATPUR, CHITWAN

AcknowledgementThis project work entitled ANALYSIS OF FININCIAL STATEMENT OF JYOTI BIKASH BANK LTD has been prepared for the partial fulfillment of the requirement for the degree of Bachelor of business studies. This project work is prepared for the course Financial Management, which carries 25% of its total marks.At first, the writer is grateful to the Faculty of Management Tribhuwan University for making the students of third year to write a report on the subject of any elective course, and firstly the writer first wants to thanks campus teacher Dr. Narayan Raj Nepal for providing essential time & suggestion to write this report.I also want to hearty thanks Mr. Balsankhar Subedi, Branch Manager, of Jyoti Bikash Bank, Branch Office, Hakimchowk Bharatpur & My Friend Miss Sushila Mahat for providing essential data & suggestions for it. I would also like to thank Link Computer for helping me in this report printing work.

Thank you

Kamala KoiralaHetauda School of ManagementBBS 3rd Year Hetauda

List of Tables 1. Test Report -----------------------19List of Figures1. GANTT chart ---------------------82. ER Diagram --------------------12 3. Context Diagram --------------13 4. Data Flow Diagram________14 5. Program Flow Chart----------17

Abbreviation

DFD= Data Flow DiagramERD= Entity Relationship DiagramPERT= Program (or Project) Evaluation and Review TechniqueSQL= Structure Query Language

Table of ContentsPage No.1. Cover page i2. Title pageii3. VIVA VOCE SHEETiii4. Certificate Supervisoriv5. Certificate From University SC 1v6. Certificate From University SC 1vi7. Declarationvii8. Acknowledgementviii9. Abstractix10. List of Tables x11. List of Figuresx12. Abbreviationxi13. Table of Contentxii-xiii14. Chaptersxiv1. Introduction12. Scope And Objectives 23. Theoretical Background34. Definition of Problem75. Feasibility Study 85.1 Economic Feasibility 5.2 Technical Feasibility5.3 Behavioral Feasibility 5.4 Time Feasibility 6. System Planning 106.1. Gantt Chart7. Methodology Adopted 117.1. Project Methodology7.2. H/w and s/w Requirement8. Life cycle of the project 168.1. System Architecture overview8.1.1. ER diagram8.1.2. Data Flow Diagram8.1.3. System Flow Chart8.2. Testing Methods 248.2.1. Coding Tools8.2.1.1. Back End Tools8.2.1.2. Front End Tools8.2.2. Testing Cases9. Data Dictionary 2610. Detail of the project with snapshot and codes 3211. User Operation Manual 9211.1. Support and Maintenance11.2. Future Scope11.3. Backup and Recovery11.4. Security15. Conclusion & Recommendationxvi16. BibliographyxviiAppendices

iii

CHAPTER 1 INTRODUCTION

The School Management System is a dynamic platform which allows educational institutions to manage their whole organization. It nurtures the interaction between school, teachers, students and parents in a most effective way. The School Management System provides an innovative solution for Todays school record-keeping challenges. The School Management System will replace the paper-based data collection and information exchange system among the various departments of a particular school. School Management System capabilities include the basics such as Admission, Account, attendance, and discipline as well as many other specialized capabilities. School Management System has most of the facilities that a modern school requires to computerize its day-to-day jobs. School Management System provides facilities to keep the records of student, fees, teaching and non-teaching staff with all their required details along with all required transaction handling. It has facilities to generate various types of reports, which are required by the management during normal business operations to operate the business effectively.

CHAPTER 2 Scope and Objectives

ScopeThe main scope of the application is that it is specially designed for the School or institutes which wants to handle their entire task computerized. This application may not meet the use requirements of other type of firms but surely meet some of the facility for those firm owners whose organizational structure is some sort similar to the School. Help in day to day execution of the School Help in managing the cost flow Help in analyzing the status of the organization Help to understand the flow of organization Help in analyzing the status of the organizationOBJECTIVEThis application is based on visual studio 2008 as front end software and Sql server 2008 R2 as backend software. We will insert the data and view the data on the visual studio platform from where all the data are saved on oracle and as well extracted from the oracle at the time of viewing the report.1. To keep daily records.1. Reduces the overall cost and work time of existing system.1. To know the true income of the organization.1. To analysis the current stat.1. For analysis the flow of the organization1. To make the user technology friendly1. To remove the paper based system CHAPTER 3 Theoretical Background

As I have planned to make the mini project regarding School Management System. I have theoretically designed the project in the notebook.My project has 19 tables which are:-1. tblBackup 11. tblEmployee2. tblExam 12. tblfee3. tblIssue 13. tblLBooks4. tblLCategory 14. tblLibraryFine5. tblLogin 15. tblLShell6. tblLUser 16. tblParents7. tblPayroll 17. tblPrevSchool8. tblProgramme 18. tblRegAccount9. tblRoot 19. tblStudent10. tblTeacher School Management system. This project will handle whole the activities of the school. School Management System has most of the facilities that a modern schoolRequires computerizing its day-to-day jobs. It provides facilities to keep the records of student, fees, teaching and non-teaching staff with all their required details along with all required transaction handling. It has facilities to generate various types of reports, which are required by the management during normal business operations to operate the business effectively..

Requirement analysis Requirement analysis is very first phrasing of system development cycle it is the process of collection user requirement the system requirement for the system which we are going to develop. The quality and the function is completely depend on the requirement collection so it must be captured correctly and efficiently .the result of requirement analysis must cover each and every small to small requirement of the system which we are going to develop.There is various method of requirement analysis but this system use only these methods of requirement capture Questionnaires Study existing system Web surfing

Sample Questionnaires 1:- Give little information about your organization and your objective? This is simply school where we teach the student from playgroup to class 10. This gets the huge success just because of our success many students want to take admission in our school so it is very difficult to handle our school in traditional way so our main objective is to fully upgrade our school and made it digital as much as possible.

2:- Do you use any software or system before for any sector or operations of your organizations? Yes we use a Local Accounting System for accounting operations of our organizations.

3:-So do you want to use old system for Accounting Operations or you want to embed this System in New developed System? Old System Is Not So user Friendly So I Want to embed this facility in new developing system.

4:-Which Which Module Do you want in your System? I want that the new System can handle almost all sector of this school which is possible so I want these modules:-a. Admission Moduleb. Student Management Modulec. Employ Management Moduled. Library Management Modulee. Attendance Modulef. Transportation And stock Management Module etc

5:-Who is going to use this System and how they need to be authenticate? Various users are going to use this system of this organization so the user need to be authenticate according to their user type. And user can only do the task which is predefined to him or her.

6:- Do you want any other facilities in your system? Yes I want mail sending and database backup and restore facility with user friendly environment.

Study Existing System In this process I found that the current system is paper based except accounting system and the current system has various problems some major problems in current system are as follow.

Problems Paper Based (currently the school system is paper based and unmanaged) Difficult(Because of paper based this system is difficult to Manage) Costly(Current System Is costly) Slow

Web SurfingFor analysis process I have done Google and visit as many pre develop system so I can find the problem while developing this system and also find If I forget something and it really helps me lot for developing the system.

CHAPTER 4 Definition of Problem

PROBLEM ON CURRENT SYSTEM The current system is very time consuming. It is very difficult to Manage and Control School Manually. To take Static decision is very difficult because it is very difficult to analyze the status in old System which is Become More easy by using current School Management System Search different Information is Very difficult and time Consuming. The chances of Data losses Due to different Factors Result processing takes more time as it is done manually OBJECTIVE CURRENT SYSTEM

To change the paper based Record Keeping system It reduces the overall cost and work time of existing system. To made the School Handling And Managing system effective To generate effective and fast result. Features of Purposed SystemThe purposed System has following features In comparison to the present system the proposed system will be less time consuming and is more efficient. Manages and Control School will be very easy in proposed system as it is automated Decision Process is very effective because the Manager can access and analyze the Records (old) easily. The proposed system is very secure and Fast CHAPTER 5 Feasibility Study

The feasibility study is done when the final decision is taken about the development of the system. Once we finish the decision analysis phase we do feasibility study to determine whether at the given condition the project will be successful or not. Both the parties, the user of the system and the developer do the feasibility analysis.ECONOMIC FEASIBILITYEconomic analysis is most frequently used for evaluation of the effectiveness of the system. More commonly known as cost/benefit analysis the procedure is to determine the benefit and saving that are expected from a system and compare them with costs, decisions is made to design and Implement the system.This part of feasibility study gives the top management the economic justification for the new system. This is an important input to the management the management, because very often the top management does not like to get confounded by the various technicalities that bound to beAssociated with a project of this kind. A simple economic analysis that gives the actual comparison of costs and benefits is much more meaningful in such cases.In the system, the organization is most satisfied by economic feasibility. Because, if the organization implements this system, it need not require any additional hardware resources as well as it will be saving lot of time.TECHNICAL FEASIBILITYTechnical feasibility centers on the existing manual system of the test management process and to what extent it can support the system. According to feasibility analysis procedure the technical feasibility of the system is analyzed and the technical requirements such as software facilities,Procedure, inputs are identified. It is also one of the important phases of the system development activities.The system offers greater levels of user friendliness combined with greater processing speed. Therefore, the cost of maintenance can be reduced. Since, processing speed is very high and the work is reduced in the maintenance point of view management convince that the project is operationally feasible.BEHAVIOURAL FEASIBILITYPeople are inherently resistant to change and computer has been known to facilitate changes. An estimate should be made of how strong the user is likely to move towards the development of computerized system. These are various levels of users in order to ensure proper authentication and authorization and security of sensitive data of the organization.TIME FEASIBILITYTime plays very important roles in project development system. According to feasibility analysis procedure the time feasibility of the system is analyzed and the technical time for developing the software. It is also one of the important phases of the system development activities.The system takes the market and count as effective system if and if only the proper system is developed in the proper time. Since, we have enough time for developing this software so the project is Time feasibility

CHAPTER 6 System Planning

I used Gantt chart in this system for actually for planning the System

Gantt chart

CHAPTER 7 Methodology Adopted

Waterfall Model is one of the most widely used Software Development Process. It is also called as "Linear Sequential model" or the "classic life cycle" or iterative model. It is widely used in the commercial development projects. It is called so because here, we move to next phase (step) after getting input from previous phase, like in a waterfall, water flows down to from the upper steps.

AnalysisAll possible requirements of the system to be developed are captured in this phase. Requirements are a set of functions and constraints that the end user (who will be using the system) expects from the system. The requirements are gathered from the end user at the start of the software development phase. These requirements are analyzed for their validity, and the possibility of incorporating the requirements in the system to be developed is also studied. Finally, a requirement specification document is created which serves the purpose of guideline for the next phase of the modelDesignBefore starting the actual coding phase, it is highly important to understand the requirements of the end user and also have an idea of how should the end product looks like. The requirement specifications from the first phase are studied in this phase and a system design is prepared. System design helps in specifying hardware and system requirements and also helps in defining the overall system architecture. CodingIt is the phase where the logical diagram is designed into the machine readable format in order to run the system. There are different programming tools but I have used visual basic for codingTestingAs specified above, the system is first divided into units which are developed and tested for their functions. These units are integrated into a complete system during integration phase and tested to check if all modules/units coordinate with each other, and the system as a whole behaves as per the specifications. After successfully testing the software, it is delivered to the Customer.

TEST STRATEGIES There are several different testing methodologies that can be applied to the software, some of these are:White box testing is a test strategy designed to test internal code structures to ensure that branch statements are all correct, loop execute the correct number of times and exit when they should. It specified internal bounds testing to locate untapped errors on interfaces and other coding elements to ensure that when data is used, even it is invalid it does interface with the operation of the application.Black box testing used to validate that the functions generate the correct output, tests include testing the input domain of the application, locate invalid values and ensure that are isolated and that failures do not occur due to certain input sequences.Bottom up integration testing involves testing each module from the lowest level moving up adding more modules, a test harness is build to facilitate each module as testing a number of modules divided into a cluster to ensure they work as a unit; clusters are gradually tested together or extended to include new modules until the entire application is tested.Debugging is the method of correcting faults once they are identified.Error Fault and Reliability This project has very good testing period. It is conducted while it is implemented. System development phase and implementation are goes parallel along with comments.Function Testing Functional testing is a type of black box testing that bases its test cases on the specifications of the software component under test. Functions are tested by feeding them input and examining the output, and internal program structure is rarely considered.Functional testing differs from system testing in that functional testing "verifies a program by checking it against ... design document or specification, while system testing "validate a program by checking it against the published user or system requirements" Validation Validation testing ensures that the program fits its basic specification; this involved ensuring the program can monitor a network host, CPU usage, memory usage, process/services states and the disk drives on the computer, the system passes these tests.Environment Testing This testing ensured that the API functions used in the application are compatible with both Windows NT and Windows XP and that application operated on both environments; this testing resulted in the process monitoring function.

This is the Sample test Report of this Project

MaintenanceThis phase of the model is virtually a never-ending phase. Generally, problems with the system developed (which are not found during the development life cycle) come up after its practical use starts, so the issues related to the system are solved after deployment of the system. Not all the problems come into picture directly but they arise from time to time and need to be solved.

Hardware Requirements:Processor: Pentium-Iv Memory: 1GB RAM RecommendedSecondary Disk Capacity: 160 GB or Higher

Software Requirements:

Operating System: Windows XP/7Front End: Microsoft Visual Basic .NET 2008Back End: Sql Server R2

Client Software Requirements:

Client can use this system if the client runs the following software Windows xp/7, .Net framework 3.5

CHAPTER 8 Life cycle of the project

System Architecture overview System architecture overview has following components:- Applies proven techniques from other building disciplines to the information technology world. Increase the business communitys confidence in the end product. Reduces the number of errors produced during the construction phase of the project. Establishes a testable basic before consuming development dollars. Improves the internal consistency of the working system.

A diagram is a two-dimensional geometric symbolic representation of information according to some visualization techniques. Sometimes, the techniques uses a three-dimensional visualization which is then project onto the two-dimensional surface. The word graph is sometimes used as a synonym for the diagram.The various diagrams regarding my project are as below:-8.1.1 ER Diagram:Entity Relationship Diagrams (ERDs) illustrate the logical structure of databases. An Entity Relationship Diagram is a piece of data-an object or concept about which data is stored.

Relationship Entity

Attribute Data Flow

A relationship is an association that exists between two entities. For example, Instructor teaches Class or Student attends Class. Most relationships can also be stated inversely. For example, Class is taught by Instructor.The relationships on an Entity-Relationship Diagram are represented by lines drawn between the entities involved in the association. The name of the relationship is placed either above, below, or beside the line.Library Er

ErStudent

Er School

8.1.3 Context Diagram

8.1.2 DFD (Data flow Diagram):A Data Flow Diagram (DFD) is a diagram that describes the flow of data and the processes that change or transform data throughout a system. Its a structured analysis and design tool that can be used for flowcharting in place of, or in association with, information oriented and process oriented system flowcharts. When analysts prepare the Data Flow Diagram, they specify the user needs at a level of detail that virtually determines the information flow into and out of the system and the required data resources. This network is constructed by using a set of symbols that do not imply a physical implementation. The Data Flow Diagram reviews the current physical system, prepares input and output specification, specifies the implementation plan etc.Four basic symbols are used to construct data flow diagrams. They are symbols that represent data source, data flows, and data transformations and data storage. The points at which data are transformed are represented by enclosed figures, usually circles, which are called nodes.

Data Flow Diagram Symbols:- Source or Destination of data Data Flow Process

Backup

School Management System Interface

Registration Administrative Employee

Report

DFD LEVEL 1

Student Data

AdministratorSchool managementsystemAdministrator

DFD LEVEL 2

Student Data

3.0 Tution FeeStudent1.0 Stu_data

Administrator

Fee Data

8.2.4 System Flow Chart

START

Read User Name and password & Password

Matching of Password

If Password AcceptedNo

Yes

SMS MDI Form

Processing and Manipulation of Various Records in School

EXIT

Testing Methods

8.2.1 Coding Tools

8.2.1.1 Back-End ToolsFor the database preparation of the project Sql Server R2 been used as database application program. In which all the data tables were designed and views were developed. 8.2.1.2 Front-End Tools For the efficient entry, save delete, update and various other operations on the data, user interface and report form has been designed in VB.net environment and same language has been used to developed method of data handling and Crystal Report is used for Reporting.

8.2.2 Testing And ResultSoftware testing is any activity aimed at evaluating an attribute or capability of a program or system and determining that it meets its required results. Although crucial to software quality and widely deployed by programmers and testers, software testing still remains an art, due to limited understanding of the principles of software. The difficulty in software testing stems from the complexity of software: we cannot completely test a program with moderate complexity. Testing is more than just debugging. The purpose of testing can be quality assurance, verification and validation, or reliability estimation. Testing can be used as a generic metric as well. Correctness testing and reliability testing are two major areas of testing. Software testing is a trade-off between budget, time and quality. After the test following Various Report Generated but Lets See the Login Test Report Of this system:

Sample Report For Login TestNOINPUT GIVENEXPECTED OUTPUTACTUAL OUTPUT OCCURED

1Bijay , poudelMain Page ShownMain Page Shown

2Bijay, bijayMain Page ShownInvalid password for user

3Bikash,poudelLibrary Form ShownInvalid password for user

4Bikash,poudelbikashLibrary Form ShownLibrary Page Shown

CHAPTER 9 Data Dictionary

tblFee:S.NoField nameData TypeDescription

1ClassTextStore The Class Which Fee Is To Be Paid

2AdmissionfeeMoneyStore Student Admission Fee Amount Of Defined Class

3reregistrationfeeMoneyStore Student Reregistration Fee Amount Of Defined Class

4monthlyfeeMoneyStore Student Monthly Fee Amount Of Defined Class

5LabfeeMoneyStore Student Lab Fee Amount Of Defined Class

6materialfeeMoneyStore Student Material Fee Amount Of Defined Class

7otherfeeMoneyStore Student Others Fee Amount Of Defined Class

tblBackup:

S.NoField nameData TypeDescription

1BackupDateDateStore Backup Date

2BackupTimeTextStore Backup Time

3BackupByTextStore The Person Who Is Creating Backup

tblLogin:S.NoField nameData TypeDescription

1UserTypeTextStore user type

2UserNameTextStore Login User Name

3PasswordTextStore Password

tblLShell:S.NoField nameData TypeDescription

1IdTextStore Shell Id

2NameTextStore Shell Name

tblLCategory:S.NoField nameData TypeDescription

1IdTextStore Category Id

2NameTextStore Category Name

tblExam:S.NoField nameData TypeDescription

1ClassNumericStores The Class For Which Exam IS Going To Heeled

2Exam NameTextStores The Name Of Exam

3StartDateDateStore Start Date Of Exam

4EndDateDateStore End Date Of Exam

5timeTextStore Time Of Exam

tblLibraryFine:S.NoField nameData TypeDescription

1TypeTextStores The Types Of Users

2DayNumericStores The Number Of Day

3FineMoneyStore The Fine Amount

tblRoot:S.NoField nameData TypeDescription

1RootIDNumericStores The Root Id

2CurrentRouteTextStores The Current Root

3VicleNoTextStore The Vile Number

4FromTextStore The Start Of the Root

5TOTextStore Where The Root End

6StudentCarryNumericStore Number of student Carry By Vicle

7ChargeMoneyStore The Root Charge Per Student

9DriverTextStore Driver of VIche Of Current Root

tblRegAccount:S.NoField nameData TypeDescription

1User TypeTextStores Types Of Users

2MaximumTimeNumericStores The Maximum Time

3IssuableBooksNumericStores The Maximum Issuable Books

4RegChargeMoneyStore The Registration Charge Of Library

tblIssue:S.NoField nameData TypeDescription

1BookNoTextStores The Book No Which is Going To Issue

2CardNoTextStores The User Card No Who is Going To Issue Books

3IssueDateDateStore The Issue Date

4ReturnDateDateStore The Return Date

5IssueCountNumericStore The Issue Count

tblLuser:S.NoField nameData TypeDescription

1RegNoTextStores The User Registration Number

2CardNoTextStores The User Card Number

3NameTextStore The Name Of User

4TypeTextStore The Type Of User

5ContactTextStore The Contact Number Of User

6MailAdress TextStore The Email Address of User

7TmpAdressTextStore The Temporary Address Of User

8ParAdressTextStore The Permanent Address of Users

9StatusTextStore The Status Of Users

tblParents:S.NoField nameData TypeDescription

1RegNoTextStores The Registration No Of Parents

2StudentNameTextStores The Student Name

3FatherNameTextStore The Father Name

4OfficePhonTextStore The Office Phone Number Of Parents

5CellPhonTextStore The Cell Phone Number Of Parents

6TelNoTextStore The Tele Phone Number Of Parents

7AdressTextStore The Address Of Parents

tblProgramme:S.NoField nameData TypeDescription

1Programme IdTextStore The Programme Id

2ProgrammeNameTextStore The Programme Name

3For WTextStore That for whom the programme is created

4ClassTextStore That for which class the programme is created

5StartDateDateStore The Start Date of programme

6EndDateDateStore The End Date of programme

7DetailsTextStore The Details Of Programme

tblPrevSchool:S.NoField nameData TypeDescription

1User TypeTextStore The User Type

2Reg NoTextStore The Registration Number of User

3SchoolTextStore The Previous School Name

4AdressTextStore The Previous School Adress

5PhonTextStore The Previous School phone Number

6ReasonTextStore The Reason Of left Prev School

tblLBooks:S.NoField nameData TypeDescription

1Book NoTextStore The Books No

2BookIdTextStore The Books Id

3NameTextStore The Books Name

4DateDateStore The Entry Date Of Books

5CategoryTextStore The Category Of Books

6ShellTextStore The In Which Shell Is The Books Kept

7SubjectTextStores The Info That Which Subject The Books Belongs

8AuthorTextStores The Author Of The Books

9PublicationTextStores The Publication Of The Books

10EditionTextStores The Edition Of The Books

11StatusTextStores The Status Of The Books

tblEmployee:S.NoField nameData TypeDescription

1RegNoTextStores The Registration Number Of Employee

2PostTextStores The Post Of Employee

3NameTextStores The Name Of Employee

4UNameTextStores The Login UserName Of Employee

5DOJDateStores The Date Of Join Of Employee

6ShiftTextStores The Shift That Employee Works

7Registered ByTextStores The info of Employee Who Registered The Employee

8Current StatusTextStores The Current Status Of Employee

9TitleTextStores The Title Of Employee

10FullNameTextStores The Full Name Of Employee

11GenderTextStores The Gender Of Employee

12AgeNumericStores The Age Of Employee

13ContactNoTextStores The Contact No Of Employee

14NationalityTextStores The Nationality Of Employee

15ReligionTextStores The Religion Of Employee

16MaritialStatusTextStores The Marital Status Of Employee

17DOBDateStores The Date Of Birth Of Employee

18MailAddressTextStores The Mail Address Of Employee

19AddressTextStores The Address Of Employee

tblTeacher:S.NoField nameData TypeDescription

1RegNoTextStores The Registration Number Of Teacher

2SubjectTextStores The Subjects Teacher Teaches

3NameTextStores The Name Of Teacher

4DOJDateStores The Date Of Join Of Teacher

5ShiftTextStores The Shift That Teacher Works

6Registered ByTextStores The info of Employee Who Registered The Teacher

7Current StatusTextStores The Current Status Of Teacher

8TitleTextStores The Title Of Teacher

9FullNameTextStores The Full Name Of Teacher

10GenderTextStores The Gender Of Teacher

11AgeNumericStores The Age Of Teacher

12ContactNoTextStores The Contact No Of Teacher

13NationalityTextStores The Nationality Of Teacher

14ReligionTextStores The Religion Of Teacher

15MaritialStatusTextStores The Marital Status Of Teacher

16DOBDateStores The Date Of Birth Of Teacher

17MailAddressTextStores The Mail Address Of Teacher

18AddressTextStores The Address Of Teacher

tblStudent:S.NoField nameData TypeDescription

1RegNoTextStores The Registration Number Of Student

2NameTextStores The Name Of Student

3ClassTextStores The Class Of Student

4AgeTextStores The Age Of Student

5GenderTextStores The Gender Of Student

6Current StatusTextStores The Current Status Of Student

7AddressTextStores The Address Of Student

8ContactNoTextStores The Contact No Of Student

9DOBDateStores The Date Of Birth Of Student

10TransportationTextStores The Info That Student Used Transportation Or Not

11ScholorshipTextStores The Info About Scholarship Of Student

12MailAddressTextStores The Mail Address Of Student

13AdmitdateDateStores The Date Of Admission Of Student

14Registered ByTextStores The info of Employee Who Registered The Student

CHAPTER 9 Detail of the project with snapshot and codes

Modules:-GlobalConnectionusing System;using System.Data;using System.Data.SqlClient;using System.Collections.Generic;using System.Windows.Forms;using System.Linq;using System.Text;

namespace MySchool{ public class GlobalConnection { public static String UserName; public SqlConnection con; public SqlCommand cmd; public SqlCommand cmd1; public SqlCommand cmd2; public static SqlDataAdapter da; public static SqlDataReader dr; public static DataSet ds; public static String sqlstr; public String str; public String procName; public SqlParameter[] prm; public String str1; public String str2; public void publicon() { sqlstr = @"Data Source=BIJAY-PC\SQLEXPRESS;Initial Catalog=SchoolDatabase;UID=sa;PWD=poudel"; try { con = new SqlConnection(sqlstr); con.Open(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } public void ExecuteNonQuery( ) { try { cmd = new SqlCommand(); cmd.Connection = con; cmd.CommandText = procName; cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.AddRange(prm); try { if (con.State != ConnectionState.Open) { con.Open(); }

cmd.ExecuteNonQuery(); } catch { throw; } } catch (Exception ex) { MessageBox.Show(ex.Message); } } public void OPerationTrail() { try { cmd = new SqlCommand(str, con); cmd1 = new SqlCommand(str1, con); cmd2 = new SqlCommand(str2, con); cmd.ExecuteNonQuery(); cmd1.ExecuteNonQuery(); cmd2.ExecuteNonQuery(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } public void OPerationDual() { try { cmd = new SqlCommand(str,con); cmd1 = new SqlCommand(str1,con); cmd.ExecuteNonQuery(); cmd1.ExecuteNonQuery(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } public void OPeration() { try { cmd = new SqlCommand(str, con); cmd.ExecuteNonQuery(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } public void getMax() { try { cmd = new SqlCommand(str, con); cmd.ExecuteNonQuery(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } public void AutoNumberRowsForGridView(DataGridView dgv) {

if (dgv != null) {

for (int count = 0; (count 96 && e.KeyChar < 123) || e.KeyChar == 8 || e.KeyChar == 46|| c == 32 ) return; e.Handled = true; } else if (ct is TextBox) { char c = e.KeyChar; if ((e.KeyChar > 64 && e.KeyChar < 91) || (e.KeyChar > 96 && e.KeyChar < 123) || e.KeyChar == 8 || e.KeyChar == 46|| c == 32 ) return; e.Handled = true; } } #endregion

#region CheckBlank // This Check if the Field is Blank or Not public bool checkBlank(Control ct) { foreach (Control x in ct.Controls) { checkBlank(x); if (x is MaskedTextBox && x.Enabled == true) { if (x.Text == "") { return true; //MessageBox.Show(x.Name + "couldnot be blank"); //break; } } if (x is TextBox && x.Enabled == true) { if (x.Text == "") { return true; //MessageBox.Show(x.Name + "couldnot be blank"); // break; } } } return false; } #endregion

#region ClearControl // This Clear the control public void clear(Control ct) { foreach (Control x in ct.Controls) { clear(x); if (x is MaskedTextBox && x.Enabled == true) { x.Text = " "; } if (x is TextBox && x.Enabled == true) { x.Text = " "; } }

} #endregion

#region TextCheck // This Checks if the enter value is Text or not internal static void IsText(Control ct) { foreach (Control x in ct.Controls) { IsText(x); if (x is MaskedTextBox && x.Enabled == true) { try { if (System.Text.RegularExpressions.Regex.IsMatch(x.Text, "^[a-zA-Z]+$")) { } else { x.Text = x.Text.Remove(x.Text.Length - 1); MessageBox.Show("Enter only Alphabets"); } } catch (FormatException) { MessageBox.Show("Enter only Alphabets"); } } if (x is TextBox && x.Enabled == true) { try { if (System.Text.RegularExpressions.Regex.IsMatch(x.Text, "^[a-zA-Z]+$")) { } else { x.Text = x.Text.Remove(x.Text.Length - 1); MessageBox.Show("Enter only Alphabets"); } } catch (FormatException) { MessageBox.Show("Enter only Alphabets"); } } }

} #endregion

#region NumericCheck // This Checks if the enter value is Numeric or not internal static void IsNumeric(Control ct) { foreach (Control x in ct.Controls) { IsNumeric(x); if (x is MaskedTextBox && x.Enabled == true) { try { int numeric = int.Parse(x.Text);

if (numeric 96 && e.KeyChar < 123) || e.KeyChar == 8 || e.KeyChar == 46|| c == 32 ) return; e.Handled = true; } else if (ct is TextBox) { char c = e.KeyChar; if ((e.KeyChar > 64 && e.KeyChar < 91) || (e.KeyChar > 96 && e.KeyChar < 123) || e.KeyChar == 8 || e.KeyChar == 46|| c == 32 ) return; e.Handled = true; } } #endregion

#region CheckBlank // This Check if the Field is Blank or Not public bool checkBlank(Control ct) { foreach (Control x in ct.Controls) { checkBlank(x); if (x is MaskedTextBox && x.Enabled == true) { if (x.Text == "") { return true; //MessageBox.Show(x.Name + "couldnot be blank"); //break; } } if (x is TextBox && x.Enabled == true) { if (x.Text == "") { return true; //MessageBox.Show(x.Name + "couldnot be blank"); // break; } } } return false; } #endregion

#region ClearControl // This Clear the control public void clear(Control ct) { foreach (Control x in ct.Controls) { clear(x); if (x is MaskedTextBox && x.Enabled == true) { x.Text = " "; } if (x is TextBox && x.Enabled == true) { x.Text = " "; } }

} #endregion

#region TextCheck // This Checks if the enter value is Text or not internal static void IsText(Control ct) { foreach (Control x in ct.Controls) { IsText(x); if (x is MaskedTextBox && x.Enabled == true) { try { if (System.Text.RegularExpressions.Regex.IsMatch(x.Text, "^[a-zA-Z]+$")) { } else { x.Text = x.Text.Remove(x.Text.Length - 1); MessageBox.Show("Enter only Alphabets"); } } catch (FormatException) { MessageBox.Show("Enter only Alphabets"); } } if (x is TextBox && x.Enabled == true) { try { if (System.Text.RegularExpressions.Regex.IsMatch(x.Text, "^[a-zA-Z]+$")) { } else { x.Text = x.Text.Remove(x.Text.Length - 1); MessageBox.Show("Enter only Alphabets"); } } catch (FormatException) { MessageBox.Show("Enter only Alphabets"); } } }

} #endregion

#region NumericCheck // This Checks if the enter value is Numeric or not internal static void IsNumeric(Control ct) { foreach (Control x in ct.Controls) { IsNumeric(x); if (x is MaskedTextBox && x.Enabled == true) { try { int numeric = int.Parse(x.Text);

if (numeric 0) { System.IO.Directory.CreateDirectory(MasterPath + @"\SchoolBackup"); G.publicon(); try { string str = "BACKUP DATABASE SMSDB TO DISK = '" + MasterPath + @"\SchoolBackup" + "\\SMSDB.bak" + "'"; G.str = str; G.OPeration(); MessageBox.Show("Backup Sucessfully"); } catch(Exception ex) { MessageBox.Show(ex.Message); } } else { MessageBox.Show("wrong Length"); } } public void Restore() { if (txtRestorePath.Text.Length > 0) { G.publicon(); try { string str = "USE master RESTORE DATABASE [SMSDB] FROM DISK = '" + path + "'"; G.str = str; // G.OPeration(); MessageBox.Show("Restore Sucessfully"); } catch(Exception ex) { MessageBox.Show(ex.Message); } } else { MessageBox.Show("WrongLength");

} } private void btnBrowse_Click(object sender, EventArgs e) { FolderBrowserDialog browse = new FolderBrowserDialog(); if (browse.ShowDialog() == DialogResult.OK) { MasterPath = browse.SelectedPath; txtBackuppath.Text = MasterPath; } }

private void btnBrowse2_Click(object sender, EventArgs e) { OpenFileDialog op = new OpenFileDialog(); op.Filter = "Restore File (*.bak) |*.bak"; if (op.ShowDialog() == DialogResult.OK) { txtRestorePath.Text = op.FileName; path = op.FileName; } } private void txtBackuppath_TextChanged(object sender, EventArgs e) { if (txtRestorePath.Text == null) { lblConform.Text = "Backup"; } }

private void txtRestorePath_TextChanged(object sender, EventArgs e) { if (txtBackuppath.Text == null) { lblConform.Text = "Restore"; } else { //MessageBox.Show("Only Backup Or Restore Can be Done at a Time"); txtRestorePath.Clear(); } } }}Frm Browsers

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;

namespace MySchool{ public partial class frmBrowser : Form { private WebBrowser[] browser = new WebBrowser[50]; private int browser_index = 0; public frmBrowser() { InitializeComponent(); }

private void frmBrowser_Load(object sender, EventArgs e) { TabPage mainPage = new TabPage("Google"); browser[browser_index] = new WebBrowser(); browser[browser_index].Dock = DockStyle.Fill; browser[browser_index].Navigate("www.google.com"); mainPage.Controls.Add(browser[browser_index]); this.tabControl.TabPages.Add(mainPage);

}

private void txtUrl_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { browser[tabControl.SelectedIndex].Navigate(txtUrl.Text); browser[tabControl.SelectedIndex].DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(frmBrowser_DocumentCompleted); browser[tabControl.SelectedIndex].ProgressChanged += new WebBrowserProgressChangedEventHandler(frmBrowser_ProgressChanged); } }

void frmBrowser_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e) { int current_progress = Convert.ToInt32(e.CurrentProgress); int total_progress = Convert.ToInt32(e.MaximumProgress); this.progressBar.Value = (current_progress / total_progress) * 100; }

void frmBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { this.tabControl.SelectedTab.Text = browser[tabControl.SelectedIndex].DocumentTitle; }

private void newTabToolStripMenuItem_Click(object sender, EventArgs e) { AddNewTab(); }

private void btnBack_Click(object sender, EventArgs e) { browser[browser_index].GoBack(); }

private void btnForward_Click(object sender, EventArgs e) { browser[browser_index].GoForward(); }

private void btnRefresh_Click_1(object sender, EventArgs e) { browser[browser_index].Refresh(); }

private void btnStop_Click(object sender, EventArgs e) { browser[browser_index].Stop(); }

private void newWindowToolStripMenuItem_Click(object sender, EventArgs e) { frmBrowser newBrowserWindow = new frmBrowser(); newBrowserWindow.Show(); }

private void exitToolStripMenuItem_Click(object sender, EventArgs e) {

this.Close(); this.Dispose(); }

public void AddNewTab() { browser_index++; TabPage newTabPage = new TabPage("Untitled"); browser[browser_index] = new WebBrowser(); browser[browser_index].Dock = DockStyle.Fill; browser[browser_index].Navigate("www.google.com"); newTabPage.Controls.Add(browser[browser_index]); this.tabControl.TabPages.Add(newTabPage); this.tabControl.SelectTab(newTabPage); } public void DeleteTab() { tabControl.TabPages.Remove(tabControl.SelectedTab); }

private void button1_Click(object sender, EventArgs e) { AddNewTab(); }

private void button2_Click(object sender, EventArgs e) { this.Close(); }

private void button3_Click(object sender, EventArgs e) { DeleteTab(); } }}LOGIN MAIL

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;

namespace MySchool{ public partial class LoginMail : Form { public LoginMail() { InitializeComponent(); } private void btnSubmit_Click(object sender, EventArgs e) { frmSendMail s = new frmSendMail(); s.txtFrom.Text = txtUsername.Text; s.lblPassword.Text = txtPassword.Text; s.lblhost.Text = comboBox1.Text; s.Show(); }

private void btnCancel_Click(object sender, EventArgs e) { this.Close(); } }}FRM SENDMAIL

using System;using System.IO;using System.Net.Mail;using System.Net;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;

namespace MySchool{ public partial class frmSendMail : Form { string attachfilepatch; public frmSendMail() { InitializeComponent(); }

private void SendMail_Load(object sender, EventArgs e) { LoginMail L = new LoginMail(); L.Show(); }

private void btnSend_Click(object sender, EventArgs e) { SmtpClient client = new SmtpClient(); client.Port = 587; client.Host = lblhost.Text; client.EnableSsl = true; client.Timeout = 1000; client.DeliveryMethod = SmtpDeliveryMethod.Network; client.UseDefaultCredentials = false; client.Credentials = new System.Net.NetworkCredential(txtFrom.Text, lblPassword.Text); ; MailMessage mail = new MailMessage(); mail.From = new MailAddress(txtFrom.Text); mail.To.Add(txtTo.Text); mail.Subject = txtSubject.Text; mail.Body = htmlBody.Text; try { client.Send(mail); MessageBox.Show("Sucessfully Send"); } catch (SmtpException e1) { MessageBox.Show(e1.Message); } }

private void lklAttach_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (openFileDialog1.ShowDialog() == DialogResult.OK) { attachfilepatch = openFileDialog1.FileName; FileInfo file = new FileInfo(attachfilepatch); lklAttach.Text = file.Name + " " + (file.Length / 1024).ToString("N0") + " KB"; } } }}

FRM MAIN

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;

namespace MySchool{ public partial class Main : Form { private int childFormNumber = 0;

public Main() { InitializeComponent(); }

private void Main_Load(object sender, EventArgs e) { panel1.Width = this.Width; } private void button1_Click(object sender, EventArgs e) {

Event_And_Programs frm = new Event_And_Programs(); frm.Visible = true; frm.Dock = DockStyle.Fill; panel3.Controls.Clear(); panel3.Controls.Add(frm); }

private void button2_Click(object sender, EventArgs e) { frmBrowser frm = new frmBrowser(); frm.Visible = true; frm.Dock = DockStyle.Fill; }

private void button3_Click(object sender, EventArgs e) { Transportation frm = new Transportation(); frm.Visible = true; frm.Dock = DockStyle.Fill; panel3.Controls.Clear(); panel3.Controls.Add(frm); }

private void button4_Click(object sender, EventArgs e) {

Student frm = new Student(); frm.Visible = true; frm.Dock = DockStyle.Fill; panel3.Controls.Clear(); panel3.Controls.Add(frm); }

private void button9_Click(object sender, EventArgs e) {

Classes frm = new Classes(); frm.Visible = true; frm.Dock = DockStyle.Fill; panel3.Controls.Clear(); panel3.Controls.Add(frm); }

private void button7_Click(object sender, EventArgs e) { Employee frm = new Employee(); frm.Visible = true; frm.Dock = DockStyle.Fill; panel3.Controls.Clear(); panel3.Controls.Add(frm); }

private void button6_Click(object sender, EventArgs e) {

Teacher frm = new Teacher(); frm.Visible = true; frm.Dock = DockStyle.Fill; panel3.Controls.Clear(); panel3.Controls.Add(frm); }

private void button8_Click(object sender, EventArgs e) { Exam frm = new Exam(); frm.Visible = true; frm.Dock = DockStyle.Fill; panel3.Controls.Clear(); panel3.Controls.Add(frm); }

private void button11_Click(object sender, EventArgs e) { Stocks frm = new Stocks(); frm.Visible = true; frm.Dock = DockStyle.Fill; panel3.Controls.Clear(); panel3.Controls.Add(frm); }

private void button12_Click(object sender, EventArgs e) { Login l = new Login(); l.Show(); this.Close(); }

private void button13_Click(object sender, EventArgs e) { frmBackupandRestore fb = new frmBackupandRestore(); fb.Show(); } }}

FRM LIBRARY

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;

namespace MySchool{ public partial class Library : Form { private int childFormNumber = 0;

public Library() { InitializeComponent(); }

private void btnUser_Click(object sender, EventArgs e) { Users frm = new Users(); frm.Visible = true; frm.Dock = DockStyle.Fill; panel2.Controls.Clear(); panel2.Controls.Add(frm); }

private void btnSetting_Click(object sender, EventArgs e) { Setting_And_Management frm = new Setting_And_Management(); frm.Visible = true; frm.Dock = DockStyle.Fill; panel2.Controls.Clear(); panel2.Controls.Add(frm); }

private void btnBooks_Click(object sender, EventArgs e) {

LibraryBooks frm = new LibraryBooks(); frm.Visible = true; frm.Dock = DockStyle.Fill; panel2.Controls.Clear(); panel2.Controls.Add(frm); } private void button4_Click(object sender, EventArgs e) { Login l = new Login(); l.Show(); this.Close(); }

private void button1_Click(object sender, EventArgs e) { frmBackupandRestore fb = new frmBackupandRestore(); fb.Show();

} }}

CONTROLSLIBRARY BOOKS

using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Windows.Forms;

namespace MySchool{ public partial class LibraryBooks : UserControl { BooksOperation Bo = new BooksOperation(); public LibraryBooks() { InitializeComponent(); }

private void btnDispose_Click(object sender, EventArgs e) { Bo.DeleteBook(txtDBid.Text); }

private void btnAddBooks_Click(object sender, EventArgs e) { Bo.AddBooks(txtBookNum.Text, txtBookId.Text, txtName.Text, txtDate.Text, cbCategory.Text, cbShell.Text,txtSubject.Text, txtAuthor.Text, txtPublication.Text, txtEdition.Text,"Avaiable"); }

private void btnUpdateBooks_Click(object sender, EventArgs e) { Bo.UpdateBooks(txtBookNum.Text, txtBookId.Text, txtName.Text, txtDate.Text, cbCategory.Text, cbShell.Text, txtSubject.Text, txtAuthor.Text, txtPublication.Text, txtEdition.Text); }

private void btnDelete_Click(object sender, EventArgs e) { Bo.DeleteBook(txtBookNum.Text); }

private void btnIssue_Click(object sender, EventArgs e) { Bo.IssueBook(txtBookInformation.Text, txtCardNo.Text, txtIDate.Text, txtRDate.Text, lblIssueCount.Text); }

private void btnIssueNew_Click(object sender, EventArgs e) { tabControl1.SelectedTab = tbpPersonel; }

private void btnRenew_Click(object sender, EventArgs e) { Bo.IssueUpdate(RBNO.Text); } private void btnReturn_Click(object sender, EventArgs e) { Bo.IssueUpdate(RBNO.Text); } }}

LIBRARY USERS

using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Data.SqlClient;using System.Linq;using System.Text;using System.Windows.Forms;

namespace MySchool{ public partial class Users : UserControl { UserOperation UO = new UserOperation(); GlobalConnection G = new GlobalConnection(); Validation V = new Validation(); public Users() { InitializeComponent(); } private void lnkAddUser_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (txtId.Text== "" && txtCardNo.Text == "" && txtName.Text == "" && txtParAdress.Text == ""&& txtTmpAdress.Text=="") { MessageBox.Show("Blank fields are not allowed"); } else { UO.Add(txtId.Text, txtCardNo.Text, txtName.Text, txtType.Text, txtContactNO.Text, txtMailAdress.Text, txtTmpAdress.Text, txtParAdress.Text, "Avaiable"); V.clear(this); show(); } }

private void lnkUpdateUser_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { UO.Update(txtCardNo.Text, txtName.Text, txtType.Text, txtContactNO.Text, txtMailAdress.Text, txtTmpAdress.Text, txtParAdress.Text); }

private void lnkDeleteUser_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { UO.Deleteuser(txtCardNo.Text); }

private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { UO.Renew(txtCardNo.Text, "Avaiable"); }

private void Users_Load(object sender, EventArgs e) { show(); } public void show() { G.publicon(); SqlDataAdapter da = new SqlDataAdapter("select * from tblLUser", G.con); DataSet ds = new DataSet(); da.Fill(ds); grdStudent.DataSource = ds.Tables[0]; } private void btnBrowseOthers_Click(object sender, EventArgs e) { PictureBoxOperations Po = new PictureBoxOperations(); Po.PictureUpload(pbOthers); }

private void lnkViewUser_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { MySchool.Report.reportLibUser Rp = new MySchool.Report.reportLibUser(); Rp.Show(); } }}

SETTING AND MANAGEMENT

sing System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;

namespace MySchool{ public partial class Setting_And_Management : UserControl { GlobalConnection G = new GlobalConnection(); Management M = new Management(); CategoryAndShellOperations CSO = new CategoryAndShellOperations(); public Setting_And_Management() { InitializeComponent(); } private void btnScat_Click(object sender, EventArgs e) { CSO.AddCategory(txtCatID.Text, txtCatName.Text); Cands(); }

private void btnSshell_Click(object sender, EventArgs e) { CSO.AddShell(ShellId.Text, txtShellName.Text); Cands(); }

private void lnkShell_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { lblcid.Text = "Shell Id:"; lblName.Text = "Shell Name:"; tbCS.SelectedTab = tbShell; }

private void lnkCategory_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { lblcid.Text = "Cat Id:"; lblName.Text = "Cat Name:"; tbCS.SelectedTab = tbCategory; CSO.DisplayCat(); } private void btnUpdateShell_Click(object sender, EventArgs e) { CSO.UpdateShell(ShellId.Text, txtShellName.Text); }

private void btnDeleteShell_Click(object sender, EventArgs e) { CSO.DeleteShell(ShellId.Text); }

private void btnDelete_Click_1(object sender, EventArgs e) { CSO.DeleteCategory(txtCatID.Text); }

private void btnUpdateCategory_Click(object sender, EventArgs e) { CSO.UpdateCategory(txtCatID.Text, txtCatName.Text); }

private void btnSFine_Click(object sender, EventArgs e) { M.AddFine(lblType.Text,CbFT.Text, cbFPB.Text); } private void rbFS_CheckedChanged(object sender, EventArgs e) { lblType.Text = "Student"; }

private void rbFT_CheckedChanged(object sender, EventArgs e) { lblType.Text = "Teachers"; }

private void rbFO_CheckedChanged(object sender, EventArgs e) { lblType.Text = "Others"; }

private void btnUpdate_Click(object sender, EventArgs e) { M.UpdateFine(lblType.Text, CbFT.Text, cbFPB.Text); }

private void btnDeleteFine_Click(object sender, EventArgs e) { M.DeleteFine(lblType.Text); } private void btnbookinfoSave_Click(object sender, EventArgs e) { M.AddRegCharge(lblBitype.Text, txtMaxTime.Text, txtIBook.Text, txtRegCharge.Text); }

private void btnBookInfoUpdate_Click(object sender, EventArgs e) { M.UpdateRegCharge(lblBitype.Text, txtMaxTime.Text, txtIBook.Text, txtRegCharge.Text); }

private void btnBookInfoDelete_Click(object sender, EventArgs e) { M.deleteRegCharge(lblBitype.Text); }

private void btnRemoveBList_Click(object sender, EventArgs e) { M.RemoveBlacklist(txtId.Text); } private void Setting_And_Management_Load(object sender, EventArgs e) { bifo(); Cands(); }

public void Cands() { if (tbCS.SelectedTab == tbCategory) { G.publicon(); SqlDataAdapter da = new SqlDataAdapter("select * from tblLCategory", G.con); DataSet ds = new DataSet(); da.Fill(ds); grdCat.DataSource = ds.Tables[0];

} if (tbCS.SelectedTab == tbShell) { G.publicon(); SqlDataAdapter da = new SqlDataAdapter("select * from tblLShell", G.con); DataSet ds = new DataSet(); da.Fill(ds); grdShell.DataSource = ds.Tables[0]; } } public void bifo() { if (tabControl1.SelectedTab==tabPage1) { G.publicon(); SqlDataAdapter da = new SqlDataAdapter("select * from tblLibraryFine", G.con); DataSet ds = new DataSet(); da.Fill(ds); grdfine.DataSource = ds.Tables[0]; } else if (tabControl1.SelectedTab==tabPage3) { G.publicon(); SqlDataAdapter da = new SqlDataAdapter("select * from tblRegAccount", G.con); DataSet ds = new DataSet(); da.Fill(ds); grdBookinfo.DataSource = ds.Tables[0]; } }

private void tbCS_Selected(object sender, TabControlEventArgs e) { Cands(); } private void tabControl1_Selected(object sender, TabControlEventArgs e) { bifo(); }

private void lnkShellReport_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Report.repotShell r = new MySchool.Report.repotShell(); r.Show(); }

private void lnkCatReport_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Report.reportCate r = new MySchool.Report.reportCate(); r.Show(); } }}

CLASSES

using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Windows.Forms;

namespace MySchool{ public partial class Classes : UserControl { GlobalConnection G = new GlobalConnection(); public Classes() { InitializeComponent(); } private void Classes_Load(object sender, EventArgs e) { Bonous B = new Bonous(); B.MoneyText(txtAdmissionfee); B.MoneyText(txtlabfee); B.MoneyText(txtReregistrationfee); B.MoneyText(txtMeterialFee); B.MoneyText(txtotherfee); B.MoneyText(txtMonthlyfee);

}

private void txtSheetreserved_KeyPress(object sender, KeyPressEventArgs e) { char c = e.KeyChar; if ((Char.IsDigit(c) || c == 8) || c == 13 || c == 45 || c == 46) return; e.Handled = true; }

private void txtMaxStudent_KeyPress(object sender, KeyPressEventArgs e) { char c = e.KeyChar; if ((Char.IsDigit(c) || c == 8) || c == 13 || c == 45 || c == 46) return; e.Handled = true; }

private void txtminStudent_KeyPress(object sender, KeyPressEventArgs e) { char c = e.KeyChar; if ((Char.IsDigit(c) || c == 8) || c == 13 || c == 45 || c == 46) return; e.Handled = true; }

private void linkLabel5_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { G.publicon(); string str = "insert into tblfee values ('" +cmbClass.Text + "','" + txtAdmissionfee.Text + "' , '" + txtReregistrationfee.Text + "','" + txtMonthlyfee.Text + "','" +txtlabfee.Text + "' ,'" + txtMeterialFee.Text + "','" + txtotherfee.Text + "') "; G.str = str; G.OPeration(); } }}

EVENTS AND PROGRAMMEsing System;using System.Data.SqlClient;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Windows.Forms;

namespace MySchool{ public partial class Event_And_Programs : UserControl { GlobalConnection G = new GlobalConnection(); Validation v = new Validation(); public Event_And_Programs() { InitializeComponent(); } private void btnSave_Click(object sender, EventArgs e) { G.publicon(); string str = "insert into tblProgramme values ('" + programid.Text + "','" + programname.Text + "' , '" +status.Text + "','" + forw.Text+ "','" + Class.Text+ "' ,'" + startdate.Text + "','" + enddate.Text + "','" + richTextBox1.Text + "') "; G.str = str; G.OPeration(); v.clear(this); gridsh(); }

private void Event_And_Programs_Load(object sender, EventArgs e) { status.SelectedItem = "Active"; gridsh(); } public void gridsh() { G.publicon(); SqlDataAdapter da = new SqlDataAdapter("select * from tblProgramme", G.con); DataSet ds = new DataSet(); da.Fill(ds); grdStudent.DataSource = ds.Tables[0]; } private void btnUpdate_Click(object sender, EventArgs e)

{ G.publicon(); string str = "Update tblProgramme set programename='" + programname.Text + "' , Status='" + status.Text + "', forW='" + forw.Text + "' , class='" + Class.Text + "' , startDate='" + startdate.Text + "' , enddate='" + enddate.Text + "', Details='" + richTextBox1.Text + "' where ProgramId='" + programid.Text + " '"; G.str = str; G.OPeration(); gridsh(); v.clear(this); }

private void btnDelete_Click(object sender, EventArgs e) { G.publicon(); string str = "delete from tblProgramme where ProgramId='" + programid.Text + " '"; G.str = str; G.OPeration(); gridsh(); v.clear(this); }

private void lblrptprogramme_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { MySchool.Report.reportprogramme R = new MySchool.Report.reportprogramme(); R.Show(); }

private void txtSearchByName_TextChanged(object sender, EventArgs e) { if (txtSearchByName.Text == "") { gridsh(); } else { G.publicon(); SqlDataAdapter da = new SqlDataAdapter("select * from tblProgramme where ProgramId =('" + programid.Text + "')", G.con); DataSet ds = new DataSet(); da.Fill(ds); grdStudent.DataSource = ds.Tables[0]; } } }}

EXAM

using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Data.SqlClient;using System.Linq;using System.Text;using System.Windows.Forms;

namespace MySchool{ public partial class Exam : UserControl { Validation v = new Validation(); GlobalConnection G = new GlobalConnection(); public Exam() { InitializeComponent(); } private void Exam_Load(object sender, EventArgs e) { grd(); } public void grd() { G.publicon(); SqlDataAdapter da = new SqlDataAdapter("select * from tblExam", G.con); DataSet ds = new DataSet(); da.Fill(ds); grdStudent.DataSource = ds.Tables[0]; } private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { G.publicon(); string str = "insert into tblExam values ('" + cmbClass.Text + "','" + txtExam.Text + "' , '" + dtStart.Text + "','" + dtEnd.Text + "','" + txttime.Text + "' ) "; G.str = str; G.OPeration(); v.clear(this); grd(); }

private void linkLabel7_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { G.publicon(); string str = "Update tblExam set class='" + cmbClass.Text + "' , startdate='" + dtStart.Text + "', enddate='" + dtEnd.Text + "' , time='" + txttime.Text + "' where ExamName='" + txtExam.Text + " '"; G.str = str; G.OPeration(); } }}

TRANSPORTATION

using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Data.SqlClient;using System.Linq;using System.Text;using System.Windows.Forms;

namespace MySchool{ public partial class Transportation : UserControl { Validation v = new Validation(); GlobalConnection G = new GlobalConnection(); public Transportation() { InitializeComponent(); } private void lnkAddRoute_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { v.checkBlank(this); G.publicon(); string str = "insert into tblRoot values ('" +txtRootId.Text + "','" + txtCurrentRoute.Text + "' , '" + txtVicleNo.Text + "','" + txtfrom.Text + "','" + txtTo.Text + "' ,'" +txtStudentCarry.Text+ "','" + txtCharge.Text + "','" + txtDriver.Text + "') "; G.str = str; G.OPeration(); GridDis(); v.clear(this); }

private void Transportation_Load(object sender, EventArgs e) { Bonous B = new Bonous(); B.MoneyText(txtCharge); GridDis(); } public void GridDis() { G.publicon(); SqlDataAdapter da = new SqlDataAdapter("select * from tblRoot", G.con); DataSet ds = new DataSet(); da.Fill(ds); grdStudent.DataSource = ds.Tables[0]; }

private void lnkDeleteRoot_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { v.checkBlank(this); G.publicon(); string str = "delete from tblRoot where RootId='" + txtRootId.Text + " '"; G.str = str; G.OPeration(); GridDis(); v.clear(this); }

private void lnkUpdateRoot_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { v.checkBlank(this); G.publicon(); string str = "Update tblRoot set Currentroute='" + txtRootId.Text + "' , VicleNo='" + txtVicleNo.Text + "', From='" + txtfrom.Text + "' , To='" + txtTo.Text + "' , StudentCarry='" + txtStudentCarry.Text + "' , Charge='" + txtCharge.Text+ "', Driver='" + txtDriver.Text + "' where RootId='" + txtRootId.Text + " '"; G.str = str; G.OPeration(); GridDis(); v.clear(this); }

private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { MySchool.Report.reportRoot R = new MySchool.Report.reportRoot(); R.Show();

} }}

STUDENT

using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Data.SqlClient;using System.Windows.Forms;namespace MySchool{ public partial class Student : UserControl { GlobalConnection G = new GlobalConnection(); PictureBoxOperations po = new PictureBoxOperations(); public Student() { InitializeComponent(); } UsersTask ut = new UsersTask(); private void lnkAddStudent_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (txtRegNo.Text == "" && cmbClass.Text == "" && txtName.Text == "" && txtAge.Text == "" && cmbGender.Text == "" && txtAddress.Text == ""&& txtAddress.Text == "" && txtFather.Text == "" && txtResidenceAddress.Text == ""&& txtAdmittedBy.Text=="") { MessageBox.Show("Blank fields are not allowed"); } else{ ut.AddStudent(txtRegNo.Text, txtName.Text, cmbClass.Text, txtAge.Text, cmbGender.Text, cbStatus.Text, txtAddress.Text, txtPhone.Text, dtBirthDate.Text, cbTransportation.Text, txtScholorship.Text, txtEmail.Text, dtAdmissionDate.Text, txtAdmittedBy.Text, txtPrevSchool.Text, txtPrevSchoolAddress.Text, txtPrevSchoolPhone.Text, txtReasonForLeaving.Text, txtFather.Text, txtFatherOfficePhone.Text, txtFatherCellPhone.Text, txtResPhone.Text, txtResidenceAddress.Text); } } private void Student_Load(object sender, EventArgs e) { cbTransportation.SelectedItem = "No"; cbStatus.SelectedItem = "Active"; G.publicon(); SqlDataAdapter da = new SqlDataAdapter("select * from tblStudent", G.con); DataSet ds = new DataSet(); da.Fill(ds); grdStudent.DataSource = ds.Tables[0]; }

private void txtPhone_KeyPress(object sender, KeyPressEventArgs e) { char c = e.KeyChar; if ((Char.IsDigit(c) || c == 8) || c == 13 || c == 45 || c == 46) return; e.Handled = true; }

private void txtAge_KeyPress(object sender, KeyPressEventArgs e) { char c = e.KeyChar; if ((Char.IsDigit(c) || c == 8) || c == 13 || c == 45 || c == 46) return; e.Handled = true; }

private void txtFatherOfficePhone_KeyPress(object sender, KeyPressEventArgs e) { char c = e.KeyChar; if ((Char.IsDigit(c) || c == 8) || c == 13 || c == 45 || c == 46) return; e.Handled = true; }

private void txtFatherCellPhone_KeyPress(object sender, KeyPressEventArgs e) { char c = e.KeyChar; if ((Char.IsDigit(c) || c == 8) || c == 13 || c == 45 || c == 46) return; e.Handled = true; }

private void txtResPhone_KeyPress(object sender, KeyPressEventArgs e) { char c = e.KeyChar; if ((Char.IsDigit(c) || c == 8) || c == 13 || c == 45 || c == 46) return; e.Handled = true; }

private void txtPrevSchoolPhone_KeyPress(object sender, KeyPressEventArgs e) { char c = e.KeyChar; if ((Char.IsDigit(c) || c == 8) || c == 13 || c == 45 || c == 46) return; e.Handled = true; }

private void txtScholorship_KeyPress(object sender, KeyPressEventArgs e) { char c = e.KeyChar; if ((Char.IsDigit(c) || c == 8) || c == 13 || c == 45 || c == 46) return; e.Handled = true; }

private void lnkUpdateStudent_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { ut.UpdateStudent(txtRegNo.Text, txtName.Text, cmbClass.Text, txtAge.Text, cmbGender.Text, cbStatus.Text, txtAddress.Text, txtPhone.Text, dtBirthDate.Text, cbTransportation.Text, txtScholorship.Text, txtEmail.Text, dtAdmissionDate.Text, txtAdmittedBy.Text); }

private void button1_Click(object sender, EventArgs e) { PictureBoxOperations po = new PictureBoxOperations(); po.PictureUpload(pbStudent); }

private void button2_Click(object sender, EventArgs e) { PictureBoxOperations po = new PictureBoxOperations(); po.PictureUpload(pictureBox2); }

private void lnkDelete_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { ut.DeleteStudent(txtRegNo.Text); } private void txtSearchByRegNo_TextChanged(object sender, EventArgs e) { G.publicon(); SqlDataAdapter da = new SqlDataAdapter("select * from tblStudent where RegNo =('" + txtSearchByRegNo.Text + "')", G.con); DataSet ds = new DataSet(); da.Fill(ds); grdStudent.DataSource = ds.Tables[0]; } private void lnkPay_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Fee_slip s = new Fee_slip(); s.Show(); } }}

TEACHER

using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;

namespace MySchool{ public partial class Teacher : UserControl { GlobalConnection G = new GlobalConnection(); UsersTask ut = new UsersTask(); public Teacher() { InitializeComponent(); } private void contactteacher_KeyPress(object sender, KeyPressEventArgs e) { char c = e.KeyChar; if ((Char.IsDigit(c) || c == 8) || c == 13 || c == 45 || c == 46) return; e.Handled = true; }

private void txtteacherAge_KeyPress(object sender, KeyPressEventArgs e) { char c = e.KeyChar; if ((Char.IsDigit(c) || c == 8) || c == 13 || c == 45 || c == 46) return; e.Handled = true; } private void txtPrevSchoolPhone_KeyPress(object sender, KeyPressEventArgs e) { char c = e.KeyChar; if ((Char.IsDigit(c) || c == 8) || c == 13 || c == 45 || c == 46) return; e.Handled = true; }

private void lnkAddTeacher_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (txtRegNo.Text == "" && cbTitle.Text == "" && txtName.Text == "" && txtteacherAge.Text == "" && cmbGender.Text == "" && txtAdress.Text == "" && contactteacher.Text == "" && txtAdmittedBy.Text == "") { MessageBox.Show("Blank fields are not allowed"); } else { ut.AddTeacher(txtRegNo.Text, cbSubject.Text, txtName.Text, dtAdmissionDate.Text, cbShift.Text, txtAdmittedBy.Text, cbCurrent.Text, cbTitle.Text, txtName.Text, cmbGender.Text, txtteacherAge.Text, contactteacher.Text, cbNationality.Text, cbReligion.Text, cbMaritialStatus.Text, dtBirthDate.Text, txtEmail.Text, txtAdress.Text, txtPrevSchool.Text, txtPrevSchoolAddress.Text, txtPrevSchoolPhone.Text, txtReasonForLeaving.Text); } } private void Teacher_Load(object sender, EventArgs e) { cbCurrent.SelectedItem = "Active"; cbNationality.SelectedItem = "Nepali"; cbReligion.SelectedItem = "Hindu"; cbShift.SelectedItem = "Morning"; G.publicon(); SqlDataAdapter da = new SqlDataAdapter("select * from tblTeacher", G.con); DataSet ds = new DataSet(); da.Fill(ds); grdStudent.DataSource = ds.Tables[0]; } private void button1_Click(object sender, EventArgs e) { PictureBoxOperations po = new PictureBoxOperations(); po.PictureUpload(pictureBox1); } }}

EMPLOYEE

using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Data.SqlClient;using System.Windows.Forms;

namespace MySchool{ public partial class Employee : UserControl {