Package org.sis.ancmessaging.server.utility

Examples of org.sis.ancmessaging.server.utility.SmsMessageHandler.sendMessage()


            emergency.setMother(mother);

            emergencyDao.saveEmergency(emergency);

            try {
                messageHandler.sendMessage();
                mainForm.setLogText("\n1 emergency sent to HC");
            } catch (Exception e) {
                mainForm.setLogText("\nError: " + "\n" + e.getMessage());
            }
        }
View Full Code Here


                    emergency.setMother(m);

                    emergencyDao.saveEmergency(emergency);

                    try {
                        messageHandler.sendMessage();
                        mainForm.setLogText("\n1 emergency sent to HC");
                    } catch (Exception e) {
                        mainForm.setLogText("\nError: " + "\n" + e.getMessage());
                    }
                }
View Full Code Here

        messageHandler.setStatusReportEnabled(true);
       
        String recipient = appSettingDao.getSetting().getReportPhone();
        messageHandler.setRecipient(recipient);
        try {
            int smscCode = Integer.parseInt(messageHandler.sendMessage());
            if (smscCode > 0) {
                report.setStatus("SENT");
                reportDao.updateStatus(report.getReportId(), report.getStatus());
            }
        } catch (Exception ex) {
View Full Code Here

    HealthExtensionWorker healthWorker = mother.getHealthWorker();

        String recipient = healthWorker.getPhoneNumber();
    messageHandler.setRecipient(recipient);
    try {
            int smscCode = Integer.parseInt(messageHandler.sendMessage());
            TextMessage oldMessage = textMessageDao.getMessageInProgress(mother.getSeqId());
            if (oldMessage != null) {
                textMessageDao.changeStatus(oldMessage, "R");
            }
            TextMessage textMessage = new TextMessage();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.