=== modified file 'local/bd/dhis-web-linelisting-bd/src/main/java/org/hisp/dhis/ll/action/NoAction.java' --- local/bd/dhis-web-linelisting-bd/src/main/java/org/hisp/dhis/ll/action/NoAction.java 2010-10-20 06:14:25 +0000 +++ local/bd/dhis-web-linelisting-bd/src/main/java/org/hisp/dhis/ll/action/NoAction.java 2010-11-15 08:26:40 +0000 @@ -27,11 +27,11 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -import com.opensymphony.xwork2.ActionSupport; +import com.opensymphony.xwork2.Action; -public class NoAction - extends ActionSupport +public class NoAction implements Action { + public String execute() { return SUCCESS; === modified file 'local/bd/dhis-web-linelisting-bd/src/main/webapp/dhis-web-linelisting-bd/welcome.vm' --- local/bd/dhis-web-linelisting-bd/src/main/webapp/dhis-web-linelisting-bd/welcome.vm 2010-10-20 06:14:25 +0000 +++ local/bd/dhis-web-linelisting-bd/src/main/webapp/dhis-web-linelisting-bd/welcome.vm 2010-11-15 08:26:40 +0000 @@ -1,2 +1,2 @@ -

Home Page

\ No newline at end of file +

Home Page

\ No newline at end of file === modified file 'local/bd/dhis-web-linelisting-manpower/src/main/java/org/hisp/dhis/ll/action/NoAction.java' --- local/bd/dhis-web-linelisting-manpower/src/main/java/org/hisp/dhis/ll/action/NoAction.java 2010-10-20 06:14:25 +0000 +++ local/bd/dhis-web-linelisting-manpower/src/main/java/org/hisp/dhis/ll/action/NoAction.java 2010-11-15 08:26:40 +0000 @@ -27,13 +27,47 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -import com.opensymphony.xwork2.ActionSupport; +import java.util.ArrayList; +import java.util.List; + +import org.hisp.dhis.linelisting.Employee; +import org.hisp.dhis.linelisting.EmployeeService; + +import com.opensymphony.xwork2.Action; public class NoAction - extends ActionSupport + implements Action { + // ------------------------------------------------------------------------- + // Dependencies + // ------------------------------------------------------------------------- + + private EmployeeService employeeService; + + public void setEmployeeService( EmployeeService employeeService ) + { + this.employeeService = employeeService; + } + + // ------------------------------------------------------------------------- + // Parameters + // ------------------------------------------------------------------------- + + private List employeeList; + + public List getEmployeeList() + { + return employeeList; + } + + // ------------------------------------------------------------------------- + // Action implementation + // ------------------------------------------------------------------------- + public String execute() { + employeeList = new ArrayList( employeeService.getEmployeeByisTransferred( true ) ); + return SUCCESS; } } === modified file 'local/bd/dhis-web-linelisting-manpower/src/main/resources/META-INF/dhis/beans.xml' --- local/bd/dhis-web-linelisting-manpower/src/main/resources/META-INF/dhis/beans.xml 2010-11-14 14:20:26 +0000 +++ local/bd/dhis-web-linelisting-manpower/src/main/resources/META-INF/dhis/beans.xml 2010-11-15 08:26:40 +0000 @@ -4,6 +4,13 @@ xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> + + + + + - - /main.vm - /dhis-web-linelisting-mp/welcome.vm - /dhis-web-linelisting-mp/menu.vm - + + /main.vm + /dhis-web-linelisting-mp/welcome.vm + /dhis-web-linelisting-mp/menu.vm + javascript/employee.js,javascript/filterTable.js + === modified file 'local/bd/dhis-web-linelisting-manpower/src/main/webapp/dhis-web-linelisting-mp/welcome.vm' --- local/bd/dhis-web-linelisting-manpower/src/main/webapp/dhis-web-linelisting-mp/welcome.vm 2010-10-20 06:14:25 +0000 +++ local/bd/dhis-web-linelisting-manpower/src/main/webapp/dhis-web-linelisting-mp/welcome.vm 2010-11-15 08:26:40 +0000 @@ -1,2 +1,65 @@ -

Home Page

\ No newline at end of file +

Home Page

+ +

List of Employees who got transferred but not yet Joined...

+ + + + + + +
+ + + + + + + + + + + + + + + + #set( $mark = false ) + #foreach( $employee in $employeeList ) + + $encoder.htmlEncode( $employee.name ) + $employee.pdsCode + + + #if( $mark ) + #set( $mark = false ) + #else + #set( $mark = true ) + #end + #end + +
$i18n.getString( "filter_by_name" ) :
  
$i18n.getString( "name" )$i18n.getString( "pdscode" )$i18n.getString( "operations" )
$i18n.getString(
+
+ + + + +
=== modified file 'local/in/dhis-in-api/src/main/java/org/hisp/dhis/linelisting/Employee.java' --- local/in/dhis-in-api/src/main/java/org/hisp/dhis/linelisting/Employee.java 2010-10-28 11:40:15 +0000 +++ local/in/dhis-in-api/src/main/java/org/hisp/dhis/linelisting/Employee.java 2010-11-15 08:26:40 +0000 @@ -29,84 +29,105 @@ import java.io.Serializable; import java.util.Date; - /** * @author Mithilesh Kumar Thakur - * + * * @version Employee.java Oct 15, 2010 1:42:16 PM */ public class Employee { - - public static final Integer LPR_PERIOD = 40; + + public static final Integer LPR_PERIOD = 40; /** * The unique identifier for Employee */ private String pdsCode; - + /** * Name of the employee, required */ private String name; - + /** * Date of Birth */ private Date dateOfBirth; - + /** * LPR Date */ private Date lprDate; - + /** * Gender */ private String sex; - + /** * Date of Join to Government Service. */ private Date joinDateToGovtService; - + /** * Residential Address */ private String resAddress; - + /** * Mobile Number */ private String contactNumber; - + /** * Emergency Contact Number */ private String emergencyContactNumber; - + + /** + * isTransferred + */ + private boolean isTransferred = false; + // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- public Employee() - { - } - - public Employee( String pdsCode, String name, Date dateOfBirth, Date lprDate, String sex, Date joinDateToGovtService, String resAddress, String contactNumber, String emergencyContactNumber) - { - this.pdsCode = pdsCode; - this.name = name; - this.dateOfBirth = dateOfBirth; - this.lprDate = lprDate; - this.sex = sex; - this.joinDateToGovtService = joinDateToGovtService; - this.resAddress = resAddress; - this.contactNumber = contactNumber; - this.emergencyContactNumber = emergencyContactNumber; - } - + { + } + + public Employee( String pdsCode, String name, Date dateOfBirth, Date lprDate, String sex, + Date joinDateToGovtService, String resAddress, String contactNumber, String emergencyContactNumber ) + { + this.pdsCode = pdsCode; + this.name = name; + this.dateOfBirth = dateOfBirth; + this.lprDate = lprDate; + this.sex = sex; + this.joinDateToGovtService = joinDateToGovtService; + this.resAddress = resAddress; + this.contactNumber = contactNumber; + this.emergencyContactNumber = emergencyContactNumber; + } + + public Employee( String pdsCode, String name, Date dateOfBirth, Date lprDate, String sex, + Date joinDateToGovtService, String resAddress, String contactNumber, String emergencyContactNumber, + boolean isTransferred ) + { + this.pdsCode = pdsCode; + this.name = name; + this.dateOfBirth = dateOfBirth; + this.lprDate = lprDate; + this.sex = sex; + this.joinDateToGovtService = joinDateToGovtService; + this.resAddress = resAddress; + this.contactNumber = contactNumber; + this.emergencyContactNumber = emergencyContactNumber; + this.isTransferred = isTransferred; + } + // ------------------------------------------------------------------------- // hashCode and equals // ------------------------------------------------------------------------- @@ -233,5 +254,15 @@ { this.emergencyContactNumber = emergencyContactNumber; } + + public boolean getIsTransferred() + { + return isTransferred; + } + + public void setIsTransferred( Boolean isTransferred ) + { + this.isTransferred = isTransferred; + } + } - === modified file 'local/in/dhis-in-api/src/main/java/org/hisp/dhis/linelisting/EmployeeService.java' --- local/in/dhis-in-api/src/main/java/org/hisp/dhis/linelisting/EmployeeService.java 2010-10-20 06:14:25 +0000 +++ local/in/dhis-in-api/src/main/java/org/hisp/dhis/linelisting/EmployeeService.java 2010-11-15 08:26:40 +0000 @@ -52,5 +52,7 @@ Employee getEmployeeByPDSCode( String pdsCode ); Collection getAllEmployee(); + + Collection getEmployeeByisTransferred( Boolean isTransferred ); } === modified file 'local/in/dhis-in-api/src/main/java/org/hisp/dhis/linelisting/EmployeeStore.java' --- local/in/dhis-in-api/src/main/java/org/hisp/dhis/linelisting/EmployeeStore.java 2010-10-20 06:14:25 +0000 +++ local/in/dhis-in-api/src/main/java/org/hisp/dhis/linelisting/EmployeeStore.java 2010-11-15 08:26:40 +0000 @@ -53,4 +53,6 @@ Employee getEmployeeByPDSCode( String pdsCode ); Collection getAllEmployee(); + + Collection getEmployeeByisTransferred( Boolean isTransferred ); } \ No newline at end of file === modified file 'local/in/dhis-in-services/dhis-in-service-linelisting/src/main/java/org/hisp/dhis/linelisting/DefaultEmployeeService.java' --- local/in/dhis-in-services/dhis-in-service-linelisting/src/main/java/org/hisp/dhis/linelisting/DefaultEmployeeService.java 2010-10-20 06:14:25 +0000 +++ local/in/dhis-in-services/dhis-in-service-linelisting/src/main/java/org/hisp/dhis/linelisting/DefaultEmployeeService.java 2010-11-15 08:26:40 +0000 @@ -28,6 +28,9 @@ import java.util.Collection; +import org.hibernate.Criteria; +import org.hibernate.Session; +import org.hibernate.criterion.Restrictions; import org.springframework.transaction.annotation.Transactional; /** @@ -77,5 +80,10 @@ { return employeeStore.getAllEmployee(); } + + public Collection getEmployeeByisTransferred( Boolean isTransferred ) + { + return employeeStore.getEmployeeByisTransferred( isTransferred ); + } } === modified file 'local/in/dhis-in-services/dhis-in-service-linelisting/src/main/java/org/hisp/dhis/linelisting/hibernate/HiberateEmployeeStore.java' --- local/in/dhis-in-services/dhis-in-service-linelisting/src/main/java/org/hisp/dhis/linelisting/hibernate/HiberateEmployeeStore.java 2010-10-20 06:14:25 +0000 +++ local/in/dhis-in-services/dhis-in-service-linelisting/src/main/java/org/hisp/dhis/linelisting/hibernate/HiberateEmployeeStore.java 2010-11-15 08:26:40 +0000 @@ -58,7 +58,6 @@ // Employee // ------------------------------------------------------------------------- - public void addEmployee( Employee employee ) { Session session = sessionFactory.getCurrentSession(); @@ -97,6 +96,16 @@ return session.createCriteria( Employee.class ).list(); } + + public Collection getEmployeeByisTransferred( Boolean isTransferred ) + { + Session session = sessionFactory.getCurrentSession(); + + Criteria criteria = session.createCriteria( Employee.class ); + criteria.add( Restrictions.eq( "isTransferred", isTransferred ) ); + + return criteria.list(); + } } === modified file 'local/in/dhis-in-services/dhis-in-service-linelisting/src/main/resources/org/hisp/dhis/linelisting/hibernate/Employee.hbm.xml' --- local/in/dhis-in-services/dhis-in-service-linelisting/src/main/resources/org/hisp/dhis/linelisting/hibernate/Employee.hbm.xml 2010-10-20 06:14:25 +0000 +++ local/in/dhis-in-services/dhis-in-service-linelisting/src/main/resources/org/hisp/dhis/linelisting/hibernate/Employee.hbm.xml 2010-11-15 08:26:40 +0000 @@ -23,6 +23,8 @@ + + \ No newline at end of file