|
@@ -360,6 +360,27 @@ namespace OASystem.API.Controllers
|
|
|
teamRateDescViews.Add(rateDescView);
|
|
|
}
|
|
|
}
|
|
|
+ else
|
|
|
+ {
|
|
|
+ if (!string.IsNullOrEmpty(item.Remark))
|
|
|
+ {
|
|
|
+ string[] currency1 = item.Remark.Split(":");
|
|
|
+ string[] currency2 = currency1[0].Split("(");
|
|
|
+
|
|
|
+ string currencyCode = currency2[1].Replace(")", "").TrimEnd();
|
|
|
+ SetDataInfoView dataInfoView = new SetDataInfoView();
|
|
|
+ dataInfoView = currencyDatas.Where(it => it.Name == currencyCode).FirstOrDefault();
|
|
|
+ int currencyId = currencyDatas.Where(it => it.Name == currencyCode).FirstOrDefault().Id;
|
|
|
+ TeamRateDescAddCurrencyIdView rateDescView = new TeamRateDescAddCurrencyIdView()
|
|
|
+ {
|
|
|
+ CurrencyId = dataInfoView.Id,
|
|
|
+ CurrencyCode = currencyCode,
|
|
|
+ CurrencyName = currency2[0],
|
|
|
+ Rate = decimal.Parse(currency1[1]),
|
|
|
+ };
|
|
|
+ teamRateDescViews.Add(rateDescView);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
#endregion
|
|
|
|