private DataTable GetTrendAnalysisData(string theme, string year) { try { string function = ""; switch (dept_type) { case "0": switch (_analysis_theme.Text) { case "年度各项目检测执行趋势分析": function = "sp_ndxmqs_produce"; break; case "年度各检测项目阳性样本检出趋势分析": function = "sp_ndyxqs_produce"; break; case "年度各检测项目疑似阳性样本检出趋势分析": function = "sp_ndyxqs_like_produce"; break; default: break; } break; case "1": switch (_analysis_theme.Text) { case "年度各项目检测执行趋势分析": function = "sp_ndxmqs_fishery"; break; case "年度各检测项目阳性样本检出趋势分析": function = "sp_ndyxqs_fishery"; break; case "年度各检测项目疑似阳性样本检出趋势分析": function = "sp_ndyxqs_like_fishery"; break; default: break; } break; case "2": switch (_analysis_theme.Text) { case "年度各项目检测执行趋势分析": function = "sp_ndxmqs_animal"; break; case "年度各检测项目阳性样本检出趋势分析": function = "sp_ndyxqs_animal"; break; case "年度各检测项目疑似阳性样本检出趋势分析": function = "sp_ndyxqs_like_animal"; break; default: break; } break; default: break; } return(operationContract.ExecuteProNdxmqs(function, PubClass.userInfo.ID, year)); } catch (Exception e) { System.Diagnostics.Debug.WriteLine(".SysTrendAnalysis.GetTrendAnalysisData异常"); throw new Exception(e.Message); } }