Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Thank you for evaluating Enterprise Data Manager , created by (Harleen ,Jaspreet*) . The
Enterprise Data Manager edition is designed to help you enable your organization to efficiently
organize and search information which is crucial to many aspects of your Data Management .
One can add , modify , delete , search data based on any criteria . The Enterprise Data Manager
Works with any MS Access Data base, and it automatically picks up the database schema , creates
GUI for searching and manipulating data of the said tables .
One should be generally familiar with the use of a personal computer and desktop based softwares,
This guide is not intended for system administration personnel who need to install and configure the
system as part of its initial implementation.
Enterprise Data Manager is built on established technologies and widely supported industry
standards, including the .NET development environment, the MS Acess, and works with Windows
Server operating systems.
Project Report
Enterprise Data Manager dynamically creates the windows screens displayed by the Data browser
when you click certain buttons in the Application
Enterprise Data Manager is designed for a minimum 1024x768-pixel screen display resolution.
Log In Information
Your system administrator assigns log in information – a user name and password – to every system
user. If you have not received your user name and password combination, contact your system
administrator.
If you do not provide the correct user name and password, Enterprise Data Manager does not allow
you access to the system.
Project Report
This is the ENTERPRISE DATA MANAGER log in screen. If you do not see a log in screen, verify
that you have clicked the Application Short cut correctly, or contact your system administrator to
verify that you have the correct Shortcut
To proceed, you must log in to the system by providing a valid user name and password.
Project Report
Welcome Screen : as shown below will reflect your Name and Your role :
You can change your password at any time. It is a good idea to change your password occasionally.
Project Report
If you forget your password, you must contact your system administrator, who will reset it to a value
which you can use temporarily. You should then log in to the system, and change the password to
another value of your own choosing, according to the procedure described above.
1) Log In Menu
2) Open MS Access Data Base File
3) Save the Data
4) Exit from the Enterprise Data management
5) Data Control
6) Search the data
7) Help
1
2
4
7
5 6
Project Report
Project Report
Project Report
Project Report
Project Report
Query Based on ID
Project Report
When you log out, the system performs several ‘clean-up’ procedures, and then automatically returns
the application to the Login screen.
To log out:
1. Click the Logout link in the Menu area (), in the top right hand area of the screen.
2. Close the browser window.
If PasswordTextBox.Text = "pass"
AndAlso UsernameTextBox.Text = "myUser"
Then
My.Forms.MainFrm.Show()
Else
Project Report
'Application title
If My.Application.Info.Title <> ""
Then
ApplicationTitle.Text =
My.Application.Info.Title
Else
'If the application title is
missing, use the application name, without
the extension
ApplicationTitle.Text =
System.IO.Path.GetFileNameWithoutExtension(
My.Application.Info.AssemblyName)
End If
Project Report
Version.Text =
System.String.Format(Version.Text,
My.Application.Info.Version.Major,
My.Application.Info.Version.Minor)
'Copyright info
Copyright.Text =
My.Application.Info.Copyright
End Sub
Project Report
Project Report
Project Report
Me.BindingContext(accessDataSet,
comboTables.Text).EndCurrentEdit()
' Get the changes that have
been made to the main dataset.
objDataSetChanges =
CType(accessDataSet.GetChanges(), DataSet)
' Check to see if any changes
have been made.
If Not (objDataSetChanges Is
Nothing) Then
'alert the user that in
order to view the same data
'in the search he/she has
to save the file
Dim r As DialogResult =
MessageBox.Show("The database file changed,
in oder to see your changes in the search
Project Report
#End Region
Loading Data
#Region "LoadData"
'Here data is read from the
database
'and all the parameters are set
'Select string is the SQL command
required
'to view the data
Public Sub LoadData(ByVal
SelectString As String)
Me.Cursor = Cursors.WaitCursor
Me.Text = "Enterprise Data
Manager : Loading Data Please Wait..."
Try
accessDataSet = New
DataSet()
Dim accessDataTable As
DataTable
Project Report
accessDataAdapter = Nothing
accessDataAdapter = New
OleDbDataAdapter()
accessSelectCommand.CommandText =
SelectString
accessSelectCommand.Connection =
accessConnection
accessDataAdapter.SelectCommand =
accessSelectCommand
accessDataAdapter.TableMappings.AddRange(Ne
w System.Data.Common.DataTableMapping()
{New
Project Report
accessDataAdapter.FillSchema(accessDataSet,
SchemaType.Source, comboTables.Text)
accessDataAdapter.Fill(accessDataSet)
accessInsertCommand.Connection =
accessConnection
make_Insert_Command(accessDataTable,
accessInsertCommand)
accessDataAdapter.InsertCommand =
accessInsertCommand
Project Report
make_Update_Command(accessDataTable,
accessUpdateCommand)
accessDataAdapter.UpdateCommand =
accessUpdateCommand
accessDeleteCommand.Connection =
accessConnection
make_Delete_Command(accessDataTable,
accessDeleteCommand)
accessDataAdapter.DeleteCommand =
accessDeleteCommand
TextControl.DataBindings.Add(New
System.Windows.Forms.Binding("Text",
Me.accessDataSet, comboTables.Text + "." +
accessDataSet.Tables(comboTables.Text).Colu
mns(i).ToString()))
Me.Controls.Add(TextControl)
Me.Controls.Add(LabelControl)
Project Report
arrange_Controls(controlTop,
accessDataTable.Columns.Count)
Project Report
'Create AutoInsertion of
Date for only 'DateTime' Type
'columns and
'AutoNumber to only
'Integer' type columns
For i = 0 To
accessDataTable.Columns.Count - 1
If colType(i) =
"System.Int32" Then
Dim Item1 As New
MenuItem("Automatic Incrementation")
AddHandler
Item1.Click, AddressOf Me.cMenuClick
AutoMenu(i) = New
ContextMenu(New MenuItem() {Item1})
Else
If colType(i) =
"System.DateTime" Then
Dim Item1 As
New MenuItem("Automatic Insertion of
Today's Date")
AddHandler
Item1.Click, AddressOf Me.cMenuClick
AutoMenu(i) =
New ContextMenu(New MenuItem() {Item1})
End If
End If
Project Report
#End Region
#Region "make_Insert_Command"
'Here the command string and the
parameters are
'assigned dynamically for the
insert command
Private Sub
make_Insert_Command(ByVal datatable As
DataTable, ByVal insertcommand As
OleDbCommand)
Dim insertString1 As String =
"INSERT INTO [" + comboTables.Text + "] ("
Dim insertString2 As String =
""
Project Report
If i <>
datatable.Columns.Count - 1 Then
insertString1 += ","
insertString2 += ","
Else
insertString1 += ")
VALUES (" + insertString2 + ")"
End If
insertcommand.Parameters.Add(New
System.Data.OleDb.OleDbParameter(datatable.
Columns(i).Caption,
System.Data.OleDb.OleDbType.Variant, 16,
datatable.Columns(i).Caption))
Next i
insertcommand.CommandText =
insertString1
End Sub 'make_Insert_Command
#End Region
Update Data Code Listing
#Region "make_Update_Command"
'Here the command string and the
parameters are
'assigned for the update command
Project Report
Dim i As Integer
For i = 0 To
datatable.Columns.Count - 1
If
datatable.Columns(i).AutoIncrement <> True
Then
updateString1 += "[" +
datatable.Columns(i).Caption + "] = ? "
If i <>
datatable.Columns.Count - 1 Then
updateString1 += "
, "
End If
Dim colSQLType As
OleDbType =
Return_OleDBType(datatable.Columns(i).DataT
ype.ToString())
updatecommand.Parameters.Add(New
OleDbParameter(datatable.Columns(i).Caption
, colSQLType, 0,
datatable.Columns(i).Caption))
End If
Project Report
If i <>
datatable.Columns.Count - 1 Then
updateString2 += " AND
"
Else
updateString1 += "
WHERE (" + updateString2 + ")"
End If
Next i
For i = 0 To
datatable.Columns.Count - 1
Dim colSQLType As OleDbType
=
Return_OleDBType(datatable.Columns(i).DataT
ype.ToString())
updatecommand.Parameters.Add(New
OleDbParameter("Original_" +
datatable.Columns(i).Caption, colSQLType,
0, System.Data.ParameterDirection.Input,
False, CType(10, System.Byte), CType(10,
System.Byte), datatable.Columns(i).Caption,
System.Data.DataRowVersion.Original,
Nothing))
updatecommand.Parameters.Add(New
OleDbParameter("Original_" +
Project Report
updatecommand.CommandText =
updateString1
End Sub 'make_Update_Command
AutoMenu(hti.Column).Show(dGrid, New
Point(e.X, e.Y))
End If
End Select
End Sub 'dGrid_MouseDown
Dim i As Integer
For i = 0 To
(accessDataSet.Tables(comboTables.Text).Col
umns.Count) - 1
If colType(i) =
"System.Int32" AndAlso
AutoMenu(i).MenuItems(0).Checked = True
Then
If row > 1 Then
Try
UpdateTextBoxes(i,
Convert.ToString((CInt(dGrid(dGrid.CurrentC
ell.RowNumber - 1, i)) + 1)))
Catch
End Try
End If
End If
If colType(i) =
"System.DateTime" AndAlso
AutoMenu(i).MenuItems(0).Checked = True
Then
If (True) Then
UpdateTextBoxes(i,
System.DateTime.Now.Date.ToString())
End If
End If
Project Report
Project Report
If
accessDataTable.Columns(columnHit).DataType
.ToString() = "System.Byte[]" Then
MessageBox.Show("This
DataType Cannot Be Filtered", "Unable To Do
Filter", MessageBoxButtons.OK,
MessageBoxIcon.Exclamation)
Return
End If
checkedMenu(columnHit) =
tempItem.Text
Try
loadData(MakeSelectString(checkedMenu))
lblSelectString.Text =
"Select Command = " +
MakeSelectString(checkedMenu)
Catch
End Try
End Sub 'cMenuClick
#End Region
End-of codelisting :
Project Report