public void Test() { FRInfo data = new FRInfo(); data.C0 = "te"; data.C1 = "t1"; data.C2 = "http://img.xys.com:8080/lab/logo.png"; string model = "D:\\Project\\VS2013\\Repos\\XYS\\XYS.FR\\Print\\Lab\\test.frx"; DataSet ds = DataStruct.GetSet(); this.pdf.ExportElement(data, ds); GenderPDF(model, ds); }
private void FillReport(LabReport report, DataSet ds) { //上传info FRInfo header = new FRInfo(); this.FillInfo(report.Info, header); this.Export.ExportElement(header, ds); // int sectionNo = report.Info.SectionNo; List<IExportElement> ls = new List<IExportElement>(30); switch (sectionNo) { case 39: this.FillGSCustoms(report.CustomList, ls); break; default: this.FillItems(report.ItemList, ls); this.FillImage(report.ImageList, ls); this.FillCustoms(report.CustomList, ls); break; } this.Export.ExportElement(ls, ds); }
private void FillInfo(InfoElement info, FRInfo header) { header.C0 = info.SerialNo; header.C1 = info.DeptName; header.C2 = info.BedNo; header.C3 = info.SampleNo; header.C4 = info.PatientName; header.C5 = info.GenderName; header.C6 = info.AgeStr; header.C7 = info.PatientID; header.C8 = info.SampleTypeName; header.C9 = info.ClinicName; header.C10 = info.Doctor; header.C11 = info.ClinicalDiagnosis; header.C12 = info.Explanation; header.C13 = info.Memo; header.C14 = info.Comment; header.C15 = info.Description; header.C16 = info.ReportContent; header.C17 = info.CollectTime > MinTime ? info.CollectTime.ToString("yyyy-MM-dd HH:mm") : ""; header.C18 = info.InceptTime > MinTime ? info.InceptTime.ToString("yyyy-MM-dd HH:mm") : ""; header.C19 = info.CheckTime > MinTime ? info.CheckTime.ToString("yyyy-MM-dd HH:mm") : ""; header.C20 = info.TestTime > MinTime ? info.TestTime.ToString("yyyy-MM-dd") : ""; header.C29 = info.ReportID; header.C30 = info.TechnicianImage; header.C31 = info.CheckerImage; }