|
|
@ -27,12 +27,14 @@ namespace Repository.MobileV2 |
|
|
|
MyTransferDto myTransferDto = new MyTransferDto() { Receivers = new List<ReceiverV2>(), RecentTransactions = new List<TranHistoryResponse>() }; |
|
|
|
var lang = Convert.ToString(CallContext.GetData(Constants.Language)); |
|
|
|
JsonRxResponse jsonRx = new JsonRxResponse(); |
|
|
|
string viewOption = search.ViewAll; |
|
|
|
try |
|
|
|
{ |
|
|
|
var sql = "EXEC PROC_MOBILE_RECEIVER_INFORMATION"; |
|
|
|
sql += " @flag = " + _dao.FilterString("receiver-info"); |
|
|
|
sql += ", @customerId = " + _dao.FilterString(customerId); |
|
|
|
sql += ", @countryId = " + _dao.FilterString(countryid); |
|
|
|
sql += ", @viewAll = " + _dao.FilterString(viewOption); |
|
|
|
|
|
|
|
var dataSet = _dao.ExecuteDataset(sql); |
|
|
|
List<ReceiverV2> rim = new List<ReceiverV2>(); |
|
|
@ -90,6 +92,7 @@ namespace Repository.MobileV2 |
|
|
|
|
|
|
|
var sql1 = "Exec mobile_proc_TranHistory @flag='tran-history-v2'"; |
|
|
|
sql1 += ", @customerId =" + _dao.FilterString(customerId); |
|
|
|
sql1 += ", @viewAll =" + _dao.FilterString(viewOption); |
|
|
|
|
|
|
|
|
|
|
|
Log.DebugFormat("GetReceiverInformation | SQL : {0}", sql); |
|
|
@ -100,7 +103,7 @@ namespace Repository.MobileV2 |
|
|
|
if (!string.IsNullOrEmpty(search.FromDate)) |
|
|
|
{ |
|
|
|
DateTime FromDate; |
|
|
|
if (DateTime.TryParseExact(search.FromDate,"dd/MM/yyyy", enUS, DateTimeStyles.AdjustToUniversal, out FromDate)) |
|
|
|
if (DateTime.TryParseExact(search.FromDate, "dd/MM/yyyy", enUS, DateTimeStyles.AdjustToUniversal, out FromDate)) |
|
|
|
{ |
|
|
|
sql1 += ", @fromDate=" + _dao.FilterString(FromDate.ToString("yyyy-MM-dd")); |
|
|
|
} |
|
|
@ -157,7 +160,7 @@ namespace Repository.MobileV2 |
|
|
|
DisplayActions = dr["DisplayActions"].ToString(), |
|
|
|
ColorIcon = GetColor(dr["payStatus"].ToString()), |
|
|
|
ColorCode = GetColorCode(dr["payStatus"].ToString()), |
|
|
|
TextCode= GetTextCode(dr["payStatus"].ToString()), |
|
|
|
TextCode = GetTextCode(dr["payStatus"].ToString()), |
|
|
|
ReceiverId = Convert.ToString(dr["Receiverid"]) |
|
|
|
// PayoutAgent = Convert.ToString(dr["PayoutAgent"]),
|
|
|
|
}; |
|
|
@ -229,7 +232,7 @@ namespace Repository.MobileV2 |
|
|
|
else |
|
|
|
return "#514e82"; |
|
|
|
|
|
|
|
// return "#FF0000";
|
|
|
|
// return "#FF0000";
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -468,7 +471,7 @@ namespace Repository.MobileV2 |
|
|
|
return _dao.ExecuteDataRow(sql); |
|
|
|
} |
|
|
|
|
|
|
|
public JsonRxResponse UpdateCustomerProfile(CustomerDetailV2 req) |
|
|
|
public JsonRxResponse UpdateCustomerProfile(CustomerDetailV2 req) |
|
|
|
{ |
|
|
|
var sql = "EXEC mobile_proc_online_customerMaster_V1 @flag= 'update-address'"; |
|
|
|
sql += ", @customerId = " + _dao.FilterString(req.UserId); |
|
|
|