Вы находитесь на странице: 1из 33

2012

Project On Banking
Advance.net & C#
This project is based on Daily Bank Transition. Deposit And Withdraw Amount. Open a new Account Modify The Account Holder Information Alter His Record. Closing Account.

Chandra Shekhar Singh Sikkim Manipal University Haldwani (Ntl) 10/01/2011

Project On Banking

CONTENTS OF PROJECT
Declaration Certificate of originality Acknowledgement Introduction to project Table structure E.R diagram Input screen Output of project Coding of sql Checks and validations Future Limitations of project Tools and platform 3 4 5 6 8 9 13-15 16-20 31 31 32 32 33

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking

Declaration

I hereby solemnly and sincerely affirm that, this is real and original project report and declare that it is not submitted any where for any course, degree or diploma.

It is the result of team hard work along with the help of faculty member who helped us to make our Project. Faculty member helped us by giving some useful tips and tricks that enhance the overall performance of this Project.

Its human nature to mistake but I have tried my level best to make this project a success.

Name: - Chandra Shekhar Singh Roll No.: - 511021227

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking

Certificate of Originality
This is to certify that this project little submitted by Mr. Chandra Shekhar Singh for the course of Master Of Computer Application(MCA) from Sikkim Manipal University, DE Haldwani.

It is confide record of the work carried out under my guidance and supervision to the best of my knowledge. The contents of this project have not been submitted to any other university degree or diploma.

Mr. Kamal Chandra guide)

Mr. Prayag Singh Mehra (Project (Center Head)

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking

ACKNOWLEDGEMENT

This project has been completed by valuable suggestion of our faculty members and friends. Their precious advice and co-operation helped me to bring forward this project. Therefore, I take this opportunity to express my gratitude to them. I would like to thanks Mr. Kamal Chandra for their guidances and encouragement throughout the making of this project. I am faithfully thankful to Mr. Prayag Singh Mehra (Center manager) for providing well-equipped lab to work on.

Finally, I am thankful to entire batch mates and members of SMU without their patience and support the project would not have been possible.

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking

INTRODUCTION TO PROJECT
This project is based on the BANKING name Project on Banking. In this project I have made several forms the first form is Login form if user pass the user information then the menu form open otherwise user can not access my software. But if u have pass the user information correctly then u can handle This project in the menu form I have designed Eight form related with the information about account the first menu item is see accounts in this item user can see the details for a particular account holder in the base of account number to give just account number and the information will be in front of user. In the Second menu item list of account in this option user can see the total number of account in the bank with details. The third menu item new account in this option user can register a new account holder and he can provide an account number in the bank. The Forth menu item user can enter the Deposit and Withdrawn details for the account holder. The Fifth menu item is Edit In this Option the user can update account holder and Delete the account. In the Sixth menu item we have provide the help about the project. Hope in this way we have tried to give you All Information about the Banking Project.

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking

STEPS OF PRE PROCESS FOR CREATING SQL CONNECTION


1. Make sql command to the page from win form toolbox. 2. Rename this connection as convenient name (ex: -con, con1, etc). 3. Then in sql connection click on connection string and then on new connection. 4. Create a new connection. 5. If connection is already created then select the connection. 6. Then in sql command first select the connection you have. 7. Then click on Command text and type your query.

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking

TABLE STRUCTURE
THIS PROJECT CONTAINS TWO BASIC TABLES: The table containing the details of account_holder named bank. The table containing the account_no details named bank1. New Account: Table Name Bank:SR. NO
1 2 3 4 5 6 7 8 9 10

FIELD NAME
Account_No N_ACCOUNT F_NAME N_VERIFY_PERSON ADDRESS DOB MOB_NUMBER DEPOSIT_AMMOUNT WITHDRAWN_AMMOUNT TOTAL_AMOUNT

DATA TYPE
INT VARCHAR VARCHAR VARCHAR VARCHAR DATETIME VARCHAR INT INT INT

Detail
REFERANCE ----------

BANK1
SR. NO 1 FIELD NAME Account_No DATA TYPE INT Other Detail PRIMARY KEY

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking

ER-DIGRAME
Login Form

USER NAME

PASSWORD

Ac_number

Total_Amount

Name WITHDRAWN F_Name New_Account

DEPOSIT Name_Of_Verify DOB Address

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking

Login Page
Output:-

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking

CODING:using System.Diagnostics; using System.Runtime.InteropServices; public class Form1 : System.Windows.Forms.Form { [DllImport("User32.dll")] public static extern int MessageBox (int hParent,string Message,string Caption,int Type); public Form1() {} private void Form1_Load(object sender, System.EventArgs e) { tt.Start(); l.Text=DateTime.Today.DayOfWeek.ToString(); l111.Text=DateTime.Today.Month.ToString(); l0.Text=DateTime.Today.Year.ToString(); T1.Visible=false; button1.Visible=false; } private void l1_Click(object sender, System.EventArgs e) { T1.Visible=true; button1.Visible=true; T1.Focus(); } private void button1_Click(object sender, System.EventArgs e) { if(T1.Text=="CHANDAN"){ Form1.ActiveForm.Hide (); DETAILFORM DLF=new DETAILFORM (); DLF.Show();} else{ if (T1.Text==""){ MessageBox(0,"Enter Your Password!!!","Error !!",0); T1.Focus();} else {MessageBox(0,"Incorrect Password Please Check Your Password!!!","Error !!",0); T1.Text=""; T1.Focus();}}} private void button2_Click(object sender, System.EventArgs e) {Application.Exit();} private void tt_Tick(object sender, System.EventArgs e) {t11.Text = DateTime.Now.Hour.ToString(); t22.Text = DateTime.Now.Minute.ToString(); t33.Text = DateTime.Now.Second.ToString(); } } }

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking

