public ActionResult GetReportDetails(int id, long docid) { var model = new ReportInfoViewModel(); ReportDetailInfo detail = new ReportDetailInfo(); List <ReportFileInfo> fileInfoList = new List <ReportFileInfo>(); using (DFClient client = new DFClient()) { detail = client.GetReportDetailInfo(docid, id); fileInfoList = client.GetReportFileList(docid); //获取详细信息 client.Close(); } if (detail == null || fileInfoList == null) { return(Redirect("/home/error")); } model.DetailInfo = detail; model.FileInfos = fileInfoList; ViewBag.Title = detail.Subject; return(View(model)); }
public string InsertOrUpdateReportInfo(ReportDetailInfo info) { return((string)SqlMapDAL.CreateNameQuery("InsertOrUpdateReportInfo").SetParameter(info).ExecuteScalar()); }