/// <summary> /// 查询支出列表 /// </summary> /// <param name="user">用户信息</param> /// <param name="date">收入日期</param> /// <returns></returns> private List <OutPutListInfo> QueryOutPut(LoginInfo user, DateTime date) { //token var dicHeader = new Dictionary <string, string>(); dicHeader["Authorization"] = user.Token; //请求接口 var client = new TdbHttpClient(AppConfig.Inst.App.IOApiUrl); var res = client.ExecGet <ResultList <OutPutListInfo> >("api/InOut/QueryOutPut/" + date.ToString("yyyy-MM-dd"), null, dicHeader); return(res.Result.LstInfo); }
/// <summary> /// 查询收入类型列表 /// </summary> /// <param name="user">用户信息</param> /// <returns></returns> private List <InTypeListInfo> QueryInType(LoginInfo user) { //token var dicHeader = new Dictionary <string, string>(); dicHeader["Authorization"] = user.Token; //请求接口 var client = new TdbHttpClient(AppConfig.Inst.App.IOApiUrl); var res = client.ExecGet <ResultList <InTypeListInfo> >("api/Basic/QueryInType", null, dicHeader); return(res.Result.LstInfo); }
/// <summary> /// 查询支出类型列表 /// </summary> /// <param name="user">用户信息</param> /// <returns></returns> private List <OutTypeListInfo> QueryOutType(LoginInfo user) { //token var dicHeader = new Dictionary <string, string>(); dicHeader["Authorization"] = user.Token; //请求接口 var client = new TdbHttpClient(AppConfig.Inst.App.IOApiUrl); var res = client.ExecGet <ResultList <OutCategoryTypeListInfo> >("api/Basic/QueryOutCategoryType", null, dicHeader); var list = res.Result.LstInfo.SelectMany(m => m.LstOutType).ToList(); return(list); }