private void doSwitch(int intSwitchID, string strPortfolioName, clsSMS.subclsSMSTemplate.enumSMSTemplateID intSmsID, string strPopupMessage, string strSMSMobileNo) { clsSMS.subclsSMSTemplate osubclsSMSTemplate = new clsSMS.subclsSMSTemplate(intSmsID); string strReplacerVariable = clsSMS.subclsSMSTemplate.strPortfolioNameVariable; string strMessage = osubclsSMSTemplate.propMessage.Replace(strReplacerVariable, strPortfolioName); if (strSMSMobileNo.Trim().Length != 0) { sendSMS(intSwitchID, strUserID, strMessage, strPopupMessage, strSMSMobileNo); //ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('" + strMessage + "');", true); } }
public static string getSMSTemplate(string strTemplateName) { string strSMSTemplate = "error Retrieving SMS Template!"; try { clsSMS.subclsSMSTemplate Template = new clsSMS.subclsSMSTemplate(); Template.getTemplateInfo(null, strTemplateName); strSMSTemplate = Template.propMessage; } catch { } return(strSMSTemplate); }