|
|
@ -29,16 +29,15 @@ |
|
|
|
<script type="text/javascript"> |
|
|
|
function CheckFormValidation() { |
|
|
|
debugger; |
|
|
|
var rowId = "<%=GetRowId()%>"; |
|
|
|
|
|
|
|
var rowId = "<%=GetRowId()%>"; |
|
|
|
var customerType = $("#ddlCustomerType").val(); |
|
|
|
alert(customerType); |
|
|
|
// alert(customerType); |
|
|
|
if (customerType == "All") { |
|
|
|
return true; |
|
|
|
} |
|
|
|
else { |
|
|
|
if (customerType != "nativeCountry") { |
|
|
|
|
|
|
|
if ((customerType != "nativeCountry") && (customerType != "postCode")) { |
|
|
|
var customerId = $('#txtSearchData_aValue').val(); |
|
|
|
if (customerId == null || customerId == "") { |
|
|
|
alert('No customer selected. Please choose a customer to send broadcast message.'); |
|
|
@ -57,7 +56,6 @@ |
|
|
|
|
|
|
|
$(document).ready(function () { |
|
|
|
ddlNativeCountry.style.display = 'none'; |
|
|
|
|
|
|
|
$('#<%=ddlCustomerType.ClientID%>').change(function () { |
|
|
|
var customerType = $("#ddlCustomerType").val(); |
|
|
|
if (customerType === "nativeCountry") { |
|
|
@ -73,6 +71,19 @@ |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
$(document).ready(function () { |
|
|
|
$('#<%=ddlCustomerType.ClientID%>').change(function () { |
|
|
|
var customerType = $(this).val(); |
|
|
|
if (customerType === "postCode") { |
|
|
|
$('#lblPostCode').show(); |
|
|
|
$('#<%=txtPostCode.ClientID%>').show(); |
|
|
|
} else { |
|
|
|
$('#lblPostCode').hide(); |
|
|
|
$('#<%=txtPostCode.ClientID%>').hide(); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//function CustomerTypeChanged() { |
|
|
@ -129,7 +140,7 @@ |
|
|
|
<li><a href="BroadcastList.aspx">PushNotification List</a></li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
<div class="tab-content"> |
|
|
|
<div class="col-md-12"> |
|
|
|
<div class="panel panel-default recent-activites"> |
|
|
|
<!-- Start .panel --> |
|
|
|
<div class="panel-heading"> |
|
|
@ -141,31 +152,65 @@ |
|
|
|
</div> |
|
|
|
<div class="panel-body"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-6" id="individualCustomerGroup" runat="server"> |
|
|
|
<label> |
|
|
|
<%--<div class="col-md-6" id="individualCustomerGroup" runat="server"> |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-md-4 control-label"> |
|
|
|
Select Customer : <span class="errormsg">*</span> |
|
|
|
</label> |
|
|
|
<div class="col-md-8"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-6"> |
|
|
|
<div class="form-group"> |
|
|
|
|
|
|
|
<div class="col-md-4"> |
|
|
|
<div class="form-group"> |
|
|
|
<asp:DropDownList ID="ddlCustomerType" runat="server" CssClass="form-control" Style="margin-bottom: 5px;"> |
|
|
|
</asp:DropDownList> |
|
|
|
<asp:DropDownList ID="ddlCustomerType" runat="server" CssClass="form-control" Style="margin-bottom: 5px;"></asp:DropDownList> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-md-8"> |
|
|
|
<div class="col-md-6"> |
|
|
|
<uc1:SwiftTextBox runat="server" ID="txtSearchData" Category="remit-searchCustomerForPushNotif" CssClass="form-control required" Param1="@GetCustomerSearchType()" Title="Blank for All" /> |
|
|
|
</div> |
|
|
|
<div class="col-md-4"> |
|
|
|
<div class="col-md-6"> |
|
|
|
<div class="form-group"> |
|
|
|
<asp:DropDownList ID="ddlNativeCountry" runat="server" CssClass="form-control" Style="margin-bottom: 5px;"> |
|
|
|
</asp:DropDownList> |
|
|
|
<asp:DropDownList ID="ddlNativeCountry" runat="server" CssClass="form-control" Style="margin-bottom: 5px;"></asp:DropDownList> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div>--%> |
|
|
|
<div class="col-md-3 form-group"> |
|
|
|
<label>Select Customer : <span class="errormsg">*</span></label> |
|
|
|
</div> |
|
|
|
<div class="col-md-2 form-group"> |
|
|
|
<asp:DropDownList ID="ddlCustomerType" runat="server" CssClass="form-control" Style="margin-bottom: 5px;"></asp:DropDownList> |
|
|
|
</div> |
|
|
|
<div class="col-md-4 form-group"> |
|
|
|
<uc1:SwiftTextBox runat="server" ID="txtSearchData" Category="remit-searchCustomerForPushNotif" CssClass="form-control required" Param1="@GetCustomerSearchType()" Title="Blank for All" /> |
|
|
|
</div> |
|
|
|
<div class="col-md-6"> |
|
|
|
<div class="form-group"> |
|
|
|
<asp:DropDownList ID="ddlNativeCountry" runat="server" CssClass="form-control" Style="margin-bottom: 5px;"></asp:DropDownList> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<%--<div class="col-md-4"> |
|
|
|
<div class="form-group"> |
|
|
|
<div class="col-md-4"> |
|
|
|
<asp:TextBox ID="txtPostCode" AutoComplete="off" runat="server" CssClass="form-control"></asp:TextBox> |
|
|
|
</div> |
|
|
|
</div>--%> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="row" id="divPostCode" runat="server"> |
|
|
|
<div class="col-md-3 form-group"> |
|
|
|
<label id="lblPostCode" style="display: none;">Post Code :</label> |
|
|
|
</div> |
|
|
|
<div class="col-md-2 form-group"> |
|
|
|
<asp:TextBox ID="txtPostCode" AutoComplete="off" runat="server" CssClass="form-control" Style="display: none;"></asp:TextBox> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-3 form-group"> |
|
|
|
<label>Notification Category : <span class="errormsg">*</span></label> |
|
|
|
</div> |
|
|
|
<div class="col-md-2 form-group"> |
|
|
|
<select id="msgType" name="msgType" runat="server" class="form-control"> |
|
|
|
<option value="INFO" selected="selected">INFORMATION</option> |
|
|
|
<option value="SUCCESS">SUCCESS</option> |
|
|
@ -173,25 +218,23 @@ |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-6" id="Div1" runat="server"> |
|
|
|
<div class="form-group" style="max-height: 400px;"> |
|
|
|
<div class="col-md-3" id="Div1" runat="server"> |
|
|
|
<label> |
|
|
|
Notification Message : <span class="errormsg">*</span> |
|
|
|
</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-6" id="Div2" runat="server"> |
|
|
|
<div class="form-group"> |
|
|
|
<%-- <textarea name="TXTBody" rows="2" cols="20" id="TXTBody" runat="server"></textarea>--%> |
|
|
|
<asp:TextBox runat="server" ID="TXTBody" TextMode="MultiLine" Rows="4" Columns="55"></asp:TextBox> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="row"> |
|
|
|
</div> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-12"> |
|
|
|
<div class="form-group"> |
|
|
|