Browse Source

#push Notification from admin

Ime-london-webcore
Leeza Baidar 9 months ago
parent
commit
3c196c3505
  1. 24
      Swift.web/MobileRemit/Admin/PushNotification/ManageBroadCast.aspx
  2. 2
      Swift.web/MobileRemit/Admin/PushNotification/ManageBroadCast.aspx.cs
  3. 8
      Swift.web/MobileRemit/Admin/PushNotification/ManageBroadCast.aspx.designer.cs

24
Swift.web/MobileRemit/Admin/PushNotification/ManageBroadCast.aspx

@ -28,19 +28,27 @@
<script type="text/javascript">
function CheckFormValidation() {
debugger;
var rowId = "<%=GetRowId()%>";
var customerType = $("#ddlCustomerType").val();
if (customerType != "nativeCountry") {
var customerId = $('#txtSearchData_aValue').val();
if (customerId == null || customerId == "") {
alert('No customer selected. Please choose a customer to send broadcast message.');
var reqField = "DDLBroadCastType,TXTBody,";
if (ValidRequiredField(reqField) == false) {
return false;
alert(customerType);
if (customerType == "All") {
return true;
}
else {
if (customerType != "nativeCountry") {
var customerId = $('#txtSearchData_aValue').val();
if (customerId == null || customerId == "") {
alert('No customer selected. Please choose a customer to send broadcast message.');
var reqField = "DDLBroadCastType,TXTBody,";
if (ValidRequiredField(reqField) == false) {
return false;
}
}
}
}
}
}
function GetCustomerSearchType() {
return $("#ddlCustomerType").val();

2
Swift.web/MobileRemit/Admin/PushNotification/ManageBroadCast.aspx.cs

@ -81,7 +81,7 @@ namespace Swift.web.MobileRemit.Admin.PushNotification
var nativeCountry = ddlNativeCountry.SelectedValue;
if (string.IsNullOrEmpty(customerId) && customerType != "nativeCountry")
if (string.IsNullOrEmpty(customerId) && customerType != "nativeCountry" && customerType.ToLower() != "all")
{
GetStatic.AlertMessage(this, "Customer can not be empty!");
return null;

8
Swift.web/MobileRemit/Admin/PushNotification/ManageBroadCast.aspx.designer.cs

@ -60,7 +60,15 @@ namespace Swift.web.MobileRemit.Admin.PushNotification
protected global::Swift.web.Component.AutoComplete.SwiftTextBox txtSearchData;
/// <summary>
/// ddlNativeCountry control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddlNativeCountry;
/// <summary>
/// msgType control.
/// </summary>
/// <remarks>

Loading…
Cancel
Save