Hi, processing. Code of the vb.net version. Imports System.Data Imports System.Data.SqlClient



Similar documents
How To: Create a Crystal Report from ADO.NET Dataset using Visual Basic.NET

Form Tasarımı - 5. Veri Tabanı Veri tabanı ismi; m Tablo ismi; mt

VB.NET - DATABASE ACCESS

Conexión SQL Server C#

Visual Web Development

ASP.NET Programming with C# and SQL Server

How To Create A Database In Araba

SQL Injection. The ability to inject SQL commands into the database engine through an existing application

USER GUIDE Appointment Manager

CRM Setup Factory Installer V 3.0 Developers Guide

C# Datenbank-Programmierung

1.Tüm Kayıtları Getirme - Arama Yapma

Ambientes de Desenvolvimento Avançados

Deleting A Record Updating the Database Binding Data Tables to Controls Binding the Data Table to the Data Grid View...

listboxgaatmee.dragdrop += new DragEventHandler(listBox_DragDrop); ListBox from = (ListBox)e.Data.GetData(typeof(ListBox));

Creating a Windows Service using SAS 9 and VB.NET David Bosak, COMSYS, Kalamazoo, MI

Creating and Consuming XML Web Services

ClientAce WPF Project Example

Design of Conveyor Monitoring Controller with Wireless System

Introduction to Visual Basic and Visual C++ Database Foundation. Types of Databases. Data Access Application Models. Introduction to Database System

CRYSTAL REPORTS IN VISUAL STUDIO.NET 2003

Many applications consist of one or more classes, each containing one or more methods. If you become part of a development team in industry, you may

Creating Reports Using Crystal Reports

VBA Microsoft Access 2007 Macros to Import Formats and Labels to SAS

'========================================================================== ==== Scans a range of A/D Input Channels

To be able to use web parts to create a portal-style web application

ResellerPlus - Bulk Http API Specification. (This Document gives details on how to send messages via the Bulk HTTP API for the RouteSms SMPP System)

Appendix B - VoIP SARRA Source Codes and Cisco XML Objects

ASP.NET(C#) ile Kayıt Listeleme, Silme ve Düzenleme İşlemi

Using VBScript to Automate User and Group Administration

ASP and ADO (assumes knowledge of ADO)

How-To Guide. SigCard1 (With Microsoft Access) Demo. Copyright Topaz Systems Inc. All rights reserved.

Inventory Manager. Getting started Usage and general How-To

Inventory Manager. Getting started Usage and general How-To

SQL INJECTION ATTACKS

SQL injection attacks SQL injection user input SQL injection SQL Command parameters Database account. SQL injection attacks Data Code

TITLE PAGE WEB BASED APPLICATION FOR INSURANCE SERVICES CASE STUDY OF THE INSURANCE COMPANY ESEDEBE FIDELIA OGECHUKWU (CST/2009/333)

Abstract. Introduction. System Requirement. GUI Design. Paper AD

ACE 2011 International. Role Based Clients. aras.com

Crystal Reports.NET Programming

AD A O.N. ET E Access Data Object

National Database System (NDS-32) Macro Programming Standards For Microsoft Word Annex - 8

Changing the Display Frequency During Scanning Within an ImageControls 3 Application

How-To: MySQL as a linked server in MS SQL Server

3.GETTING STARTED WITH ORACLE8i

Lab 8: ASP.NET 2.0 Configuration API and Health Monitoring

Xml Inst2 Page - Complete Education

Códigos fuentes aplicativo Agenda con VB.NET

Tracing and Debugging in ASP.NET

EViews Database Extension Interface

Performing a Web Application Security Assessment

1. Create SQL Database in Visual Studio

Real-World ASP.NET: Building a Content Management System

Product Overview. Payroll & Personnel Data Warehouse

Using IRDB in a Dot Net Project

STUDENTS ATTENDANCE MANAGEMENT SYSTEM MINI PROJECT REPORT. Submitted by. KALAISANKARAN B Roll No: 11MCA020

Mastering Visual Basic.NET Database Programming Evangelos Petroutsos; Asli Bilgin

Database Communica/on in Visual Studio/C# using ASP.NET Web Forms. Hans- PeBer Halvorsen, M.Sc.

- SAP BusinessObjects and Xcelsius articles, links and ressources

A New Technique to Backup and Restore DBMS using XML and.net Technologies

TRANSITION FROM TEACHING VB6 TO VB.NET

Developing CLR Database Objects

ADOBE READER AND ACROBAT

Aplicação ASP.NET MVC 4 Usando Banco de Dados

ContractInsight. Desktop Edition. Contract Management Tracking Software. User Guide

DEVELOPING A PHD MONITORING TOOL USING ASP.NET AND SQL SERVER. A Report Submitted In Partial Fulfillment Of Course BITS C331 Computer Oriented Project

Relational Database: Additional Operations on Relations; SQL

Application Development

a) What is the major difference between a program that runs under a virtual machine vs. one that does not?

