This document provides instructions for creating a simple book sales application in VB.Net. It describes setting up the database tables, designing the user interface forms, and includes example code for form functionality like loading and saving data. Tables are created for book types, books, transactions, and transaction details. Forms are designed for a main menu, managing book types and books, and processing sales transactions. Code examples show connecting to the database and querying/manipulating data. The goal is to demonstrate creating a basic working application with a database backend using VB.Net.
The document provides instructions for setting up a tabbed portal in the Connect interface. It describes creating new tabs by adding JavaScript and CSS code blocks. It also details how to set up tab navigation buttons and filters to display different content for each tab. The tabs can then be styled with additional CSS as needed. The full process installs and configures the necessary components to create a functional tabbed browsing experience for portal content.
The document provides instructions for creating a basic Oracle SOA project called "ProcessNumbersProject" to demonstrate a Web Service using WSDL. The project uses an XSD to define request and response messages and creates a WSDL file containing port types, messages, and bindings. A BPEL process is generated to add two numbers by assigning the result of an XPath expression to the output variable. The project is compiled, deployed to the application server, and tested by invoking the concrete WSDL and observing the running instances.
1. The document provides steps to create a quiz game using multiple forms in Visual Basic 6.0, including creating interfaces and coding the logic for each form.
2. It describes creating 5 forms - a login form, loading form, two question forms, and a results form.
3. Coding instructions are provided for each form to control navigation between forms and track the score as the user answers questions.
jQuery is a JavaScript library that makes it easier to write JavaScript code that runs on different browsers. It allows selecting DOM elements, traversing through them and manipulating them. jQuery simplifies tasks like handling events, animating elements, and making AJAX calls. Some key features include selecting elements by tag name, ID, or CSS class; traversing DOM elements; binding event handlers; animating elements with effects like show, hide, fade; and making asynchronous HTTP requests via AJAX.
The document discusses creating a new module in Odoo (OpenERP) to manage daily transactions. It describes modeling a transaction with fields for subject, date, amount, notes, and type. It covers creating the necessary files and code for the module, including the __init__.py, __openerp__.py, daily_transaction.py, and daily_transaction_view.xml files. The daily_transaction.py file contains the model definition and fields. The view XML file defines the menu items, tree view to show transactions, form view, and an action to link everything together for CRUD operations.
Informatica is an ETL tool with components like the PowerCenter Designer used to create mappings. Mappings involve transformations like the Filter transformation which applies a condition to rows to filter out those that do not meet the condition, reducing the number of rows passed to the target. The document provides steps to create a mapping with a Filter transformation that loads only records from an EMP source table to a target F_EMP table where the SAL field is greater than or equal to 3000.
The document discusses creating custom HTML helpers in MVC views. It describes existing HTML helpers like Html.BeginForm() and Html.TextBox(). It then explains two methods for creating custom helpers: 1) static methods that return a string of HTML, and 2) extension methods that extend the HtmlHelper class. An example creates a Label() helper via each method to generate <label> tags in views.
This document provides an overview of creating a module in Odoo (OpenERP) to manage daily transactions. It discusses modelling the transaction attributes like subject, date, amount in the daily_transaction.py file. It also covers generating the necessary views like menus, list views and forms through XML configuration in the daily_transaction_view.xml file. Actions are defined to link the menu items to the appropriate views and CRUD operations. Once the module files and configurations are set up, the module is installed to enable managing transactions from the new menu item.
The document provides instructions for setting up a tabbed portal in the Connect interface. It describes creating new tabs by adding JavaScript and CSS code blocks. It also details how to set up tab navigation buttons and filters to display different content for each tab. The tabs can then be styled with additional CSS as needed. The full process installs and configures the necessary components to create a functional tabbed browsing experience for portal content.
The document provides instructions for creating a basic Oracle SOA project called "ProcessNumbersProject" to demonstrate a Web Service using WSDL. The project uses an XSD to define request and response messages and creates a WSDL file containing port types, messages, and bindings. A BPEL process is generated to add two numbers by assigning the result of an XPath expression to the output variable. The project is compiled, deployed to the application server, and tested by invoking the concrete WSDL and observing the running instances.
1. The document provides steps to create a quiz game using multiple forms in Visual Basic 6.0, including creating interfaces and coding the logic for each form.
2. It describes creating 5 forms - a login form, loading form, two question forms, and a results form.
3. Coding instructions are provided for each form to control navigation between forms and track the score as the user answers questions.
jQuery is a JavaScript library that makes it easier to write JavaScript code that runs on different browsers. It allows selecting DOM elements, traversing through them and manipulating them. jQuery simplifies tasks like handling events, animating elements, and making AJAX calls. Some key features include selecting elements by tag name, ID, or CSS class; traversing DOM elements; binding event handlers; animating elements with effects like show, hide, fade; and making asynchronous HTTP requests via AJAX.
The document discusses creating a new module in Odoo (OpenERP) to manage daily transactions. It describes modeling a transaction with fields for subject, date, amount, notes, and type. It covers creating the necessary files and code for the module, including the __init__.py, __openerp__.py, daily_transaction.py, and daily_transaction_view.xml files. The daily_transaction.py file contains the model definition and fields. The view XML file defines the menu items, tree view to show transactions, form view, and an action to link everything together for CRUD operations.
Informatica is an ETL tool with components like the PowerCenter Designer used to create mappings. Mappings involve transformations like the Filter transformation which applies a condition to rows to filter out those that do not meet the condition, reducing the number of rows passed to the target. The document provides steps to create a mapping with a Filter transformation that loads only records from an EMP source table to a target F_EMP table where the SAL field is greater than or equal to 3000.
The document discusses creating custom HTML helpers in MVC views. It describes existing HTML helpers like Html.BeginForm() and Html.TextBox(). It then explains two methods for creating custom helpers: 1) static methods that return a string of HTML, and 2) extension methods that extend the HtmlHelper class. An example creates a Label() helper via each method to generate <label> tags in views.
This document provides an overview of creating a module in Odoo (OpenERP) to manage daily transactions. It discusses modelling the transaction attributes like subject, date, amount in the daily_transaction.py file. It also covers generating the necessary views like menus, list views and forms through XML configuration in the daily_transaction_view.xml file. Actions are defined to link the menu items to the appropriate views and CRUD operations. Once the module files and configurations are set up, the module is installed to enable managing transactions from the new menu item.
Windows Form - Lec12 (Workshop on C# Programming: Learn to Build)Jannat Ruma
This is provided as a course material in the Workshop named "Workshop on C# Programming: Learn to Build" organized by East West University Computer Programming Club (EWUCoPC) & supported by Young Engineers Society (YES).
The document discusses how to create Android home screen widgets. It explains that widgets require an AppWidgetProviderInfo XML, AppWidgetProvider class, and view layout XML. The AppWidgetProvider class handles widget updates and broadcasts. RemoteViews allow updating widget views without an activity. PendingIntents make widgets interactive by starting activities on click. The document also provides examples for updating widgets, handling long operations, and adding touch feedback.
1) The document discusses validating radio button selections in HTML forms. It explains how to check which radio button is selected using JavaScript.
2) It then provides an example HTML form with radio button options for hobbies. It includes a JavaScript function that validates a selection is made before form submission.
3) The document also covers additional topics related to working with windows and frames in JavaScript, including opening new windows, referring to parent/child windows, writing to frames, and using variables to store data across frames.
The document discusses various types of dialogs in Eclipse including modal dialogs, message dialogs, confirmation dialogs, error dialogs, warning dialogs, tray dialogs, title area dialogs, and wizard dialogs. It provides details on how to create and use these different dialog types, including creating buttons, button bars, and wizard pages.
This document summarizes the topics of menus and dialogs covered in Android application development session 3. It discusses the three types of menus: option menus, context menus, and popup menus. It provides code examples for creating and handling each type of menu. It also discusses the three types of dialogs: alert dialogs, progress dialogs, and custom dialogs. Code is shown for building each type of dialog and handling button clicks. Custom dialog creation involves separate layout files for the main screen and dialog, with code to display the custom dialog when a button is clicked.
This chapter introduces the Abstract Window Toolkit (AWT) in Java. It discusses creating windows and frames using AWT classes. It covers working with graphics, colors, fonts, and layout managers. It also discusses using AWT controls like buttons, checkboxes, lists, menus and dialog boxes. The chapter describes handling events by extending AWT components and exploring controls, menus and layout managers in more detail.
The document provides an overview of the topics covered in an SQL course, including basic database concepts, relational database objects, data types, queries using SELECT, INSERT, UPDATE and DELETE, DDL commands like CREATE, ALTER and DROP, JOINs, aggregating functions, and more advanced topics like nested queries, indexing, stored procedures, transactions and triggers.
This document provides an overview of an Android application development session that covers the Android framework, Android layouts, and basic UI widgets. The session will discuss the main components of the Android framework - activities, services, broadcast receivers, and content providers. It will explain how to design screens using linear, relative and list views in Android layouts. It will also demonstrate how to add basic widgets like text boxes, buttons, checkboxes and radio buttons to a user interface. Code examples are provided to illustrate how to set up activities, initialize views, and retrieve widget values.
This document provides an overview of an Android application development session that covers topics from the basics of Android to an advanced level. It discusses introducing Android and the Android SDK. It describes how to set up the development environment on Windows and Linux and install the Android Development Tools plugin for Eclipse. It demonstrates how to create an Android project in Eclipse and build a simple "Hello World" application. It also explains the structure of an Android project directory and the purpose of key directories like res, src, and values.
Chapter ii c#(building a user interface)Chhom Karath
The document discusses various form controls and techniques in Windows Forms applications, including:
- Message boxes for displaying information to users
- Validating textbox input to only allow certain characters
- Minimizing, maximizing and restoring a form's window state
- Clearing text from textboxes and comboboxes in a form
- Radio buttons, check boxes, and list boxes
- Creating timers and tabbed dialog boxes
- Adding menu items, shortcuts, and toolbars
- Creating multiple document interface (MDI) forms with a parent window containing child windows.
Dokumen tersebut memberikan penjelasan singkat tentang program pengolah kata Word dan OpenOffice Writer, program presentasi Impress, dan sistem typesetting LaTeX. Ia menjelaskan fitur-fitur dasar ketiga program tersebut beserta langkah-langkah memulai dan mengakhiri program. Dokumen tersebut juga menjelaskan struktur dasar dokumen LaTeX dan kemampuan typesetting TEX.
El documento proporciona instrucciones sobre varias herramientas de Word para agregar elementos como tablas de contenido, notas al pie y al final, citas y bibliografías. También describe cómo usar las herramientas de revisión como ortografía y gramática, control de cambios y comparar versiones. Por último, explica las diferentes vistas como modo lectura, diseño de impresión y esquema que permiten ver el documento de diferentes formas.
Microsoft Excel adalah program aplikasi lembar kerja spreadsheet yang dibuat oleh Microsoft untuk membuat kalkulasi dan grafik. Aplikasi ini memiliki fitur kalkulasi dan pembuatan grafik serta strategi pemasaran yang agresif sehingga menjadikannya salah satu program komputer paling populer.
Learning VB.NET Programming Concepts is a textbook for software developers to familiarize them with the concept of Common Language Runtime (CLR). The textbook enables the reader to understand the basic features of VB.NET. The line-by-line explanation of the source code, a unique feature of the textbook, enables the students to gain a thorough and practical understanding of VB.NET. The chapters in this book are structured in a pedagogical sequence, which makes this textbook very effective in learning the features and capabilities of the software.
Modul ini membahas pengenalan Microsoft Access 2010 dan cara kerja dasar di dalamnya, meliputi pembuatan database, tabel, query, form dan report. Topik utama yang dibahas antara lain cara membuat dan mendesain tabel, membuat query untuk mengolah data, serta menampilkan hasilnya dalam bentuk form dan report.
Windows Form - Lec12 (Workshop on C# Programming: Learn to Build)Jannat Ruma
This is provided as a course material in the Workshop named "Workshop on C# Programming: Learn to Build" organized by East West University Computer Programming Club (EWUCoPC) & supported by Young Engineers Society (YES).
The document discusses how to create Android home screen widgets. It explains that widgets require an AppWidgetProviderInfo XML, AppWidgetProvider class, and view layout XML. The AppWidgetProvider class handles widget updates and broadcasts. RemoteViews allow updating widget views without an activity. PendingIntents make widgets interactive by starting activities on click. The document also provides examples for updating widgets, handling long operations, and adding touch feedback.
1) The document discusses validating radio button selections in HTML forms. It explains how to check which radio button is selected using JavaScript.
2) It then provides an example HTML form with radio button options for hobbies. It includes a JavaScript function that validates a selection is made before form submission.
3) The document also covers additional topics related to working with windows and frames in JavaScript, including opening new windows, referring to parent/child windows, writing to frames, and using variables to store data across frames.
The document discusses various types of dialogs in Eclipse including modal dialogs, message dialogs, confirmation dialogs, error dialogs, warning dialogs, tray dialogs, title area dialogs, and wizard dialogs. It provides details on how to create and use these different dialog types, including creating buttons, button bars, and wizard pages.
This document summarizes the topics of menus and dialogs covered in Android application development session 3. It discusses the three types of menus: option menus, context menus, and popup menus. It provides code examples for creating and handling each type of menu. It also discusses the three types of dialogs: alert dialogs, progress dialogs, and custom dialogs. Code is shown for building each type of dialog and handling button clicks. Custom dialog creation involves separate layout files for the main screen and dialog, with code to display the custom dialog when a button is clicked.
This chapter introduces the Abstract Window Toolkit (AWT) in Java. It discusses creating windows and frames using AWT classes. It covers working with graphics, colors, fonts, and layout managers. It also discusses using AWT controls like buttons, checkboxes, lists, menus and dialog boxes. The chapter describes handling events by extending AWT components and exploring controls, menus and layout managers in more detail.
The document provides an overview of the topics covered in an SQL course, including basic database concepts, relational database objects, data types, queries using SELECT, INSERT, UPDATE and DELETE, DDL commands like CREATE, ALTER and DROP, JOINs, aggregating functions, and more advanced topics like nested queries, indexing, stored procedures, transactions and triggers.
This document provides an overview of an Android application development session that covers the Android framework, Android layouts, and basic UI widgets. The session will discuss the main components of the Android framework - activities, services, broadcast receivers, and content providers. It will explain how to design screens using linear, relative and list views in Android layouts. It will also demonstrate how to add basic widgets like text boxes, buttons, checkboxes and radio buttons to a user interface. Code examples are provided to illustrate how to set up activities, initialize views, and retrieve widget values.
This document provides an overview of an Android application development session that covers topics from the basics of Android to an advanced level. It discusses introducing Android and the Android SDK. It describes how to set up the development environment on Windows and Linux and install the Android Development Tools plugin for Eclipse. It demonstrates how to create an Android project in Eclipse and build a simple "Hello World" application. It also explains the structure of an Android project directory and the purpose of key directories like res, src, and values.
Chapter ii c#(building a user interface)Chhom Karath
The document discusses various form controls and techniques in Windows Forms applications, including:
- Message boxes for displaying information to users
- Validating textbox input to only allow certain characters
- Minimizing, maximizing and restoring a form's window state
- Clearing text from textboxes and comboboxes in a form
- Radio buttons, check boxes, and list boxes
- Creating timers and tabbed dialog boxes
- Adding menu items, shortcuts, and toolbars
- Creating multiple document interface (MDI) forms with a parent window containing child windows.
Dokumen tersebut memberikan penjelasan singkat tentang program pengolah kata Word dan OpenOffice Writer, program presentasi Impress, dan sistem typesetting LaTeX. Ia menjelaskan fitur-fitur dasar ketiga program tersebut beserta langkah-langkah memulai dan mengakhiri program. Dokumen tersebut juga menjelaskan struktur dasar dokumen LaTeX dan kemampuan typesetting TEX.
El documento proporciona instrucciones sobre varias herramientas de Word para agregar elementos como tablas de contenido, notas al pie y al final, citas y bibliografías. También describe cómo usar las herramientas de revisión como ortografía y gramática, control de cambios y comparar versiones. Por último, explica las diferentes vistas como modo lectura, diseño de impresión y esquema que permiten ver el documento de diferentes formas.
Microsoft Excel adalah program aplikasi lembar kerja spreadsheet yang dibuat oleh Microsoft untuk membuat kalkulasi dan grafik. Aplikasi ini memiliki fitur kalkulasi dan pembuatan grafik serta strategi pemasaran yang agresif sehingga menjadikannya salah satu program komputer paling populer.
Learning VB.NET Programming Concepts is a textbook for software developers to familiarize them with the concept of Common Language Runtime (CLR). The textbook enables the reader to understand the basic features of VB.NET. The line-by-line explanation of the source code, a unique feature of the textbook, enables the students to gain a thorough and practical understanding of VB.NET. The chapters in this book are structured in a pedagogical sequence, which makes this textbook very effective in learning the features and capabilities of the software.
Modul ini membahas pengenalan Microsoft Access 2010 dan cara kerja dasar di dalamnya, meliputi pembuatan database, tabel, query, form dan report. Topik utama yang dibahas antara lain cara membuat dan mendesain tabel, membuat query untuk mengolah data, serta menampilkan hasilnya dalam bentuk form dan report.
This document discusses how to create tables and charts in Microsoft Excel. It shows a table with student names, science scores, and math scores. It then displays charts created from the table, including a bar chart comparing student scores, a pie chart showing science scores as percentages, and a column chart comparing student performance in science.
Dokumen tersebut berisi contoh soal latihan Microsoft Access untuk siswa tingkat 2 yang sedang mengikuti pelatihan sistem ganda. Soal-soal tersebut mencakup pengertian dasar tentang tabel, query, form, laporan, serta properti dan tipe data field dalam Microsoft Access.
Dokumen memberikan instruksi tentang cara merubah format teks dan gambar di Microsoft Word meliputi mengubah font, efek bentuk, isi, garis luar teks, memotong gambar, dan menambahkan gambar baru.
Modul ini membahas tentang Microsoft Word 2007 dan fitur-fitur dasarnya. Terdapat penjelasan singkat tentang tampilan baru Word 2007, fungsi-fungsi utama pada tab Home, Insert, Page Layout, dan References serta latihan-latihan penggunaannya.
This document provides information about an inventory management application created in VB.NET. It includes details on the login screen, main menu, stock record viewing and editing screens, size and color record screens, and supporting code. The application allows users to view, add, update and delete inventory stock records with attributes like quantity, product type, size, and color.
The document discusses various aspects of using Visual Basic 2008 and Microsoft Access 2007 for GUI and database development. It covers topics like Visual Basic basics, the Visual Basic 2008 interface and tools, using forms and controls in Access 2007, creating tables and relationships in a Access 2007 database, and includes examples of Visual Basic and VBA code for forms interacting with an Access 2007 backend database.
The document discusses various topics related to GUI Visual Basic 2008 and Microsoft Office Access 2007. It includes sections on Visual Basic, Access 2007 features like tables, queries, forms and reports. It also includes code examples for forms in Visual Basic to manage customer, car and rent data in an Access 2007 database. The code shows how to search, add, update and delete records using buttons and text boxes on the forms.
This document contains code for a VB.Net application for a hospital patient admission system. It includes code for login authentication, user management, registration, payment, and treatment functions. The code handles tasks like connecting to a database, generating unique identifiers, performing queries, and updating/inserting records.
The document contains code for a form with 10 text boxes. ToolStripButton1 searches a file and fills the text boxes with data from the file if there is a match on text box 1. ToolStripButton3 clears all the text boxes. ToolStripButton2 appends the contents of the first 4 text boxes to the file.
please code in c#- please note that im a complete beginner- northwind.docxAustinaGRPaigey
please code in c#.
please note that im a complete beginner.
northwind.mdf.
northwind_log.ldf
OrderDetailsMaintenance.zip
1. Include the two above files in the root of your OrderDetailsMaintenance project.
2. Make sure to mark them as "Content" and "Copy Always" or "Copy if newer" in the properties window of those two files.
3. Run the Scaffold-DbContext command to create a context class as well as a class to encapsulate the Orders objects from the associated table in the mdf file. Make sure to include the parameters for -Tables Customers (only worry about the attributes associated with the text boxes, you don't need to worry about any other rows from the table)
4. Once you have ran the command, include an app.config file and add a connection string element. Make sure to copy the connection string from your Context class to your app.config. Then edit your context to grab the connection string from the app.config (ConfigurationManager.ConnectionString["Northwind"].ConnectionString)
5. Code the Find button to Find the customer id and populate the details in the below text boxes.
1. If no order is found, display a message box.
6. Code the exit button
7. Code the Save button to update its attributes and call Update and SaveChanges() on that particular entity.
1. Note: If you close the program, reopen it, and search for the entity you recently updated. You may not see the changes depending on how you setup the mdf file in your project (because it copies a new version to the bin directory each time you run the program). So, if you don't see your changes, don't be alarmed.
============
HERE IS WHAT I HAVE SO FAR
frmCustomerMaintenance.cs
namespace OrderDetailsMaintenance
{
public partial class frmCustomerMaintenance : Form
{
public frmCustomerMaintenance()
{
InitializeComponent();
}
}
}
frmCustomerMaintenance.resx
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name".
The document contains 9 VB.Net programs with code examples and output. The programs cover topics like counting vowels in a string, checking if a number is even/odd/overflow, calculating compound interest, summing positive and negative numbers from user input, concatenating strings with message box, changing font style based on checkboxes, generating a student enrollment form with combo boxes, creating a dynamic user login form using a database, and implementing a multiple document interface with parent and child forms.
1. The document discusses creating a database in Microsoft Access 2007 and connecting it to a VB2010 project. It includes code for connecting to the database and performing basic CRUD operations like retrieving, adding, editing and deleting records.
2. Screenshots and code are provided for designing a form with textboxes, buttons, radiobuttons and a datagridview to display records. Code examples demonstrate querying the database and populating the form fields.
3. The form and buttons allow for inserting new records, editing existing ones based on a primary key, deleting records, and performing other basic data management tasks on a table called PEGAWAI within the Access database.
The document describes how to connect to a Microsoft Access database using data readers in Visual Studio .NET. It involves the following steps:
1. Create an Employee database in MS Access with a table containing employee fields.
2. Open Visual Studio .NET and add a connection to the Access database file.
3. Write code to perform CRUD (create, read, update, delete) operations on the employee table using OleDbConnection, OleDbCommand and OleDbDataReader objects.
Windows Forms , Form Class , Common Operations on Forms , Creating a Message Box ,Handling Events ,Mouse Events,Keyboard Events , Common Controls in Windows Forms,Label , TextBox , Button , Combo Box , List Box , Check Box , Radio Button , Group Box , Picture Box , Timer , Open File Dialog , Save File Dialog , Font Dialog, Color Dialog ,Print Dialog ,Tree View ,Menu,PROGRAMMING,C#,C# CONCEPTS,SIMPLE CONCEPTS IN C#.
This document contains code for an inventory management system. It includes modules for connecting to a database, handling user login and permissions, and inputting/managing product data. The login module verifies user credentials and sets permission levels. The product input module provides functions for inserting, updating, deleting and searching for product records in the database. It initializes forms and controls for data entry and management.
This document contains code for an inventory management system. It includes modules for connecting to a database, handling user login and permissions, and inputting/managing product data. The login module verifies user credentials and sets permission levels. The product input module provides functions for inserting, updating, deleting and searching for product records in the database. It establishes the database connection and uses SQL commands to manage the data.
The document provides an overview of .NET technology and VB.NET programming. It discusses key aspects of .NET including the Common Language Runtime (CLR), Common Type System, Windows Forms, Web Forms, Web Services, ADO.NET, XML support, and multiple language support. It also covers VB.NET programming concepts like forms, events, databases, dialog boxes, menus, classes, and arrays of objects. The document is intended as teaching material for a course on .NET and VB.NET programming.
The document discusses call center management solutions. It describes how call centers provide important customer service support for technical companies and help companies expand their customer bases. Outsourcing call center services allows companies to save money on training and benefits compared to employing full-time customer support staff. The document then outlines some of the key forms and features of the call center management software, including forms for employee details, call registration, and announcements. It provides examples of code used for validation processes and file input/output functions.
This document provides instructions and code examples for 8 lab exercises involving Visual Basic programming. Exercise 1 demonstrates using text boxes and command buttons. Exercise 2 loads multiple forms. Exercise 3 creates a timer program. Exercise 4 demonstrates command buttons and text manipulation. Exercise 5 involves list boxes and combo boxes. Exercise 6 builds a basic calculator application using arrays. Exercise 7 demonstrates string operations and conversions using a custom class. Exercise 8 uses picture boxes and labels to demonstrate color values.
* Obtained B Grade For This Project.
Do not direct copy form this project. This project was uploaded to enhance your IT knowledge.I think this project may be very helpful to understand procedure of C# project for DiTEC.
Author: Kasun Madhusanka
This Project was Created For My Diploma Course @ Esoft Metro Campus . I Think This Document Will Help You To Understand Behavior of DiTec Course.
Author: Kasun Madhusanka
The document contains code for 3 exercises in Visual Basic.NET. Exercise 1 involves currency conversion between dollars and dinars using checkboxes to select currency. Exercise 2 involves entering numeric values into textboxes and outputting them as a real number with or without a negative sign. Exercise 3 involves selecting between calculating the average, minimum, or maximum of student grades stored in a combobox by clicking radio buttons and buttons.
The document is a Visual Basic program for a hotel reservation system. It allows users to enter a guest name, select a room type and number, and pick check-in and check-out dates. It then calculates the room rate, number of nights stayed, and any applicable discounts (0-75% off for long stays). The total payment due is displayed along with a record of the reservation added to several list boxes.
Similar to Membuat aplikasi penjualan buku sederhana (20)
HCL Notes and Domino License Cost Reduction in the World of DLAUpanagenda
Webinar Recording: https://www.panagenda.com/webinars/hcl-notes-and-domino-license-cost-reduction-in-the-world-of-dlau/
The introduction of DLAU and the CCB & CCX licensing model caused quite a stir in the HCL community. As a Notes and Domino customer, you may have faced challenges with unexpected user counts and license costs. You probably have questions on how this new licensing approach works and how to benefit from it. Most importantly, you likely have budget constraints and want to save money where possible. Don’t worry, we can help with all of this!
We’ll show you how to fix common misconfigurations that cause higher-than-expected user counts, and how to identify accounts which you can deactivate to save money. There are also frequent patterns that can cause unnecessary cost, like using a person document instead of a mail-in for shared mailboxes. We’ll provide examples and solutions for those as well. And naturally we’ll explain the new licensing model.
Join HCL Ambassador Marc Thomas in this webinar with a special guest appearance from Franz Walder. It will give you the tools and know-how to stay on top of what is going on with Domino licensing. You will be able lower your cost through an optimized configuration and keep it low going forward.
These topics will be covered
- Reducing license cost by finding and fixing misconfigurations and superfluous accounts
- How do CCB and CCX licenses really work?
- Understanding the DLAU tool and how to best utilize it
- Tips for common problem areas, like team mailboxes, functional/test users, etc
- Practical examples and best practices to implement right away
UiPath Test Automation using UiPath Test Suite series, part 6DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 6. In this session, we will cover Test Automation with generative AI and Open AI.
UiPath Test Automation with generative AI and Open AI webinar offers an in-depth exploration of leveraging cutting-edge technologies for test automation within the UiPath platform. Attendees will delve into the integration of generative AI, a test automation solution, with Open AI advanced natural language processing capabilities.
Throughout the session, participants will discover how this synergy empowers testers to automate repetitive tasks, enhance testing accuracy, and expedite the software testing life cycle. Topics covered include the seamless integration process, practical use cases, and the benefits of harnessing AI-driven automation for UiPath testing initiatives. By attending this webinar, testers, and automation professionals can gain valuable insights into harnessing the power of AI to optimize their test automation workflows within the UiPath ecosystem, ultimately driving efficiency and quality in software development processes.
What will you get from this session?
1. Insights into integrating generative AI.
2. Understanding how this integration enhances test automation within the UiPath platform
3. Practical demonstrations
4. Exploration of real-world use cases illustrating the benefits of AI-driven test automation for UiPath
Topics covered:
What is generative AI
Test Automation with generative AI and Open AI.
UiPath integration with generative AI
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...SOFTTECHHUB
The choice of an operating system plays a pivotal role in shaping our computing experience. For decades, Microsoft's Windows has dominated the market, offering a familiar and widely adopted platform for personal and professional use. However, as technological advancements continue to push the boundaries of innovation, alternative operating systems have emerged, challenging the status quo and offering users a fresh perspective on computing.
One such alternative that has garnered significant attention and acclaim is Nitrux Linux 3.5.0, a sleek, powerful, and user-friendly Linux distribution that promises to redefine the way we interact with our devices. With its focus on performance, security, and customization, Nitrux Linux presents a compelling case for those seeking to break free from the constraints of proprietary software and embrace the freedom and flexibility of open-source computing.
Communications Mining Series - Zero to Hero - Session 1DianaGray10
This session provides introduction to UiPath Communication Mining, importance and platform overview. You will acquire a good understand of the phases in Communication Mining as we go over the platform with you. Topics covered:
• Communication Mining Overview
• Why is it important?
• How can it help today’s business and the benefits
• Phases in Communication Mining
• Demo on Platform overview
• Q/A
GraphRAG for Life Science to increase LLM accuracyTomaz Bratanic
GraphRAG for life science domain, where you retriever information from biomedical knowledge graphs using LLMs to increase the accuracy and performance of generated answers
In the rapidly evolving landscape of technologies, XML continues to play a vital role in structuring, storing, and transporting data across diverse systems. The recent advancements in artificial intelligence (AI) present new methodologies for enhancing XML development workflows, introducing efficiency, automation, and intelligent capabilities. This presentation will outline the scope and perspective of utilizing AI in XML development. The potential benefits and the possible pitfalls will be highlighted, providing a balanced view of the subject.
We will explore the capabilities of AI in understanding XML markup languages and autonomously creating structured XML content. Additionally, we will examine the capacity of AI to enrich plain text with appropriate XML markup. Practical examples and methodological guidelines will be provided to elucidate how AI can be effectively prompted to interpret and generate accurate XML markup.
Further emphasis will be placed on the role of AI in developing XSLT, or schemas such as XSD and Schematron. We will address the techniques and strategies adopted to create prompts for generating code, explaining code, or refactoring the code, and the results achieved.
The discussion will extend to how AI can be used to transform XML content. In particular, the focus will be on the use of AI XPath extension functions in XSLT, Schematron, Schematron Quick Fixes, or for XML content refactoring.
The presentation aims to deliver a comprehensive overview of AI usage in XML development, providing attendees with the necessary knowledge to make informed decisions. Whether you’re at the early stages of adopting AI or considering integrating it in advanced XML development, this presentation will cover all levels of expertise.
By highlighting the potential advantages and challenges of integrating AI with XML development tools and languages, the presentation seeks to inspire thoughtful conversation around the future of XML development. We’ll not only delve into the technical aspects of AI-powered XML development but also discuss practical implications and possible future directions.
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!SOFTTECHHUB
As the digital landscape continually evolves, operating systems play a critical role in shaping user experiences and productivity. The launch of Nitrux Linux 3.5.0 marks a significant milestone, offering a robust alternative to traditional systems such as Windows 11. This article delves into the essence of Nitrux Linux 3.5.0, exploring its unique features, advantages, and how it stands as a compelling choice for both casual users and tech enthusiasts.
Programming Foundation Models with DSPy - Meetup SlidesZilliz
Prompting language models is hard, while programming language models is easy. In this talk, I will discuss the state-of-the-art framework DSPy for programming foundation models with its powerful optimizers and runtime constraint system.
Full-RAG: A modern architecture for hyper-personalizationZilliz
Mike Del Balso, CEO & Co-Founder at Tecton, presents "Full RAG," a novel approach to AI recommendation systems, aiming to push beyond the limitations of traditional models through a deep integration of contextual insights and real-time data, leveraging the Retrieval-Augmented Generation architecture. This talk will outline Full RAG's potential to significantly enhance personalization, address engineering challenges such as data management and model training, and introduce data enrichment with reranking as a key solution. Attendees will gain crucial insights into the importance of hyperpersonalization in AI, the capabilities of Full RAG for advanced personalization, and strategies for managing complex data integrations for deploying cutting-edge AI solutions.
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfPaige Cruz
Monitoring and observability aren’t traditionally found in software curriculums and many of us cobble this knowledge together from whatever vendor or ecosystem we were first introduced to and whatever is a part of your current company’s observability stack.
While the dev and ops silo continues to crumble….many organizations still relegate monitoring & observability as the purview of ops, infra and SRE teams. This is a mistake - achieving a highly observable system requires collaboration up and down the stack.
I, a former op, would like to extend an invitation to all application developers to join the observability party will share these foundational concepts to build on:
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc
How does your privacy program stack up against your peers? What challenges are privacy teams tackling and prioritizing in 2024?
In the fifth annual Global Privacy Benchmarks Survey, we asked over 1,800 global privacy professionals and business executives to share their perspectives on the current state of privacy inside and outside of their organizations. This year’s report focused on emerging areas of importance for privacy and compliance professionals, including considerations and implications of Artificial Intelligence (AI) technologies, building brand trust, and different approaches for achieving higher privacy competence scores.
See how organizational priorities and strategic approaches to data security and privacy are evolving around the globe.
This webinar will review:
- The top 10 privacy insights from the fifth annual Global Privacy Benchmarks Survey
- The top challenges for privacy leaders, practitioners, and organizations in 2024
- Key themes to consider in developing and maintaining your privacy program
Infrastructure Challenges in Scaling RAG with Custom AI modelsZilliz
Building Retrieval-Augmented Generation (RAG) systems with open-source and custom AI models is a complex task. This talk explores the challenges in productionizing RAG systems, including retrieval performance, response synthesis, and evaluation. We’ll discuss how to leverage open-source models like text embeddings, language models, and custom fine-tuned models to enhance RAG performance. Additionally, we’ll cover how BentoML can help orchestrate and scale these AI components efficiently, ensuring seamless deployment and management of RAG systems in the cloud.
UiPath Test Automation using UiPath Test Suite series, part 5DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 5. In this session, we will cover CI/CD with devops.
Topics covered:
CI/CD with in UiPath
End-to-end overview of CI/CD pipeline with Azure devops
Speaker:
Lyndsey Byblow, Test Suite Sales Engineer @ UiPath, Inc.
In his public lecture, Christian Timmerer provides insights into the fascinating history of video streaming, starting from its humble beginnings before YouTube to the groundbreaking technologies that now dominate platforms like Netflix and ORF ON. Timmerer also presents provocative contributions of his own that have significantly influenced the industry. He concludes by looking at future challenges and invites the audience to join in a discussion.
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slackshyamraj55
Discover the seamless integration of RPA (Robotic Process Automation), COMPOSER, and APM with AWS IDP enhanced with Slack notifications. Explore how these technologies converge to streamline workflows, optimize performance, and ensure secure access, all while leveraging the power of AWS IDP and real-time communication via Slack notifications.
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Membuat aplikasi penjualan buku sederhana
1. Teknik Informatika Universitas Serambi Mekkah
Modul Dasar Pemrograman III (VB.Net) Hal. 1
Membuat Aplikasi Penjualan Buku Sederhana
Langkah-langkah dalam membuat aplikasi adalah sebagai berikut :
1. Buat project baru dengan nama Aplikasi Penjualan lalu simpan pada Local Disc di PC atau Laptop
Anda.
2. Buatlah database dengan nama JualBuku.accdb lalu simpan kedalam folder Aplikasi Penjualan >
bin > debug kemudian rancanglah struktur tabel seperti berikut ini :
Nama Tabel : Jenis
Field Type Size Keterangan
KodeJenis Text 2 Primary Key (PK)
Jenis Text 50
Nama Tabel : Buku
Field Type Size Keterangan
KodeBuku Text 3 Primary Key (PK)
KodeJenis Text 2 Foreign Key (FK)
Judul Text 100
Pengarang Text 50
Penerbit Text 50
Jumlah Number
Harga Number
Deskripsi Text 200
Nama Tabel : Transaksi
Field Type Size Keterangan
NoFaktur Text 11 Primary Key (PK)
TglFaktur Date/Time
Pukul Date/Time
NamaPembeli Text 50
NoTelp Text 12
Total Number
Dibayar Number
Kembali Number
Item Number
Nama Tabel : DetailTransaksi
Field Type Size Keterangan
NoFaktur Text 11
KodeBuku Text 3
Judul Text 150
Jumlah Number
HargaJual Number
SubTotal Number
2. Teknik Informatika Universitas Serambi Mekkah
Modul Dasar Pemrograman III (VB.Net) Hal. 2
Entity Relationship Diagram (ERD) Aplikasi Penjualan Buku Komputer
Gambar 1. Rancangan ERD
Rancanglah Form Menu, Form Jenis Buku, dan Form Data Buku, Form Transaksi Penjualan Buku
seperti gambar berikut :
Gambar 2. Menu Aplikasi Penjualan Buku Komputer
Tulislah koding menunya sebagai berikut :
Public Class Form1
Private Sub DataJenisBukuToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles DataJenisBukuToolStripMenuItem.Click
Form2.Show()
End Sub
MenuStrip1
StatusStrip1
GroupBox1
Button
1
3. Teknik Informatika Universitas Serambi Mekkah
Modul Dasar Pemrograman III (VB.Net) Hal. 3
Private Sub DataBukuToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles DataBukuToolStripMenuItem.Click
Form3.Show()
End Sub
Private Sub KeluarToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles KeluarToolStripMenuItem.Click
If MessageBox.Show("Yakin akan menutup aplikasi ini..?", "", MessageBoxButtons.YesNo)
= Windows.Forms.DialogResult.Yes Then
End
End If
End Sub
End Class
Gambar 3. Rancangan Form Data Jenis Buku
TextBox3
TextBox1
TextBox2
Button1
Button2
Button3
Button4
DataGridView1
4. Teknik Informatika Universitas Serambi Mekkah
Modul Dasar Pemrograman III (VB.Net) Hal. 4
Gambar 4. Rancangan Form Data Buku
Gambar 5. Rancangan Form Transaksi Penjualan Buku
DataGridView1
TextBox2
TextBox3
TextBox4
TextBox5
TextBox8
TextBox7
TextBox9
Button5
Button4
Button3
Button2
Button1
ComboBox1
TextBox6
TextBox1
TextBox1
TextBox2
TextBox3
TextBox4
TextBox5
Button1
Button2
Button3
TextBox6
Label10
TextBox7
TextBox8
TextBox9
DataGridView1
Button4
5. Teknik Informatika Universitas Serambi Mekkah
Modul Dasar Pemrograman III (VB.Net) Hal. 5
Tambahkan sebuah module kemudian tulislah koding dibawah ini :
Imports System.Data.OleDb
Module Module1
Public Conn As OleDbConnection
Public da As OleDbDataAdapter
Public ds As DataSet
Public cmd As OleDbCommand
Public rd As OleDbDataReader
Public Str As String
Public Sub Koneksi()
Str = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & Application.StartupPath &
"JualBuku.accdb"
Conn = New OleDbConnection(Str)
If Conn.State = ConnectionState.Closed Then
Conn.Open()
End If
End Sub
End Module
Hasil Form2 (Jenis Buku) setelah dijalankan
Gambar 6. Hasil Form2 (Jenis Buku)
Kodingnya sebagai berikut :
Imports System.Data.OleDb
Public Class Form2
Sub Kosong()
TextBox1.Clear()
TextBox2.Clear()
TextBox1.Focus()
End Sub
Sub Isi()
TextBox2.Clear()
TextBox2.Focus()
End Sub
6. Teknik Informatika Universitas Serambi Mekkah
Modul Dasar Pemrograman III (VB.Net) Hal. 6
Sub TampilJenis()
da = New OleDbDataAdapter("Select * From Jenis", Conn)
ds = New DataSet
ds.Clear()
da.Fill(ds, "Jenis")
DataGridView1.DataSource = ds.Tables("Jenis")
DataGridView1.Refresh()
End Sub
Sub AturGrid()
DataGridView1.Columns(0).Width = 60
DataGridView1.Columns(1).Width = 200
DataGridView1.Columns(0).HeaderText = "KODE JENIS"
DataGridView1.Columns(1).HeaderText = "NAMA JENIS"
End Sub
Private Sub Form2_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles
Me.Load
Call Koneksi()
Call TampilJenis()
Call Kosong()
Call AturGrid()
End Sub
Private Sub TextBox2_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles TextBox2.KeyPress
TextBox2.MaxLength = 50
If e.KeyChar = Chr(13) Then
TextBox2.Text = UCase(TextBox2.Text)
End If
End Sub
Private Sub DataGridView1_CellContentClick(ByVal sender As Object, ByVal e As
System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
Dim i As Integer
i = Me.DataGridView1.CurrentRow.Index
With DataGridView1.Rows.Item(i)
Me.TextBox1.Text = .Cells(0).Value
Me.TextBox2.Text = .Cells(1).Value
End With
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
If TextBox1.Text = "" Or TextBox2.Text = "" Then
MsgBox("Data belum lengkap..!")
TextBox1.Focus()
Exit Sub
Else
cmd = New OleDbCommand("Select * From Jenis where KodeJenis='" & TextBox1.Text &
"'", Conn)
rd = cmd.ExecuteReader
rd.Read()
If Not rd.HasRows Then
Dim Simpan As String = "insert into Jenis(KodeJenis,Jenis)values " & _
"('" & TextBox1.Text & "','" & TextBox2.Text & "')"
cmd = New OleDbCommand(Simpan, Conn)
cmd.ExecuteNonQuery()
MsgBox("Simpan data sukses...!", MsgBoxStyle.Information, "Perhatian")
End If
Call TampilJenis()
Call Kosong()
TextBox1.Focus()
End If
End Sub
7. Teknik Informatika Universitas Serambi Mekkah
Modul Dasar Pemrograman III (VB.Net) Hal. 7
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button2.Click
If TextBox1.Text = "" Then
MsgBox("Kode Jenis belum diisi")
TextBox1.Focus()
Exit Sub
Else
Dim Ubah As String = "Update Jenis set " & _
"Jenis='" & TextBox2.Text & "' " & _
"where KodeJenis='" & TextBox1.Text & "'"
cmd = New OleDbCommand(Ubah, Conn)
cmd.ExecuteNonQuery()
MsgBox("Ubah data sukses..!", MsgBoxStyle.Information, "Perhatian")
Call TampilJenis()
Call Kosong()
TextBox1.Focus()
End If
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button3.Click
If TextBox1.Text = "" Then
MsgBox("Kode Buku belum diisi")
TextBox1.Focus()
Exit Sub
Else
If MessageBox.Show("Yakin akan menghapus Data Jenis " & TextBox1.Text & " ?", "",
MessageBoxButtons.YesNo) = Windows.Forms.DialogResult.Yes Then
cmd = New OleDbCommand("Delete * From Jenis where KodeJenis='" & TextBox1.Text
& "'", Conn)
cmd.ExecuteNonQuery()
Call Kosong()
Call TampilJenis()
Else
Call Kosong()
End If
End If
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button4.Click
Call Kosong()
End Sub
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
TextBox1.MaxLength = 2
If e.KeyChar = Chr(13) Then
cmd = New OleDbCommand("Select * From Jenis where KodeJenis='" & TextBox1.Text &
"'", Conn)
rd = cmd.ExecuteReader
rd.Read()
If rd.HasRows = True Then
TextBox2.Text = rd.Item(1)
TextBox2.Focus()
Else
Call Isi()
TextBox2.Focus()
End If
End If
End Sub
Private Sub TextBox3_TextChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles TextBox3.TextChanged
cmd = New OleDbCommand("Select * From Jenis where KodeJenis like '%" & TextBox3.Text &
"%'", Conn)
rd = cmd.ExecuteReader
rd.Read()
If rd.HasRows Then
da = New OleDbDataAdapter("Select * From Jenis where KodeJenis like '%" &
TextBox3.Text & "%'", Conn)
ds = New DataSet
da.Fill(ds, "Dapat")
DataGridView1.DataSource = ds.Tables("Dapat")
8. Teknik Informatika Universitas Serambi Mekkah
Modul Dasar Pemrograman III (VB.Net) Hal. 8
DataGridView1.ReadOnly = True
Else
MsgBox("Data tidak ditemukan")
End If
End Sub
End Class
Hasil Form3 (Data Buku) setelah dijalankan
Gambar 7. Hasil Form3 (Data Buku)
Kodingnya sebagai berikut :
Imports System.Data.OleDb
Public Class Form3
Sub Kosong()
TextBox1.Clear()
ComboBox1.Text = ""
TextBox2.Clear()
TextBox3.Clear()
TextBox4.Clear()
TextBox5.Clear()
TextBox6.Clear()
TextBox7.Clear()
TextBox8.Clear()
TextBox1.Focus()
End Sub
Sub Isi()
ComboBox1.Text = ""
TextBox2.Clear()
TextBox3.Clear()
TextBox4.Clear()
TextBox5.Clear()
TextBox6.Clear()
TextBox7.Clear()
ComboBox1.Focus()
End Sub
9. Teknik Informatika Universitas Serambi Mekkah
Modul Dasar Pemrograman III (VB.Net) Hal. 9
Sub TampilBuku()
da = New OleDbDataAdapter("Select * From Buku", Conn)
ds = New DataSet
ds.Clear()
da.Fill(ds, "Buku")
DataGridView1.DataSource = ds.Tables("Buku")
DataGridView1.Refresh()
End Sub
Sub TampilJenis()
cmd = New OleDbCommand("Select KodeJenis From Jenis", Conn)
rd = cmd.ExecuteReader
Do While rd.Read
ComboBox1.Items.Add(rd.Item(0))
Loop
End Sub
Sub AturGrid()
DataGridView1.Columns(0).Width = 60
DataGridView1.Columns(1).Width = 50
DataGridView1.Columns(2).Width = 300
DataGridView1.Columns(3).Width = 100
DataGridView1.Columns(4).Width = 100
DataGridView1.Columns(5).Width = 100
DataGridView1.Columns(6).Width = 100
DataGridView1.Columns(7).Width = 300
DataGridView1.Columns(0).HeaderText = "KODE BARANG"
DataGridView1.Columns(1).HeaderText = "KODE JENIS"
DataGridView1.Columns(2).HeaderText = "JUDUL"
DataGridView1.Columns(3).HeaderText = "PENGARANG"
DataGridView1.Columns(4).HeaderText = "PENERBIT"
DataGridView1.Columns(5).HeaderText = "JUMLAH"
DataGridView1.Columns(6).HeaderText = "HARGA"
DataGridView1.Columns(7).HeaderText = "DESKRIPSI"
End Sub
Private Sub Form2_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles
Me.Load
Call Koneksi()
Call TampilJenis()
Call TampilBuku()
Call Kosong()
Call AturGrid()
End Sub
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
TextBox1.MaxLength = 3
If e.KeyChar = Chr(13) Then
cmd = New OleDbCommand("Select * From Buku where KodeBuku='" & TextBox1.Text &
"'", Conn)
rd = cmd.ExecuteReader
rd.Read()
If rd.HasRows = True Then
ComboBox1.Text = rd.Item(1)
TextBox2.Text = rd.Item(2)
TextBox3.Text = rd.Item(3)
TextBox4.Text = rd.Item(4)
TextBox5.Text = rd.Item(5)
TextBox6.Text = rd.Item(6)
TextBox7.Text = rd.Item(7)
TextBox2.Focus()
Else
Call Isi()
ComboBox1.Focus()
End If
End If
End Sub
10. Teknik Informatika Universitas Serambi Mekkah
Modul Dasar Pemrograman III (VB.Net) Hal. 10
Private Sub TextBox2_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles TextBox2.KeyPress
TextBox2.MaxLength = 50
If e.KeyChar = Chr(13) Then
TextBox2.Text = UCase(TextBox2.Text)
TextBox3.Focus()
End If
End Sub
Private Sub TextBox3_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles TextBox3.KeyPress
If e.KeyChar = Chr(13) Then
TextBox3.Text = UCase(TextBox3.Text)
TextBox4.Focus()
End If
End Sub
Private Sub ComboBox1_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles ComboBox1.KeyPress
If e.KeyChar = Chr(13) Then TextBox2.Focus()
End Sub
Private Sub DataGridView1_CellContentClick(ByVal sender As Object, ByVal e As
System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
Dim i As Integer
i = Me.DataGridView1.CurrentRow.Index
With DataGridView1.Rows.Item(i)
Me.TextBox1.Text = .Cells(0).Value
Me.ComboBox1.Text = .Cells(1).Value
Me.TextBox2.Text = .Cells(2).Value
Me.TextBox3.Text = .Cells(3).Value
Me.TextBox4.Text = .Cells(4).Value
Me.TextBox5.Text = .Cells(5).Value
Me.TextBox6.Text = .Cells(6).Value
Me.TextBox7.Text = .Cells(7).Value
End With
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
If TextBox1.Text = "" Or ComboBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text =
"" Or TextBox4.Text = "" Or TextBox5.Text = "" Or TextBox6.Text = "" Then
MsgBox("Data belum lengkap..!")
TextBox1.Focus()
Exit Sub
Else
cmd = New OleDbCommand("Select * From Buku where KodeBuku='" & TextBox1.Text &
"'", Conn)
rd = cmd.ExecuteReader
rd.Read()
If Not rd.HasRows Then
Dim Simpan As String = "insert into
Buku(KodeBuku,KodeJenis,Judul,Pengarang,Penerbit,JumlahBuku,Harga,Deskripsi)values " & _
"('" & TextBox1.Text & "','" & ComboBox1.Text & "','" & TextBox2.Text & "','"
& TextBox3.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & TextBox6.Text &
"','" & TextBox7.Text & "')"
cmd = New OleDbCommand(Simpan, Conn)
cmd.ExecuteNonQuery()
MsgBox("Simpan data sukses...!", MsgBoxStyle.Information, "Perhatian")
End If
Call TampilBuku()
Call Kosong()
TextBox1.Focus()
End If
End Sub
11. Teknik Informatika Universitas Serambi Mekkah
Modul Dasar Pemrograman III (VB.Net) Hal. 11
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
Button2.Click
If TextBox1.Text = "" Then
MsgBox("Kode Buku belum diisi")
TextBox1.Focus()
Exit Sub
Else
Dim Ubah As String = "Update Buku set " & _
"KodeJenis='" & ComboBox1.Text & "'," & _
"Judul='" & TextBox2.Text & "'," & _
"Pengarang='" & TextBox3.Text & "'," & _
"Penerbit='" & TextBox4.Text & "'," & _
"JumlahBuku='" & TextBox5.Text & "'," & _
"Harga='" & TextBox6.Text & "'," & _
"Deskripsi='" & TextBox7.Text & "' " & _
"where KodeBuku='" & TextBox1.Text & "'"
cmd = New OleDbCommand(Ubah, Conn)
cmd.ExecuteNonQuery()
MsgBox("Ubah data sukses..!", MsgBoxStyle.Information, "Perhatian")
Call TampilBuku()
Call Kosong()
TextBox1.Focus()
End If
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button3.Click
If TextBox1.Text = "" Then
MsgBox("Kode Buku belum diisi")
TextBox1.Focus()
Exit Sub
Else
If MessageBox.Show("Yakin akan menghapus Data Buku " & TextBox1.Text & " ?", "",
MessageBoxButtons.YesNo) = Windows.Forms.DialogResult.Yes Then
cmd = New OleDbCommand("Delete * From Buku where KodeBuku='" & TextBox1.Text &
"'", Conn)
cmd.ExecuteNonQuery()
Call Kosong()
Call TampilBuku()
Else
Call Kosong()
End If
End If
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button4.Click
Call Kosong()
End Sub
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles ComboBox1.SelectedIndexChanged
cmd = New OleDbCommand("Select * From Jenis where KodeJenis='" & ComboBox1.Text & "'",
Conn)
rd = cmd.ExecuteReader
rd.Read()
If rd.HasRows = True Then
TextBox8.Text = rd.Item(1)
Else
MsgBox("Kode jenis ini tidak terdaftar")
End If
End Sub
Private Sub TextBox4_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles TextBox4.KeyPress
If e.KeyChar = Chr(13) Then
TextBox4.Text = UCase(TextBox4.Text)
TextBox5.Focus()
End If
End Sub
12. Teknik Informatika Universitas Serambi Mekkah
Modul Dasar Pemrograman III (VB.Net) Hal. 12
Private Sub TextBox5_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles TextBox5.KeyPress
If e.KeyChar = Chr(13) Then TextBox6.Focus()
End Sub
Private Sub TextBox6_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles TextBox6.KeyPress
If e.KeyChar = Chr(13) Then
TextBox6.Text = UCase(TextBox6.Text)
TextBox7.Focus()
End If
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button5.Click
Me.Close()
End Sub
Private Sub TextBox9_TextChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles TextBox9.TextChanged
cmd = New OleDbCommand("Select * From Buku where Judul like '%" & TextBox9.Text &
"%'", Conn)
rd = cmd.ExecuteReader
rd.Read()
If rd.HasRows Then
da = New OleDbDataAdapter("Select * From Buku where Judul like '%" & TextBox9.Text
& "%'", Conn)
ds = New DataSet
da.Fill(ds, "Dapat")
DataGridView1.DataSource = ds.Tables("Dapat")
DataGridView1.ReadOnly = True
Else
MsgBox("Data tidak ditemukan")
End If
End Sub
Private Sub TextBox7_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles TextBox7.KeyPress
TextBox6.MaxLength = 225
If e.KeyChar = Chr(13) Then
TextBox7.Text = UCase(TextBox7.Text)
Button1.Focus()
End If
End Sub
End Class
13. Teknik Informatika Universitas Serambi Mekkah
Modul Dasar Pemrograman III (VB.Net) Hal. 13
Hasil Form4 (Transaksi Penjualan Buku Komputer) setelah dijalankan
Gambar 8. Hasil Form4 (Transaksi Penjualan)
Kodingnya sebagai berikut :
Imports System.Data.OleDb
Public Class Form4
Sub Kosong()
TextBox4.Clear()
TextBox5.Clear()
TextBox6.Clear()
TextBox7.Clear()
TextBox8.Clear()
TextBox4.Focus()
End Sub
Sub TidakAktif()
TextBox1.Enabled = False
TextBox2.Enabled = False
TextBox3.Enabled = False
End Sub
Sub KolomBaru()
DataGridView1.Columns.Add("Kode", "KODE BUKU")
DataGridView1.Columns.Add("Nama", "NAMA BUKU")
DataGridView1.Columns.Add("Harga", "HARGA")
DataGridView1.Columns.Add("Jumlah", "QTY")
DataGridView1.Columns.Add("Total", "SUB TOTAL")
Call LebarKolom()
End Sub
Sub LebarKolom()
DataGridView1.Columns(0).Width = 50
DataGridView1.Columns(1).Width = 300
DataGridView1.Columns(2).Width = 60
DataGridView1.Columns(3).Width = 40
DataGridView1.Columns(4).Width = 80
End Sub
14. Teknik Informatika Universitas Serambi Mekkah
Modul Dasar Pemrograman III (VB.Net) Hal. 14
Private Sub Otomatis()
cmd = New OleDbCommand("Select * from Transaksi where NoFaktur in (select
max(NoFaktur) from Transaksi) order by NoFaktur desc", Conn)
Dim urutan As String
Dim hitung As Long
rd = cmd.ExecuteReader
rd.Read()
If Not rd.HasRows Then
urutan = "TR" + Format(Now, "yyMMdd") + "001"
Else
If Microsoft.VisualBasic.Mid(rd.GetString(0), 3, 6) <> Format(Now, "yyMMdd") Then
urutan = "TR" + Format(Now, "yyMMdd") + "001"
Else
hitung = Microsoft.VisualBasic.Right(rd.GetString(0), 2) + 1
urutan = "TR" + Format(Now, "yyMMdd") + Microsoft.VisualBasic.Right("000" &
hitung, 3)
End If
End If
TextBox1.Text = urutan
End Sub
Sub TampilBuku()
cmd = New OleDbCommand("Select KodeBuku From Buku", Conn)
rd = cmd.ExecuteReader
End Sub
Private Sub Form4_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles
Me.Activated
Call Otomatis()
TextBox2.Text = Today
TextBox3.Text = TimeOfDay
End Sub
Private Sub Form4_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles
Me.Load
Call Koneksi()
Call KolomBaru()
Call Kosong()
Call TidakAktif()
Call TampilBuku()
End Sub
Sub TotalItem()
Dim HitungItem As Integer = 0
For I As Integer = 0 To DataGridView1.Rows.Count - 1
HitungItem = HitungItem + Val(DataGridView1.Rows(I).Cells(3).Value)
TextBox9.Text = HitungItem
Next
End Sub
Sub TotalHarga()
Dim HitungHarga As Integer = 0
For I As Integer = 0 To DataGridView1.Rows.Count - 1
HitungHarga = HitungHarga + Val(DataGridView1.Rows(I).Cells(4).Value)
TextBox6.Text = HitungHarga
Label10.Text = HitungHarga
Next
End Sub
Sub HapusBaris()
On Error Resume Next
Dim Baris As Integer = DataGridView1.CurrentCell.RowIndex
DataGridView1.Rows(baris).Cells(0).Value = ""
Chr(30)
End Sub
Private Sub DataGridView1_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs)
If e.KeyCode = Keys.Up Then
DataGridView1.CurrentCell = DataGridView1.Rows(0).Cells(3)
End If
End Sub
15. Teknik Informatika Universitas Serambi Mekkah
Modul Dasar Pemrograman III (VB.Net) Hal. 15
Private Sub DataGridView1_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs)
On Error Resume Next
If e.KeyChar = Chr(27) Then
DataGridView1.Rows.RemoveAt(DataGridView1.CurrentCell.RowIndex)
Call TotalItem()
Call TotalHarga()
TextBox7.Clear()
TextBox8.Text = ""
End If
End Sub
Private Sub TextBox7_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles TextBox7.KeyPress
If e.KeyChar = Chr(13) Then
If Val(TextBox7.Text) < Val(TextBox6.Text) Then
MsgBox("Pembayaran kurang")
TextBox8.Text = ""
TextBox7.Focus()
Exit Sub
ElseIf Val(TextBox7.Text) = Val(TextBox6.Text) Then
TextBox8.Text = 0
Button2.Focus()
Else
TextBox8.Text = Val(TextBox7.Text) - Val(TextBox6.Text)
Button2.Focus()
End If
End If
If Not ((e.KeyChar >= "0" And e.KeyChar <= "9") Or e.KeyChar = vbBack) Then
e.Handled() = True
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button2.Click
Call Kosong()
DataGridView1.Columns.Clear()
Call KolomBaru()
DataGridView1.Focus()
End Sub
Private Sub DataGridView1_EditingControlShowing(ByVal sender As Object, ByVal e As
System.Windows.Forms.DataGridViewEditingControlShowingEventArgs)
If e.Control.GetType.ToString() =
"System.Windows.Forms.DataGridViewTextBoxEditingControl" Then
Dim c As DataGridViewTextBoxEditingControl = CType(e.Control,
DataGridViewTextBoxEditingControl)
RemoveHandler c.KeyPress, AddressOf GridViewTextBox_KeyPress
AddHandler c.KeyPress, AddressOf GridViewTextBox_KeyPress
End If
End Sub
Private Sub GridViewTextBox_KeyPress(ByVal sender As Object, ByVal ex As
KeyPressEventArgs)
If DataGridView1.CurrentCell.ColumnIndex = 3 Then
If ((Asc(ex.KeyChar) < 48 Or Asc(ex.KeyChar) > 57) And Asc(ex.KeyChar) <> 8) Then
ex.Handled = True
End If
End If
End Sub
16. Teknik Informatika Universitas Serambi Mekkah
Modul Dasar Pemrograman III (VB.Net) Hal. 16
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
Button1.Click
If TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Or TextBox4.Text =
"" Or TextBox5.Text = "" Or TextBox6.Text = "" Or TextBox7.Text = "" Or TextBox8.Text = ""
Then
MsgBox("Data belum lengkap, tidak ada transaksi atau pembayaran masih kosong")
Exit Sub
End If
'Simpan ke tabel Transaksi
Dim SimpanTransaksi As String = "Insert into
Transaksi(NoFaktur,TglFaktur,Pukul,NamaPembeli,NoTelp,Total,Dibayar,Kembali,Item) values " & _
"('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" &
TextBox4.Text & "','" & TextBox5.Text & "','" & TextBox6.Text & "','" & TextBox7.Text & "','"
& TextBox8.Text & "','" & TextBox9.Text & "')"
cmd = New OleDbCommand(SimpanTransaksi, Conn)
cmd.ExecuteNonQuery()
For baris As Integer = 0 To DataGridView1.Rows.Count - 2
'Simpan ke tabel DetailTransaksi
Dim SimpanDetailTransaksi As String = "Insert into DetailTransaksi
(NoFaktur,KodeBuku,Judul,HargaJual,Jumlah,SubTotal) values " & _
"('" & TextBox1.Text & "','" & DataGridView1.Rows(baris).Cells(0).Value & "','" &
DataGridView1.Rows(baris).Cells(1).Value & "','" & DataGridView1.Rows(baris).Cells(2).Value &
"','" & DataGridView1.Rows(baris).Cells(3).Value & "','" &
DataGridView1.Rows(baris).Cells(4).Value & "')"
cmd = New OleDbCommand(SimpanDetailTransaksi, Conn)
cmd.ExecuteNonQuery()
'Kurangi stok Buku
cmd = New OleDbCommand("select * from Buku where KodeBuku='" &
DataGridView1.Rows(baris).Cells(0).Value & "'", Conn)
rd = cmd.ExecuteReader
rd.Read()
If rd.HasRows Then
Dim KurangiStok As String = "update Buku set JumlahBuku= '" & rd.Item(5) -
DataGridView1.Rows(baris).Cells(3).Value & "' where KodeBuku='" &
DataGridView1.Rows(baris).Cells(0).Value & "'"
cmd = New OleDbCommand(KurangiStok, Conn)
cmd.ExecuteNonQuery()
End If
Next baris
DataGridView1.Columns.Clear()
Call KolomBaru()
Call Otomatis()
Call Kosong()
End Sub
Sub kena(ByVal myGrid As DataGrid)
myGrid.CurrentCell = New DataGridCell(1, 1)
End Sub
17. Teknik Informatika Universitas Serambi Mekkah
Modul Dasar Pemrograman III (VB.Net) Hal. 17
Private Sub DataGridView1_CellEndEdit1(ByVal sender As Object, ByVal e As
System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellEndEdit
If e.ColumnIndex = 0 Then
cmd = New OleDbCommand("select * from Buku where KodeBuku='" &
DataGridView1.Rows(e.RowIndex).Cells(0).Value & "'", Conn)
rd = cmd.ExecuteReader
rd.Read()
If rd.HasRows Then
DataGridView1.Rows(e.RowIndex).Cells(1).Value = rd.Item(2)
DataGridView1.Rows(e.RowIndex).Cells(2).Value = rd.Item(6)
DataGridView1.Rows(e.RowIndex).Cells(3).Value = 1
DataGridView1.Rows(e.RowIndex).Cells(4).Value =
DataGridView1.Rows(e.RowIndex).Cells(2).Value * DataGridView1.Rows(e.RowIndex).Cells(3).Value
Call TotalItem()
Call TotalHarga()
Else
MsgBox("Kode buku tidak terdaftar")
End If
End If
If e.ColumnIndex = 3 Then
cmd = New OleDbCommand("select * from Buku where KodeBuku='" &
DataGridView1.Rows(e.RowIndex).Cells(0).Value & "'", Conn)
rd = cmd.ExecuteReader
rd.Read()
If rd.HasRows Then
If DataGridView1.Rows(e.RowIndex).Cells(3).Value > rd.Item(5) Then
MsgBox("Stok Buku hanya ada " & rd.Item(5) & "")
DataGridView1.Rows(e.RowIndex).Cells(3).Value = 1
DataGridView1.Rows(e.RowIndex).Cells(4).Value =
DataGridView1.Rows(e.RowIndex).Cells(2).Value * DataGridView1.Rows(e.RowIndex).Cells(3).Value
Call TotalItem()
Call TotalHarga()
Else
DataGridView1.Rows(e.RowIndex).Cells(4).Value =
DataGridView1.Rows(e.RowIndex).Cells(2).Value * DataGridView1.Rows(e.RowIndex).Cells(3).Value
Call TotalItem()
Call TotalHarga()
End If
End If
DataGridView1.CurrentCell = DataGridView1.Rows(0).Cells(0)
End If
End Sub
Private Sub TextBox4_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles TextBox4.KeyPress
If e.KeyChar = Chr(13) Then
TextBox4.Text = UCase(TextBox4.Text)
TextBox5.Focus()
End If
End Sub
Private Sub TextBox5_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles TextBox5.KeyPress
If e.KeyChar = Chr(13) Then
TextBox5.Text = UCase(TextBox5.Text)
DataGridView1.Focus()
End If
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button4.Click
Form3.ShowDialog()
End Sub
End Class
Besambung ke Laporan Transaksi .......