/// <summary> /// 通过KeyID获得FormulaYear数据 /// </summary> /// <param name="request"></param> /// <returns></returns> public FormulaYearResponse GetFormulaYearByKeyID(FormulaYearRequest request) { FormulaYearResponse response = new FormulaYearResponse(); //IEnumerable<FormulaYear> results = formulaYearRepository.GetBy(request.KeyID); //response.FormulaYearViews = results.ConvertToViews(); return response; }
public string GetFormulaYearDatas(Guid id) { FormulaYearRequest request = new FormulaYearRequest { KeyID = id }; ReportService service = new ReportService(); FormulaYearResponse response = service.GetFormulaYearByKeyID(request); string result = JsonHelper.ObjectToJson(response.FormulaYearViews); return result; }