|
@ -28,19 +28,27 @@ |
|
|
|
|
|
|
|
|
<script type="text/javascript"> |
|
|
<script type="text/javascript"> |
|
|
function CheckFormValidation() { |
|
|
function CheckFormValidation() { |
|
|
|
|
|
debugger; |
|
|
|
|
|
|
|
|
var rowId = "<%=GetRowId()%>"; |
|
|
var rowId = "<%=GetRowId()%>"; |
|
|
var customerType = $("#ddlCustomerType").val(); |
|
|
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() { |
|
|
function GetCustomerSearchType() { |
|
|
return $("#ddlCustomerType").val(); |
|
|
return $("#ddlCustomerType").val(); |
|
|