Exemplo n.º 1
0
        public bool GetSMSRespons()
        {
            if (objAppoint.IsNew)
            {
                strContactNo = objAppoint.ContactNo;
                myMsg        = objAppoint.Name + " your meeting with " + objAppoint.EmpName + " is on " + objAppoint.AppointmentDate.ToShortDateString() + "," + objAppoint.ScheduleTime.ToShortTimeString() + " APMT NO: " + objAppoint.AppointmentNo;

                strAPI1 = GeneralMethods.GetSMSAPI();

                strSource = GeneralMethods.GetSMSSenderID();

                strDestination = "&destination=91" + strContactNo;

                strMessage = "&message=" + myMsg;

                strFullAPI = strAPI1 + strDestination + strSource + strMessage;

                string sResponse = GetResponse(strFullAPI);

                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 2
0
        public bool GetSMSRespons()
        {
            strContactNo = objVisitorGP.EmpMobile;
            myMsg        = objVisitorGP.VisitorName + " came to visit you against APMT No: " + objVisitorGP.AppointmentNo;

            strAPI1 = GeneralMethods.GetSMSAPI();             // "http://103.16.101.52:8080/bulksms/bulksms?username=syy-dtpl&password=1234&type=0&dlr=1";

            strSource      = GeneralMethods.GetSMSSenderID(); // "&source=DTPLFa";
            strDestination = "&destination=91" + strContactNo;
            strMessage     = "&message=" + myMsg;

            strFullAPI = strAPI1 + strDestination + strSource + strMessage;

            string sResponse = GetResponse(strFullAPI);

            return(true);
        }