You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.8 KiB
64 lines
1.8 KiB
|
|
using EasyBL.WebApi;
|
|
using EasyBL.WebApi.Common;
|
|
using EasyBL.WebApi.Message;
|
|
using EasyBL.WEBAPP.WSM;
|
|
using Entity.ShowEasyDtos;
|
|
using Entity.Sugar;
|
|
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net.Http;
|
|
|
|
namespace EasyBL.WEBAPP.SYS
|
|
{
|
|
public class CurrencyService : ServiceBase
|
|
{
|
|
|
|
#region 幣別管理(HttpResponseMessage API 查詢幣別)
|
|
|
|
/// <summary>
|
|
/// 幣別管理(HttpResponseMessage API 查詢幣別)
|
|
/// </summary>
|
|
/// <param name="i_crm"></param>
|
|
/// <returns></returns>
|
|
public HttpResponseMessage GetCurrency(string sLanguageID)
|
|
{
|
|
|
|
SuccessResponseMessage srm = null;
|
|
string sError = null;
|
|
|
|
try
|
|
{
|
|
do
|
|
{
|
|
CurrencyMaintain_QryService cm_qry = new CurrencyMaintain_QryService();
|
|
var rsResult = cm_qry.FindAllByIDsAsDictionary(sLanguageID).Values.ToList();
|
|
|
|
//返回token信息
|
|
srm = new SuccessResponseMessage(null, null);
|
|
srm.DATA.Add(BLWording.REL, rsResult);
|
|
|
|
} while (false);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
sError = Util.GetLastExceptionMsg(ex);
|
|
srm = new SuccessResponseMessage(null, null)
|
|
{
|
|
STATUSCODE = (int)StatusCodeEnum.Error,
|
|
MSG = StatusCodeEnum.Error.GetEnumText()
|
|
};
|
|
srm.DATA.Add(BLWording.REL, "");
|
|
}
|
|
return HttpResponseExtension.ToJson(JsonConvert.SerializeObject(srm));
|
|
|
|
|
|
}
|
|
|
|
#endregion 幣別管理(HttpResponseMessage API 查詢幣別)
|
|
|
|
}
|
|
}
|