Database Communica/on in Visual Studio/C# using Web Services. Hans- Pe=er Halvorsen, M.Sc.

Creating Datalogging Applications in Microsoft Excel

(Document Version 1.4) (This Document gives details on how to send messages via the Bulk HTTP API for the RouteSms SMPP System)

Working with Data in ASP.NET 2.0 :: Creating Stored Procedures and User Defined Functions with Managed Code Introduction

A PROJECT REPORT ON. SkyDrive. Submitted for the partial fulfillment of the requirement for the Award of the degree of MASTER OF COMPUTER APPLICATION

Communicate with Test Instruments Over LAN Using Visual Basic

.NET Development for the web Using Microsoft Office SharePoint Server 2007 and ASP.NET

ResPage.aspx. Imports System.IO Imports System.Xml Imports System.Xml.XPath Imports System.Xml.Xsl Imports PDFDocScout

ASP.NET Dynamic Data

Professional Services. Plant Applications SDK Guidelines GE FANUC AUTOMATION. Prepared by. Donna Lui Professional Services

User's Manual SAM 2.7 PPC 5.3.3

TS2Mascot. Introduction. System Requirements. Installation. Interactive Use

A Tutorial on SQL Server CMPT 354 Fall 2007

REGISTRATION CENTRE FOR VOCATIONAL SKILLS CERTIFICATION

Visual Basic Programming. An Introduction

Siemens Applied Automation Page 1 11/26/03 9:57 PM. Maxum ODBC 3.11

MISSION To achieve service excellence and exceed at whatever we do

Connecting to an Excel Workbook with ADO

bbc Developing Applications Using Interapplication Communication Adobe Acrobat SDK November 2006 Version 8.0

SECURING APACHE : THE BASICS - III

Introduction. Why (GIS) Programming? Streamline routine/repetitive procedures Implement new algorithms Customize user applications

Transcription:

