14
USER MANUAL (ANVIZ) FOR DATA TRANSFER INTO ATTENDANCE DEVICE The University of Lahore MIS Department VER 01.01

User Manual

Embed Size (px)

DESCRIPTION

Its related to HR field in which HR functions are described and how to use these functions. i have included the user manual to use and operate the system.

Citation preview

USER MANUAL (ANVIZ)

FOR

DATA TRANSFER INTO ATTENDANCE DEVICE

The University of Lahore

MIS Department

VER 01.01

Selection of Data from Database

Initially run Microsoft SQL Server Management Studio and the query builder for new query.

1. GET Department ID from this querySELECT * FROM tblAdmDept_D

2. Select current Employee record from DatabaseSELECT * FROM tblEmpEmployee WHERE E_Dept_D = 29 and E_RStatus = 0

3. Check selected department in Attendance DB (Att2003). SELECT * FROM Att2003.dbo.Dept WHERE Deptid = 29

4. If selected department does not exist in Att2003 then we will insert selected department with the help of below query.INSERT INTO Att2003.dbo.Dept(Deptid,DeptName)VALUES(29,’DPH – Admin Office’)

5. After this push data into Attendance DB (Att2003) with below query.SELECT DISTINCT E.CNo AS Userid,A.E_Name AS Name,CASE WHEN A.E_Sex = 1 THEN 'Male' ELSE 'Female' END AS Sex,'' AS Pwd,A.E_Dept_D AS Deptid,A.E_Nationality AS Nation,A.E_DOB AS Brithday,A.E_DOJ AS EmployDate,A.E_CTel AS Telephone,'' AS Duty,'' AS NativePlace,A.EmpID AS IDCard,A.E_CAddress1 + ' ' + A.E_CAddress2 + ' ' + A.E_CCity + ' ' + A.E_CCountry AS Address,A.E_CMobile AS Mobile,'' AS Educated, '' AS Polity, '' AS Specialty, 0 AS IsAtt, 0 AS Isovertime,0 AS Isrest,'' AS Remark, 0 AS MgFlag, '' AS Cardnum, 0 AS UserFlag,0 AS Groupid,0 AS workdaylong,0 AS FlooridFROM tblEmpEmployee AINNER JOIN tblCrdCard E ON A.EmpID = E.EmpIDINNER JOIN tblAdmDept_D F ON F.Dept_D = A.E_Dept_D

--INNER JOIN tblHstTr_1 D ON A.S_SNo = D.HstTr_S_SNoWHERE A.E_RStatus = 0 AND E.CTypeID = 1 --AND E.CStatus =0 --AND A.BranchCode = '01'AND A.E_Dept_D = 29

ORDER BY A.E_Name

6. Data import Process from Attendance DB to Attendance device1. Select Att2003 database from Listing (See the below “Image 1)2. Click on Tasks (See the below “Image 1)3. Click on Import data and move next (See the below “Image 1)

Image 1

4. Move next from the SQL Server Import & Export Wizard (See the below “Image 2)

Image 2

5. Select data source from the drop down option as “Microsoft Excel”. (See the below “Image 3)

6. Browse the Required Excel file and then move (See the below “Image 3)

Image 3

7. Select “Microsoft OLE DB Provider for SQL Server” as a Destination. (See the below “Image 4)

8. Selection “Use SQL Server Authentication. (See the below “Image 4)9. Enter Username and Password and move next. (See the below “Image 4)

Image 4

10. Select the option “Copy data from one or more tables or views” (See the below “Image 5)

Image 5

11. Select desired table from the source (See the below “Image 6)12. Select [dbo].[Userinfo] from Destination and move next. (See the below “Image 6)

Image 6

13. Click Next button for further processing. (See the below “Image 7)

Image 7

14. Check the “Run Immediately” checkbox and move next for further proceeding. (See the below “Image 8)

Image 8

15. To finish the wizard please check the following actions and click the Finish button. (See the below “Image 9)

Image 9

16. On this screen execution will process and data of desired table will be transferred into selected table and then click the Close button to execute the process. (See the below “Image 10)

Image 10