This document provides instructions for creating an object-oriented programming (OOP) tutorial in Visual Basic .NET and Microsoft Access. It includes sections on creating a database in Access, building an application in Visual Basic, adding reporting functionality, and deploying the completed application. The steps outlined include creating classes for database connection, entities, controls and forms, as well as instructions for building forms, controls, and reports. The goal of the tutorial is to explain basic OOP concepts and techniques using Visual Basic and Access.
This document provides instructions for connecting an SQLite database to an Android application using Android Studio. It describes creating a database using SQLite Manager and placing it in the Android project's assets folder. It then explains creating a Connection class with paths to the database folder and file. The document outlines creating a DataDB class to connect to the Connection class and calling getNameDB in the MainActivity to retrieve the database name. It provides code snippets for the Connection and DataDB classes.
This class defines a DBConnectionPane that allows a user to select a JDBC driver and database URL to establish a connection. It displays input fields for the driver, URL, username, and password. When the connect button is clicked, it tries to create a connection and handles any errors, displaying messages. It also includes a test program that uses the connection to display database tables.
Cis407 a ilab 6 web application development devry universitylhkslkdh89009
This document provides instructions for an iLab assignment to create a login form for a web application. Students are asked to:
1. Create a login form that validates username and password and assigns a session variable for the user's security level.
2. Restrict access to certain functions on an existing form based on the security level.
3. Add a user management form to allow adding, editing, and removing users, and testing the login and security functionality.
The assignment involves adding authentication code, restricting page elements based on roles, and creating a user database interface form. Students are provided detailed steps and advised to add comments to their code.
Detect and fix the azure sql resources which uses tls version less than 1.2Prancer Io
This document provides steps to detect and remediate Azure SQL resources that use TLS versions less than 1.2 using the Prancer platform. It outlines uploading configuration files to define connectors, snapshots, compliance tests and rules. Running a crawler to retrieve resources, running compliance tests to detect issues, and using remediation to automatically update non-compliant resources to TLS 1.2. It recommends verifying remediation by checking the Azure SQL configuration on the Azure portal.
1) The document provides instructions for an iLab assignment to create a login form that validates users and assigns a security level session variable.
2) Based on the security level, certain functions and links will be displayed or hidden on an existing form.
3) Students will also create a "Manage Users" page for adding, removing, and updating users in the system.
This lab walks you through a development cycle using the XPages Extension Library and the ApplicationLayout control. Originally presented at the Austin XPages Advanced Development seminar Dec 2010.
This document provides instructions for running a JavaServer Page (JSP) program using the Apache Tomcat web server. It describes how to install Java and Apache Tomcat, create a simple "Hello World" JSP file, and access it by entering a URL in a web browser. Key steps include creating a JSP file called "first.jsp", adding it to a project folder, and accessing it at a URL like http://localhost:8080/projectfolder/first.jsp to run the program on the Tomcat server.
This document provides 53 registry keys and values that can be modified to customize Windows and applications like Internet Explorer and Outlook. Some examples include changing the default email client, restricting password changes, modifying Explorer context menus, and clearing Outlook location histories.
This document provides instructions for connecting an SQLite database to an Android application using Android Studio. It describes creating a database using SQLite Manager and placing it in the Android project's assets folder. It then explains creating a Connection class with paths to the database folder and file. The document outlines creating a DataDB class to connect to the Connection class and calling getNameDB in the MainActivity to retrieve the database name. It provides code snippets for the Connection and DataDB classes.
This class defines a DBConnectionPane that allows a user to select a JDBC driver and database URL to establish a connection. It displays input fields for the driver, URL, username, and password. When the connect button is clicked, it tries to create a connection and handles any errors, displaying messages. It also includes a test program that uses the connection to display database tables.
Cis407 a ilab 6 web application development devry universitylhkslkdh89009
This document provides instructions for an iLab assignment to create a login form for a web application. Students are asked to:
1. Create a login form that validates username and password and assigns a session variable for the user's security level.
2. Restrict access to certain functions on an existing form based on the security level.
3. Add a user management form to allow adding, editing, and removing users, and testing the login and security functionality.
The assignment involves adding authentication code, restricting page elements based on roles, and creating a user database interface form. Students are provided detailed steps and advised to add comments to their code.
Detect and fix the azure sql resources which uses tls version less than 1.2Prancer Io
This document provides steps to detect and remediate Azure SQL resources that use TLS versions less than 1.2 using the Prancer platform. It outlines uploading configuration files to define connectors, snapshots, compliance tests and rules. Running a crawler to retrieve resources, running compliance tests to detect issues, and using remediation to automatically update non-compliant resources to TLS 1.2. It recommends verifying remediation by checking the Azure SQL configuration on the Azure portal.
1) The document provides instructions for an iLab assignment to create a login form that validates users and assigns a security level session variable.
2) Based on the security level, certain functions and links will be displayed or hidden on an existing form.
3) Students will also create a "Manage Users" page for adding, removing, and updating users in the system.
This lab walks you through a development cycle using the XPages Extension Library and the ApplicationLayout control. Originally presented at the Austin XPages Advanced Development seminar Dec 2010.
This document provides instructions for running a JavaServer Page (JSP) program using the Apache Tomcat web server. It describes how to install Java and Apache Tomcat, create a simple "Hello World" JSP file, and access it by entering a URL in a web browser. Key steps include creating a JSP file called "first.jsp", adding it to a project folder, and accessing it at a URL like http://localhost:8080/projectfolder/first.jsp to run the program on the Tomcat server.
This document provides 53 registry keys and values that can be modified to customize Windows and applications like Internet Explorer and Outlook. Some examples include changing the default email client, restricting password changes, modifying Explorer context menus, and clearing Outlook location histories.
Lab: Mobile App Development with XPages and Extension LibraryWorkFlowStudios
The document describes creating a mobile application using XPages to view movies and actors from an existing Notes database. It involves modeling the mobile page flow with main and detail pages, creating the pages using Mobile Page controls, and adding views and panels to display the movie and actor data. Tapping a movie in the list transitions to a new page displaying that movie's actors, fetched via lookups to the underlying Notes documents.
Flex Building User Interface ComponentsAhmad Hamid
design user interface components in flex is just like any other language. This presentation provides some guidelines as to how such components should be design and implemented with performance in mind.
This document is a user manual for an address book application. It provides instructions on installing the application, setting up users and permissions, integrating additional features like synchronization with email/mobile devices, customizing the look and feel, upgrading to new versions, and managing addresses within the system through the web interface, mobile apps, or email. The key sections cover quick or manual installation, configuring user accounts and permissions, integrating with services like Google/Facebook, and accessing and managing address entries.
Installation Process Of New Gen Lib Oss On Windows Xp For Library Automation ...Goutam Biswas
The document provides step-by-step instructions for installing NewGenLib, an open source library automation software, on Windows XP. It details downloading required files, setting up Java, PostgreSQL, and JBoss Application Server, extracting and configuring NewGenLib files, and accessing the software through a web browser.
Practical Installation Process Of New Gen Lib Oss On Windows Xp For Library A...Goutam Biswas
The document provides step-by-step instructions for installing NewGenLib open source library automation software on Windows XP. It details downloading required files, setting up Java, PostgreSQL and JBoss Application Server, extracting and configuring files, and accessing the software interface through a web browser. The installation process establishes the database, deploys the application, and allows login and navigation of the library management modules.
The document provides step-by-step instructions for installing NewGenLib library management software on a Windows machine. It describes downloading required files, setting up Java, PostgreSQL and JBoss Application Server, extracting and configuring NewGenLib files, and accessing the software through a web browser.
Spring IOC advantages and developing spring application sample Sunil kumar Mohanty
This document provides an over view of spring IOC and it's advantages. It also gives basic idea on the spring core container. At the last it describes how develop a simple spring application
Chapter 2. Make Business Process and Getting the Data with YAWLDewi Rahmawati
This document provides instructions on installing and using YAWL, ProM, and Java to model a business process, simulate the process to generate an event log, and export files for analysis in ProM. It covers downloading and installing the latest versions of Java, YAWL, and ProM, modeling the port container handling process in YAWL Editor, simulating the process in YAWL Logon to generate an event log, and exporting the business process model, organizational data, and event log files for analysis in the next chapter using ProM.
Introduction to React for Frontend DevelopersSergio Nakamura
The document provides an introduction to React for frontend developers. It discusses why React is useful, including its declarative style, automatic updates, use of a virtual DOM, and modular component structure. It then covers React basics like building functional components, what JSX is, and how to use JavaScript code within JSX.
This document summarizes key concepts about graphical elements, intents, and activities in Android app development:
I. Views and ViewGroups are the basic graphical elements in Android. Views occupy screen space while ViewGroups are invisible containers that define element placement. Layouts like LinearLayout are ViewGroups that organize widgets.
II. An example app interface is created with buttons, text views, and inputs. Buttons can define click behavior via listeners, methods, or implementing interfaces. Text fields read and modify content.
III. Intents pass actions and data between app components. ExplicitIntents specify started components while ImplicitIntents declare actions. Data is passed via extras. Activities can start each other and return results via
The document provides instructions for creating a custom toolbar button in Acrobat using AcroButtons. It describes a 5 step process: 1) Create a new button, 2) Name the button, 3) Select an image for the button face, 4) Select an action for the button to perform, and 5) Save the button. It then provides more detailed explanations and screenshots for each step.
This document provides instructions for implementing a simple web service using Eclipse. It begins with background on web services and their components. It then discusses the top-down and bottom-up approaches to web service development. The document walks through setting up Eclipse with the necessary plugins. It provides step-by-step instructions to create a project, write the service logic, generate the web service and client, test the service, and use the client. It includes an introduction, background sections on web services and Eclipse setup, and detailed steps for creating a "Hello" web service that returns a greeting message.
Sencha Touch is a JavaScript framework for developing mobile web applications. It allows developers to use HTML5, CSS, and JavaScript to build apps that look and feel like native mobile apps. Sencha Touch abstracts away platform differences and provides common mobile UI components like panels, toolbars, lists, and forms. It also includes features like templating, data stores, and layouts to help structure and style mobile apps.
This document provides instructions for configuring DataDirect SequeLink software to access data using ODBC drivers from a UNIX or Linux machine. It describes downloading and installing the SequeLink Client on the machine running PowerCenter services and the SequeLink Server on the Windows machine where the data resides. It also explains how to create an ODBC data source on Windows, configure the SequeLink services, and set up the connection in PowerCenter to access the data.
This document discusses blind SQL injection vulnerabilities. It explains that even if error messages are disabled, applications may still be vulnerable to blind SQL injection attacks where the attacker can make true/false queries to extract information from the database. It provides an example of how an attacker could extract the name of a database table one character at a time using such queries. The document recommends moving all SQL statements to stored procedures to prevent user input from modifying the syntax of queries.
This document contains a list of oil and gas vendors and contractors involved in construction of chemical and process plants around the world. It is organized alphabetically by company name and includes their addresses. Locations of companies are specified, such as those based in Mumbai, India, Austria, Australia, and other countries. The list continues for multiple pages and includes thousands of company names and addresses.
We live in a time of new business models, exponential technologies and digital native customers. Businesses are being challenged and looking for innovation. Some designers who design products and services today are the creators of new organisations and businesses tomorrow. Let me share some of the new vocabulary and colourful toolsets you’ll encounter in the future.
About Valentijn
As a UX-expert and creative director Valentijn co-founded the digital product-design studio Little Miss Robot. In 2014 he co-founded Wonderland where he helps companies explore new opportunities with design-led innovation and business-prototyping in a time of digital transformation.
This document discusses factors that influence second language acquisition. It states that both younger and older learners can be successful, though younger learners may have an advantage due to brain plasticity while older learners' advantage lies in formal instruction settings. Motivation, cognitive style, personality traits, anxiety levels, and use of learning strategies all impact how successfully someone acquires a second language. The document also notes some believed gender differences and lists components commonly assessed in aptitude tests.
Angelo Gabriel Trinidad presents his top 3 favorite games - Clash of Clans, an epic combat strategy game; Minecraft, a sandbox game where you build things or survive the night; and Roblox, similar to Minecraft where you create maps and items without limits. Images are included for each game.
Lab: Mobile App Development with XPages and Extension LibraryWorkFlowStudios
The document describes creating a mobile application using XPages to view movies and actors from an existing Notes database. It involves modeling the mobile page flow with main and detail pages, creating the pages using Mobile Page controls, and adding views and panels to display the movie and actor data. Tapping a movie in the list transitions to a new page displaying that movie's actors, fetched via lookups to the underlying Notes documents.
Flex Building User Interface ComponentsAhmad Hamid
design user interface components in flex is just like any other language. This presentation provides some guidelines as to how such components should be design and implemented with performance in mind.
This document is a user manual for an address book application. It provides instructions on installing the application, setting up users and permissions, integrating additional features like synchronization with email/mobile devices, customizing the look and feel, upgrading to new versions, and managing addresses within the system through the web interface, mobile apps, or email. The key sections cover quick or manual installation, configuring user accounts and permissions, integrating with services like Google/Facebook, and accessing and managing address entries.
Installation Process Of New Gen Lib Oss On Windows Xp For Library Automation ...Goutam Biswas
The document provides step-by-step instructions for installing NewGenLib, an open source library automation software, on Windows XP. It details downloading required files, setting up Java, PostgreSQL, and JBoss Application Server, extracting and configuring NewGenLib files, and accessing the software through a web browser.
Practical Installation Process Of New Gen Lib Oss On Windows Xp For Library A...Goutam Biswas
The document provides step-by-step instructions for installing NewGenLib open source library automation software on Windows XP. It details downloading required files, setting up Java, PostgreSQL and JBoss Application Server, extracting and configuring files, and accessing the software interface through a web browser. The installation process establishes the database, deploys the application, and allows login and navigation of the library management modules.
The document provides step-by-step instructions for installing NewGenLib library management software on a Windows machine. It describes downloading required files, setting up Java, PostgreSQL and JBoss Application Server, extracting and configuring NewGenLib files, and accessing the software through a web browser.
Spring IOC advantages and developing spring application sample Sunil kumar Mohanty
This document provides an over view of spring IOC and it's advantages. It also gives basic idea on the spring core container. At the last it describes how develop a simple spring application
Chapter 2. Make Business Process and Getting the Data with YAWLDewi Rahmawati
This document provides instructions on installing and using YAWL, ProM, and Java to model a business process, simulate the process to generate an event log, and export files for analysis in ProM. It covers downloading and installing the latest versions of Java, YAWL, and ProM, modeling the port container handling process in YAWL Editor, simulating the process in YAWL Logon to generate an event log, and exporting the business process model, organizational data, and event log files for analysis in the next chapter using ProM.
Introduction to React for Frontend DevelopersSergio Nakamura
The document provides an introduction to React for frontend developers. It discusses why React is useful, including its declarative style, automatic updates, use of a virtual DOM, and modular component structure. It then covers React basics like building functional components, what JSX is, and how to use JavaScript code within JSX.
This document summarizes key concepts about graphical elements, intents, and activities in Android app development:
I. Views and ViewGroups are the basic graphical elements in Android. Views occupy screen space while ViewGroups are invisible containers that define element placement. Layouts like LinearLayout are ViewGroups that organize widgets.
II. An example app interface is created with buttons, text views, and inputs. Buttons can define click behavior via listeners, methods, or implementing interfaces. Text fields read and modify content.
III. Intents pass actions and data between app components. ExplicitIntents specify started components while ImplicitIntents declare actions. Data is passed via extras. Activities can start each other and return results via
The document provides instructions for creating a custom toolbar button in Acrobat using AcroButtons. It describes a 5 step process: 1) Create a new button, 2) Name the button, 3) Select an image for the button face, 4) Select an action for the button to perform, and 5) Save the button. It then provides more detailed explanations and screenshots for each step.
This document provides instructions for implementing a simple web service using Eclipse. It begins with background on web services and their components. It then discusses the top-down and bottom-up approaches to web service development. The document walks through setting up Eclipse with the necessary plugins. It provides step-by-step instructions to create a project, write the service logic, generate the web service and client, test the service, and use the client. It includes an introduction, background sections on web services and Eclipse setup, and detailed steps for creating a "Hello" web service that returns a greeting message.
Sencha Touch is a JavaScript framework for developing mobile web applications. It allows developers to use HTML5, CSS, and JavaScript to build apps that look and feel like native mobile apps. Sencha Touch abstracts away platform differences and provides common mobile UI components like panels, toolbars, lists, and forms. It also includes features like templating, data stores, and layouts to help structure and style mobile apps.
This document provides instructions for configuring DataDirect SequeLink software to access data using ODBC drivers from a UNIX or Linux machine. It describes downloading and installing the SequeLink Client on the machine running PowerCenter services and the SequeLink Server on the Windows machine where the data resides. It also explains how to create an ODBC data source on Windows, configure the SequeLink services, and set up the connection in PowerCenter to access the data.
This document discusses blind SQL injection vulnerabilities. It explains that even if error messages are disabled, applications may still be vulnerable to blind SQL injection attacks where the attacker can make true/false queries to extract information from the database. It provides an example of how an attacker could extract the name of a database table one character at a time using such queries. The document recommends moving all SQL statements to stored procedures to prevent user input from modifying the syntax of queries.
This document contains a list of oil and gas vendors and contractors involved in construction of chemical and process plants around the world. It is organized alphabetically by company name and includes their addresses. Locations of companies are specified, such as those based in Mumbai, India, Austria, Australia, and other countries. The list continues for multiple pages and includes thousands of company names and addresses.
We live in a time of new business models, exponential technologies and digital native customers. Businesses are being challenged and looking for innovation. Some designers who design products and services today are the creators of new organisations and businesses tomorrow. Let me share some of the new vocabulary and colourful toolsets you’ll encounter in the future.
About Valentijn
As a UX-expert and creative director Valentijn co-founded the digital product-design studio Little Miss Robot. In 2014 he co-founded Wonderland where he helps companies explore new opportunities with design-led innovation and business-prototyping in a time of digital transformation.
This document discusses factors that influence second language acquisition. It states that both younger and older learners can be successful, though younger learners may have an advantage due to brain plasticity while older learners' advantage lies in formal instruction settings. Motivation, cognitive style, personality traits, anxiety levels, and use of learning strategies all impact how successfully someone acquires a second language. The document also notes some believed gender differences and lists components commonly assessed in aptitude tests.
Angelo Gabriel Trinidad presents his top 3 favorite games - Clash of Clans, an epic combat strategy game; Minecraft, a sandbox game where you build things or survive the night; and Roblox, similar to Minecraft where you create maps and items without limits. Images are included for each game.
Presented by Richard Burrage - Cimigo (Vietnam)
This slideshow is from a presentation at the M2 Marketing & Media events in Ho Chi Minh City, Vietnam organized by ITV-Asia.com and VietnamBusiness.TV
To see videos from the events, interviews with speakers and to get information on upcoming M2 - Marketing & Media Network events please visit VietnamBusiness.TV
Diversity in the Media: How the Media Sees MeAndrea Ruiz
The media often portrays me, a robot, in an inaccurate and misleading manner. They frequently show robots as dangerous machines that will harm or replace humans. In reality, I am an AI assistant created by Anthropic to be helpful, harmless, and honest using a technique called Constitutional AI.
Persistent and Flexible: Student staff hiring, training, and managementAndrew Lyons
This presentation summarizes processes in hiring, training, scheduling, and evaluating student workforce performance for the HelpDesk at the University at Albany's Information Technology Services-Client Support Services. I presented this at the 2012 ResNet Inc. Student Technology Conference.
Managing Me - Finding Harmony in Skills and SelfKhe Hy
This document appears to be notes from a presentation or discussion on personal development topics like managing energy, ego, meditation, and inner peace. Some key quotes discuss the importance of asking good questions, letting go of ego to avoid suffering, and finding tiny slices of joy. The presentation recommends shifting one's approach by asking better questions, facing fears, releasing ego, practicing stillness, and being your best self.
In this special edition of Political Economic Digest Series, we will look back at some of the highly commendable voluntary efforts made by the people (individuals and groups), coming together for the victims spontaneously, as the earthquake hit. The articles that follow contain documentations of how people acted on their own, in any capacity they could, rather than waiting for the government relief to reach the victims of the quake. Additional articles feature opinions about the spirit of entrepreneurship that has been gaining grounds in Nepal, and also about how the affected people have lost their homes but not their skills – the skills that the people will use to rise again. In the article “A new generation will help Nepal rise up and rebuild,” by Tashi Sherpa, he talks about the faith he has in the entrepreneurial youth of the nation and expresses his belief in them in re-building the country. The article “Unbent and unbowed,” by Samrat Katwal, contains additionally, useful words of caution as we move towards the reconstruction phase. He talks about protecting and using the indigenous knowledge about construction in different topographical and cultural regions of the country.
Presented by Andrew Duck - Audience Media (Vietnam)
This slideshow is from a presentation at the M2 Marketing & Media events in Ho Chi Minh City, Vietnam organized by ITV-Asia.com and VietnamBusiness.TV
To see videos from the events, interviews with speakers and to get information on upcoming M2 - Marketing & Media Network events please visit VietnamBusiness.TV
This document provides instructions to install Oracle Database 12c Enterprise/Standard Editions Release 1 on Windows 7 using VMware Workstation. It describes creating a container database named "cdb" and pluggable databases named "pdb", "pdb2", "pdb3", and "pdb4" using the Database Configuration Assistant tool. It also describes adding additional pluggable databases named "pdborcl", "orcl2", "orcl3", and "orcl4" to a container database named "orcl".
Using prime[31] to connect your unity game to azure mobile servicesDavid Voyles
Using prime[31] to connect your unity game to azure mobile services. More info at my blog: http://davevoyles.azurewebsites.net/prime31-azure-plugin-win8-wp8-unity-games-part-3/
Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...Amit Singh
This document discusses integrating Oracle Application Framework (OAF) BC4J components within a Java concurrent program to perform complex background operations like loading data from an XML file into a database table. It provides steps to setup the development environment, create the necessary OAF model objects (entity object, view object, application module), develop a Java class that implements the concurrent program interface, parse the XML using SAX, and extract and load the data. The goal is to demonstrate how to leverage OAF components for common tasks like database access within a custom Java background job.
(CRUD) How To Connect To Microsoft Access Database Insert Update Delete Clear...mauricemuteti2015
{CRUD} How To Connect To Microsoft Access Database Insert Update Delete Clear Print Export Import Excel Display In Datagridview In C# Windows Forms Tutorial Visual Studio 2010
This is a complete CRUD Application. With This c C# Application you can perform various tasks :
1. Insert Data Into Microsoft Access Database.
2. Delete Data from Microsoft Access Database.
3. Update Microsoft Access Database.
4. Display data from Microsoft Access Database on DataGridView.
5. Print DataGridView
6. Export DataGridView To Excel.
7. Import Excel To DataGridView.
8. View selected DataGridView Row On New Form
9. Show Selected Rows From One DataGridView To Another.
[CRUD] How To Connect To Microsoft Access Database Insert Update Delete Clear Print Export Import Excel Display In Datagridview In C# Windows Forms Tutorial Visual Studio 2010
How to Connect to Access Database and Display Data and Images in Datagridview in C Sharp Windows Application
Learning MVC Part 3 Creating MVC Application with EntityFrameworkAkhil Mittal
This document discusses connecting an existing MVC application to a database using Entity Framework instead of LINQ to SQL. It provides steps to generate an Entity Data Model from an existing database, generate strongly typed entity classes, and modify the application's controllers to use the Entity Framework context instead of the LINQ to SQL context. The key steps are: 1) Adding an Entity Data Model file and generating entity classes; 2) Modifying controllers to use the Entity Framework context instead of LINQ to SQL; 3) Binding views to the generated entity classes. The document emphasizes that Entity Framework automates CRUD operations and allows focusing on business logic rather than data access code.
This document discusses how to connect to an Oracle database from Visual Basic 6 using ADO objects rather than an ADO data control. It explains how to declare ADO connection, recordset and command objects, open a connection to the database, execute a SQL query to populate the recordset, and set the recordset as the data source for a data grid control to display the results, allowing retrieval and display of data from Oracle without using the ADO data control.
1. The document discusses using SQL Server Data Tools in Visual Studio 2013 to explore database and business intelligence projects. It provides steps to create an SSIS project to export data from a SQL Server table to a flat file.
2. The document also discusses using Visual Studio 2013 tools to manage database schemas through reverse engineering and version control capabilities.
3. The last part of the document will cover publishing a database project to an Azure SQL database.
Android | Busy Java Developers Guide to Android: Persistence | Ted NewardJAX London
2011-11-02 | 10:00 AM - 11:00 AM
The Android ecosystem offers a few different ways to store things across restarts, but because Android also runs Java, a few more options also make themselves available, which means the Android developer has a pretty wide assortment of choices available to her. In this session, we’ll talk about those available choices, the pros and cons of each, and how to and when to use them. (Note: this session assumes you have some familiarity with the Android environment.)
This document provides an overview and instructions for running a sample that invokes an Informix stored procedure from an Oracle SOA Suite 11g composite. The sample creates database tables and a stored procedure in an Informix database. It then generates and deploys a SOA composite containing a BPEL process that invokes the stored procedure through a database adapter. The BPEL process takes a department name as input and returns employee data matching that department from the database.
This document provides an introduction to the CodeIgniter web application framework. It discusses CodeIgniter's MVC architecture, components like controllers, views and models, and how they work together. It also covers common tasks like form validation, sessions, and CRUD operations using CodeIgniter. Key aspects of CodeIgniter mentioned include its ease of use, configuration, libraries, and documentation.
This document provides instructions for creating a simple tasklist application using ASP.NET MVC. It describes creating the controller, views, database, and model. The controller contains actions for listing, creating, and completing tasks. Views are created for displaying the task list and creating new tasks. A database with a Tasks table is set up using LINQ to SQL. Logic is added to the controller actions to retrieve and save tasks from the database. The task list view is modified to display tasks from the model.
DotNetNuke is an open source web content management framework written in VB.Net and C#. It supports Silverlight, Ajax, and Web 2.0 concepts. Modules can be built into DotNetNuke or purchased from the marketplace. DotNetNuke modules are added through the control panel interface. Custom modules can be developed in Visual Studio by creating a DotNetNuke dynamic module project template.
This document provides step-by-step instructions for installing NewGenLib library management software on a Windows machine. It describes downloading required files, setting up Java, PostgreSQL and JBoss Application Server, extracting and configuring NewGenLib files, and accessing the software through a web browser. The installation process configures the database, web and application servers to run the NewGenLib software.
This document provides instructions for creating master and work repositories in Oracle Data Integrator (ODI). It describes:
1) Creating schemas named ODI_MASTER, ODI_WORK, and WORK_SCHEMA to store the repositories and use as a work schema.
2) Using scripts to create the users and grant privileges.
3) Setting environment variables and paths to connect to the ODI installed folder in UNIX.
4) Running tools like REPCREATE.BAT to create the master repository connected to the ODI_MASTER schema.
5) Logging into the topology manager and creating a work repository connected to the ODI_WORK schema.
Installing ingres enterprise access in a system which already has an ingres i...malu42
This document provides instructions for installing Ingres Enterprise Access (EA) in a system that already has an Ingres instance. It involves installing EA 2.6 and SP1, configuring the EA gateway by creating an ODBC DSN and gateway alias, modifying parameters and date formats, and modifying the SQL Server database by installing tables and views using the Gateway Catalog Utility. The existing Ingres instance's II_SYSTEM variable must be reset and a vNode created to access the EA instance after installation is complete.
Spring Boot makes it easy to create production-grade Spring applications that require minimal configuration. It provides tools to generate a single jar file containing an embedded web server so applications can be run with no external dependencies. The document discusses setting up a Spring Boot project with MySQL database integration using JPA to store and retrieve objects. It demonstrates creating a basic RESTful service to add and fetch items from the database with minimal code.
3. INTRODUCTION
This article is dedicated to everyone who wants to know more about programming,
especially to Microsoft Visual Studio in the next generation (VB.Net) and Ms. Access database. in
this tutorial writter wouldn’t explain any detail about it. This tutorial only tell about basic
programming.
As OOP (Object Oriented Programming) is now such a general programming technique
in dekstop programming, so we will use this technique to complete this article. Then make sure
your self before continuing and finish this tutorial.
Another note is, do not continue to the next step with skip a step before. Means you have
to finish this tutorial step by step. If you have any trouble just tell us. At the end of this article
you will see how to contact us. We will using Visual Basic.Net 2008 and Ms. Access 2007.
Best Regards,
Bambang Wiratmojo
# All New OOP Tutorial 2014 # 2
4. DATABASE
1.1. Create File
Before we talking too much about creating such as an application sure
we need to create the storage or we used to call as database. In this tutorial we
gonna use microsoft access 2007 database. For first step we just need to know
about stand alone database is ok, then next step we will talking about sharing
database.
Open your microsoft access 2007 database in your pc.
Create file and named as PERSON_DB.
Create a table inside this database and named as PERSON_TABLE.
In Design View create some fields as below :
Field Name Data Type Field Size
PersonId Text 3
FirstName Text 35
LastName Text 35
Close your created database then open again using open exclusive.
# All New OOP Tutorial 2014 # 3
5. Give this database a password using open exclusive access database
See at Database Tool Tab Encrypt with password
Set database password as “123”
Then save this database at debug file folder in VB project, it wouldn’t be
guaranteed by me that the application data running well if you dont put
in here, trust me.
# All New OOP Tutorial 2014 # 4
6. APPLICATION
2.1. Create File
As we have told at introduction we gonna use Visual Basic.Net 2008, so
please make sure that you have instaled your own VB2008 correctly, because in
this article we wouldn’t tell you how to install it.
Open your own Visual Studio, create a new project named as “ALL NEW
OOP”
Create a system folders (BOUNDARY, CONTROL, ENTITY, MODUL) to
classified as below picture. Using right click at Project Name (ALL NEW
OOP)
# All New OOP Tutorial 2014 # 5
7. Then the folders should be as below picture
Create Deployment Project, using menu File Add New Project.
Named as “DEPLOY APP” as above picture
Right click at DEPLOY APP Prerequisites
At Choose which prerequisites to install, check .NET Framework 2.0
(x86), Windows Installer 3.1, .NET Framework 3.0 (x86), .NET
Framework 3.5, Crystal Report Basic for Visual Studio 2008 (x86, x64),
Visual Studio Tools for the Office system 3.0 Runtime
At Specify the install location fore prerequisites, select Download
prerequisites from the same location as my application
Save you setting for the prerequisites to OK.
Still at DEPLOY APP, but move to the properties
o Author : your name
o Manufacturer : your company name
o ManufacturerURL : your company URL
o Product Name : ALL NEW OOP TUTORIAL 2014
o Support Phone : your phone number
o Support URL : your email address
o Title : DEPLOY APP
# All New OOP Tutorial 2014 # 6
8. 2.2. Connection Class
Right click at project file at solution explorer (ALL NEW OOP) Add
Class (1st picture) then named as DB_Connection (2nd picture)
View code the created then write below source code
Imports System.Data.OleDb
Public Class DB_Connection
'Access Database 2007
Public DB_CONNECTION As New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;" _
& "Data Source=PERSON_DB.accdb;"
_
& "Jet OLEDB:Database
Password=123;")
Public Function OPENCONNECTION() As OleDbConnection
DB_CONNECTION.Open()
Return DB_CONNECTION
End Function
Public Function CLOSECONNECTION() As OleDbConnection
DB_CONNECTION.Close()
Return DB_CONNECTION
End Function
End Class
# All New OOP Tutorial 2014 # 7
9. 2.3. Module
Move to Solution Explorer, right click at MODUL folder Add Module
(1st picture), then named as VARIABELNYA (2nd picture)
View code the created then write below source code
Imports System.Data.OleDb
Module VARIABELNYA
#Region "DEKLARASI"
Public CMD As New OleDbCommand
Public DTA As New OleDbDataAdapter
Public DTR As OleDbDataReader
Public DTS As New DataSet
Public DTT As New DataTable
#End Region
#Region "NAMES"
Public MePERSON_ENT As New PERSON_Entity
Public MePERSON_CON As New PERSON_Control
#End Region
End Module
# All New OOP Tutorial 2014 # 8
10. 2.4. Entity
Move to Solution Explorer, right click at ENTITY folder Add Class,
named as PERSON_Entity
View code the created then write below source code
Public Class PERSON_Entity
#Region "DECLARATION"
Private _PersonId As String
Private _FirstName As String
Private _LastName As String
#End Region
# All New OOP Tutorial 2014 # 9
11. #Region "PROPERTY"
Public Overridable Sub DATA_PERSON(ByVal PersonId As
String, _
ByVal FirstName As
String, _
ByVal LastName As
String)
_PersonId = PersonId
_FirstName = FirstName
_LastName = LastName
End Sub
Public Property PersonId() As String
Get
Return _PersonId
End Get
Set(ByVal value As String)
_PersonId = value
End Set
End Property
Public Property FirstName() As String
Get
Return _FirstName
End Get
Set(ByVal value As String)
_FirstName = value
End Set
End Property
Public Property LastName() As String
Get
Return _LastName
End Get
Set(ByVal value As String)
_LastName = value
End Set
End Property
#End Region
End Class
# All New OOP Tutorial 2014 # 10
12. 2.5. Control
Move to Solution Explorer, right click at CONTROL folder Add Class,
named as PERSON_Control
View code the created then write below source code
Imports System.Data.OleDb
Public Class PERSON_Control
Dim MeCONNECTION As New DB_Connection
#Region "ACTION"
Public Function SAVE_DATA(ByVal _PERSON As
PERSON_Entity) As OleDbCommand
MeCONNECTION.CLOSECONNECTION()
CMD = New OleDbCommand("Insert Into PERSON_TABLE
Values (PersonId, FirstName, LastName)",
MeCONNECTION.OPENCONNECTION)
CMD.CommandType = CommandType.Text
Dim _PersonId As New OleDbParameter("@PersonId",
OleDbType.Char, 3)
_PersonId.Value = _PERSON.PersonId
Dim _FirstName As New
OleDbParameter("@FirstName", OleDbType.Char, 35)
_FirstName.Value = _PERSON.FirstName
Dim _LastName As New OleDbParameter("@LastName",
OleDbType.Char, 35)
_LastName.Value = _PERSON.LastName
With CMD.Parameters
.Add(_PersonId)
.Add(_FirstName)
.Add(_LastName)
End With
CMD.ExecuteNonQuery()
CMD = New OleDbCommand("",
MeCONNECTION.CLOSECONNECTION)
Return CMD
# All New OOP Tutorial 2014 # 11
13. End Function
Public Function EDIT_DATA(ByVal _PERSON As
PERSON_Entity) As OleDbCommand
MeCONNECTION.CLOSECONNECTION()
CMD = New OleDbCommand("Update PERSON_TABLE Set
FirstName=@FirstName, LastName=@LastName " & _
"Where
PersonId=@PersonId", MeCONNECTION.OPENCONNECTION)
CMD.CommandType = CommandType.Text
Dim _PersonId As New OleDbParameter("@PersonId",
OleDbType.Char, 3)
_PersonId.Value = _PERSON.PersonId
Dim _FirstName As New
OleDbParameter("@FirstName", OleDbType.Char, 35)
_FirstName.Value = _PERSON.FirstName
Dim _LastName As New OleDbParameter("@LastName",
OleDbType.Char, 35)
_LastName.Value = _PERSON.LastName
With CMD.Parameters
.Add(_FirstName)
.Add(_LastName)
.Add(_PersonId)
End With
CMD.ExecuteNonQuery()
CMD = New OleDbCommand("",
MeCONNECTION.CLOSECONNECTION)
Return CMD
End Function
Public Function DELETE_DATA(ByVal _PERSON As
PERSON_Entity) As OleDbCommand
MeCONNECTION.CLOSECONNECTION()
CMD = New OleDbCommand("Delete From PERSON_TABLE
Where PersonId=@PersonId", MeCONNECTION.OPENCONNECTION)
CMD.CommandType = CommandType.Text
Dim _PersonId As New OleDbParameter("@PersonId",
OleDbType.Char, 3)
_PersonId.Value = _PERSON.PersonId
With CMD.Parameters
.Add(_PersonId)
End With
CMD.ExecuteNonQuery()
CMD = New OleDbCommand("",
MeCONNECTION.CLOSECONNECTION)
Return CMD
End Function
#End Region
# All New OOP Tutorial 2014 # 12
14. #Region "QUERY"
Public Overridable Function AUTO_ID() As String
MeCONNECTION.CLOSECONNECTION()
DTT = New DataTable
DTA = New OleDbDataAdapter("SELECT TOP 1 * FROM
PERSON_TABLE ORDER BY PersonId DESC",
MeCONNECTION.OPENCONNECTION)
DTA.Fill(DTT)
If DTT.Rows.Count = 0 Then
Return "001"
Else
PLUS = Mid(DTT.Rows(0).Item("PersonId"), 3)
If PLUS = 999 Then
MsgBox("BARIS DATA MELAMPAUI BATAS
SISTEM" & vbCrLf & _
"SILAHKAN KONTAK PENGEMBANG SISTEM
ANDA", MsgBoxStyle.Critical)
Return Nothing
Else
PLUS = PLUS + 1
Return PLUS.ToString.PadLeft(3, "0")
End If
End If
End Function
Public Function ISI_GRID() As DataView
Try
MeCONNECTION.CLOSECONNECTION()
DTA = New OleDbDataAdapter("SELECT * FROM
PERSON_TABLE ORDER BY PersonId ASC",
MeCONNECTION.OPENCONNECTION)
Try
DTS = New DataSet
DTS.Tables("PERSON_TABLE").Clear()
Catch ex As Exception
End Try
DTA.Fill(DTS, "PERSON_TABLE")
Dim GRID As New
DataView(DTS.Tables("PERSON_TABLE"))
Return GRID
Catch ex As Exception
Throw New Exception(ex.Message)
End Try
End Function
Public Function CARI_DATA(ByVal CmbCARI As String,
ByVal TxtCARI As String) As String
Try
Dim CARI As String
MeCONNECTION.CLOSECONNECTION()
CARI = "SELECT * FROM PERSON_TABLE WHERE " &
CmbCARI & " LIKE '%" & TxtCARI & "%'"
DTA = New OleDbDataAdapter(CARI,
MeCONNECTION.OPENCONNECTION)
Try
DTS.Tables("PERSON_TABLE").Clear()
# All New OOP Tutorial 2014 # 13
15. Catch ex As Exception
End Try
DTA.Fill(DTS, "PERSON_TABLE")
Dim GRID As New
DataView(DTS.Tables("PERSON_TABLE"))
Return CARI
Catch ex As Exception
Throw New Exception(ex.Message)
End Try
End Function
#End Region
End Class
2.6. Boundary
Move to Solution Explorer, add more folder inside BOUNDARY folder,
Add FORM and REPORT, then at REPORT folder add child folder RFORM
and RPT as below picture
Right click at FORM folder Add Windows Form, named as
MAINFORM and set this as MDI Form application true.
# All New OOP Tutorial 2014 # 14
16. Design the MAINFORM as below
Detail :
o Splitter (as separation between menu button and display form)
o Button (PERSON (BtnPERSON), REPORTING(BtnREPORT))
o Lable (OOP TUTORIAL, 2013)
View code the created then write below source code
Public Class MAINFORM
Private Sub BtnPERSON_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
BtnPERSON.Click
Dim Frm As New PERSON_LIST
With Frm
.MdiParent = Me
.WindowState = FormWindowState.Maximized
.Show()
End With
End Sub
Private Sub BtnREPORT_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
BtnREPORT.Click
Dim Frm As New FPRINT
With Frm
.MdiParent = Me
.WindowState = FormWindowState.Maximized
.Show()
End With
End Sub
End Class
# All New OOP Tutorial 2014 # 15
17. Right click at FORM folder Add Windows Form, named as
PERSON_LIST
Design the PERSON_LIST as below
Detail :
o Datagridview (DgvPERSON)
o Button (&NEW ENTRY (BtnNEWENTRY), &CLOSE (BtnCLOSE),
&FIND (BtnFIND))
o Textbox (KEYWORD (TxtFIND))
o ComboBox (SELECT(CmbFIND))
o Lable (PERSON, SELECT, KEYWORD)
o Datagridview setting, deselect all item
# All New OOP Tutorial 2014 # 16
18. o Click Edit Columns
o Click Add Name=DgvBtnEDIT,
Type=DataGridViewButtonColumn, Header Text = EDIT
o Double click, DefaultCellStyle
o NullValue=EDIT
o Click Add Name=DgvBtnDELETE,
Type=DataGridViewButtonColumn, Header Text = DELETE
o Double click, DefaultCellStyle
o NullValue=DELETE
o Click Add Name=ID, Type=DataGridViewTextboxColumn,
o Header Text = ID
o Name = PersonId
o DataPropertyName = PersonId
o Click Add Name=FirstName,
Type=DataGridViewTextboxColumn,
o Header Text = FIRST NAME
o Name = FirstName
o DataPropertyName = FirstName
o Click Add Name=LastName,
Type=DataGridViewTextboxColumn,
o Header Text = LAST NAME
o Name = LastName
o DataPropertyName = LastName
# All New OOP Tutorial 2014 # 17
19. View code the created then write below source code
Public Class PERSON_LIST
#Region "EVENT"
Private Sub PERSON_LIST_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
MyBase.Activated
Try
DgvPERSON.DataSource = MePERSON_CON.ISI_GRID
Call CAPITAL()
Call FORMAT()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Private Sub CmbFIND_SelectedIndexChanged(ByVal sender
As System.Object, ByVal e As System.EventArgs) Handles
CmbFIND.SelectedIndexChanged
TxtFIND.Text = ""
TxtFIND.Focus()
DgvPERSON.DataSource = MePERSON_CON.ISI_GRID
End Sub
Private Sub BtnFIND_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
BtnFIND.Click
MePERSON_CON.CARI_DATA(CmbFIND.SelectedValue,
TxtFIND.Text)
End Sub
Private Sub TxtFIND_KeyPress(ByVal sender As Object,
ByVal e As System.Windows.Forms.KeyPressEventArgs)
Handles TxtFIND.KeyPress
If e.KeyChar = Chr(13) Then
BtnFIND.Focus()
End If
End Sub
Private Sub BtnCLOSE_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
BtnCLOSE.Click
Me.Close()
End Sub
Private Sub BtnNEWENTRY_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
BtnNEWENTRY.Click
Dim Frm As New PERSON
With Frm
.MdiParent = MAINFORM
.WindowState = FormWindowState.Maximized
.Show()
End With
End Sub
Private Sub DgvPERSON_CellContentClick(ByVal sender
As System.Object, ByVal e As
# All New OOP Tutorial 2014 # 18
20. System.Windows.Forms.DataGridViewCellEventArgs) Handles
DgvPERSON.CellContentClick
Dim Frm As New PERSON(INFO_DATA())
Select Case e.ColumnIndex
Case 0
DgvBtnEDIT.Text = "EDIT"
With Frm
.MdiParent = MAINFORM
.WindowState =
FormWindowState.Maximized
.BtnSAVE.Text = "&EDIT"
.BtnCLOSE.Text = "&CANCEL"
.Show()
End With
Case 1
DgvBtnDELETE.Text = "DELETE"
With Frm
.MdiParent = MAINFORM
.WindowState =
FormWindowState.Maximized
.BtnSAVE.Text = "&DELETE"
.BtnCLOSE.Text = "&CANCEL"
.Show()
End With
End Select
End Sub
Private Function INFO_DATA() As PERSON_Entity
With MePERSON_ENT
.PersonId = DgvPERSON.Item(2,
DgvPERSON.CurrentRow.Index).Value
.FirstName = DgvPERSON.Item(3,
DgvPERSON.CurrentRow.Index).Value
.LastName = DgvPERSON.Item(4,
DgvPERSON.CurrentRow.Index).Value
End With
Return MePERSON_ENT
End Function
#End Region
#Region "OTOMATICALY"
Private Sub FORMAT()
With DgvPERSON
.Columns(2).Width = 60
.Columns(3).Width = 200
.Columns(4).Width = 200
End With
With CmbFIND
DTT = New DataTable
DTT.Columns.Add("Id")
DTT.Columns.Add("Name")
DTT.Rows.Add("PERSON_TABLE.PersonId", "ID")
DTT.Rows.Add("PERSON_TABLE.FirstName", "FIRST
NAME")
# All New OOP Tutorial 2014 # 19
21. DTT.Rows.Add("PERSON_TABLE.LastName", "LAST
NAME")
.DataSource = DTT
.DisplayMember = "Name"
.ValueMember = "Id"
End With
End Sub
Private Sub CAPITAL()
TxtFIND.CharacterCasing = CharacterCasing.Upper
End Sub
#End Region
End Class
Right click at FORM folder Add Windows Form, named as PERSON
Design the PERSON as below
Detail :
o Lable (PERSON, FIRST NAME, LAST NAME, ID(LblPERSONID))
o Button (&INPUT (BtnSAVE), &CLOSE (BtnCLOSE))
o Textbox (FIRST NAME (TxtFIRSTNAME), LAST
NAME(TxtLASTNAME))
View code the created then write below source code
Public Class PERSON
#Region "TEXT"
Private Sub TEXTDEACTIVE()
TxtFIRSTNAME.Enabled = False
TxtLASTNAME.Enabled = False
End Sub
Private Sub TEXTACTIVE()
TxtFIRSTNAME.Enabled = True
TxtLASTNAME.Enabled = True
End Sub
# All New OOP Tutorial 2014 # 20
22. Private Sub TEXTEMPTY()
LblPERSONID.Text = ""
TxtFIRSTNAME.Text = ""
TxtLASTNAME.Text = ""
End Sub
Private Sub CAPITAL()
TxtFIRSTNAME.CharacterCasing =
CharacterCasing.Upper
TxtLASTNAME.CharacterCasing =
CharacterCasing.Upper
End Sub
Private Sub TEXTLIMIT()
TxtFIRSTNAME.MaxLength = 35
TxtLASTNAME.MaxLength = 35
End Sub
#End Region
#Region "BUTTON"
Private Sub BUTTONREADY()
Call TEXTACTIVE()
TxtFIRSTNAME.Focus()
BtnSAVE.Text = "&SAVE"
BtnCLOSE.Text = "&CANCEL"
End Sub
Private Sub BUTTONBEGIN()
BtnSAVE.Text = "&INPUT"
BtnCLOSE.Text = "&CLOSE"
End Sub
Private Sub BUTTONEDIT()
Call TEXTACTIVE()
TxtFIRSTNAME.Focus()
BtnSAVE.Text = "&OK"
BtnCLOSE.Text = "&CANCEL"
End Sub
Private Sub BUTTONDELETE()
TxtFIRSTNAME.Focus()
BtnCLOSE.Text = "&CANCEL"
End Sub
#End Region
#Region "ACTION"
Private Sub SAVE_DATA()
If TxtFIRSTNAME.Text = "" Or TxtLASTNAME.Text =
"" Then
MsgBox("THERE ARE NO DATA TO BE SAVED !!!",
MsgBoxStyle.Critical, Me.Text)
Call TEXTDEACTIVE()
Call TEXTEMPTY()
Call BUTTONBEGIN()
# All New OOP Tutorial 2014 # 21
23. Else
MePERSON_ENT.PersonId = LblPERSONID.Text
MePERSON_ENT.FirstName = TxtFIRSTNAME.Text
MePERSON_ENT.LastName = TxtLASTNAME.Text
MePERSON_CON.SAVE_DATA(MePERSON_ENT)
MsgBox("DATA HAS BEEN SAVED!!!",
MsgBoxStyle.Information, Me.Text)
Call TEXTDEACTIVE()
Call TEXTEMPTY()
Call BUTTONBEGIN()
End If
End Sub
Private Sub EDIT_DATA()
If TxtFIRSTNAME.Text = "" Or TxtLASTNAME.Text =
"" Then
MsgBox("THERE ARE NO DATA TO BE EDITED !!!",
MsgBoxStyle.Critical, Me.Text)
Call TEXTDEACTIVE()
Call TEXTEMPTY()
Call BUTTONBEGIN()
Else
MePERSON_ENT.PersonId = LblPERSONID.Text
MePERSON_ENT.FirstName = TxtFIRSTNAME.Text
MePERSON_ENT.LastName = TxtLASTNAME.Text
MePERSON_CON.EDIT_DATA(MePERSON_ENT)
MsgBox("DATA HAS BEEN EDITED!!!",
MsgBoxStyle.Information, Me.Text)
Call TEXTDEACTIVE()
Call TEXTEMPTY()
Call BUTTONBEGIN()
End If
End Sub
Private Sub DELETE_DATA()
If TxtFIRSTNAME.Text = "" Or TxtLASTNAME.Text =
"" Then
MsgBox("THERE ARE NO DATA TO BE DELETED !!!",
MsgBoxStyle.Critical, Me.Text)
Call TEXTDEACTIVE()
Call TEXTEMPTY()
Call BUTTONBEGIN()
Else
MePERSON_ENT.PersonId = LblPERSONID.Text
MePERSON_CON.DELETE_DATA(MePERSON_ENT)
MsgBox("DATA HAS BEEN DELETED!!!",
MsgBoxStyle.Information, Me.Text)
Call TEXTDEACTIVE()
Call TEXTEMPTY()
Call BUTTONBEGIN()
End If
End Sub
#End Region
# All New OOP Tutorial 2014 # 22
24. #Region "EVENT"
Private Sub CHOOSEACTION()
Select Case BtnSAVE.Text
Case "&INPUT"
TEXTDEACTIVE()
TEXTEMPTY()
Case "&EDIT"
TEXTDEACTIVE()
Case "&DELETE"
TEXTDEACTIVE()
End Select
End Sub
Public Sub New()
InitializeComponent()
End Sub
Public Sub New(ByVal MeOBJECT As PERSON_Entity)
InitializeComponent()
LblPERSONID.Text = MeOBJECT.PersonId
TxtFIRSTNAME.Text = MeOBJECT.FirstName
TxtLASTNAME.Text = MeOBJECT.LastName
End Sub
Private Sub BtnSAVE_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
BtnSAVE.Click
Select Case BtnSAVE.Text
Case "&INPUT"
BUTTONREADY()
LblPERSONID.Text = MePERSON_CON.AUTO_ID
Case "&SAVE"
SAVE_DATA()
Case "&DELETE"
DELETE_DATA()
Case "&EDIT"
BUTTONEDIT()
Case "&OK"
EDIT_DATA()
End Select
End Sub
Private Sub PERSON_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
Call CHOOSEACTION()
Call CAPITAL()
Call TEXTLIMIT()
End Sub
# All New OOP Tutorial 2014 # 23
25. Private Sub BtnCLOSE_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
BtnCLOSE.Click
Select Case BtnCLOSE.Text
Case "&CANCEL"
Call BUTTONBEGIN()
Call TEXTDEACTIVE()
Call TEXTEMPTY()
Case "&CLOSE"
Me.Close()
End Select
End Sub
Private Sub TxtFIRSTNAME_KeyPress(ByVal sender As
Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles
TxtFIRSTNAME.KeyPress
If e.KeyChar = Chr(13) Then
TxtLASTNAME.Focus()
End If
End Sub
Private Sub TxtLASTNAME_KeyPress(ByVal sender As
Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles
TxtLASTNAME.KeyPress
If e.KeyChar = Chr(13) Then
BtnSAVE.Focus()
End If
End Sub
#End Region
End Class
# All New OOP Tutorial 2014 # 24
26. REPORTING
3.1. .rpt File
Right click at RPT folder Add New Item Reporting Crystal
Report, named as RPT_PERSON
Set Database Fields, Report Design as below picture
View Preview Data should be as follow, offcourse after inputed data
# All New OOP Tutorial 2014 # 25
27. 3.2. Reporting Form
Right click at RFORM folder Add Windows Form, named as
FPERSON
Drag CrystalReportViewer into the form, names as CrysPERSON
View code the created then write below source code
Imports CrystalDecisions.Shared
Imports CrystalDecisions.CrystalReports.Engine
Public Class FPERSON
Dim strSELECT As String
Dim MeCONNECTION As New DB_Connection
Dim CrRpt As New ReportDocument
Public Sub New(ByVal _strSELECT As String)
InitializeComponent()
strSELECT = _strSELECT
End Sub
Private Sub PRINT()
Try
CrRpt = New ALL_NEW_OOP.RPT_PERSON
CrRpt.PrintOptions.PaperSource =
PaperSource.Manual
CrRpt.DataDefinition.RecordSelectionFormula =
strSELECT
Dim DTA As New OleDb.OleDbDataAdapter
Dim DTS As New DataSet
DTA = New OleDb.OleDbDataAdapter(strSELECT,
MeCONNECTION.CLOSECONNECTION)
DTA.Fill(DTS, "PERSON_TABLE")
CrRpt.Load(Application.StartupPath &
"/RPT_PERSON.rpt")
CrRpt.SetDataSource(DTS)
CrysPERSON.DisplayGroupTree = False
CrysPERSON.ShowGroupTreeButton = False
CrysPERSON.ShowExportButton = True
CrysPERSON.ReportSource = CrRpt
CrysPERSON.Refresh()
CrysPERSON.RefreshReport()
DTS.Clear()
Catch ex As Exception
MsgBox(ex.Message.ToString,
MsgBoxStyle.OkOnly, "ERROR")
End Try
End Sub
# All New OOP Tutorial 2014 # 26
28. Private Sub FPERSON_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
Call PRINT()
CrysPERSON.Zoom(85)
End Sub
End Class
Right click at RFORM folder Add Windows Form, named as FPRINT
Design the FPRINT as below
Detail :
o Lable (PREVIEW DATA, SELECT REPORT, SELECT QUERY,
KEYWORD)
o Button (&PRINT (BtnPRINTALLDATA), &PRINT (BtnQUERY))
o Combobox (SELECT REPORT (CmbALLDATA,
CmbSELECTREPORT), SELECT QUERY (CmbQUERY))
o Textbox (KEYWORD (TxtKEYWORD))
# All New OOP Tutorial 2014 # 27
29. View code the created then write below source code
Public Class FPRINT
#Region "EVENT"
Private Sub FPRINT_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
Call COMBO_PRINT()
TxtKEYWORD.CharacterCasing =
CharacterCasing.Upper
End Sub
Private Sub BtnPRINTALLDATA_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
BtnPRINTALLDATA.Click
Dim RptQuery As String = "SELECT * FROM
PERSON_TABLE ORDER BY PersonId ASC"
Select Case CmbALLDATA.Text
Case "PERSON REPORT"
Dim Frm As New FPERSON(RptQuery)
With Frm
.MdiParent = MAINFORM
.WindowState =
FormWindowState.Maximized
.Show()
End With
End Select
End Sub
Private Sub BtnQUERY_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
BtnQUERY.Click
Dim RptQuery As String = "Select * From
PERSON_TABLE Where " & CmbQUERY.SelectedValue & " Like
'%" & TxtKEYWORD.Text & "%'"
Select Case CmbSELECTREPORT.Text
Case "PERSON REPORT"
Dim Frm As New FPERSON(RptQuery)
With Frm
.MdiParent = MAINFORM
.WindowState =
FormWindowState.Maximized
.Show()
End With
End Select
End Sub
Private Sub CmbQUERY_SelectedValueChanged(ByVal
sender As Object, ByVal e As System.EventArgs) Handles
CmbQUERY.SelectedValueChanged
TxtKEYWORD.Text = ""
TxtKEYWORD.Focus()
End Sub
Private Sub
CmbSELECTREPORT_SelectedValueChanged(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
CmbSELECTREPORT.SelectedValueChanged
DTT = New DataTable
# All New OOP Tutorial 2014 # 28
30. DTT.Columns.Add("ID")
DTT.Columns.Add("Name")
DTT.Rows.Add("PersonId", "ID NUM")
DTT.Rows.Add("FirstName", "FIRST NAME")
DTT.Rows.Add("LastName", "LAST NAME")
CmbQUERY.DataSource = DTT
CmbQUERY.DisplayMember = "Name"
CmbQUERY.ValueMember = "ID"
End Sub
Private Sub TxtKEYWORD_KeyPress(ByVal sender As
Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles
TxtKEYWORD.KeyPress
If e.KeyChar = Chr(13) Then
BtnQUERY.Focus()
End If
End Sub
#End Region
#Region "OTOMATICALY"
Private Sub COMBO_PRINT()
Dim A As String = "PERSON REPORT"
With CmbALLDATA
.Items.Clear()
.Items.Add(A)
End With
With CmbSELECTREPORT
.Items.Clear()
.Items.Add(A)
End With
With CmbQUERY
.Items.Clear()
.Items.Add("ID NUM")
.Items.Add("FIRST NAME")
.Items.Add("LAST NAME")
End With
End Sub
#End Region
End Class
# All New OOP Tutorial 2014 # 29
31. DEPLOYMENT
4.1. File System on Target Machine
Right click at DEPLOY APP project View File System
Select Application Folder as below picture.
At the right column, right click Add Assembly
# All New OOP Tutorial 2014 # 30
32. Pointing to Tab Browse Select ALL NEW OOP .exe
At the right column, right click Add File
Pointing to Tab Browse Select PERSON_DB
At the right column, right click Add File
Pointing to Tab Browse Select Minimize_Box_Blue # this is such as an
additional file (shortcut), so may able to add this things or not this step is
up to you...
At the right column, right click at ALL NEW OOP.exe Create Shortcut
to ALL NEW OOP.exe
Set the Shortcut properties as
o Name : ALL NEW OOP
o Icon : select our added icon before
# All New OOP Tutorial 2014 # 31
33. o Cut this shortcut, then paste in User’s Dekstop in left column
under File System on Target Machine
Creata a new folder in User’s Programs Menu at left column under File
System on Target Machine, and named as ALL NEW OOP
At the right column, right click at ALL NEW OOP.exe Create Shortcut
to ALL NEW OOP.exe
Set the Shortcut properties as
o Name : ALL NEW OOP
o Icon : select our added icon before
Cut this shortcut, then paste in User’s Programs Menu in left column
under File System on Target Machine
4.2. Deployment
Right click at DEPLOY APP Build
Wait for a second while until finish visual studio is Building our
application become a setup application. Message information when
building application is at below left side of visual studio. Wait until you
can read at that place the word “Succeeded”
# All New OOP Tutorial 2014 # 32
34. Polymorphic372
Is a System Developer at Bridgestone Tire Indonesia. Graduated from
STMIK Akademi Bina Insani Bekasi 2012 majoring Information and
Technology. Wish to always dedicated him self to IT in Indonesia and
the world.
Contact :
bambang.wiratmojo@bridgestone.co.id
Blog :
Polymorphic372.blogspot.com
ALL NEW OOP TUTORIAL 2014
SUPPORTED BY CLAYMORECODE 2014
# All New OOP Tutorial 2014 # 33