You are on page 1of 29

. .

. .

4
()


Web Application Development , Mobile Application Development , System Integration
Website building , Global Outsourcing , IT Consulting , POS System ,Retail POS System

N3A3B

: sales@imperialtech.asia : 023 518 9888, 088 666 9383

7

()

February March April


Activity Description Predecessor Duration
1 2 3 4 5 6 7 8 9 10 11 12
A Collect Requirement None 3 weeks
B Business Analysis A 1 week
C Database Design B 2 weeks
D Input/ Output Data B 1 week
E Coding C, D 4 weeks
F Testing C, D 4 weeks
G Installing F 1 week
H Training G, H 1 week

Register Employees

Administrator

Add Properties

Manager Report

Check IN/OUT

General User

Edit owner
Information

10

()



11

12

Java : control
XML :
Application
Database ( Database Management Application )
SQLite :

Android Studio :

SDK :
Android sample projects, development tools, emulator, libraries
AVD Manager : Android Virtual Devices


Adobe Photoshop CS5, Illustrator CS5 :

13

()
TblStatusworks TblContracts TblBonus
PK BonusID

1
PK StatusworkID PK ContractID

8
FK BonusEmployeeID

8
StatusworkType ContractEmployeeID

8 8 8
ContractStatusworkID BonusDate
StatusworkTime FK
ContractPosistionID BonusRate
ContractCurrencyID BonusRemark
ContractSalary
ContractBeforInssue
TblPositions ContractStartDate
TblOvertimes
ContractEndDate
1 PK OvertimeID
PK PositionID ContractTax
ContractRemark

8
PositionType FK OvertimeEmployeeID
PositionLevel OvertimeDate
PostionRemark TblEmployees OvertimeRate
1 1 OvertimeTimeStart
PK EmployeeID OvertimeTimeEnd
TblCurrencies OvertimeRemark
FirstName
1 LastName
PK CurrencyID TblPunchs
Gender
CurrencyType DateOfBirth PK PunchID
CurrencyValue PlaceOfBirth

8
Telephone FK PunchEmployeeID
Email PunchDate
Address PunchStatue
TblPayments Image PunchTime
PK payment_id
TblLeaveTypes TblLeaves

8
FK employee_id
PK LeaveID
payment_Start PK LeavetypeID 1

8 8
payment_End LeaveEmployeeID
LeavetypeName FK
payment_Salary LeaveTypeID
LeavetypeNumberLeave
payment_TotalBonus LeaveStartDate
payment_TotalOvertime LeaveEndDate
payment_GrandTotal LeaveRemark 14

15

Activity XML

16
()
activity_main.xml MainActivity.java
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
MainActivty.java AndroidManifest.xml
<activity
android:name=".MainActivity"
android:windowSoftInputMode="stateHidden"
android:label="@string/app_mainmenu">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
17
()
Activity SQLite Helper Connect Database

18
()
Database Tables
public class DBHelper extends SQLiteOpenHelper {
public static final String DATABASE_NAME = "HRM_MANAGEMENTDB.DB";
public static final int DATABASE_VERSION = 1;

public static final String TABLE_PERMISSION = "tbl_permissions";


public static final String PermissionID = "permission_id";
public static final String permission_Type = "permission_type";

public static final String DATABASE_CREATE_PERMISSION = "CREATE TABLE "


+ TABLE_PERMISSION+ "("+PermissionID+" INTEGER PRIMARY KEY AUTOINCREMENT, "
+permission_Type+" TEXT NOT NULL");";

public DBHelper(Context context) {super(context, DATABASE_NAME, null, DATABASE_VERSION);}


@Override
public void onCreate(SQLiteDatabase db) {db.execSQL(DATABASE_CREATE_PERMISSION);}
@Override
public void onUpgrade(SQLiteDatabase db, int arg1, int arg2) {
db.execSQL("DROP TABLE IF EXISTS"+DATABASE_CREATE_PERMISSION +" ");
onCreate(db);}
}

19
()
Connect Database
public class DBAdapter{
SQLiteDatabase MDb;
Context mCtx;
DBHelper mDbHelper;

public DBAdapter(Context context)


{this.mCtx = context;}

public DBAdapter open() throws SQLException{


mDbHelper = new DBHelper(mCtx);
MDb = mDbHelper.getWritableDatabase();
return this;}

public void close()


{mDbHelper.close();}
}

20
()
APK File

Key store path


Key Store .jks
Key Store
APK file app-release.apk Google Play

Google Play

Google Play


Upload APK file Google Play
Google Play

21

22

23
()

Application smart phone OS Android








24
()

Java, SQLite,

XML, Import library Bootstrap style



HR Requirement

Develop Application Android Studio

25
()




Application

Application



26
()
Google Play

27

https://www.android.com/
android
http://developer.android.com/index.html

develop android application
http://www.androidbootstrap.com/
Bootstrap Android
http://www.bluestacks.com/
Android OS Computer window OS
http://www.tutorialspoint.com/sqlite/index.htm
SQLite

28
!

You might also like