-
-
Save dutchand/6ebee926574eb1ecabf6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.end.model.vos_employee | |
{ | |
[Bindable] | |
public class Employee | |
{ | |
/*-.........................................Properties..........................................*/ | |
public var emp_id : uint; | |
public var firstname : String; | |
public var lastname : String; | |
public var email : String; | |
public var startdate : Date; | |
static public var currentIndex : uint = 1000; | |
/*-.........................................Constructor..........................................*/ | |
public function Employee( emp_id : uint = 0, | |
firstname : String = "", | |
lastname : String = "", | |
email : String = "", | |
startdate : Date = null ) | |
{ | |
this.emp_id = ( emp_id == 0 ) ? currentIndex += 1 : emp_id; | |
this.firstname = firstname; | |
this.lastname = lastname; | |
this.email = email; | |
this.startdate = ( startdate == null ) ? new Date() : startdate; | |
} | |
/*-.........................................Methods..........................................*/ | |
public function copyFrom(newEmployee:Employee):void | |
{ | |
this.emp_id = newEmployee.emp_id; | |
this.email = newEmployee.email; | |
this.firstname = newEmployee.firstname; | |
this.lastname = newEmployee.lastname; | |
this.startdate = newEmployee.startdate; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment