EKyc Details
diff --git a/Swift.web/MobileRemit/Admin/Reports/CustomerRegistrationStatus.aspx.cs b/Swift.web/MobileRemit/Admin/Reports/CustomerRegistrationStatus.aspx.cs
index 1489722..5c845fd 100644
--- a/Swift.web/MobileRemit/Admin/Reports/CustomerRegistrationStatus.aspx.cs
+++ b/Swift.web/MobileRemit/Admin/Reports/CustomerRegistrationStatus.aspx.cs
@@ -1,6 +1,11 @@
-using Swift.DAL.OnlineAgent;
+using Newtonsoft.Json;
+using Swift.API.Common;
+using Swift.API.Common.Enum;
+using Swift.API.TPAPIs;
+using Swift.DAL.OnlineAgent;
using Swift.web.Library;
using System;
+using System.Collections.Generic;
using System.Data;
using System.Text;
@@ -16,8 +21,9 @@ namespace Swift.web.MobileRemit.Admin.Reports
protected void Page_Load(object sender, EventArgs e)
{
Authenticate();
- btnUpdate.Enabled = true;
+ //btnUpdate.Enabled = true;
btnReset.Enabled = true;
+ btnActivate.Enabled = false;
if (!IsPostBack)
{
@@ -99,9 +105,20 @@ namespace Swift.web.MobileRemit.Admin.Reports
cusData.Visible = true;
registrationTypeDiv.Visible = true;
+ if ((customerDetails.Rows[0]["createdFrom"].ToString() == "C") || (customerDetails.Rows[0]["createdFrom"].ToString() == "O"))
+ {
+ if(customerDetails.Rows[0]["mobileApprovedDate"].ToString() == "")
+ {
+ btnActivate.Enabled = true;
+ }
+ }
+ else
+ {
+ btnActivate.Enabled = false;
+ }
if (customerDetails.Rows[0]["approvedBy"].ToString() != "")
{
- btnUpdate.Enabled = false;
+ //btnUpdate.Enabled = false;
btnReset.Enabled = false;
}
else if (customerDetails.Rows[0]["customerSource"].ToString() == "temp")
@@ -110,7 +127,7 @@ namespace Swift.web.MobileRemit.Admin.Reports
}
else
{
- btnUpdate.Enabled = true;
+ //btnUpdate.Enabled = true;
btnReset.Enabled = true;
}
}
@@ -168,16 +185,16 @@ namespace Swift.web.MobileRemit.Admin.Reports
tblKycDetail.InnerHtml = str.ToString();
}
- protected void update_Click(object sender, EventArgs e)
- {
- string customerId = txtSearchData.Value.Split('|')[0];
- string customerSource = txtSearchData.Value.Split('|')[1];
- string kycType = rbKycType.SelectedValue;
+ //protected void update_Click(object sender, EventArgs e)
+ //{
+ // string customerId = txtSearchData.Value.Split('|')[0];
+ // string customerSource = txtSearchData.Value.Split('|')[1];
+ // string kycType = rbKycType.SelectedValue;
- var dbResult = _cd.UpdateKycType(customerId, kycType, customerSource, GetStatic.GetUser());
- GetStatic.AlertMessage(this.Page, dbResult.Msg);
+ // var dbResult = _cd.UpdateKycType(customerId, kycType, customerSource, GetStatic.GetUser());
+ // GetStatic.AlertMessage(this.Page, dbResult.Msg);
- }
+ //}
protected void reset_Click(object sender, EventArgs e)
{
string customerId = txtSearchData.Value.Split('|')[0];
@@ -193,5 +210,60 @@ namespace Swift.web.MobileRemit.Admin.Reports
GetStatic.AlertMessage(this.Page, "Customer KYC has been successfully cleared.");
}
}
+ protected void activate_Click(object sender, EventArgs e)
+ {
+ string customerId = txtSearchData.Value.Split('|')[0];
+ var custompass = PasswordGenerator.GenerateRandomPassword();
+ var membershipId = Request.Form["membershipId"];
+ var dbRes = _cd.ActivateMobileLogin(GetStatic.GetUser(), customerId, custompass, membershipId);
+
+ if (dbRes.ErrorCode == "0")
+ {
+ DataRow result = _cd.GetDetailsWithPinNo(customerId, GetStatic.GetUser());
+ //CustomerDetails cd = _cd.GetUserDetails(selecteduserId);
+ var email = result["userName"].ToString();
+ List
bodyMappings = new List();
+
+ bodyMappings.Add(new Mapping() { SValue = "CustomerName", SText = result["FullName"].ToString() });
+ bodyMappings.Add(new Mapping() { SValue = "CustomerId", SText = customerId });
+ bodyMappings.Add(new Mapping() { SValue = "Address", SText = result["Address1"].ToString() });
+ bodyMappings.Add(new Mapping() { SValue = "EMAIL_ID", SText = email });
+ bodyMappings.Add(new Mapping() { SValue = "PASS_WORD", SText = result["Password"].ToString() });
+ bodyMappings.Add(new Mapping() { SValue = "PIN_NO", SText = result["PinNo"].ToString() });
+
+
+ SendNotificationRequestMobile request = new SendNotificationRequestMobile()
+ {
+ IsBulkNotification = false,
+ UserName = email,
+ ProcessId = Guid.NewGuid().ToString(),
+ ProviderId = NotifyTemplate.PIN_PASSWORD_EMAIL.ToString(),
+ NotificationTypeId = NOTIFICATION_TYPE.EMAIL.ToString(),
+ Template = NotifyTemplate.PIN_PASSWORD_EMAIL,
+ Recipients = new List()
+ {
+ new RecipientViewModel()
+ {
+ NotificationContent = new NotificationDTO() {
+ Body = JsonConvert.SerializeObject(bodyMappings),
+ //Title will be set by mapping json
+ },
+ Address= email
+ }
+ }
+ };
+
+ var res = NotifierV2.SendNotification(request, NOTIFICATION_TYPE.EMAIL);
+
+ txtSearchData.Text = "";
+ cusData.Visible = false;
+ registrationTypeDiv.Visible = false;
+ GetStatic.AlertMessage(this, dbRes.Msg);
+ }
+ else
+ {
+ GetStatic.AlertMessage(this, dbRes.Msg);
+ }
+ }
}
}
\ No newline at end of file
diff --git a/Swift.web/MobileRemit/Admin/Reports/CustomerRegistrationStatus.aspx.designer.cs b/Swift.web/MobileRemit/Admin/Reports/CustomerRegistrationStatus.aspx.designer.cs
index 4c4eac6..43edc8c 100644
--- a/Swift.web/MobileRemit/Admin/Reports/CustomerRegistrationStatus.aspx.designer.cs
+++ b/Swift.web/MobileRemit/Admin/Reports/CustomerRegistrationStatus.aspx.designer.cs
@@ -123,22 +123,22 @@ namespace Swift.web.MobileRemit.Admin.Reports
protected global::System.Web.UI.WebControls.RadioButtonList rbKycType;
///
- /// btnUpdate control.
+ /// btnReset control.
///
///
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
///
- protected global::System.Web.UI.WebControls.Button btnUpdate;
+ protected global::System.Web.UI.WebControls.Button btnReset;
///
- /// btnReset control.
+ /// btnActivate control.
///
///
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
///
- protected global::System.Web.UI.WebControls.Button btnReset;
+ protected global::System.Web.UI.WebControls.Button btnActivate;
///
/// moreData control.
diff --git a/Swift.web/Remit/Transaction/Modify/ModifyField.aspx.cs b/Swift.web/Remit/Transaction/Modify/ModifyField.aspx.cs
index cecb4c1..6e00206 100644
--- a/Swift.web/Remit/Transaction/Modify/ModifyField.aspx.cs
+++ b/Swift.web/Remit/Transaction/Modify/ModifyField.aspx.cs
@@ -43,6 +43,15 @@ namespace Swift.web.Remit.Transaction.Modify
rptName.Visible = true;
rptShowOther.Visible = false;
}
+ else if (getFieldName() == "paymentMethod")
+ {
+ rptShowOther.Visible = true;
+ PopulateDll(getFieldName());
+ ddlNewValue.Visible = true;
+ txtNewValue.Visible = false;
+ rptName.Visible = false;
+ txtContactNo.Visible = false;
+ }
else
{
rptShowOther.Visible = true;
@@ -75,6 +84,8 @@ namespace Swift.web.Remit.Transaction.Modify
lblFieldName.Text = "Receiver Id No";
else if (getFieldName() == "sIdNo")
lblFieldName.Text = "Sender Id No";
+ else if (getFieldName() == "paymentMethod")
+ lblFieldName.Text = "Mode of Payment";
}
private string GetLabel()
@@ -95,10 +106,13 @@ namespace Swift.web.Remit.Transaction.Modify
}
private void PopulateDll(string fieldName)
{
+ var country = GetStatic.ReadQueryString("pCountry","");
if (fieldName == "rIdType")
sd.SetDDL(ref ddlNewValue, "EXEC proc_online_dropDownList @flag = 'idType', @user = '" + GetStatic.GetUser() + "'", "valueId", "detailTitle", "", "Select..");
else if (fieldName == "sIdType")
sd.SetDDL2(ref ddlNewValue, "EXEC proc_countryIdType @flag = 'il', @countryId='151', @spFlag = '5201'", "detailTitle", "", "Select");
+ else if (fieldName == "paymentMethod")
+ sd.SetDDL(ref ddlNewValue, "EXEC proc_online_sendPageLoadData @flag = 'payoutMethods' ,@country = " + country + "", "Key", "Value", "", "Select");
}
protected void btnUpdate_Click(object sender, EventArgs e)
{
diff --git a/Swift.web/Remit/Transaction/Modify/ModifyLocation.aspx b/Swift.web/Remit/Transaction/Modify/ModifyLocation.aspx
index e157c88..7a72d70 100644
--- a/Swift.web/Remit/Transaction/Modify/ModifyLocation.aspx
+++ b/Swift.web/Remit/Transaction/Modify/ModifyLocation.aspx
@@ -107,6 +107,15 @@