Package org.sis.ancmessaging.server.domain

Examples of org.sis.ancmessaging.server.domain.Emergency


        } else if (identifier.equals("2")) {
            SmsMessageHandler messageHandler = new SmsMessageHandler();
            String recipient = emergencyDao.getEmergencyPhone();
            messageHandler.setRecipient(recipient);
           
            Emergency emergency = new Emergency();

            emergency.setArrivedOn(new DateTime().toDate());

            String workerName = mother.getHealthWorker().getFullName();
            String messageContent = "Emergency\n" + mother.getMotherId() + "\n" + mother.getFullName()
                        + "\n" + workerName + "\n" + mother.getGott();
            emergency.setContent(messageContent);
            messageHandler.setContent(messageContent);
            messageHandler.setStatusReportEnabled(false);
            emergency.setMother(mother);

            emergencyDao.saveEmergency(emergency);

            try {
                messageHandler.sendMessage();
View Full Code Here


                } else if (identifier.equals("2")) {
                    //SmsMessageHandler messageHandler = new SmsMessageHandler();
                    String r = emergencyDao.getEmergencyPhone();
                    messageHandler.setRecipient(r);

                    Emergency emergency = new Emergency();

                    emergency.setArrivedOn(new DateTime().toDate());

                    String workerName = m.getHealthWorker().getFullName();
                    String messageContent = "Emergency\n" + m.getMotherId() + "\n" + m.getFullName()
                            + "\n" + workerName + "\n" + m.getGott();
                    emergency.setContent(messageContent);
                    messageHandler.setContent(messageContent);
                    messageHandler.setStatusReportEnabled(false);
                    emergency.setMother(m);

                    emergencyDao.saveEmergency(emergency);

                    try {
                        messageHandler.sendMessage();
View Full Code Here

TOP

Related Classes of org.sis.ancmessaging.server.domain.Emergency

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.