Package org.sprimaudi.zkspring.entity

Examples of org.sprimaudi.zkspring.entity.UserActivity


            WritableWorkbook ww = Workbook.createWorkbook(boas, wr);
            WritableSheet ws = ww.getSheet(0);
            int irow = 3;
            Integer rowPatter = 3;
            for (Iterator<UserActivity> iterator = acitivities.iterator(); iterator.hasNext(); ) {
                UserActivity user = iterator.next();

                //write unit;
                if (user.getUser() != null && user.getUser().getUsername() != null) {
                    writeLabel(ws, "A", irow, rowPatter, user.getUser().getUsername());
                    writeLabel(ws, "B", irow, rowPatter, user.getUser().getPegawai().getNama());
                    writeLabel(ws, "C", irow, rowPatter, user.getUser().getPegawai().getNip());
                }
                writeLabel(ws, "D", irow, rowPatter, (user.getGrup()));
                writeLabel(ws, "E", irow, rowPatter, StringUtil.nvl(user.getDescription()));
                writeLabel(ws, "F", irow, rowPatter, StringUtil.nvl(user.getIp()));
                writeLabel(ws, "G", irow, rowPatter, StringUtil.fromSecond(user.getCreated(), ""));
                irow++;
            }
            ww.write();
            ww.close();
        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.sprimaudi.zkspring.entity.UserActivity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.