OUTPUT OF MENU FORM:-

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking

CODING:using System; using System.Drawing; namespace PROJECT_ON_BANKING { private void menuItem2_Click(object sender, System.EventArgs e) {SEEAC SA=new SEEAC (); MENU.ActiveForm.Hide (); SA.Show();} private void menuItem4_Click(object sender, System.EventArgs e) {LISTAC LA=new LISTAC(); MENU.ActiveForm.Hide(); LA.Show();} private void menuItem7_Click(object sender, System.EventArgs e) {DEPOSIT DP=new DEPOSIT(); MENU.ActiveForm.Hide (); DP.Show();} private void menuItem8_Click(object sender, System.EventArgs e) {WITHDRAWN WD=new WITHDRAWN(); MENU.ActiveForm.Hide (); WD.Show();} private void menuItem10_Click(object sender, System.EventArgs e) {ACCOUNTEDIT AE=new ACCOUNTEDIT(); MENU.ActiveForm.Hide (); AE.Show();} private void menuItem11_Click(object sender, System.EventArgs e) {DELACCOUNT DEL=new DELACCOUNT(); MENU.ActiveForm.Hide (); DEL.Show();} private void menuItem13_Click(object sender, System.EventArgs e) { HELP H=new HELP(); MENU.ActiveForm.Hide (); H.Show(); } private void menuItem16_Click(object sender, System.EventArgs e) { DETAILFORM DF=new DETAILFORM(); MENU.ActiveForm.Hide(); DF.Show(); } private void menuItem14_Click(object sender, System.EventArgs e) { ABOUT A=new ABOUT(); MENU.ActiveForm.Hide(); A.Show(); } private void menuItem17_Click(object sender, System.EventArgs e) { Application.Exit(); } private void menuItem19_Click(object sender, System.EventArgs e) {

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking
NEW_ACCOUNT NA=new NEW_ACCOUNT(); MENU.ActiveForm.Hide(); NA.Show(); } private void MENU_Load(object sender, System.EventArgs e) { TT.Text=DateTime.Today.DayOfWeek .ToString(); } } }

OUT PUT OF SEE ACCOUNT:-

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking

CODING:using System.Data; using System.Data.SqlClient; using System.Diagnostics; using System.Runtime.InteropServices; public class SEEAC : System.Windows.Forms.Form{ [DllImport("User32.dll")] public static extern int MessageBox(int h,string s, string e,int u); private void button1_Click(object sender, System.EventArgs e){ if((t1.Text=="")){ MessageBox(0,"Please Give the Account Number Which U want to see details","Error",0); t1.Focus();} else{ try{ CON.Open(); SqlDataAdapter com= new SqlDataAdapter ("Select * from bank where acnumber='"+t1.Text+"'",CON); DataSet ds=new DataSet(); com.Fill(ds,"Accounts"); dataGrid1.DataSource=ds.Tables["Accounts"].DefaultView; dataGrid1.DataBindings.ToString (); MessageBox(0,"The Details for Account No'"+t1.Text+"' are !!","Details",0);} catch{ MessageBox(0,"No Account Found//please Type Your Ac Number Correctley!!","Details",0); t1.Text=""; t1.Focus();}}} private void button2_Click(object sender, System.EventArgs e){ PrintDialog p = new PrintDialog(); p.PrinterSettings.DefaultPageSettings.Landscape.ToString(); p.ShowDialog();} private void button3_Click(object sender, System.EventArgs e){ DETAILFORM df=new DETAILFORM(); SEEAC.ActiveForm.Hide(); df.Show();} private void SEEAC_Load(object sender, System.EventArgs e){ timer1.Start(); tttt.Text=DateTime.Today.DayOfWeek.ToString(); ttttt.Text=DateTime.Today.Month.ToString(); tttttt.Text=DateTime.Today.Year.ToString();} private void timer1_Tick(object sender, System.EventArgs e){ t.Text=DateTime.Now.Hour.ToString(); tt.Text=DateTime.Now.Minute.ToString(); ttt.Text=DateTime.Now.Second.ToString(); } } }

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking

OUTPUT OF LIST OF ACCOUNT DATA FORM:-

CODING:using System; public class LISTAC : System.Windows.Forms.Form { private void button1_Click(object sender, System.EventArgs e){ DETAILFORM df=new DETAILFORM (); LISTAC.ActiveForm.Hide(); df.Show();} private void timer1_Tick(object sender, System.EventArgs e){ textBox1.Text=DateTime.Now.Hour.ToString(); textBox2.Text=DateTime.Now.Minute.ToString(); textBox3.Text=DateTime.Now.Second .ToString();} private void LISTAC_Load(object sender, System.EventArgs e){ timer1.Start(); textBox4.Text=DateTime.Today.DayOfWeek .ToString(); textBox5.Text=DateTime.Today.Month.ToString(); textBox6.Text=DateTime.Today.Year.ToString(); } }

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking
}

OUT PUT OF DEPOSIT FORM:-

CODING:using System.Data.SqlClient; using System.Data; using System.Diagnostics; using System.Runtime.InteropServices; namespace PROJECT_ON_BANKING { public class DEPOSIT : System.Windows.Forms.Form { [DllImport("User32.dll")] public static extern int MessageBox(int a,string b,string c,int d); public DEPOSIT() private void DEPOSIT_Load(object sender, System.EventArgs e) { timer1.Start(); t4.Text=DateTime.Today.DayOfWeek.ToString(); t5.Text=DateTime.Today.Month.ToString(); t6.Text=DateTime.Today.Year.ToString(); }

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking
private void button1_Click(object sender, System.EventArgs e) { if((t1.Text=="")||(t2.Text=="")||(c1.Checked==false)) { MessageBox(0,"All field are compulsary !!!","Error",0); t1.Focus(); } else { CON.Open(); SqlCommand cmd=new SqlCommand("UPDATE bank SET Totalammount=(Select totalammount from bank where acnumber='"+t1.Text+"')+'"+t3.Text+"'where acnumber='"+t1.Text+"'",CON); SqlCommand cmd1=new SqlCommand("UPDATE bank SET DepositAmount=(Select depositamount from bank where acnumber='"+t1.Text+"')+ '"+t3.Text+"' where acnumber='"+t1.Text+"'",CON); cmd.ExecuteScalar(); cmd1.ExecuteScalar(); MessageBox(0,"YOUR ACCOUNT IS UPDATE SUCESSFULLY !!!","Error",0); CON.Close(); } } private void button2_Click(object sender, System.EventArgs e) { TRANJECTION AJ=new TRANJECTION (); DEPOSIT.ActiveForm.Hide(); AJ.Show(); } private void timer1_Tick(object sender, System.EventArgs e) { t.Text=DateTime.Now.Hour.ToString(); tt.Text=DateTime.Now.Minute.ToString(); ttt.Text=DateTime.Now.Second.ToString();}}}

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking

