0% found this document useful (0 votes)
8 views2 pages

Account Update and Transaction Code

Uploaded by

emmajulienne63
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Account Update and Transaction Code

Uploaded by

emmajulienne63
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

con.

Open();

int roll;
roll = 12;
acnumber= [Link];
acbalance= [Link] ;
acn = [Link];
acb = [Link];
name= [Link] ;
actype=[Link] ;
acname= [Link] ;

if ([Link] > 0 && [Link] != "")


{
[Link] = (Convert.ToInt64([Link]) -
Convert.ToInt64([Link])).ToString();

}
payed = [Link];

if ([Link] > 0 && [Link] != "")


{
[Link] = (Convert.ToInt64([Link]) +
Convert.ToInt64([Link])).ToString();

}
trans = [Link];

SqlCommand cmdsp1x2 = [Link]();


[Link] = [Link];
[Link] = " UPDATE [dbo].[clients] set
first_deposit='" + payed + "' where account_number='" + acnumber + "' ";
[Link] = 300000000;
[Link]();

SqlCommand cmdsp1x2x = [Link]();


[Link] = [Link];
[Link] = " UPDATE [dbo].[clients] set
first_deposit='" + trans + "' where account_number='" + acn + "' ";
[Link] = 300000000;
[Link]();

SqlCommand cmdsp1x = [Link]();


[Link] = [Link];

[Link] = " insert into [dbo].[transactions]


(name,account_number,account_type,amount,to_account,to_name,roll) values ('" + name
+ "', '" + acnumber + "','" + actype + "','" + [Link] + "','" + acn + "','"
+ acname + "','" + roll + "') ";

[Link] = 300000000;
[Link]();

[Link]("account topped up");


[Link]();

You might also like