public string GetSerializeReportDate(string orderNumber) { Orders orders = orderService.SelectOrdersByOrdernum(orderNumber); string repId = string.Empty; if (orders != null) { Dictreporttemplate dictreporttemplate = repService.GetDictreporttemplateByID(orders.Dictreporttemplateid.ToString()); if (dictreporttemplate != null) { repId = dictreporttemplate.Reporttype.ToString(); } } DataSet ds = repServeic.GetReportData(orderNumber, repId); return(SerializationHelper.Serialize(ds)); }
public DataSet dsGetReportData = new DataSet();//取得报表数据源 #region 入体检流水号取对应的报告,web调用 /// <summary> /// 传入体检流水号取对应的报告,web调用 /// </summary> /// <param name="order_num">体检号</param> /// <param name="isprint">1为打印2为预览</param> /// <returns></returns> public Report GetReport(String order_num, int isprint) { fReport.Clear(); repID = "";//报告模板ID Orders orders = orderService.SelectOrdersByOrdernum(order_num); if (orders != null) { Dictreporttemplate dictreporttemplate = repService.GetDictreporttemplateByID(orders.Dictreporttemplateid.ToString()); if (dictreporttemplate != null) { reporttemplateCode = dictreporttemplate.Templatecode.ToString(); repID = dictreporttemplate.Reporttype.ToString(); } } fReport = repServeic.GetReport(order_num, reporttemplateCode, repID, new DataSet(), HttpContext.Current.Server.MapPath(System.Configuration.ConfigurationSettings.AppSettings["path"].ToString()), out dsGetReportData, isprint); return(fReport); }