OUTPUT OF WITHDWAWN FORM

CODING:using System.Data; using System.Data.SqlClient; using System.Diagnostics; using System.Runtime.InteropServices; namespace PROJECT_ON_BANKING { public class WITHDRAWN : System.Windows.Forms.Form { [DllImport("User32.dll")] public static extern int MessageBox(int h,string s, string e,int public WITHDRAWN() { private void button3_Click(object sender, System.EventArgs e) { TRANJECTION TJ=new TRANJECTION(); WITHDRAWN.ActiveForm.Hide(); TJ.Show(); } private void button2_Click(object sender, System.EventArgs e) { t1.Text="";

u);

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking
t3.Text=""; } private void button1_Click(object sender, System.EventArgs e) { if((t1.Text=="")||(t3.Text=="")) { MessageBox(0,"Please Fill Your All Form Component!!","Error!!! Stop !!!",0); t1.Focus(); } else { CON.Open(); SqlCommand cmd=new SqlCommand("UPDATE bank SET Totalammount=(Select totalammount from bank where acnumber='"+t1.Text+"')-'"+t3.Text+"'where acnumber='"+t1.Text+"'",CON); SqlCommand cmd1=new SqlCommand("UPDATE bank SET WITHDRAW=(Select withdraw from bank where acnumber='"+t1.Text+"')+'"+t3.Text+"'where acnumber='"+t1.Text+"'",CON); cmd.ExecuteScalar(); cmd1.ExecuteScalar(); MessageBox(0,"YOUR ACCOUNT IS UPDATE SUCESSFULLY !!!","CONFIRMATION!!",0); CON.Close(); } } private void tt1_Tick(object sender, System.EventArgs e) { t.Text=DateTime.Now.Hour.ToString(); tt.Text=DateTime.Now.Minute.ToString(); ttt.Text=DateTime.Now.Second.ToString(); } private void WITHDRAWN_Load(object sender, System.EventArgs e) { tt1.Start(); p.Text=DateTime.Today.DayOfWeek.ToString(); pp.Text=DateTime.Today.Month.ToString(); ppp.Text=DateTime.Today.Year.ToString(); } } }

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking

OUT PUT OF NEW ACCOUNT FORM

CODING:using System.Diagnostics; using System.Runtime.InteropServices; using System.Runtime.Serialization.Formatters.Binary; using System.IO; using System.Runtime.Serialization; namespace PROJECT_ON_BANKING { public class NEW_ACCOUNT : System.Windows.Forms.Form

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking
{ [DllImport("User32.dll")] public static extern int MessageBox(int h,string s, string e,int u); private void button1_Click(object sender, System.EventArgs e) { if((t1.Text=="")) { MessageBox(0,"Please Enter The Account Number!!","success",1); t1.Focus(); } else { string s="server=KANYAL;uid=sa;database=master;"; SqlConnection c=new SqlConnection(s); c.Open(); try { SqlCommand c1=new SqlCommand("insert into bank1 values("+t1.Text+")",c); c1.ExecuteScalar(); PP.Visible=true; MessageBox(0,"Account No Is Available......","Success...",1); MessageBox(0,"Now U Can Go Forward!........","Success.....",0); b5.Visible=false; t2.ReadOnly=false; t3.ReadOnly=false; t4.ReadOnly=false; t5.ReadOnly=false; t6.ReadOnly=false; t7.ReadOnly=false; t8.ReadOnly=false; b1.Visible=true; t1.ReadOnly=true; t2.Focus(); } catch { MessageBox(0,"Account No Is Already In Use!!","ERROR",1); t1.Text=""; t1.Focus(); } c.Close(); } } private void button3_Click(object sender, System.EventArgs e) { int a; a=Convert.ToInt32(t8.Text); if((t1.Text=="")||(t2.Text=="")||(t3.Text=="")||(t4.Text=="")||(t5.Text=="")||(t6.Text=="")| |(t7.Text=="")||(t8.Text=="")||(c11.Checked==false)) { MessageBox(0,"Please Fill Your All Form Component!!","Error!!! Stop !!!",0); t1.Focus(); } if(a<500) {

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking
MessageBox(0,"The First deposit amount Will be above 500!!!","Error!!! Stop !!!",0); } else { CON1.Open(); CMD1.Parameters["@t1"].Value=t1.Text; CMD1.Parameters["@t2"].Value=t2.Text; CMD1.Parameters["@t3"].Value=t3.Text; CMD1.Parameters["@t4"].Value=t4.Text; CMD1.Parameters["@t5"].Value=t5.Text; CMD1.Parameters["@t6"].Value=t6.Text; CMD1.Parameters["@t7"].Value=t7.Text; CMD1.Parameters["@t8"].Value=t8.Text; CMD1.ExecuteNonQuery(); CON1.Close(); Class1 c1=new Class1(); c1.ACN = t1.Text.ToString(); c1.NAME = t2.Text.ToString(); c1.F_NAME= t3.Text.ToString(); c1.N_V = t4.Text.ToString(); c1.ADD = t5.Text.ToString(); c1.DOB = t6.Text.ToString(); c1.MOB = t7.Text.ToString(); c1.DAMOUNT = t8.Text.ToString(); Stream my = File.OpenWrite("C:\\PROJECT ON BANKING\\"+t1.Text+".ex"); BinaryFormatter format = new BinaryFormatter(); format.Serialize(my,c1); my.Close (); MessageBox(0,"U R Account Is Accept","Confirmation!!!",0); t1.Text=""; t2.Text=""; t3.Text=""; t4.Text=""; t5.Text=""; t6.Text=""; t7.Text=""; t8.Text=""; c11.Checked=false; TT.Focus(); CON1.Close(); } } private void NEW_ACCOUNT_Load(object sender, System.EventArgs e) { timer1.Start(); textBox4.Text=DateTime.Today.DayOfWeek .ToString(); textBox5.Text=DateTime.Today.Month.ToString(); textBox6.Text=DateTime.Today.Year.ToString(); C1.Visible=false; t2.ReadOnly=true; t3.ReadOnly=true; t4.ReadOnly=true; t5.ReadOnly=true; t6.ReadOnly=true; t7.ReadOnly=true;

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking
t8.ReadOnly=true; b1.Visible=false; } private void button4_Click(object sender, System.EventArgs e) { t1.Text=""; t2.Text=""; t3.Text=""; t4.Text=""; t5.Text=""; t6.Text=""; t7.Text=""; t8.Text=""; c11.Checked=false; t1.Focus(); } private void button5_Click(object sender, System.EventArgs e) { NEW_ACCOUNT.ActiveForm.Hide(); MENU DA=new MENU(); DA.Show(); } private void button2_Click(object sender, System.EventArgs e) { C1.Visible=true; } private void t7_TextChanged(object sender, System.EventArgs e) { C1.Visible=false; } private void C1_DateChanged(object sender, System.Windows.Forms.DateRangeEventArgs e) { t6.Text=C1.SelectionStart.Date.ToString(); } private void timer1_Tick(object sender, System.EventArgs e) { textBox1.Text=DateTime.Now.Hour.ToString(); textBox2.Text=DateTime.Now.Minute.ToString(); textBox3.Text=DateTime.Now.Second .ToString(); } private void button3_Click_1(object sender, System.EventArgs e) { TT.Visible=true; BB.Visible=true; TT.SelectAll(); } private void BB_Click(object sender, System.EventArgs e) { FileStream my1 =new FileStream ("C:\\PROJECT ON BANKING\\"+TT.Text+".ex",FileMode.Open); BinaryFormatter format1 = new BinaryFormatter(); Class1 c2=format1.Deserialize(my1)as Class1; t1.Text=c2.ACN; t2.Text=c2.NAME; t3.Text=c2.F_NAME; t4.Text=c2.N_V;

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking
t5.Text=c2.ADD; t6.Text=c2.DOB; t7.Text=c2.MOB; t8.Text=c2.DAMOUNT; my1.Close (); MessageBox(0,"Your Details Are Back!!","Confirmation.............!!!",0); } } }

OUTPUT OF ACCOUNT EDIT FORM

CODING:using System.Data; using System.Data.SqlClient; using System.Diagnostics; using System.Runtime.InteropServices; public class ACCOUNTEDIT : System.Windows.Forms.Form { [DllImport("User32.dll")] public static extern int MessageBox (int hParent,string Message,string Caption,int Type); private void button3_Click(object sender, System.EventArgs e) { Application.Exit();

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking
} private void button1_Click(object sender, System.EventArgs e) { t1.Text=""; t2.Text=""; t3.Text=""; } private void button4_Click(object sender, System.EventArgs e) { EDITACCOUNT EA=new EDITACCOUNT(); ACCOUNTEDIT.ActiveForm.Hide(); EA.Show(); } private void button2_Click(object sender, System.EventArgs e) { if((t1.Text=="")||(t2.Text=="")||(t3.Text=="")) { MessageBox(0,"All fields Are Necessary","Error",0); t1.Focus(); } else { string s="server=KANYAL;uid=sa;database=master;"; SqlConnection c=new SqlConnection(s); c.Open(); try { SqlCommand c1=new SqlCommand("UPDATE bank SET c_name= '"+t2.Text+"',cadd='"+t3.Text+"' where acnumber ='"+t1.Text+"'",c); c1.ExecuteScalar(); MessageBox(0,"Your Account InforMation Is Changed Your New Name Is '"+t2.Text+"' and your New Address is:- '"+t3.Text+"'", "Confirmation",0); EDITACCOUNT EA=new EDITACCOUNT(); ACCOUNTEDIT.ActiveForm.Hide(); EA.Show(); } catch { MessageBox(0,"account not found","ERROR",1); t1.Text=""; t1.Focus(); } c.Close(); } } private void ACCOUNTEDIT_Load(object sender, System.EventArgs e) { t1.Focus(); } private void timer1_Tick(object sender, System.EventArgs e) { textBox1.Text=DateTime.Now.Hour.ToString(); textBox2.Text=DateTime.Now.Minute.ToString(); textBox3.Text=DateTime.Now.Second .ToString(); }

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking
private void ACCOUNTEDIT_Load_1(object sender, System.EventArgs e) { t1.Focus(); timer1.Start(); textBox4.Text=DateTime.Today.DayOfWeek .ToString(); textBox5.Text=DateTime.Today.Month.ToString(); textBox6.Text=DateTime.Today.Year.ToString(); } } }

OUP PUT OF CLOSE ACCOUNT FORM

CODING:using System.Data.SqlClient; using System.Diagnostics; using System.Runtime.InteropServices; public class DELACCOUNT : System.Windows.Forms.Form { [DllImport("User32.dll")] public static extern int MessageBox(int a,string b,string c,int d); private void button1_Click(object sender, System.EventArgs e) {

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking
EDITACCOUNT ea=new EDITACCOUNT (); DELACCOUNT.ActiveForm.Hide(); ea.Show(); } private void DELACCOUNT_Load(object sender, System.EventArgs e) { tt.Start(); } private void button2_Click(object sender, System.EventArgs e) { if((t1.Text=="")) { MessageBox(0,"Please Give The Account Number Which U Want To Delete!","Error",0); t1.Focus(); } else { con.Open(); SqlCommand con1 = new SqlCommand ("delete from bank where acnumber ='"+t1.Text+"'", con); SqlCommand con0 = new SqlCommand ("delete from bank1 where acnumber ='"+t1.Text+"'", con); con1.ExecuteNonQuery(); con0.ExecuteNonQuery(); MessageBox(0,"YOUR ACCOUNT IS DELETED!!","CONFIRMATION",0); EDITACCOUNT ea=new EDITACCOUNT (); DELACCOUNT.ActiveForm.Hide(); ea.Show();} } private void timer1_Tick(object sender, System.EventArgs e) { textBox1.Text=DateTime.Now.Hour.ToString(); textBox2.Text=DateTime.Now.Minute.ToString(); textBox3.Text=DateTime.Now.Second.ToString(); } } }

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking

OUTPUT OF HELP FORM

CODING:using System; using System.Drawing; namespace PROJECT_ON_BANKING { private void button1_Click(object sender, System.EventArgs e) { MENU df=new MENU(); HELP.ActiveForm.Hide(); df.Show (); } private void HELP_Load(object sender, System.EventArgs e) { timer1.Start(); textBox4.Text=DateTime.Today.DayOfWeek .ToString(); textBox5.Text=DateTime.Today.Month.ToString(); textBox6.Text=DateTime.Today.Year.ToString(); } private void timer1_Tick(object sender, System.EventArgs e) { textBox1.Text=DateTime.Now.Hour.ToString(); textBox2.Text=DateTime.Now.Minute.ToString(); textBox3.Text=DateTime.Now.Second .ToString(); } }

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking

OUT PUT OF ABOUT US FORM

CODING:using System; namespace PROJECT_ON_BANKING { public class ABOUT : System.Windows.Forms.Form { private void button1_Click(object sender, System.EventArgs e) { MENU M=new MENU(); ABOUT.ActiveForm.Hide(); M.Show (); } } }

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking

CODING OF SQL
create table bank(acnumber INT REFERENCES BANK1(ACNUMBER) ,c_name varchar(20),fname varchar(20) ,N_O_Verify varchar(20), cadd varchar(50),dob datetime, mobnumber varchar(12), DepositAmount int ,withdraw int, TotalAmmount int) create table bank1(acnumber INT primary key ) select * from bank select * from bank1 update bank (c_name='Chandan'),(cadd='Nalai') where acnumber='ac6' UPDATE bank SET c_name = 'Lata', cadd = 'Haldwani' where acnumber='ac6' UPDATE bank SET DepositAmount =(Select DepositAmount from bank )+500 Where acnumber=1