Hi, I m looking for someone with knowledge in ASP.net or (PHP?). I represent a nonprofit organization that named Ateljee (http://www.uwkringwinkel.be). We have a small application we use for registration the working hours of our employees. The application (.exe) is only one screen (see picture) with works use to scan a badge with barcode. After scanning, your name & scan time comes on the screen. The information is saved in a MS SQL DB with later export the information to a bigger HR application for further processing. The problem Some of our workers don t work in the building and can t scan. These people have access to the internet, so we were thinking to make a web based variant of the vb.net version we have. I have basic program skills en created the vb.net version myself, but to turn this in ASP.net page doesn t seem to work. Some object events that I use in vb.net don t even exits in ASP.net ( example: Textbox.refresh) Below you find the print screen of the exe and also the code I wrote, first step is to find somebody that want s to do this and that can give me a price. Code of the vb.net version Imports System.Data Imports System.Data.SqlClient Public Class Form1 Dim realbarcode As String Dim extentbc As Integer Dim tellernul As Integer Dim teller As Integer Dim place As String

Dim objconnection3 = New SqlConnection("Server=SRVSQL01;Database=ShopPlusV902;User ID=xxxxx;Password=xxxxxxxx;") other DB that already has the names of the workers, we get here the name to publich on screen Dim objdataadapter As New SqlDataAdapter Dim objdataview As DataView = New DataView Public lastscanlbl As String Public MDWnaam As String Dim objcurrencymanager As CurrencyManager Dim objdataset As DataSet = New DataSet Dim SQLdr As SqlDataReader Dim timeint As Long Dim SQLCmd As New SqlCommand() Public Sub getlastscan() to check if last scan was in or out objconnection2.open() SQLCmd.Connection = objconnection2 SQLCmd.CommandText = "select top 1 MdwID, LogID,lastaction from vw_dagscans where MdwID = " & CInt(Mid(barcode.Text, 3, 11)) & " order by LogID desc" lastscanlbl = (SQLdr("lastaction")) lastscanlbl = "start" objconnection2.close() Public Sub getmdwname() SQLCmd.CommandText = "select top 1 NAAM + ' ' + VOORNAAM as vnaam from KLANTEN where KLANTENKAART = '" & realbarcode & "'" Public Sub invoeren() Select Case lastscanlbl Case "start" lastscanlbl = "stop" Case "stop" lastscanlbl = "start"

Dim objconnection = New SqlConnection("Server=SRV SQL01;Database=scanlog;User ID=xxxxxx;Password=xxxxxxx;") Dim objcommand As SqlCommand = New SqlCommand objcommand.connection = objconnection objcommand.commandtext = "INSERT INTO T_regscans (MdwID, klokdate, lastaction,mdw,locatietxt) VALUES (@MdwID, @datum,@lastin,@mdw,@locatie)" objcommand.parameters.addwithvalue("@mdwid", TextBox1.Text) objcommand.parameters.addwithvalue("@datum", Today) objcommand.parameters.addwithvalue("@lastin", lastscanlbl) objcommand.parameters.addwithvalue("@mdw", MDWnaam) objcommand.parameters.addwithvalue("@locatie", place) objconnection.open() objcommand.executenonquery() objconnection.close() Public Sub If Len(barcode.Text) > 6 Then TextBox1.Text = CInt(Mid(barcode.Text, 3, 11)) getlastscan() Threading.Thread.Sleep(200) invoeren() barcode.refresh() If lastscanlbl = "start" Then lblinfo.forecolor = Color.DarkOrange lblinfo.text = MDWnaam & vbcrlf & "gestopt om " & TimeOfDay lblinfo.forecolor = Color.Black lblinfo.text = MDWnaam & vbcrlf & "gestart om " & TimeOfDay timeint = 0 Private Sub barcode_textchanged(byval sender As Object, ByVal e As System.EventArgs) Handles barcode.textchanged Public Sub SQLCmd.CommandText = "select top 1 NAAM + ' ' + VOORNAAM as vnaam from KLANTEN where KLANTENKAART = '" & barcode.text & "'"

Threading.Thread.Sleep(10) barcode.refresh() Public Sub getbc() Select Case Len(barcode.Text) Case 8 ' some badgecodes are longer that others so I need to make sure That he find the right person. SQLCmd.CommandText = "select top 1 NAAM + ' ' + VOORNAAM as vnaam from KLANTEN where KLANTENKAART = '" & barcode.text & "'" Threading.Thread.Sleep(100) Case 9 SQLCmd.CommandText = "select top 1 NAAM + ' ' + VOORNAAM as vnaam from KLANTEN where KLANTENKAART = '" & barcode.text & "'"

Case 10 Threading.Thread.Sleep(100) SQLCmd.CommandText = "select top 1 NAAM + ' ' + VOORNAAM as vnaam from KLANTEN where KLANTENKAART = '" & barcode.text & "'" Threading.Thread.Sleep(100) barcode.refresh() Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load timeint = 0 lblinfo.enabled = False Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick timeint = timeint + 1 txtklok.text = Now.ToLongTimeString Select Case timeint Case 7 If Then 'getbc()

Case Is > 40 timeint = 0 Private Sub barcode_validated(sender As Object, e As System.EventArgs) Handles barcode.validated Select Case Mid(barcode.Text, 1, 1) some barcodescanners have a prefix letter that refers to a location witch we also save in the DB Case "a" place = "Pannestraat" Case "b" place = "kiekenstraat" Case "c" place = "kammerstraat" Case "d" place = "opgeëistenlaan" Case "e" place = "postje" Case "f" place = "Tarbotstraat DTP" Case "g" place = "oude houtlei" Case place = "intern" Private Sub txttab_gotfocus(sender As Object, e As System.EventArgs) Handles txttab.gotfocus after scanning the focus needs to be set again on the start object ready for next scan. End Class