Monday, June 30, 2008

codes para kay shelley.. :)

shelley! ito na po yung codes na kailangan mo po sa akin! diba sabi ko kanina dito ko na lang ilagay. hehe. ito na po! sana makatulong!

aja!


public void closeMemoToFile(long mtfId){
MemoToFile mtf = facade.getMemoToFile(mtfId);
Long workAssignmentId = mtf.getWorkAssignmentId;

...
/* logic for closing memo to file goes here */
...

List
userIdList = facade.getUsersByUserType("LRAS");

for (Long userId: userIdList){
String description = "Memo-To-File has been closed and needs to be filed";
String agendaType = "MTF Filing";
createAgenda(userId, description, agendaType, workAssignmentId);
}

}

public void createAgenda(Long userId, String description, String agendaType, Long workAssignmentId){
Agenda agenda = new Agenda();
agenda.setUser(userId);
agenda.setDescription(description);
agenda.setAgendaType(agendaType);
agenda.setWorkAssignmentId(workAssignmentId);
agenda.setDateCreated(new Date());

facade.addNewAgenda(agenda);
}

2 ang umangal:

missyosigirl said...

who is this shelley, and do i know her? :P

salamat neil :D ngayon ko lang nabasa kasi di ako nagbukas ng google reader kagabi.

mikko said...

@missyosigirl - no prob! hehe.. goodluck sa UAT natin! bwahahahahah!

Post a Comment