Checks and validations


Checks and validations Used in ADV.net: 1. We apply a check of user name and password to loin form for checking that login id and password is correct. 2. We also apply a check that if you would not login with owner then you cant access the employee detail or edit it. 3. We also apply a check that you cant delete the main project files using windows services.

Checks and validations Used in sql.net: 1. We have made two tables in new account form in first table we have only one veriavel name ac_number which is assigned to primary key. 2. In second table we have eight veriavel the first veriavel is reference key connected with bank1 table. 3. we also apply a check that first deposit amount must be greater then 500.

Project limitations
Chandra Shekhar Singh Roll No:- 511021227

Project On Banking
Although I tried my level best to make this project a perfect project but still it may show errors. So to avoid error, following condition must fulfill: 1. User must have basic knowledge working with computer. 2. SQL-Server must be installed in the system. System should be connected with server or it should have desktop addition installed. 3. .NET Framework Should Be Installed In The Computer.

Future
I tried putting best effort to make this project a success but changes can be made according to the need of time. The project may include more information about deposit amount and withdrawn amount many more. stuffs later according to the time and requirement of user graphics can be improved as per the taste of user. More Form can be added as per requirement.

Chandra Shekhar Singh

Roll No:- 511021227

Project On Banking

Tools and Platform


Tools: Visual studio.net Sql server for backend

Platform: System: Microsoft windowsxp professional Version 2002

Computer: Intel Pentium 4 cpu 1.6 GHz 128 of ram

Chandra Shekhar Singh

Roll No:- 511021227

Вам также может понравиться