Browse Source

#17305 Implementation of Zipcode via locate api -admin

Prod
shakun 1 year ago
parent
commit
f8d932377c
  1. 25
      Swift.API/Common/SyncModel/Town/Address.cs
  2. 7
      Swift.API/ThirdPartyApiServices/SyncStateCityTownService.cs
  3. 6
      Swift.web/AgentNew/SendTxn/SendV2.aspx

25
Swift.API/Common/SyncModel/Town/Address.cs

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Swift.API.Common.SyncModel.Town
{
public class AddressResponse
{
public string Id { get; set; }
public string Type { get; set; }
public object Address1 { get; set; }
public string City { get; set; }
public object Address2 { get; set; }
}
public class AddressDTO
{
public List<AddressResponse> Addresses { get; set; }
}
}

7
Swift.API/ThirdPartyApiServices/SyncStateCityTownService.cs

@ -35,10 +35,15 @@ namespace Swift.API.ThirdPartyApiServices
if (model.MethodType.ToLower() == "state")
{
a = (jsonResponse.Data != null ? JsonConvert.DeserializeObject<List<StateResponse>>(jsonResponse.Data.ToString()) : null);
}else if (model.MethodType.ToLower() == "city")
}
else if (model.MethodType.ToLower() == "city")
{
a = (jsonResponse.Data != null ? JsonConvert.DeserializeObject<List<CityResponse>>(jsonResponse.Data.ToString()) : null);
}
else if (model.MethodType.ToLower() == "loqate")
{
a = (jsonResponse.Data != null ? JsonConvert.DeserializeObject<AddressDTO>(jsonResponse.Data.ToString()) : null);
}
else
{
a = (jsonResponse.Data != null ? JsonConvert.DeserializeObject<List<TownResponse>>(jsonResponse.Data.ToString()) : null);

6
Swift.web/AgentNew/SendTxn/SendV2.aspx

@ -373,7 +373,7 @@
<td colspan="2">
<div class="form-group">
<div class="input-group">
<asp:DropDownList ID="custLocationDDL" runat="server" CssClass="required form-control readonlyOnCustomerSelect"></asp:DropDownList>
<asp:DropDownList ID="custLocationDDL" runat="server"></asp:DropDownList>
<div class="input-group-addon"><span id="lblSendCountryName"><b>JAPAN</b></span></div>
</div>
</div>
@ -1847,7 +1847,7 @@
$("#ContentPlaceHolder1_occupation").prop("disabled", true);
//$("#ContentPlaceHolder1_ddlOccupation").prop("disabled", true);
$('#ContentPlaceHolder1_txtRecIdNo').attr('readonly', true);
$("#ContentPlaceHolder1_introducerTxt_aText").prop('required', true);
//$("#ContentPlaceHolder1_introducerTxt_aText").prop('required', true);
$("#ContentPlaceHolder1_branch").change(function () {
var choosePayer = $("#" + mId + "hddChoosePayer").val();
if (choosePayer === 'true') {
@ -2041,7 +2041,7 @@
document.getElementById(mId + "NewCust").focus();
$('#subLocation').hide();
$(mId + "introducerTxt_aText").attr("placeholder", "Referral (If any)");
//$(mId + "introducerTxt_aText").attr("placeholder", "Referral (If any)");
$('#divHideShow').show();
$('.displayPayerInfo').hide();
var customerIdFromMapping = '<%=GetCustomerId()%>';

Loading…
Cancel
Save