using Forks.JsonRpc.Client; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ButcherFactory.BO.LocalBL { public static class DialogBL { const string RpcPath = @"/MainSystem/B3Sale/Rpcs/BaseInfoSelectRpc/"; public static IEnumerable GetStoreList() { return GetBaseInfoList("GetStoreList"); } public static IEnumerable GetDeliverGoodsLineList() { return GetBaseInfoList("GetDeliverGoodsLineList"); } public static IEnumerable GetCustomerList(string spell) { return GetBaseInfoList("GetCustomerList", spell); } static IEnumerable GetBaseInfoList(string method, params string[] spell) { var json = RpcFacade.Call(RpcPath + method, spell); return JsonConvert.DeserializeObject>(json); } } }