Académique Documents
Professionnel Documents
Culture Documents
Examiner’s Certificate
The project of
On
Online Banking
Online Banking
submitted in partial fulfillment of the requirement for the degree of
has worked my supervision and guidance and that no part of this report has been
submitted for the any award of other Degree, Diploma, Fellowship or other similar
titles or prizes and that the work has not been published in any journal or magazine.
Certified By
Programme Coordinator
Maitidevi, Kathmandu
Student Declaration
Online Banking
submitted in partial fulfillment of the requirement for the degree of
This is to certify that Mr. Rajendra Man Banepali of MSCIT has worked on the
project as per the course curriculum of MSCIT-IV. This project entitled "Online
Banking" is the original work of Mr. Banepali was carried out under the
supervision of Mr. Uday Kant Jha as per the guidelines provided by the
university. As per the student's declaration this is certify that project "Online
Banking" has not been presented anywhere as a part of any other academic
work. The Detail of student is as follow:
--------------------------------------
P. Kejriwal
Managing Director
This is to certify that Mr. Rajendra Man Banepali of MSCIT has worked on the
project as per the course curriculum of MSCIT-IV. This project entitled "Online
Banking" is the original work of Mr. Banepali was carried out under the
supervision of Mr. Uday Kant Jha as per the guidelines provided by the
university. As per the student's declaration this is certify that project "Online
Banking" has not been presented anywhere as a part of any other academic
work. The Detail of student is as follow:
--------------------------------------
ER. Pankaj Jalan
Director (Administrator)
This is to certify that Mr. Rajendra Man Banepali of MSCIT has worked on the
project as per the course curriculum of MSCIT-IV. This project entitled "Online
Banking" is the original work of Mr. Banepali was carried out under the
supervision of Mr. Uday Kant Jha as per the guidelines provided by the
university. As per the student's declaration this is certify that project "Online
Banking" has not been presented anywhere as a part of any other academic
work. The Detail of student is as follow:
--------------------------------------
Er. Prakash Kumar
Director (Academics)
This is to certify that Mr. Rajendra Man Banepali of MSCIT has worked on the
project as per the course curriculum of MSCIT-IV. This project entitled "Online
Banking" is the original work of Mr. Banepali was carried out under the
supervision of Mr. Uday Kant Jha as per the guidelines provided by the
university. As per the student's declaration this is certify that proje ct "Online
Banking" has not been presented anywhere as a part of any other academic
work. The Detail of student is as follow:
--------------------------------------
K.M. Dikshit
Head of Department
Acknowledgements
One who wants to know about "Online Banking" can be taken this work
as a reference. He / she can gather necessary information from it.
Abbreviation
OB Online Banking
MSCIT Master of Science in Information
OB Online Banking
Technology
MSCIT Master of Science in Information
CPS College for Professional Studies
Technology
HI -Take Highly Technical
CPS College for Professional Studies
DMS Dynamic Menu System
HI -Take Highly Technical
SCB Standard Charter Bank
DMS Dynamic Menu System
SD System Design
SCB Standard Charter Bank
SQL Structure Query Language
SD System Design
MS-SQL Microsoft SQL
SQL Structure Query Language
MS-SQL Microsoft SQL
Table of Content
1 Foreword 13
1.1 The course has the following objective: 13
2 Introduction 14
3 Objective 15
4 Area and Limitation 16
4.1 Account Management 16
4.1.1 Opening account (Client Registration) 16
4.1.2 Closing account 16
5 Project outline 18
5.1 Problem Definition 18
5.2 Conceptual Framework 18
5.2.1 Programme Framework 18
5.2.2 Architectural Framework 19
1 Foreword
The Master of Science in Information Technology (M.Sc. IT) Course is aimed at
designing and implementing advanced compared traditional computing
environment. It architecture is an integrated framework for acquiring and
evolving IT to achieve strategic goals. It has both 'Logical' and 'Technical'
components. The logical components include mission, functional and
information requirements, system configurations, and information flows. The
technical components include IT standards and rules that will be used to
implement the logical architecture, it therefore includes both computing and
communication net work technology in the same world.
2 Introduction
The agency or organization working with
financial term and transaction is called Bank.
Bank deals with public interest in the term of
economic activities such as opening account,
saving, withdraw, loan financing in different ways.
Opening account is the term of registration of
potential client and future assets. Saving is the term of depositing amount into
the registered account. Withdraw is the term of get the amount from the
deposited account. Bank has very interesting mechanism to make credit
amount the people and investors.
The system we are going to developed is called OB. This includes the limited
functionality for banking process as shown in OB's area and limitation section.
OB tries to demonstrate sample processes of online banking transaction.
3 Objective
The aim of OB is to lead the sample of processes and functionality of online
backing based on web base. The initial demonstration of banking system is
this system which include and limitation for real client. It is the template and
sample piece of banking software which should include much functionality
according to reality and end of user.
Since this is academic project for university, the system has basic principle of
implementation software engineering in software design and implementation
of programming, platform and its architecture.
This section processes the customer care centre including client registration
for different types of account like saving, current, deposit and it should have
flexibility on types of account that user can create new type of account type
for specific group.
Deposit and Withdraw
This section is responsible for deposit process and withdraws processes only.
This is section manage the user and password security along with user menus
and layout of software system. The accessibility is also control by security
management. Basically, user management, menu management and
accessibility management with grouping of user is control by this room.
Global variables are configured by this section. Basically, fixed variable for
application are set by this room.
5 Project outline
Project outline contains introduction of project summary which describes
about project development related details. The review of project outline is
bellow.
Client Registrati
on
User and Security Managment
Transaction
(Withdraw &
Report
(Account
Statement
)
OB
VB
5 Programming Code 2
6 Testing 2
7 Implementing 2
8 Project Report Writing 3
System
Requirement
Specification
Implementing (SRS)
13% 18%
Design (Database,
Testing
Concept,
13%
Functions)
13%
Programming Code
13%
• Dream Weaver MX
• Edit Plus 2.0.1
• Languages: - Hypertext Markup Language (HTML) 4.0.0, Active Server
Page .NET (ASP.NET with VB) 3.0, Java script, VB script
• Database: - Microsoft SQL Server , Text Files, XML
• Microsoft Visio 2003
• Microsoft Word 2000
• OS - Windows XP or higher
• WEB Server - Internet Information System (IIS) or IIM
• Microsoft Access SQL Client from Microsoft SQL Server
Man-made systems
Man-made systems include such things as:
1. Social systems: organizations of laws, doctrines, customs, and so on.
Microsoft Says,
The .NET Framework is a development and execution environment that
allows different programming languages & libraries to work together
seamlessly to create Windows-based applications that are easier to build,
manage, deploy, and integrate with other networked systems.
6.1.4.1Input Design
While deigning system, input design is very conscious thing that we have
to analyze because it is end-user interface. It is important for in case of data
consistency and data integrity. We have to design input screens and layout
in such a way that end-user can enter data and information easily and in
limited time for efficiency. We have to conscious in data entry of option
values while we are in main form for editing and new data entry. It helps the
user to reduce the half of the data entry time and management. Some of
Login Form
Basically, for security purpose to view mails we should login site
and can see our personal mails only.
6.1.4.2Output Design
A number of basic design principles ensure that the output is presented
in a way that is easy to understand and interpret. Notes, headings, and
output formats should be standardized whenever possible. Format
consistency is an attribute of ‘user-friendly’ output. Users feel comfortable
with familiar layouts. Acronyms and abbreviations in output should be
avoided especially when the output will serve novice users. Define words that
may be unfamiliar to the user. Algorithms and assumptions on which
calculations are based should be available to users of the output. This assures
correct interpretation of output.
6.1.4.3Database Design
A specialized set of programs, called a Data Base Management System
(DBMS) is generally acquired to help computer users’ access and manipulate
the data in a data base system. Most DBMS include a special query
language that allow users to access the data base, retrieve information from
data base without h aving to write a program. Data can be added, retrieved,
updated, and deleted from data base using DBMS functions. If writing an
application program for a transactional system n batch, the programmer
accesses and uses the data base by writing the program in a record-level
language provided by the DBMS, which is called the host language. An
important function provided by a DBMS is data independence. Data
independence means that users and programmers are insulated from
database. They do not know how the physical database is stored. Since all
access to data is made via the DBMS, data base management systems can
perform another important function- data access protection. For example,
the DBMS might be programmed to refer to an internal security matrix to
determine which data elements a particular user is permitted to access and
what type of operations that users can perform- read only, write only, or read,
write and delete.
6.1.5.2Pseudo-code
Pseudo-code can be used to describe an algorithm. Although pseudo-
code resembles structured English (SE) in using a restricted subset of English, it
may be coded and more closely resemble a programming language.
Table Diagram
About SQL Server and database code we can refer annex #10.1. OB has
implemented Microsoft SQL Server 2005 and Microsoft Access Database and
its facilities.
#1
Client Registration Client DB
#2
Transaction Transaction DB
(Dep/Draw)
#3
Report Processing
Customized
Reports
Process Details
Here, we can see Client is element of our external input and going
for internal input in our system as application in OB in process #1. If
client is valid then it is process for Transac tion into OB in process #2
otherwise client is registered and save into client database. Process #2
show the processing of detail information of transaction to store into
transaction database which indicates the deposit and withdraw
database. And all these are prepared by reports module and it is
disseminated by our process of #3 to essential unit and department. It
is used for communicating the applicant too.
6.1.10 Coding
OB has use Microsoft .NET framework 2.0 which reduces more than 70% of
C# code than framework 1.0. It has very good libraries like SqlDataSource
which works for connection, command object and reader for Grid view. We
can see this entire thing in project source code. Please see annex p rofile from
#10.2 for project source code.
6.3.1.1Physical Security
Source file is existed in web server so client computer can just access a
copy of web page allotted by web server.
6.3.1.3Database Security
Database has its own username and password which save the data of
database. Database consists of all the data and information of roster in OB.
6.3.1.4Application Security
It’s a web base application and it depends upon the web server
security. It can get all the security provided by web server like Internet
Information Service (IIS).
6.3.1.5Transaction Security
Session is used to make more secure the transaction with ADO.NET
Trascation facilities.
OB has to expand to the financial planning and reports which can help to
top management and middle management such as profit and lost account,
cash follow, cash and bank book and etc.
If the any select statement is used then it should have condition for specific
branch and authentication. And the login should be for any branch any
authentication too. Let’s see the one example of this statement.
8 Conclusion (Thesis)
OB will be best academic practice of Microsoft .Net framework in ASP.NET
with Visual Basic (VB). OB has implement dynamic component with new
Microsoft technology for faster and well being ranking.
Security: About the issue of security, this project is built on Microsoft .NET
framework so, all the security and protection have been inherited
automatically when we use this system. In additional we have implement
session approach which make more secured. Lastly, it’s better system for
financial transaction like bank. The session has control the overall system.
Invalid session is not allowed due to its security reason. So, the error or
restricted are message box is displayed for prevention from invalid users.
9 Bibliography
• Introduction of Microsoft .NET Framework, website:
http://www.techinterviews.com/?p=74 , http://www.microsoft.com
• System Analysis and Design, Author: Elias M. Awad,
• ASP 3 Instant Reference, Author: Evangelos Petroutsos (BPB Publication),
• System Analysis and Design, downloaded from Internet,
• DFDs and flow chart, Author:
http://www.agilemodeling.com/artifacts/dataFlowDiagram.htm
• SQL Server and other information, http://en.wikipedia.org/
10 Annex
10.1 Database SQL Statement
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
[MenuCode] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF,
IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON,
ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET QUOTED_IDENTIFIER ON
GO
dbo.Tbl_Account.ParentCode,
dbo.Tbl_Account.ReferenceID,
dbo.Tbl_Account.Account, dbo.Tbl_Voucher_Detail.Description,
dbo.Tbl_Voucher_Detail.Debit,
dbo.Tbl_Voucher_Detail.Credit,
dbo.Tbl_Voucher_Detail.Flag
FROM dbo.Tbl_Voucher_Master INNER JOI N
dbo.Tbl_Voucher_Detail ON
dbo.Tbl_Voucher_Master.VoucherMasterID =
dbo.Tbl_Voucher_Detail.VoucherMasterID INNER JOIN
dbo.Tbl_Account ON
dbo.Tbl_Voucher_Detail.AccountCode =
dbo.Tbl_Account.AccountCode INNER JOIN
dbo.Tbl_VoucherType ON
dbo.Tbl_Voucher_Master.VoucherType =
dbo.Tbl_VoucherType.VoucherType
GO
SET QUOTED_IDENTIFIER ON
GO
GO
SET QUOTED_IDENTIFIER ON
GO
SET QUOTED_IDENTIFIER ON
GO
Imports Microsoft.VisualBasic
Imports System.Configuration
Imports System.Data.SqlClient
Imports System.Web.UI.Page
'******************************************************************
'**************** System Function Interface ***********************
'******************************************************************
row = grid.Rows.Count
For i = 0 To row - 1
If IsNumeric(grid.Rows(i).Cells(_getGridViewColumnIndex(grid,
"Debit")).Text) = True Then
d = d +
CType(grid.Rows(i).Cells(_getGridViewColumnIndex(grid, "Debit")).Text,
Double)
End If
If IsNumeric(grid.Rows(i).Cells(_getGridViewColumnIndex(grid,
"Credit")).Text) = True Then
c = c +
CType(grid.Rows(i).Cells(_getGridViewColumnIndex(grid, "Credit")).Text,
Double)
End If
grid.Rows(i).Cells(_getGridViewColumnIndex(grid,
"Balance")).Text = (d - c)
Next
End Sub
Return newCode
End Function
Return newCode
End Function
End Function
'_fillComboList = dDList
'Return dDList
End Sub
'End Try
If isExistNode = False Then
If (parent Is Nothing) Then
tree.Nodes.Add(node)
Else
parent.ChildNodes.Add(node)
End If
End If
Return isExistNode
End Function
readerParent = netDatabase.getReader(isql)
tree.Nodes.Clear()
While (readerParent.Read())
If (showCode = True) Then
nodeText = readerParent(idField) + " " +
readerParent(titleField)
Else
nodeText = readerParent(titleField)
End If
If (readerParent(linkField).ToString.Trim = "" Or
readerParent(linkField).ToString.Trim = "-") Then
linkText = "javascript:void(0)"
Else
linkText = readerParent(linkField)
End If
'**** Parent Node
nodeParent = New TreeNode(nodeText, readerParent(idField),
"", linkText, "")
n = _getNodeID(tree, readerParent(parentIdField))
If (n.Equals(-1) = True) Then
'****tree.Nodes.Add(nodeParent)
bool = _addNode(tree, nodeParent)
Else
'*****Me._write("P- Hello : " + tree.Nodes(n).Text)
'*****tree.Nodes(n).ChildNodes.Add(nodeParent)
bool = _addNode(tree, nodeParent, tree.Nodes(n))
End If
'Me._writeLine(nodeParent.Text + " " +
tree.Nodes.Count.ToString())
'Me._writeLine(nodeParent.Text + " Exist:" +
bool.ToString())
'Me._write("<BR>*" + nodeParent.Text)
'***** Child Node
isql = "select " + idField + ", " + titleField + ", " +
parentIdField + ", " + linkField + " FROM " + tableName + _
" WHERE (" + parentIdField + "='" + readerParent(idField)
+ "') " + myWhere + " ORDER BY " + idField
readerChild = netDatabase.getReader(isql)
While (readerChild.Read())
If (showCode = True) Then
nodeText = readerChild(idField) + " " +
readerChild(titleField)
Else
nodeText = readerChild(titleField)
End If
If (readerChild(linkField).ToString.Trim = "" Or
readerChild(linkField).ToString.Trim = "-") Then
linkText = "javascript:void(0)"
Else
linkText = readerChild(linkField)
End If
nodeChild = New TreeNode(nodeText,
readerChild(idField), "", linkText, "")
'Me._writeLine("----" + nodeChild.Text)
n = _getNodeID(tree, readerChild(parentIdField))
If (n.Equals(-1) = True) Then
'nodeParent.ChildNodes.Add(nodeChild)
End While
tree.ParentNodeStyle.Font.Bold = True
tree.ParentNodeStyle.ForeColor = Drawing.Color.Green
tree.ExpandAll()
Return tree
Catch ex As Exception
_setError = ex
Return tree
End Try
End Function
End Set
End Property
'******************************************************************
'**************** System Function Interface ***********************
'******************************************************************
Dim checkExistingMsgbox = _
" <script language='javascript'
type='text/javascript'> " & _
currentPage.Response.Write(checkExistingMsgbox)
currentPage.Response.Write(scriptText)
currentPage.Response.Write(callFunctionScript)
'currentPage.Response.Write("Hello <script
language='javascript' type='text/javascript'>" & _
' " var msgbox =
End Sub
'currentPage.Response.Redirect("components\com_offline\offline.aspx?emess="
+ ex.Message)
Try
Dim formateMessage As String = ""
Dim errMessage = ex.Message
Dim scriptText As String = _
"<script language='javascript'>" & _
"function closeMessage(){" & _
" var msgbg =
document.getElementById('backScreen'); " & _
" var msgbox =
document.getElementById('messageBox'); " & _
" msgbg.style.visibility = 'hidden'; " & _
" msgbox.style.visibility = 'hidden'; " & _
"} " & _
"</script>"
currentPage.Response.Write(scriptText)
currentPage.Response.Write(formateMessageBg)
currentPage.Response.Write(formateMessage)
Catch e As Exception
'currentPage.Response.Write(ex.Message)
End Try
End Sub
End Class
'********* System error
currentPage.Response.Write(scriptText)
currentPage.Response.Write(formateMessageBg)
currentPage.Response.Write(formateMessage)
End Sub
End Function
End Class
'End Class
'******** end of Client Service
End Sub
End Function
End Function
For i = 0 To record.Count - 1
For j = 0 To record.row.GetLength(0)
record.row = record.readRecord(i)
If j = 0 Then
fieldName = record.row(0, j)
ElseIf j = 1 Then
fieldValue = record.row(0, j)
End If
Next
cmd.Parameters.Add("@" + fieldName,
Data.SqlDbType.VarChar).Value = fieldValue
Next
Return (cmd)
End Function
End Class
'********* end of Database Class
For i = 0 To Me.Count - 1
For j = 0 To Me.row.GetLength(0)
Me.row = Me.readRecord(i)
If j = 0 Then
fieldName = Me.row(0, j)
ElseIf j = 1 Then
fieldValue = Me.row(0, j)
End If
Next
If (i = index) Then
findValue = fieldName
Exit For
End If
Next
Return (findValue)
End Function
For i = 0 To Me.Count - 1
For j = 0 To Me.row.GetLength(0)
Me.row = Me.readRecord(i)
If j = 0 Then
fieldName = Me.row(0, j)
ElseIf j = 1 Then
fieldValue = Me.row(0, j)
End If
Next
If (fieldName = key) Then
findValue = fieldValue
Exit For
End If
Next
Return (findValue)
End Function
For i = 0 To Me.Count - 1
For j = 0 To Me.row.GetLength(0)
Me.row = Me.readRecord(i)
If j = 0 Then
fieldName = Me.row(0, j)
ElseIf j = 1 Then
fieldValue = Me.row(0, j)
End If
Next
If (fieldName = key) Then
Me.row(0, 1) = newValue '***** Value replace by
newValue
Me.RemoveAt(i)
Me.Insert(i, row)
isFindObject = True
Exit For
End If
Next
Return (isFindObject)
End Function
Case commandType.updateCommand Or
commandType.updateCommandPreparationOnly
'**** not Skiping Iddentity Fild as Primary key not to
be update and it's used for update key
'**** Loop start Field from second only
Dim where As String = ""
Dim updateList As String = ""
For i = 0 To record.Count - 1
'info = info + i.ToString() + " - "
For j = 0 To record.row.GetLength(0)
record.row = record.readRecord(i)
If j = 0 Then
'info = info + record.row(0, j)
fieldName = record.row(0, j)
Else
fieldValue = record.row(0, j)
'info = info + " = " + record.row(0, j )
End If
Next '*** loop end J
If (i = 0) Then
where = " Where " + fieldName + "=@" +
fieldName
Else
If (i = 1) Then
updateList = fieldName + "=@" + fieldName
End Select
Return tmpIsql
End Function
/**
* @version $Id: template_css.css 1594 2005-12-31 04:51:00Z stingrey $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights
reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see
LICENSE.php
* Joomla! is free software and parts of it may contain or be derived
from works
* licensed under the GNU General Public License or other free or open
source
* software licenses. See COPYRIGHT.php for copyright notices and
details.
*/
#wrapper {
border: 0px;
margin: 0px;
margin-left: auto;
margin-right: auto;
#header {
background-color: #FFF;
background-position: right top;
border-bottom: 4px solid #C64934;
background: url(../../images/header_bg.png);
}
#joomla {
position: relative;
width: 100%;
background: url(../../images/version.png) no-repeat;
background-position: bottom right;
margin: 0px;
padding: 0px;
}
#wrapper1 div {
border: 0px;
margin: 0px;
margin-left: auto;
margin-right: auto;
padding: 0px 5px 0px 5px;
display: inline;
}
a {
color: #C64934;
text-decoration: none;
font-size: 12px;
}
a:hover {
color : #30569D;
text-decoration : underline;
}
a:active {
color : #333333;
text-decoration : underline;
}
table#toolbar {
margin-right: 10px;
}
table#toolbar a.toolbar {
color : #808080;
text-decoration : none;
display: block;
border: 1px solid #DDD;
width: 55px;
padding: 2px 1px 2px 1px;
}
table#toolbar a.toolbar:hover {
color : #C64934;
border: 1px solid #c24733;
background-color: #f1e8e6;
padding: 3px 0px 1px 2px;
}
table#toolbar a.toolbar:active {
.inputbox
{
z-index: -3;
font-size: 12px;
border-right: lightgrey 1px solid;
border-top: lightgrey 1px solid;
border-left: lightgrey 1px solid;
border-bottom: gray 1px solid;
}
.text_area {
border : 1px solid #ccc;
z-index: -3;
font-size: 12px;
}
input, textarea, select {
z-index : -3;
font-size: 12px;
}
}
td {
font-size: 12px;
}
/* header block */
table.messagebox {
background-color: #FFF;
font-family : Arial, Helvetica, sans-serif;
margin: 0px;
padding: 0px;
border: 0px;
width: 60%;
color: #C64934;
font-size : 18px;
font-weight: bold;
text-align: left;
}
table.messagebox th {
background: url(../../images/generic.png) no-repeat left;
text-align: left;
height: 50px;
width: 99%;
padding-left: 50px;
}
table.messagebox td
{
color: Black;
font-size: 14px;
font-weight: normal;
text-align: justify;
background: ghostwhite;
padding: 10px;
border-top: gainsboro 1px solid;
}
/* header block */
table.adminheading td {
color : #000;
}
table.adminlist th {
margin: 0px;
padding: 6px 4px 2px 4px;
height: 25px;
background: url(../../images/background.jpg);
background-repeat: repeat;
font-size: 15px;
color: #000;
}
table.adminlist th a:hover {
text-decoration: underline;
}
table.adminlist tr.row0 {
background-color: #F9F9F9;
}
table.adminlist tr.row1 {
background-color: #FFF;
}
table.adminlist td {
border-bottom: 1px solid #e5e5e5;
padding: 5px;
}
table.adminlist tr.row0:hover {
background-color: #f1f1f1;
}
table.adminlist tr.row1:hover {
background-color: #f1f1f1;
}
table.adminlist td.options {
background-color: #ffffff;
font-size: 12px;
}
select.options, input.options {
font-size: 12px;
font-weight: normal;
border: 1px solid #999999;
}
/* standard form style table */
table.adminform {
background-color: #f9f9f9;
border: solid 1px #d5d5d5;
width: 100%;
padding: 10px;
border-collapse: collapse;
}
table.adminform tr.row0 {
background-color: #f9f9f9;
}
table.adminform tr.row1 {
background-color: #eeeeee;
}
table.adminform th {
font-size: 12px;
padding-top: 6px;
padding-bottom: 2px;
padding-left: 4px;
padding-right: 4px;
text-align: left;
height: 25px;
background: url(../../images/background.jpg);
table.cpanel td {
text-align: center;
}
form {
margin: 0px 0px 0px 0px;
}
/* Styles for dhtml tabbed-pages */
.ontab {
font-size: 12px;
background-color: #ffae00;
border: 1px solid #cccccc;
width: 14%;
text-align: center;
cursor: pointer;
font-weight: bold;
color: #FFFFFF;
}
.offtab {
font-size: 12px;
background-color : #e5e5e5;
border: 1px solid #cccccc;
width: 14%;
text-align: center;
cursor: pointer;
font-weight: normal;
}
.tabpadding {
/*border-bottom: solid 1px #D5D5D5;*/
}
.tabheading {
background-color: #FFAE00;
color: #FFF;
font-size: 10px;
text-align: left;
}
.pagetext {
visibility: hidden;
display: none;
position: relative;
top: 0;
}
.menubackgr {
background: #F1F3F5;
border-bottom: 1px solid #cccccc;
}
.menudottedline {
border-bottom: 1px solid #cccccc;
border-top: 1px solid #ffffff;
div.centermain {
padding: 0 10px;
}
div.main {
width: 99%;
padding: 0;
}
.quote {
margin: 4px;
border: 1px solid #cccccc;
background-color: #E9ECEF;
padding: 10px;
font-size: 12px;
color: #254D78;
}
/* mod_quickicon */
/* Tooltips */
a.tooltip, a.tooltip:hover {
color: black;
text-decoration: none;
border-bottom: 1px dashed #aaa;
}
a.tooltiplink {
display: block;
width: 100%;
}
a.tooltiplink:hover {
text-decoration: none;
}
/* Fieldsets */
fieldset {
margin-bottom: 10px;
border: 1px #ccc solid;
padding: 5px;
text-align: left;
}
fieldset p {
margin: 10px 0px;
}
legend {
color: #c24733;
font-size: 1.1em;
font-weight: bold;
}
.expander {
float: right;
}
#datacell {
width: 78%;
display: block;
float: left;
margin: 0;
padding: 2px 0px 0px 0px;
}
#datacellfull {
width: 98%;
display: block;
float: left;
margin: 0;
padding: 2px;
}
#treecell fieldset {
}
#datacell fieldset {
border: 1px #ccc solid;
}
span.editlinktip {
text-decoration: none;
border-bottom: 1px dashed #aaa;
}
table.paramlist td {
height: 30px;
}
div.footer {
clear: both;
margin-top: 10px;
}
a.back
{
float: left;
text-align: center;
vertical-align: middle;
background: url(../../images/restoredb.png) fixed no-repeat;
height: 48px;
width: 48px;
}
#infoAlert
{
color: red;
font-size: 150%;
font-weight:bold;
}
#infoAlertFooter
{
color: White;
font-weight: normal;
text-align: right;
}
#infoText
{
color: Black;
font-weight: bold;
text-align: left;
font-size: 120%;
display: block;
background-color: #d2ebff;
margin: 0px;
border-top: #608fc8 1px solid;
padding-right: 5px;
padding-left: 5px;
padding-bottom: 15px;
padding-top: 15px;
margin-bottom: 5px;
}
#infoMessageBox{
background-color: #999999;
z-index: 200000;
height: 100px;
width: 50%;
margin: 0 auto;
padding: 5px;
display: block;
color: #FFFFFF;
position: absolute;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 2px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #000000;
border-right-color: #000000;
border-bottom-color: #000000;
border-left-color: #000000;
}
#backScreen
{
filter: Alpha(Opacity=60, FinishOpacity=10, Style=fading,
StartX=10, StartY=10, FinishX=300, FinishY=500);
#messageBox{
background-color: #999999;
z-index: 200000;
height: 250px;
width: 350px;
margin: 0 auto;
padding: 0px;
display: block;
color: #FFFFFF;
position: absolute;
left: 300px;
top: 100px;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 2px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #000000;
border-right-color: #000000;
border-bottom-color: #000000;
border-left-color: #000000;
}
#messageBox-Title{
background-color: #666666;
display: block;
padding: 5px;
height: 35px;
width: 80%;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #333333;
font-weight: bold;
color: white;
background-image: url(../../images/nav_bg.png);
background-repeat: repeat;
float: left;
}
#messageBox-Title-noClose{
background-color: #666666;
display: block;
padding: 5px;
height: 35px;
width: 100%;
border-bottom-width: 1px;
#messageBox-Title-ControlBox{
background-color: #FF8033;
display: block;
padding: 5px;
height: 35px;
width: 20%;
border-bottom-width: 2px;
border-bottom-style: solid;
border-bottom-color: #C65E00;
font-weight: bold;
color: white;
background-image: url(../../images/cancel_f2.png);
background-repeat: no-repeat;
float: right;
text-align: center;
background-position: center center;
}
#messageBox-TextArea{
display: block;
padding: 10px 10px 10px 40px;
font-weight: normal;
color: black;
background-color: #B5B6BB;
float: left;
height: 100%;
width: 100%;
border-top: 4px solid #CCCCCC;
border-right: 2px solid #CCCCCC;
border-bottom: 2px solid #CCCCCC;
border-left: 2px solid #CCCCCC;
background-image: url(../../images/help_f2.png);
background-repeat: no-repeat;
background-position: left top;
}
#messageBox-ImageArea{
display: block;
padding: 10px 10px 10px 10px;
font-weight: normal;
color: black;
background-color: #B5B6BB;
float: left;
height: 100%;
width: 100%;
border-top: 4px solid #CCCCCC;
border-right: 2px solid #CCCCCC;
border-bottom: 2px solid #CCCCCC;
border-left: 2px solid #CCCCCC;
background-repeat: no-repeat;
table#Login1
{
font-size: 12px;
font-family: Arial,Arial Baltic;
background-color: whitesmoke;
border-bottom: firebrick 2px solid;
border-right: lightgrey 1px solid;
border-top: lightgrey 1px solid;
border-left: lightgrey 1px solid;
border-collapse: collapse;
table-layout: auto;
margin: 0px auto;
}
table#Login1 td
{
font-size: 12px;
padding: 10px;
}
table#Login1 table td
{
font-size: 12px;
padding: 7px;
border: 0px;
}
table#Login1 input
{
font-size: 12px;
}
.frontTime
{
width: 100%;
color: Red;
font-size:130%;
border-bottom: solid 1px green;
padding: 5px;
text-align:center;
}
.frontUserName
{
color: Green;
text-align:right;
width:100%;
}
.panelWindow
{
border-bottom: gainsboro 1px solid;
border-top: gainsboro 1px solid;
}
body
{
margin: 0px 5px 5px 5px;
font-size: 12px;
font-family: Arial,Arial Baltic;
background-image: none;
background-color: white;
}
*{
font-size: 12px;
}
#bank-screen
{
width: 960px;
margin: 0 auto;
background: white;
}
#bank-screen #heading
{
width: 960px;
height: 50px;
}
#bank-screen #left-band
{
float: left;
width: 220px;
background: #f5fff7;
border-right: #b0cabb 1px solid;
padding: 5px;
}
94 of 185 | Page Online Banking | OB
Master of Science in Information Technology Online Banking Final Project Report
M.Sc. IT Manipal Universal Learning
#bank-screen #main-board
{
float: left;
width: 719px;
height: 100%;
padding: 5px;
background-image: none;
background-color: white;
}
#bank-screen #footer
{
float: left;
width: 940px;
height: 100%;
background: whitesmoke;
padding: 10px;
border-bottom: gainsboro 1px solid;
border-top: gray 1px solid;
font-family:Arial,Arial Baltic;
color: gray;
}
ControlToValidate="DropDownListParentCode" ErrorMessage="Parent is
required."
Font-
Bold="True">**</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>
Reference No.</td>
<td>
<asp:TextBox ID="TextBoxReferenceNo"
</asp:MultiView>
</asp:Content>
Imports _netSystem
Imports System.Data.SqlClient
SqlDataSource1 = netSystem.netDatabase.getSqlDataSource(isql,
SqlDataSource1)
SqlDataSource1.DataBind()
info = "Data loaded."
netSystem._setInfo = info
Return (1)
Catch ex As Exception
_setError = ex
End Try
Return (0)
End Function
netSystem._getLoadedTree(TreeViewAccountHead, "tbl_account",
"AccountCode", "ParentCode", "Account", "account", "")
TreeViewAccountHead.CollapseAll()
End Sub
End Try
info = "'" + GridView1.SelectedRow.Cells(2).Text + "' selection
process is complated."
netSystem._setInfo = info
End Sub
Catch ex As Exception
info = ex.Message
netSystem._setInfo = info
End Try
End Sub
If (reader.Read()) Then
'****** loading Parent Code Combo
loadComboParentCode()
End Sub
Try
Dim record As New _netSystem._Record("Tbl_Account")
record.Clear()
record = record.addRecord("AccountID",
Val(TextBoxAccountID.Text))
record = record.addRecord("AccountCode",
TextBoxAccountCode.Text)
record = record.addRecord("ParentCode",
DropDownListParentCode.SelectedItem.Value)
record = record.addRecord("ReferenceID",
TextBoxReferenceNo.Text)
record = record.addRecord("Account", TextBoxAccountName.Text)
record = record.addRecord("Description",
TextBoxDescription.Text)
record = record.addRecord("Remark", TextBoxRemark.Text)
Catch ex As Exception
info = ex.Message + "<br>" + netSystem.iSql '+
_Record.commandType.insertCommandPreparationOnly.GetHashCode().ToString()
netSystem._setInfo = info
End Try
End Sub
TextBoxAccountID.Text = "-1"
TextBoxAccountCode.Text = ""
'DropDownListParentCode.Text = ""
TextBoxReferenceNo.Text = ""
TextBoxAccountName.Text = ""
TextBoxDescription.Text = ""
TextBoxRemark.Text = ""
'DropDownListParentCode_SelectedIndexChanged(DropDownListParentCode, New
EventArgs())
info = "Add new"
netSystem._setInfo = info
End Sub
End Sub
End Class
ControlToValidate="DropDownListParentCode" ErrorMessage="Parent is
required."
Font-
Bold="True">**</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>
Menu Title</td>
<td colspan="4">
<asp:TextBox ID="TextBoxMenuTitle"
Imports _netSystem
Imports System.Data.SqlClient
SqlDataSource1 = netSystem.netDatabase.getSqlDataSource(isql,
SqlDataSource1)
SqlDataSource1.DataBind()
inFo = "Menu configuration data loaded."
netSystem._setInfo = inFo
Return (1)
Catch ex As Exception
'inFo = ex.Message
'netSystem._setInfo = inFo
_setError = ex
End Try
Return (0)
End Function
If (reader.Read()) Then
'****** loading Parent Code Combo
loadComboParentCode()
End Sub
Try
Dim record As New _netSystem._Record("Tbl_Menu")
record.Clear()
record = record.addRecord("MenuID", Val(TextBoxMenuID.Text))
record = record.addRecord("MenuCode", TextBoxMenuCode.Text)
record = record.addRecord("ParentCode",
DropDownListParentCode.SelectedItem.Value)
record = record.addRecord("MenuTitle", TextBoxMenuTitle.Text)
record = record.addRecord("Link", TextBoxLink.Text)
record = record.addRecord("Param", TextBoxParam.Text)
record = record.addRecord("Active",
CType(CheckBoxActive.Checked, Integer))
End Sub
TextBoxMenuID.Text = "-1"
TextBoxMenuCode.Text = ""
'DropDownListParentCode.Text = ""
TextBoxMenuTitle.Text = ""
TextBoxLink.Text = "-"
TextBoxParam.Text = ""
'DropDownListParentCode_SelectedIndexChanged(DropDownListParentCode, New
EventArgs())
inFo = "Add new"
netSystem._setInfo = inFo
End Sub
Catch ex As Exception
'inFo = ex.Message
'netSystem._setInfo = inFo
_setError = e x
End Try
End Sub
End Class
</asp:MultiView>
<asp:Label ID="LabelInfo" runat="server" Font-
Imports _netSystem
Imports System.Data.SqlClient
If (reader.Read()) Then
'****** Loading data
TextBoxConfigID.Text = reader("ConfigID").ToString()
TextBoxConfigKey.Text = reader("ConfigKey").ToString()
TextBoxConfigValue.Text =
reader("ConfigValue").ToString()
'****** Loading data
info = "Record loaded for editing."
Else
info = "Record not found."
End If
netSystem._setInfo = info
Catch ex As Exception
LabelInfo.Text = ex.Message
End Try
End Sub
Catch ex As Exception
LabelInfo.Text = ex.Message + "<br>" + netSystem.iSql '+
_Record.commandType.insertCommandPreparationOnly.GetHashCode().ToString()
End Try
End Sub
End Sub
End Sub
Width="128px"></asp:TextBox></td>
<td>
</td>
</tr>
<tr>
<td align="center" colspan="3">
<asp:Button
ID="ButtonMemberSearch" runat="server" CssClass="button" Text="Search
Now" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</asp:View>
<asp:View ID="View2" runat="server">
<table class="adminlist">
<tr>
<th>
Account Registration</th>
</tr>
<tr>
<td>
<table>
<tr>
<td colspan="5">
<table class="adminform" align="center">
<tr>
<td style="width: 141px">
<asp:ImageButton
ID="ImageButtonNewClientRegistration" runat="server"
ImageUrl="~/images/new_f2.png"
ToolTip="New" />
<asp:ImageButton
ID="ImageButtonSaveClientRegistraion" runat="server"
ImageUrl="~/images/save_f2.png"
<asp:ListItem>Female</asp:ListItem>
</asp:DropDownList>
<asp:TextBox ID="TextBoxClientID"
runat="server" Width="16px" CssClass="inputbox"
Visible="False"></asp:TextBox></td>
</tr>
<tr>
<td>
First Name</td>
<td>
<asp:TextBox ID="TextBoxFirstName"
runat="server" CssClass="inputbox"></asp:TextBox>
<asp:RequiredFieldValidator
ID="RequiredFieldValidatorFirstName" runat="server"
ControlToValidate="TextBoxFirstName"
ErrorMessage="First Name is
required." Font-Bold="True">**</asp:RequiredFieldValidator></td>
<td>
</td>
<td>
Marital Status</td>
<td><asp:DropDownList
</asp:MultiView>
<asp:Label ID="LabelInfo" runat="server" Font-
Bold="True" Font-Size="Large" ForeColor="Red"></asp:Label>
</asp:Content>
Imports _netSystem
Imports System.Data.SqlClient
If (reader.Read()) Then
'****** Loading data
TextBoxClientID.Text = reader("clientid").ToString()
TextBoxClientCode.Text =
reader("clientcode").ToString()
TextBoxFirstName.Text = reader("firstname").ToString()
TextBoxLastName.Text = reader("lastname").ToString()
TextBoxAddress.Text = reader("address").ToString()
DropDownListSex.Text = reader("sex").ToString()
DropDownListMaritalStatus.Text =
reader("maritalstatus").ToString()
TextBoxOccupation.Text =
reader("occupation").ToString()
TextBoxRemark.Text = reader("remark").ToString()
TextBoxUsername.Text = reader("UserName").ToString()
TextBoxPassword.Text =
reader("UserPassword").ToString()
signatureFile =
reader("signatureFile").ToString().Trim()
'signatureFile = signatureFile.Replace("\", "/")
End Sub
End Sub
End Sub
netSystem.netImage._showPicture(netSystem.netImage.getSignatureFile(Me
.TextBoxClientCode.Text))
'If MultiViewSignature.ActiveViewIndex = -1 Then
' MultiViewSignature.ActiveViewIndex = 0
' ButtonShowSignature.Text = "Hide Signature"
'Else
' MultiViewSignature.ActiveViewIndex = -1
' ButtonShowSignature.Text = "Show Signature"
'End If
End Sub
ControlToValidate="TextBoxVoucherDate" Display="Dynamic"
ErrorMessage="Voucher Date should be in format like : YYYY-MM-DD (ie.
2008-11-15)"
ValidationExpression="\d{4}-\d{2}-
\d{2}"><br> Require: YYYY-MM-DD <br>(ie. 2008-11-
15)</asp:RegularExpressionValidator></td>
<td valign="top">
</td>
<td valign="top" style="width: 79px">
Description</td>
<td style="width: 285px" valign="top">
<asp:TextBox
ID="TextBoxDescription" runat="server" CssClass="inputbox" Rows="5"
TextMode="MultiLine"
Width="271px"
Height="34px"></asp:TextBox></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<asp:Panel ID="PanelDetail" runat="server"
Height="65px" Visible="False" Width="125px">
<table style="width: 694px">
</asp:MultiView>
<asp:Label ID="LabelInfo" runat="server" Font-
Bold="True" Font-Size="Large" ForeColor="Red"
Visible="False">***</asp:Label>
</asp:Content>
Imports _netSystem
Imports System.Data.SqlClient
isql = _
" SELECT VoucherMasterID ID, VoucherDate VDate, VoucherNo
'#VNo', MDescription Description " + _
" FROM View_Voucher_Master " + _
where
'Response.Write(isql)
SqlDataSource1 = netSystem.netDatabase.getSqlDataSource(isql,
SqlDataSource1)
SqlDataSource1.DataBind()
Return (1)
Catch ex As Exception
_setError = ex
End Try
Return (0)
End Function
End Sub
End Sub
End Sub
If (reader.Read()) Then
'****** loading Vouher Type
loadComboVoucherType()
TextBoxVoucherMasterID.Text = masterID
isql = _
" SELECT VoucherDetailID, AccountCode ACode, Account,
Description, " + _
" 'Debit' = ( CASE WHEN Debit >= 1 THEN Debit ELSE NULL
END), " + _
" 'Credit' = ( CASE WHEN Credit >= 1 THEN Credit ELSE
NULL END) " + _
" FROM View_Voucher_Master_Detail " + _
" WHERE VoucherMasterID=" + masterID.ToString()
reader = netSystem.netDatabase.getReader(isql)
If
(netSystem.netDatabase.isRecordExist("View_Voucher_Master_Detail", "
WHERE VoucherMasterID=" + masterID.ToString())) Then
'***** if record found
If (reader.Read()) Then
SqlDataSourceVoucherDetail =
netSystem.netDatabase.getSqlDataSource(isql, SqlDataSourceVoucherDetail)
SqlDataSourceVoucherDetail.DataBind()
Dim rs As SqlDataReader
'**** Debit Calculation
isql = "SELECT sum(Debit) d FROM
View_Voucher_Master_Detail WHERE VoucherMasterID=" + masterID.ToString()
rs = netSystem.netDatabase.getReader(isql)
If (rs.Read()) Then
If (IsNumeric(rs("d"))) Then
dTotal = rs("d")
End If
End If
Dim i As Integer
For i = 0 To GridViewVoucherDetail.Columns.Count - 1
If GridViewVoucherDetail.Columns(i).HeaderText =
"Debit" Then
GridViewVoucherDetail.Columns(i).FooterText =
Format(dTotal, "###,##.#0")
ElseIf
GridViewVoucherDetail.Columns(i).HeaderText = "Credit" Then
Catch ex As Exception
netSystem._setInfo = ex.Message
End Try
netSystem._setInfo = info
End Sub
searchVoucher(dt, vn)
MultiView2.ActiveViewIndex = 2
Try
Dim record As New _netSystem._Record("Tbl_Voucher_Detail")
Dim userName As String
If Session("UserName") <> "" Then
userName = Session("UserName")
Else
userName = "Unknown"
End If
record.Clear()
record = record.addRecord("VoucherDetailID", "-1")
record = record.addRecord("VoucherMasterID",
Val(TextBoxVoucherMasterID.Text))
record = record.addRecord("AccountCode",
TextBoxDetailAccountCode.Text)
record = record.addRecord("Description",
TextBoxDetailDescription.Text)
record = record.addRecord("Debit",
Val(TextBoxDetailDebit.Text))
record = record.addRecord("Credit",
Val(TextBoxDetailCredit.Text))
record = record.addRecord("LastUser", userName)
Try
Dim record As New _netSystem._Record("Tbl_Voucher_Master")
Dim userName As String
If Session("UserName") <> "" Then
userName = Session("UserName")
Else
userName = "Unknown"
End If
record.Clear()
record = record.addRecord("VoucherMasterID",
Val(TextBoxVoucherMasterID.Text))
record = record.addRecord("VoucherNo", TextBoxVoucherNo.Text)
record = record.addRecord("VoucherType",
DropDownListVoucherType.SelectedItem.Value)
record = record.addRecord("VoucherDate",
TextBoxVoucherDate.Text)
record = record.addRecord("Description",
TextBoxDescription.Text)
record = record.addRecord("LastUser", userName)
Catch ex As Exception
LabelInfo.Text = ex.Message + "<br>" + netSystem.iSql '+
_Record.commandType.insertCommandPreparationOnly.GetHashCode().ToString()
End Try
netSystem._setInfo = info
End Sub
loadComboVoucherType()
voucherMasterID = -1
TextBoxVoucherMasterID.Text = voucherMasterID
TextBoxVoucherNo.Text = ""
TextBoxVoucherDate.Text = ""
TextBoxDescription.Text = ""
info = "Add new voucher master. "
netSystem._setInfo = info
Catch ex As Exception
End Sub
'GridViewVoucherDetail.Rows(GridViewVoucherDetail.EditIndex).Cells(ACodeI
ndx + 5).Text
'Response.Write("A:" +
Request.Cookies("AccountCode").Value + " V:" +
Request.Cookies("VoucherDetailID").Value + " EI: " +
GridViewVoucherDetail.EditIndex.ToString + " CELL: " +
Request.Cookies("VoucherDetailID").Value)
GridViewVoucherDetail.Columns(netSystem._getGridViewColumnIndex(Me.GridVi
ewVoucherDetail, "[AC]")).Visible = False
info = "Voucher Detail record updated. "
ElseIf (e.CommandName = "Edit") Then
GridViewVoucherDetail.Columns(netSystem._getGridViewColumnIndex(Me.GridVi
ewVoucherDetail, "[AC]")).Visible = True
info = "Voucher detail record editing. "
ElseIf (e.CommandName = "Cancel") Then
info = "Voucher detail record editing canceled."
GridViewVoucherDetail.Columns(netSystem._getGridViewColumnIndex(Me.GridVi
ewVoucherDetail, "[AC]")).Visible = False
ElseIf (e.CommandName = "New") Then
'************* New Command
newVoucherDetail()
PanelDetail.Visible = True
info = "Add new voucher detail record."
'GridViewVoucherDetail.EditIndex =
GridViewVoucherDetail.Rows.Count
End If
Dim m As String = info
ButtonEditClient_Click(sender, e)
netSystem._setInfo = m
Catch ex As Exception
_setError = ex
End Try
End Sub
End Sub
End Class
<strong>Date:</strong></td>
<td>
<asp:Label
ID="LabelDateDuration" runat="server" Text=".."></asp:Label></td>
</tr>
</table>
</td>
</tr>
<tr class="row1">
<td>
<asp:GridView ID="GridViewLedger"
runat="server" CellPadding="4" ForeColor="#333333"
</asp:MultiView>
Imports _netSystem
Imports System.Data.SqlClient
LabelAccuntName.Text =
netSystem.netDatabase.getTableValue("Tbl_Account", "Account", " WHERE
AccountCode='" + accountCode + "'")
LabelDateDuration.Text = "From " + dateFrom + " To " +
dateTo
iSql = _
" SELECT * FROM (" + _
" SELECT NULL as VoucherDetailID, NULL VoucherMasterID,
NULL VDate, NULL VNo, '*** Balance Carry Down ***' as Description, " +
_
" 'Debit' = SUM(CASE WHEN Debit >= 1 THEN Debit ELSE NULL
END), " + _
" 'Credit' = SUM(CASE WHEN Credit >=1 THEN Credit ELSE
NULL END), " + _
" 'Balance' = NULL " + _
" FROM View_Voucher_Master_Detail " + _
" WHERE (" + _
" AccountCode='" + accountCode + "'" + _
" ) AND ( VoucherDate<'" + dateFrom + "')"
+ _
" ) as A " + _
" UNION " + _
" SELECT * FROM " + _
" (SELECT VoucherDetailID, VoucherMasterID , VoucherDate
VDate, VoucherNo VNo, ('<a href=../com_report/voucher.aspx?vm=' +
Dim rs As SqlDataReader
iSql = _
" SELECT sum(Debit) d, sum(Credit) c FROM
View_Voucher_Master_Detail WHERE (AccountCode='" + accountCode + "') "
+ _
" AND ( VoucherDate<='" + dateTo + "')"
rs = netSystem.netDatabase.getReader(iSql)
If (rs.Read()) Then
'**** Debit Calculation
If (IsNumeric(rs("d"))) Then
dTotal = rs("d")
End If
''**** Credit Calculation
If (IsNumeric(rs("c"))) Then
cTotal = rs("c")
End If
End If
Dim i As Integer
For i = 0 To GridViewLedger.Columns.Count - 1
If GridViewLedger.Columns(i).HeaderText = "Debit" Then
GridViewLedger.Columns(i).FooterText =
Format(dTotal, "#,##.#0")
ElseIf GridViewLedger.Columns(i).HeaderText = "Credit"
Then
GridViewLedger.Columns(i).FooterText =
Format(cTotal, "#,##.#0")
ElseIf GridViewLedger.Columns(i).HeaderText =
"Balance" Then
GridViewLedger.Columns(i).FooterText =
Format(dTotal - cTotal, "#,##.#0")
End If
Next
netSystem._CalculateGridViewDebitCreditBalance(GridViewLedger)
Sub loadSearchAccountDropDownList()
iSql = _
" SELECT DISTINCT a.AccountCode, (a.AccountCode + '-'+
a.Account) Account " + _
" FROM Tbl_Account a INNER JOIN Tbl_Voucher_Detail b " + _
" ON a.AccountCode = b.AccountCode ORDER BY a.AccountCode"
netSystem._fillComboList(DropDownListSearchAccount, iSql)
MultiView2.ActiveViewIndex = 0
End Sub
End Class
<strong>Report:</strong></td>
<td>
<asp:Label
ID="LabelAccuntName" runat="server" Text=".."></asp:Label></td>
</tr>
<tr>
<td>
<strong>Date:</strong></td>
<td>
<asp:Label
ID="LabelDateDuration" runat="server" Text=".."></asp:Label></td>
</tr>
</table>
</td>
</tr>
<tr class="row1">
<td>
<asp:GridView ID="GridViewLedger"
runat="server" CellPadding="4" ForeColor="#333333"
GridLines="Horizontal" DataSourceID="SqlDataSource1"
AllowPaging="True" CssClass="adminlist" AutoGenerateColumns="False"
ShowFooter="True">
<FooterStyle BackColor="Info" Font-
Bold="True" ForeColor="Red" Font-Size="110%" Font-Strikeout="False" />
<RowStyle BackColor="#F7F6F3"
ForeColor="#333333" Height="30px" />
<EditRowStyle BackColor="#999999" />
<SelectedRowStyle BackColor="#E2DED6"
Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#284775"
ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#5D7B9D" Font-
Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White"
ForeColor="#284775" />
<Columns>
<asp:CommandField ButtonType="Image"
SelectImageUrl="~/images/arrow.gif" ShowSelectButton="True" />
<asp:BoundField
DataField="AccountCode" HeaderText="A/C Code" />
<asp:BoundField DataField="Account"
HeaderText="Account" HtmlEncode="False" />
</asp:MultiView>
<asp:Label ID="LabelInfo" runat="server" Font-
Bold="True" Font-Size="Large" ForeColor="Red"></asp:Label>
</asp:Content>
Imports _netSystem
Imports System.Data.SqlClient
iSql = _
" SELECT AccountCode, ('<a href=ledger.aspx?acCode=' +
AccountCode + '&dateFrom=" + dateFrom + "&dateTo=" + dateTo + ">' +
Account + '</a>') Account, " + _
" 'Debit' = (CASE " + _
" WHEN (SUM(Debit-Credit)) IS NULL THEN NULL " + _
" WHEN (SUM(Debit-Credit)) <= 0 THEN NULL " + _
" ELSE SUM(Debit-Credit) END), " + _
" 'Credit' = (CASE " + _
" WHEN (SUM(Debit-Credit)) IS NULL THEN NULL " + _
" WHEN (SUM(Debit-Credit)) <= 0 THEN SUM(Credit-Debit) " + _
" ELSE NULL END) " + _
" FROM View_Voucher_Master_Detail " + _
" WHERE " + _
" ( VoucherDate>='" + dateFrom + "' AND
VoucherDate<='" + dateTo + "') " + _
" Group By AccountCode, Account " + _
" Order By AccountCode, Account "
SqlDataSource1 = netSystem.netDatabase.getSqlDataSource(iSql,
SqlDataSource1)
SqlDataSource1.DataBind()
Dim rs As SqlDataReader
'**** Debit Calculation
iSql = _
" SELECT SUM(Debit) d, SUM(Credit) c " + _
" FROM (SELECT AccountCode, Account, " + _
" 'Debit' = (CASE " + _
" WHEN (SUM(Debit-Credit)) IS NULL THEN 0 " + _
" WHEN (SUM(Debit-Credit)) <= 0 THEN 0 " + _
" ELSE SUM(Debit-Credit) END), " + _
" 'Credit' = (CASE " + _
" WHEN (SUM(Debit-Credit)) IS NULL THEN 0 " + _
" WHEN (SUM(Debit-Credit)) <= 0 THEN SUM(Credit-Debit) " + _
" ELSE 0 END) " + _
" FROM View_Voucher_Master_Detail " + _
" WHERE " + _
" ( VoucherDate>='" + dateFrom + "' AND VoucherDate<='" +
dateTo + "') " + _
" Group By AccountCode, Account) as A"
rs = netSystem.netDatabase.getReader(iSql)
If (rs.Read()) Then
If (IsNumeric(rs("d"))) Then
dTotal = rs("d")
End If
If (IsNumeric(rs("c"))) Then
cTotal = rs("c")
End If
End If
Dim i As Integer
For i = 0 To GridViewLedger.Columns.Count - 1
If GridViewLedger.Columns(i).HeaderText = "Debit" Then
GridViewLedger.Columns(i).FooterText = Format(dTotal,
"#,##.#0")
ElseIf GridViewLedger.Columns(i).HeaderText = "Credit"
Then
GridViewLedger.Columns(i).FooterText = Format(cTotal,
Sub loadSearchAccountDropDownList()
iSql = _
" SELECT DISTINCT a.AccountCode, (a.AccountCode + '-'+ a.Account)
Account " + _
" FROM Tbl_Account a INNER JOIN Tbl_Voucher_Detail b " + _
" ON a.AccountCode = b.AccountCode ORDER BY a.AccountCode"
netSystem._fillComboList(DropDownListSearchAccount, iSql)
End Sub
MultiView2.ActiveViewIndex = 0
End Sub
End Class
Imports _netSystem
Imports System.Data.SqlClient
isql = _
" SELECT VoucherMasterID ID, VoucherDate VDate, VoucherNo
'#VNo', MDescription Description " + _
" FROM View_Voucher_Master " + _
where
Response.Write(isql)
SqlDataSource1 =
netSystem.netDatabase.getSqlDataSource(isql, SqlDataSource1)
SqlDataSource1.DataBind()
Return (1)
Catch ex As Exception
_setError = ex
End Try
Return (0)
End Function
End Sub
End Sub
End Sub
If (reader.Read()) Then
'****** loading Vouher Type
loadComboVoucherType()
TextBoxVoucherMasterID.Text = masterID
isql = _
" SELECT VoucherDetailID, AccountCode ACode, Account,
Description, " + _
" 'Debit' = ( CAS E WHEN Debit >= 1 THEN Debit ELSE NULL
END), " + _
" 'Credit' = ( CASE WHEN Credit >= 1 THEN Credit ELSE
NULL END) " + _
" FROM View_Voucher_Master_Detail " + _
" WHERE VoucherMasterID=" + masterID.ToString()
reader = netSystem.netDatabase.getReader(isql)
If
(netSystem.netDatabase.isRecordExist("View_Voucher_Master_Detail", "
WHERE VoucherMasterID=" + masterID.ToString())) Then
'***** if record found
If (reader.Read()) Then
SqlDataSourceVoucherDetail =
netSystem.netDatabase.getSqlDataSource(isql, SqlDataSourceVoucherDetail)
SqlDataSourceVoucherDetail.DataBind()
Dim rs As SqlDataReader
'**** Debit Calculation
isql = "SELECT sum(Debit) d FROM
Dim i As Integer
For i = 0 To GridViewVoucherDetail.Columns.Count - 1
If GridViewVoucherDetail.Columns(i).HeaderText =
"Debit" Then
GridViewVoucherDetail.Columns(i).FooterText
= Format(dTotal, "###,##.#0")
ElseIf
GridViewVoucherDetail.Columns(i).HeaderText = "Credit" Then
GridViewVoucherDetail.Columns(i).FooterText
= Format(cTotal, "###,##.#0")
End If
Next
'GridViewVoucherDetail.Columns(4).FooterText =
Format(dTotal, "000,00.00")
'GridViewVoucherDetail.Columns(5).FooterText =
Format(cTotal, "000,00.00")
info = "@Voucher details loaded. "
End If
Else
'*** if record is not found
SqlDataSourceVoucherDetail =
netSystem.netDatabase.getSqlDataSource(isql, SqlDataSourceVoucherDetail)
SqlDataSourceVoucherDetail.DataBind()
info = "@Voucher detail record not found. "
End If
Catch ex As Exception
netSystem._setInfo = ex.Message
End Try
netSystem._setInfo = info
End Sub
searchVoucher(dt, vn)
MultiView2.ActiveViewIndex = 2
'GridViewVoucherDetail.Rows(GridViewVoucherDetail.EditIndex).Cells(ACode
Indx + 5).Text
'Response.Write("A:" +
Request.Cookies("AccountCode").Value + " V:" +
Request.Cookies("VoucherDetailID").Value + " EI: " +
GridViewVoucherDetail.EditIndex.ToString + " CELL: " +
Request.Cookies("VoucherDetailID").Value)
GridViewVoucherDetail.Columns(netSystem._getGridViewColumnIndex(Me.GridV
iewVoucherDetail, "[AC]")).Visible = False
info = "Voucher Detail record updated. "
ElseIf (e.CommandName = "Edit") Then
GridViewVoucherDetail.Columns(netSystem._getGridViewColumnIndex(Me.GridV
iewVoucherDetail, "[AC]")).Visible = True
info = "Voucher detail record editing. "
GridViewVoucherDetail.Columns(netSystem._getGridViewColumnIndex(Me.GridV
iewVoucherDetail, "[AC]")).Visible = False
ElseIf (e.CommandName = "New") Then
'************* New Command
info = "Add new voucher detail record."
'GridViewVoucherDetail.EditIndex =
GridViewVoucherDetail.Rows.Count
End If
Dim m As String = info
ButtonEditClient_Click(sender, e)
netSystem._setInfo = m
Catch ex As Exception
_setError = ex
End Try
End Sub
End Class
</div>
<br />
<br />
Imports System.Data.SqlClient
End Class
Imports _netSystem
End Sub
End Class
</div>
<div id="main-board">
<!-- <div id="banner"> </div> -->
<!-- <asp:Label ID="LabelError" runat="server" Text="<div
id='banner'> Error here </div>"></asp:Label> -->
<asp:contentplaceholder id="ContentPlaceHolder1"
runat="server">
</asp:contentplaceholder>
</div>
<div id="footer">
<strong><u>Contact Address:</u><br />
</strong>Sahara Software Inc. Coorporation<br />
Kathmandu, Nepal<br />
Tel. Ph. No.:977 (1) 5555555<br />
Fax: 977 (1) 555555<br />
Email: rajen@saharabanking.com.np<br />
URL: www.saharabanking.com.np<br />
<br />
All Right ® Copy Right © 2008, Sahara Software
</div>
</div>
</form>
</body>
</html>
Imports System.Data.SqlClient
'loadMenu()
netSystem._getLoadedTree(TreeView1, "tbl_menu", "MenuCode",
"ParentCode", "MenuTitle", "Link", " Active=-1 ", False)
LabelFrontTime.Text = Format(Now, "dddd, d MMMM yyyy")
LabelFrontUserName.Text = "Welcome to " + userName
End Sub
' End If
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration
xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings>
<add key="DSN"
value="server=sahara\SQLEXPRESS;uid=ganapati;pwd=ganapati;database=online
banking"/>
<add key="bgColor" value="white"/>
</appSettings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
<customErrors mode="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>