You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

281 lines
42 KiB

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Reflection.Emit;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Newtonsoft.Json;
using ReportLibrary;
namespace PeisStart.WInForm.Test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
zydjsontest();
}
public static T DeserializeObject<T>(string data) where T : class
{
var obj = JsonConvert.DeserializeObject<T>(data);
return obj;
}
public static string SerializeObject(object data)
{
string str = JsonConvert.SerializeObject(data);
return str;
}
// private string req=@"{""Data"":{""reportFormatId"":""0001"",""displayName"":""单列格式模板复制"",""templateFileType"":""0"",""templateFile"":\"<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<Report ScriptLanguage=\"CSharp\" ReportInfo.Created=\"08/18/2023 17:01:03\" ReportInfo.Modified=\"10/09/2023 17:25:13\" ReportInfo.CreatorVersion=\"2022.3.9.0\">\r\n <Dictionary>\r\n <TableDataSource Name=\"pinfo\" ReferenceName=\"Data.pinfo\" DataType=\"System.Int32\" Enabled=\"true\">\r\n <Column Name=\"patientRegisterId\" DataType=\"System.String\"/>\r\n <Column Name=\"patientRegisterNo\" DataType=\"System.String\"/>\r\n <Column Name=\"patientName\" DataType=\"System.String\"/>\r\n <Column Name=\"sexName\" DataType=\"System.String\"/>\r\n <Column Name=\"age\" DataType=\"System.Int64\"/>\r\n <Column Name=\"idNo\" DataType=\"System.String\"/>\r\n <Column Name=\"mobileTelephone\" DataType=\"System.String\"/>\r\n <Column Name=\"patientNo\" DataType=\"System.String\"/>\r\n <Column Name=\"medicalTimes\" DataType=\"System.Int64\"/>\r\n <Column Name=\"jobCardNo\" DataType=\"System.String\"/>\r\n <Column Name=\"medicalCardNo\" DataType=\"System.String\"/>\r\n <Column Name=\"customerOrgName\" DataType=\"System.String\"/>\r\n <Column Name=\"departmentName\" DataType=\"System.String\"/>\r\n <Column Name=\"customerOrgGroupName\" DataType=\"System.String\"/>\r\n <Column Name=\"medicalPackageName\" DataType=\"System.String\"/>\r\n <Column Name=\"personnelTypeName\" DataType=\"System.String\"/>\r\n <Column Name=\"medicalCenterAddress\" DataType=\"System.String\"/>\r\n <Column Name=\"medicalCenterTelphone\" DataType=\"System.String\"/>\r\n <Column Name=\"medicalCenterFax\" DataType=\"System.String\"/>\r\n <Column Name=\"photo\" DataType=\"System.String\"/>\r\n <Column Name=\"medicalStartDate\" DataType=\"System.String\"/>\r\n <Column Name=\"customerOrgShortName\" DataType=\"System.String\"/>\r\n <Column Name=\"organizationUnitName\" DataType=\"System.String\"/>\r\n </TableDataSource>\r\n <TableDataSource Name=\"guide\" ReferenceName=\"Data.guide\" DataType=\"System.Int32\" Enabled=\"true\">\r\n <Column Name=\"guideName\" DataType=\"System.String\"/>\r\n <Column Name=\"displayOrder\" DataType=\"System.Int64\"/>\r\n <Column Name=\"asbitemCount\" DataType=\"System.Int64\"/>\r\n </TableDataSource>\r\n <TableDataSource Name=\"asbitem\" ReferenceName=\"Data.asbitem\" DataType=\"System.Int32\" Enabled=\"true\">\r\n <Column Name=\"asbitemName\" DataType=\"System.String\"/>\r\n <Column Name=\"asbitemGuide\" DataType=\"System.String\"/>\r\n <Column Name=\"displayOrder\" DataType=\"System.Int64\"/>\r\n <Column Name=\"rpt_guideName\" DataType=\"System.String\"/>\r\n <Column Name=\"rpt_GroupOrder\" DataType=\"System.Int64\"/>\r\n <Column Name=\"rpt_asbitemCount\" DataType=\"System.Int64\"/>\r\n </TableDataSource>\r\n <TableDataSource Name=\"pic\" ReferenceName=\"Data.pic\" DataType=\"System.Int32\" Enabled=\"true\">\r\n <Column Name=\"photo\" DataType=\"System.String\"/>\r\n <Column Name=\"firstPage\" DataType=\"System.String\"/>\r\n <Column Name=\"pageHeader\" DataType=\"System.String\"/>\r\n <Column Name=\"pageFooter\" DataType=\"System.String\"/>\r\n </TableDataSource>\r\n <Parameter Name=\"printer\" DataType=\"System.String\"/>\r\n <Parameter Name=\"hisLog\" DataType=\"System.String\"/>\r\n </Dictionary>\r\n <ReportPage Name=\"Page1\" RawPaperSize=\"9\" Watermark.Font=\"宋体, 60pt\">\r\n <ReportTitleBand Name=\"ReportTitle1\" Width=\"718.2\" Height=\"285.95\">\r\n <TextObject Name=\"Text1\" Left=\"245.7\" Top=\"9.45\" Width=\"198.45\" Height=\"28.35\" Text=\"体检指引单\" HorzAlign=\"Center\" Font=\"宋体, 20pt, style=Bold\"/>\r\n <TextObject Name=\"Text2\" Left=\"85.05\" Top=\"113.4\" Width=\"94.5\" Height=\"18.9\" Text=\"体检日期:\" HorzAlign=\"Right\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text3\" Left=\"179.55\" Top=\"113.4\" Width=\"94.5\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.medicalStartDate]\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text4\" Left=\"292.95\" Top=\"113.4\" Width=\"94.5\" Height=\"18.9\" Text=\"主导护士:\" HorzAlign=\"Right\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text5\" Left=\"387.45\" Top=\"113.4\" Width=\"94.5\" Height=\"18.9\" Border.Lines=\"Bottom\" HorzAlign=\"Right\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text6\" Left=\"8.45\" Top=\"160.65\" Width=\"56.7\" Height=\"18.9\" Text=\"姓名:\" HorzAlign=\"Right\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text7\" Left=\"56.15\" Top=\"160.65\" Width=\"66.15\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.patientName]\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text8\" Left=\"103.95\" Top=\"160.65\" Width=\"56.7\" Height=\"18.9\" Text=\"性别:\" HorzAlign=\"Right\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text9\" Left=\"151.2\" Top=\"160.65\" Width=\"37.8\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.sexName]\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text10\" Left=\"170.1\" Top=\"160.65\" Width=\"56.7\" Height=\"18.9\" Text=\"年龄:\" HorzAlign=\"Right\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text11\" Left=\"217.35\" Top=\"160.65\" Width=\"37.8\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.age]\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text12\" Left=\"245.7\" Top=\"160.65\" Width=\"85.05\" Height=\"18.9\" Text=\"身份证号:\" HorzAlign=\"Right\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text13\" Left=\"321.3\" Top=\"160.65\" Width=\"132.3\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.idNo]\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text14\" Left=\"453.15\" Top=\"160.65\" Width=\"56.7\" Height=\"18.9\" Text=\"电话:\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text15\" Left=\"490.95\" Top=\"160.65\" Width=\"94.5\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.mobileTelephone]\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text16\" Left=\"11.45\" Top=\"189\" Width=\"66.15\" Height=\"18.9\" Text=\"档案号:\" HorzAlign=\"Right\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text17\" Left=\"66.15\" Top=\"189\" Width=\"94.5\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.patientNo]\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text18\" Left=\"160.65\" Top=\"189\" Width=\"85.05\" Height=\"18.9\" Text=\"体检次数:\" HorzAlign=\"Right\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text19\" Left=\"236.25\" Top=\"189\" Width=\"18.9\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.medicalTimes]\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text20\" Left=\"255.15\" Top=\"189\" Width=\"66.15\" Height=\"18.9\" Text=\"工卡号:\" HorzAlign=\"Right\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text21\" Left=\"311.85\" Top=\"189\" Width=\"94.5\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.jobCardNo]\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text22\" Left=\"406.35\" Top=\"189\" Width=\"85.05\" Height=\"18.9\" Text=\"体检卡号:\" HorzAlign=\"Right\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text23\" Left=\"481.95\" Top=\"189\" Width=\"103.95\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.medicalCardNo]\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text24\" Left=\"8.45\" Top=\"217.35\" Width=\"56.7\" Height=\"18.9\" Text=\"单位:\" HorzAlign=\"Right\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text25\" Left=\"56.7\" Top=\"217.35\" Width=\"179.55\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.customerOrgName]\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text26\" Left=\"236.25\" Top=\"217.35\" Width=\"56.7\" Height=\"18.9\" Text=\"部门:\" HorzAlign=\"Right\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text27\" Left=\"283.5\" Top=\"217.35\" Width=\"94.5\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.departmentName]\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text28\" Left=\"378\" Top=\"217.35\" Width=\"85.05\" Height=\"18.9\" Text=\"项目组别:\" HorzAlign=\"Right\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text29\" Left=\"453.6\" Top=\"217.35\" Width=\"94.5\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.customerOrgGroupName]\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text30\" Left=\"544.65\" Top=\"217.35\" Width=\"85.05\" Height=\"18.9\" Text=\"人员类别:\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text31\" Left=\"614.25\" Top=\"217.35\" Width=\"94.5\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.personnelTypeName]\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text32\" Left=\"9.45\" Top=\"248.15\" Width=\"37.8\" Height=\"37.8\" Border.Lines=\"Top\" Text=\"温馨提示\" VertAlign=\"Center\" Font=\"宋体, 10pt, style=Bold\"/>\r\n <TextObject Name=\"Text33\" Left=\"47.25\" Top=\"248.15\" Width=\"264.6\" Height=\"18.9\" Border.Lines=\"Top\" Text=\"1、采血后请按压5分钟\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text34\" Left=\"311.85\" Top=\"248.15\" Width=\"396.9\" Height=\"18.9\" Border.Lines=\"Top\" Text=\"3、同意妇科检查签字确认(已婚: 未婚: )\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text35\" Left=\"47.25\" Top=\"267.05\" Width=\"264.6\" Height=\"18.9\" Text=\"2、准备生育者和已怀孕者请勿X光检查\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text36\" Left=\"311.85\" Top=\"267.05\" Width=\"396.9\" Height=\"18.9\" Text=\"4、拒检项目请您在检查项目前签字确认\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <PictureObject Name=\"Picture1\" Left=\"557.55\" Top=\"-5\" Width=\"122.85\" Height=\"113.4\" DataColumn=\"pinfo.photo\" SizeMode=\"StretchImage\"/>\r\n <TextObject Name=\"Text75\" Left=\"311.85\" Top=\"66.15\" Width=\"236.25\" Height=\"18.9\" Text=\"[pinfo.customerOrgShortName]\" HorzAlign=\"Center\" VertAlign=\"Center\" Font=\"宋体, 14pt, style=Bold\"/>\r\n <PictureObject Name=\"Picture2\" Left=\"28.35\" Top=\"9.45\" Width=\"75.6\" Height=\"75.6\" DataColumn=\"pic.photo\" SizeMode=\"StretchImage\"/>\r\n <BarcodeObject Name=\"Barcode1\" Left=\"557.55\" Top=\"113.4\" Width=\"122.9\" Height=\"28.35\" AutoSize=\"false\" Text=\"[pinfo.patientRegisterNo]\" ShowText=\"false\" AllowExpressions=\"true\" Barcode=\"Code128\" Barcode.AutoEncode=\"true\"/>\r\n <TextObject Name=\"Text76\" Left=\"557.55\" Top=\"141.75\" Width=\"122.85\" Height=\"18.9\" Text=\"[pinfo.patientRegisterNo]\" HorzAlign=\"Center\" Font=\"宋体, 9pt\"/>\r\n </ReportTitleBand>\r\n <GroupHeaderBand Name=\"GroupHeader1\" Top=\"289.95\" Width=\"718.2\" Height=\"28.35\" Condition=\"[asbitem.rpt_GroupOrder]\">\r\n <TextObject Name=\"Text39\" Left=\"9.45\" Top=\"9.45\" Width=\"236.25\" Height=\"18.9\" Text=\"[asbitem.rpt_guideName]\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text40\" Left=\"245.7\" Top=\"9.45\" Width=\"94.5\" Height=\"18.9\" Text=\"[asbitem.rpt_asbitemCount]项\" Font=\"宋体, 9pt\"/>\r\n <TextObject Name=\"Text41\" Left=\"340.2\" Top=\"9.45\" Width=\"94.5\" Height=\"18.9\" Text=\"检查人\" HorzAlign=\"Center\" Font=\"宋体, 9pt\"/>\r\n <TextObject Name=\"Text42\" Left=\"442.7\" Top=\"9.45\" Width=\"94.5\" Height=\"18.9\" Text=\"输单人\" HorzAlign=\"Center\" Font=\"宋体, 9pt\"/>\r\n <TextObject Name=\"Text43\" Left=\"548.1\" Top=\"9.45\" Width=\"160.65\" Height=\"18.9\" Text=\"提示信息\" HorzAlign=\"Center\" Font=\"宋体, 9pt\"/>\r\n <LineObject Name=\"Line1\" Left=\"9.45\" Width=\"699.3\"/>\r\n <DataBand Name=\"Data1\" Top=\"322.3\" Width=\"718.2\" Height=\"28.35\" DataSource=\"asbitem\">\r\n <TextObject Name=\"Text38\" Left=\"9.45\" Top=\"5.45\" Width=\"330.75\" Height=\"18.9\" Text=\"[asbitem.asbitemName]\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text44\" Left=\"340.2\" Top=\"6\" Width=\"94.5\" Height=\"18.9\" Border.Lines=\"Bottom\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text45\" Left=\"442.7\" Top=\"6.45\" Width=\"94.5\" Height=\"18.9\" Border.Lines=\"Bottom\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text46\" Left=\"548.1\" Top=\"7.45\" Width=\"160.65\" Height=\"18.9\" Text=\"[asbitem.asbitemGuide]\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n </DataBand>\r\n <DataFooterBand Name=\"DataFooter1\" Top=\"354.65\" Width=\"718.2\" Height=\"26.9\">\r\n <TextObject Name=\"Text47\" Left=\"500.85\" Top=\"6\" Width=\"94.5\" Height=\"18.9\" Text=\"总检医生:\" HorzAlign=\"Center\" Font=\"宋体, 9pt\"/>\r\n <TextObject Name=\"Text48\" Left=\"576.45\" Top=\"6\" Width=\"132.3\" Height=\"18.9\" Border.Lines=\"Bottom\" HorzAlign=\"Center\" Font=\"宋体, 9pt\"/>\r\n </DataFooterBand>\r\n </GroupHeaderBand>\r\n <PageFooterBand Name=\"PageFooter1\" Top=\"385.55\" Width=\"718.2\" Height=\"122.85\">\r\n <TextObject Name=\"Text49\" Left=\"9.45\" Width=\"179.55\" Height=\"18.9\" Text=\"祝您身体健康\" HorzAlign=\"Center\" VertAlign=\"Center\" Font=\"宋体, 10pt, style=Bold\"/>\r\n <TextObject Name=\"Text50\" Left=\"500.85\" Width=\"94.5\" Height=\"18.9\" Text=\"打印日期:\" HorzAlign=\"Center\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text51\" Left=\"576.45\" Width=\"141.75\" Height=\"18.9\" Text=\"[Date]\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text52\" Left=\"9.45\" Top=\"28.35\" Width=\"132.3\" Height=\"18.9\" Text=\"体检报告\" HorzAlign=\"Right\" VertAlign=\"Center\" Font=\"宋体, 11pt, style=Bold\"/>\r\n <TextObject Name=\"Text53\" Left=\"9.45\" Top=\"66.15\" Width=\"132.3\" Height=\"18.9\" Text=\"领取凭条\" HorzAlign=\"Right\" VertAlign=\"Center\" Font=\"宋体, 11pt, style=Bold\"/>\r\n <TextObject Name=\"Text54\" Left=\"9.45\" Top=\"94.5\" Width=\"179.55\" Height=\"18.9\" Text=\"[pinfo.organizationUnitName]\" VertAlign=\"Center\" Font=\"宋体, 10pt, style=Bold\"/>\r\n <LineObject Name=\"Line3\" Left=\"9.45\" Top=\"113.4\" Width=\"689.85\"/>\r\n <LineObject Name=\"Line4\" Left=\"9.45\" Top=\"18.9\" Width=\"689.85\"/>\r\n <LineObject Name=\"Line5\" Left=\"189\" Top=\"18.9\" Height=\"94.5\"/>\r\n <TextObject Name=\"Text55\" Left=\"198.45\" Top=\"28.35\" Width=\"66.15\" Height=\"18.9\" Text=\"条码号:\" HorzAlign=\"Right\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text56\" Left=\"255.15\" Top=\"28.35\" Width=\"94.5\" Height=\"18.9\" Text=\"[pinfo.patientRegisterNo]\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text57\" Left=\"349.65\" Top=\"28.35\" Width=\"56.7\" Height=\"18.9\" Text=\"姓名:\" HorzAlign=\"Right\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text58\" Left=\"397.35\" Top=\"28.35\" Width=\"66.15\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.patientName]\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text59\" Left=\"445.15\" Top=\"28.35\" Width=\"56.7\" Height=\"18.9\" Text=\"性别:\" HorzAlign=\"Right\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text60\" Left=\"511.3\" Top=\"28.35\" Width=\"56.7\" Height=\"18.9\" Text=\"年龄:\" HorzAlign=\"Right\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text61\" Left=\"491.4\" Top=\"28.35\" Width=\"37.8\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.sexName]\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text62\" Left=\"557.55\" Top=\"28.35\" Width=\"37.8\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.age]\" VertAlign=\"Center\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text63\" Left=\"198.45\" Top=\"48.7\" Width=\"85.05\" Height=\"18.9\" Text=\"工作单位:\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text64\" Left=\"265.6\" Top=\"48.7\" Width=\"179.55\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.customerOrgName]\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text65\" Left=\"444.15\" Top=\"48.7\" Width=\"94.5\" Height=\"18.9\" Text=\"体检日期:\" HorzAlign=\"Right\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text66\" Left=\"538.65\" Top=\"48.7\" Width=\"94.5\" Height=\"18.9\" Border.Lines=\"Bottom\" HorzAlign=\"Right\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text67\" Left=\"198.45\" Top=\"69.6\" Width=\"94.5\" Height=\"18.9\" Text=\"体检地址:\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text68\" Left=\"264.6\" Top=\"69.6\" Width=\"368.55\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.medicalCenterAddress]\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text69\" Left=\"198.45\" Top=\"90.05\" Width=\"94.5\" Height=\"18.9\" Text=\"查询电话:\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text70\" Left=\"264.6\" Top=\"90.05\" Width=\"151.2\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.medicalCenterTelphone]\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text71\" Left=\"444.15\" Top=\"90.05\" Width=\"94.5\" Height=\"18.9\" Text=\"传真:\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text72\" Left=\"481.95\" Top=\"90.05\" Width=\"151.2\" Height=\"18.9\" Border.Lines=\"Bottom\" Text=\"[pinfo.medicalCenterTelphone]\" VertAlign=\"Bottom\" Font=\"宋体, 10pt\"/>\r\n <TextObject Name=\"Text73\" Left=\"387.45\" Width=\"66.15\" Height=\"18.9\" Text=\"打印人:\" Font=\"宋体, 9pt\"/>\r\n <TextObject Name=\"Text74\" Left=\"434.7\" Width=\"56.7\" Height=\"18.9\" Text=\"[printer]\" Font=\"宋体, 9pt\"/>\r\n </PageFooterBand>\r\n </ReportPage>\r\n</Report>\r\n","dataSetJson":"{\"pinfo\":[{\"patientRegisterId\":\"3a0c7f6e-3ff1-fef6-c568-6f541aabe87a\",\"patientRegisterNo\":\"202307190001\",\"patientName\":\"李晓阳 7\",\"sexName\":\"未知\",\"age\":46,\"photo\":\"http://140.143.162.39:9529/UpLoad/3a0c7f6e-3ff1-fef6-c568-6f541aabe87a.png\",\"medicalStartDate\":\"2023-07-25\",\"idNo\":\"\",\"mobileTelephone\":\"13800138000\",\"patientNo\":\"6\",\"medicalTimes\":1,\"jobCardNo\":\"\",\"medicalCardNo\":\"\",\"customerOrgName\":\"个人体检\",\"departmentName\":\"个人体检\",\"customerOrgGroupName\":null,\"medicalPackageName\":null,\"personnelTypeName\":null,\"medicalCenterAddress\":\"\",\"medicalCenterTelphone\":\"\",\"medicalCenterFax\":\"\",\"customerOrgShortName\":\"XXXXdanwei\",\"organizationUnitName\":null}],\"guide\":[{\"guideName\":\"检验项目\",\"displayOrder\":1,\"asbitemCount\":1},{\"guideName\":\"一般检查\",\"displayOrder\":2,\"asbitemCount\":2},{\"guideName\":\"功能检查\",\"displayOrder\":3,\"asbitemCount\":2}],\"asbitem\":[{\"rpt_guideName\":\"检验项目\",\"asbitemName\":\"血常规\",\"asbitemGuide\":\"1号楼2层采血窗口\",\"displayOrder\":30,\"rpt_GroupOrder\":1,\"rpt_asbitemCount\":1},{\"rpt_guideName\":\"一般检查\",\"asbitemName\":\"血压\",\"asbitemGuide\":\"1号楼2-202\",\"displayOrder\":6,\"rpt_GroupOrder\":2,\"rpt_asbitemCount\":2},{\"rpt_guideName\":\"一般检查\",\"asbitemName\":\"身高体重\",\"asbitemGuide\":\"1号楼2-201\",\"displayOrder\":22,\"rpt_GroupOrder\":2,\"rpt_asbitemCount\":2},{\"rpt_guideName\":\"功能检查\",\"asbitemName\":\"腰椎正位片\",\"asbitemGuide\":\"1号楼3层放射科\",\"displayOrder\":15,\"rpt_GroupOrder\":3,\"rpt_asbitemCount\":2},{\"rpt_guideName\":\"功能检查\",\"asbitemName\":\"胸部正位片\",\"asbitemGuide\":\"1号楼3层放射科\",\"displayOrder\":17,\"rpt_GroupOrder\":3,\"rpt_asbitemCount\":2}],\"pic\":[{\"photo\":\"http://140.143.162.39:8081/UpLoad/3a0c7f6e-3ff1-fef6-c568-6f541aabe87a.png\",\"firstPage\":null,\"pageHeader\":null,\"pageFooter\":null}]}","isSystem":"N","isSystemed":false,"isDefault":"N","isDefaulted":false,"creatorName":"","lastModifierName":"","lastModificationTime":"2023-10-11T08:48:35.012092","lastModifierId":null,"creationTime":"2023-10-09T17:30:08.002151","creatorId":null,"id":"0011""},""Parameters"":[{""Name"":""printer"",""Value"":""admin""},{""Name"":""hisLog"",""Value"":""pic/hisLog.jpg""},{""Name"":""LTS"",""Value"":""N""}]}";
static void zydjsontest()
{
string str = @"{'ReportCode':'0001','token':'eyJhbGciOiJSUzI1NiIsImtpZCI6IkJDQUMwNkNFQjJFMDIwMDQwRTZGQzI5N0FDNUM4RUZBQzU1NTMzN0YiLCJ4NXQiOiJ2S3dHenJMZ0lBUU9iOEtYckZ5Ty1zVlZNMzgiLCJ0eXAiOiJhdCtqd3QifQ.eyJzdWIiOiIzYTBjNDE4MC0xMDdjLTBjODktYjI1Yi0wYmQzNDY2NmRjZWMiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhZG1pbiIsImVtYWlsIjoiYWRtaW5AYWJwLmlvIiwicm9sZSI6ImFkbWluIiwiZ2l2ZW5fbmFtZSI6ImFkbWluIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjoiRmFsc2UiLCJlbWFpbF92ZXJpZmllZCI6IkZhbHNlIiwidW5pcXVlX25hbWUiOiJhZG1pbiIsIm9pX3Byc3QiOiJQZWlzX0FwcCIsIm9pX2F1X2lkIjoiM2EwZDI3Y2EtNjYzOC1lMmMzLTllMDItMDc4MjRkMjgyMTg0IiwiY2xpZW50X2lkIjoiUGVpc19BcHAiLCJvaV90a25faWQiOiIzYTBkMjdjYS02NjNjLTY5YTYtYjI2ZS00ZmUyM2FhNGZjNWEiLCJhdWQiOiJQZWlzIiwic2NvcGUiOiJQZWlzIG9mZmxpbmVfYWNjZXNzIiwiZXhwIjoxNjkyNTg2OTYxLCJpc3MiOiJodHRwOi8vMTQwLjE0My4xNjIuMzk6OTUyOS8iLCJpYXQiOjE2OTI1Nzk3NjF9.OP7WKVGBn0WlFZcgRoTe6lVDfRFTp3P35dEDlGsMLBqiCnxaBckWtKmWUOboyINbac14YdPgqtSC_cETUy_kYhLTvc6h7WnFGgD70Wql7NtXVIFWBicn4SjIKCKyzO-0QYz08XODqMcw5mgPNPakUcFiUQtFdGkd8VoYkmFWkAVBUAyjIWC0IVnQM8KNPnZnzwLv4O8HwVnWkiiNkYtioDzdo8SN00TM8oJHcArJjPQnNsnRu-xBSAldhTWKQhekLT6-g206dl1Ufq1Ms4pts6fWKFvECVEgrq1hgUi8NPZJLqKq2h6EWEHSU2Z5bv_WoTtF0uIfQTqJIz6xEdNbMA','Parameters':[{'Name':'printer','Value':'admin'},{'Name':'hisLog','Value':'UpLoad/3a0c7f6e-3ff1-fef6-c568-6f541aabe87a.png'}],'ReportTable':{'patientRegisterId':'3a0c7f6e-3ff1-fef6-c568-6f541aabe87a','patientRegisterNo':'202307190001','customerOrgShortName':'XXXXdanwei','patientName':'李晓阳 7','photo':'http://140.143.162.39:9529/UpLoad/3a0c7f6e-3ff1-fef6-c568-6f541aabe87a.png','sexName':'未知','age':46,'medicalStartDate':'2023-07-25','idNo':'','mobileTelephone':'13800138000','patientNo':'6','medicalTimes':1,'jobCardNo':'','medicalCardNo':'','customerOrgName':'个人体检','departmentName':'个人体检','customerOrgGroupName':null,'medicalPackageName':null,'personnelTypeName':null,'medicalCenterAddress':'','medicalCenterTelphone':'','medicalCenterFax':'','detail':[{'guideName':'检验项目','asbitemCount':1,'displayOrder':1,'detail_Name':[{'asbitemName':'血常规','asbitemGuide':'1号楼2层采血窗口','displayOrder':30}]},{'guideName':'一般检查','asbitemCount':2,'displayOrder':2,'detail_Name':[{'asbitemName':'血压','asbitemGuide':'1号楼2-202','displayOrder':6},{'asbitemName':'身高体重','asbitemGuide':'1号楼2-201','displayOrder':22}]},{'guideName':'功能检查','asbitemCount':2,'displayOrder':3,'detail_Name':[{'asbitemName':'腰椎正位片','asbitemGuide':'1号楼3层放射科','displayOrder':15},{'asbitemName':'胸部正位片','asbitemGuide':'1号楼3层放射科','displayOrder':17}]}]}}";
JsonClsEx req = DeserializeObject<JsonClsEx>(str);
string temp = SerializeObject(req.ReportTable);
zyd dj = DeserializeObject<zyd>(temp);
patientinfo pat = new patientinfo()
{
patientRegisterId = dj.patientRegisterId,
patientRegisterNo = dj.patientRegisterNo,
patientName = dj.patientName,
sexName = dj.sexName,
age = dj.age,
photo=dj.photo,
medicalStartDate=dj.medicalStartDate,
idNo = dj.idNo,
mobileTelephone = dj.mobileTelephone,
patientNo = dj.patientNo,
medicalTimes = dj.medicalTimes,
jobCardNo = dj.jobCardNo,
medicalCardNo = dj.medicalCardNo,
customerOrgName = dj.customerOrgName,
departmentName = dj.departmentName,
customerOrgGroupName = dj.customerOrgGroupName,
medicalPackageName = dj.medicalPackageName,
personnelTypeName = dj.personnelTypeName,
medicalCenterAddress = dj.medicalCenterAddress,
medicalCenterTelphone = dj.medicalCenterTelphone,
medicalCenterFax = dj.medicalCenterFax
};
List<patientinfo> plist = new List<patientinfo>();
plist.Add(pat);
List<guide> glist = new List<guide>();
List<asbitem> alist = new List<asbitem>();
foreach (var item in dj.detail)
{
guide ig = new guide()
{
guideName = item.guideName,
displayOrder = item.displayOrder,
asbitemCount=item.asbitemCount
};
foreach (var d1 in item.detail_Name)
{
asbitem asb = new asbitem()
{
rpt_guideName = ig.guideName,
rpt_GroupOrder = ig.displayOrder,
rpt_asbitemCount=ig.asbitemCount,
asbitemGuide = d1.asbitemGuide,
asbitemName = d1.asbitemName,
displayOrder = d1.displayOrder
};
alist.Add(asb);
}
glist.Add(ig);
}
Dictionary<string, string> dict = new Dictionary<string, string>();
if (req.Parameters != null)
{
if (req.Parameters.Count > 0)
{
foreach (var item in req.Parameters)
{
dict.Add(item.Name, item.Value);
}
}
}
string url = "http://140.143.162.39:9529";
List<picInfo> picList = new List<picInfo>();
picInfo pic = new picInfo();
string key = "hisLog";
if (dict.ContainsKey(key) == true)
{
var baseUri = new Uri(url);
var fullUri = new Uri(baseUri, dict[key]);
pic.photo = fullUri.AbsoluteUri;
picList.Add(pic);
}
reqBase dbase = new reqBase()
{
pinfo = plist,
guide = glist,
asbitem = alist,
pic=picList
};
//string a6 = SerializeObject(ex);
string a7 = SerializeObject(dbase);
//JsonClsEx ee = DeserializeObject<JsonClsEx>(a6);
DataSet ds = DeserializeObject<DataSet>(a7);
//FastReport.Report report = new FastReport.Report();
//foreach (var item in dict)
//{
// report.SetParameterValue(item.Key, item.Value);
//}
//report.RegisterData(ds);
//report.Design();
}
//List转DataSet
public static DataSet ConvertToDataSet<T>(IList<T> list)
{
if (list == null || list.Count <= 0)
{
return null;
}
DataSet ds = new DataSet();
DataTable dt = new DataTable(typeof(T).Name);
DataColumn column;
DataRow row;
System.Reflection.PropertyInfo[] myPropertyInfo = typeof(T).GetProperties(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance);
foreach (T t in list)
{
if (t == null)
{
continue;
}
row = dt.NewRow();
for (int i = 0, j = myPropertyInfo.Length; i < j; i++)
{
System.Reflection.PropertyInfo pi = myPropertyInfo[i];
string name = pi.Name;
if (dt.Columns[name] == null)
{
column = new DataColumn(name, pi.PropertyType);
dt.Columns.Add(column);
}
row[name] = pi.GetValue(t, null);
}
dt.Rows.Add(row);
}
ds.Tables.Add(dt);
return ds;
}
private async void button2_Click(object sender, EventArgs e)
{
//await zyd_test.print_test(1);
MessageBox.Show("1");
}
private void button3_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(button3.Text.Trim()))return;
int aa=Convert.ToInt32(textBox1.Text.Trim());
Color col = Color.FromArgb(aa);
int r = col.R;
int g=col.G;
int b=col.B;
Color col1 = Color.FromArgb(r,g,b);
label1.BackColor = col1;
label3.ForeColor = col1;
label2.Text = ColorTranslator.ToHtml(Color.FromArgb(aa));
}
private void button4_Click(object sender, EventArgs e)
{
label2.Text = "";
textBox1.Text = "";
}
string str_req_0001 = @"{""TemplatePath"":""D:\\peis-vue\\extensions\\fastReport\\template\\template.frx"",""DataSetJson"":""{\""pinfo\"":[{\""patientRegisterId\"":\""3a0c7f6e-3ff1-fef6-c568-6f541aabe87a\"",\""patientRegisterNo\"":\""202307190001\"",\""patientName\"":\""李晓阳 7\"",\""sexName\"":\""未知\"",\""age\"":\""46\"",\""photo\"":\""http://140.143.162.39:9529/UpLoad/3a0c7f6e-3ff1-fef6-c568-6f541aabe87a.png\"",\""medicalStartDate\"":\""2023-07-25\"",\""idNo\"":\""\"",\""mobileTelephone\"":\""13800138000\"",\""patientNo\"":\""6\"",\""medicalTimes\"":1,\""jobCardNo\"":\""\"",\""medicalCardNo\"":\""\"",\""customerOrgName\"":\""个人体检\"",\""departmentName\"":\""个人体检\"",\""customerOrgGroupName\"":null,\""medicalPackageName\"":null,\""personnelTypeName\"":null,\""medicalCenterAddress\"":\""\"",\""medicalCenterTelphone\"":\""\"",\""medicalCenterFax\"":\""\"",\""customerOrgShortName\"":\""XXXXdanwei\"",\""organizationUnitName\"":null}],\""guide\"":[{\""guideName\"":\""检验项目\"",\""displayOrder\"":1,\""asbitemCount\"":1},{\""guideName\"":\""一般检查\"",\""displayOrder\"":2,\""asbitemCount\"":2},{\""guideName\"":\""功能检查\"",\""displayOrder\"":3,\""asbitemCount\"":2}],\""asbitem\"":[{\""rpt_guideName\"":\""检验项目\"",\""asbitemName\"":\""血常规\"",\""asbitemGuide\"":\""1号楼2层采血窗口\"",\""displayOrder\"":30,\""rpt_GroupOrder\"":1,\""rpt_asbitemCount\"":1},{\""rpt_guideName\"":\""一般检
查\"",\""asbitemName\"":\""血压\"",\""asbitemGuide\"":\""1号楼2-202\"",\""displayOrder\"":6,\""rpt_GroupOrder\"":2,\""rpt_asbitemCount\"":2},{\""rpt_guideName\"":\""一般检查\"",\""asbitemName\"":\""身高体重\"",\""asbitemGuide\"":\""1号楼2-201\"",\""displayOrder\"":22,\""rpt_GroupOrder\"":2,\""rpt_asbitemCount\"":2},{\""rpt_guideName\"":\""功能检查\"",\""asbitemName\"":\""腰椎正位片\"",\""asbitemGuide\"":\""1号楼3层放射科\"",\""displayOrder\"":15,\""rpt_GroupOrder\"":3,\""rpt_asbitemCount\"":2},{\""rpt_guideName\"":\""功能检查\"",\""asbitemName\"":\""胸部正位片\"",\""asbitemGuide\"":\""1号楼3层放射科\"",\""displayOrder\"":17,\""rpt_GroupOrder\"":3,\""rpt_asbitemCount\"":2}],\""pic\"":[{\""photo\"":\""http://140.143.162.39:8081/UpLoad/3a0c7f6e-3ff1-fef6-c568-6f541aabe87a.png\"",\""firstPage\"":null,\""pageHeader\"":null,\""pageFooter\"":null}]}"",""Parameters"":[{""Name"":""printer"",""Value"":""admin""},{""Name"":""hisLog"",""Value"":""pic/hisLog.jpg""}]}";
string str_req_0002 = @"{""ReportCode"":""0002"",""TemplatePath"":""D:\\peis-vue\\extensions\\fastReport\\template\\0002.frx"",""DataJsonPath"":""D:\\peis-vue\\extensions\\fastReport\\template\\dataJson.json"",""Parameters"":[{""Name"":""printer"",""Value"":""admin""},{""Name"":""hisLog"",""Value"":""pic/hisLog.jpg""}],""WebsiteUrl"":""http://10.1.12.140:8081/"",""ApiUrl"":""http://10.1.12.140:9529/"",""IsUploadPdf"":""N"",""Printer"":""ZDesigner ZD888-203dpi ZPL""}";
string str_req_0003 = @"{""ReportCode"":""0003"",'preViewCanPrint':'Y',""token"":""eyJhbGciOiJSUzI1NiIsImtpZCI6IkJDQUMwNkNFQjJFMDIwMDQwRTZGQzI5N0FDNUM4RUZBQzU1NTMzN0YiLCJ4NXQiOiJ2S3dHenJMZ0lBUU9iOEtYckZ5Ty1zVlZNMzgiLCJ0eXAiOiJhdCtqd3QifQ.eyJzdWIiOiIzYTBjNDE4MC0xMDdjLTBjODktYjI1Yi0wYmQzNDY2NmRjZWMiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhZG1pbiIsImVtYWlsIjoiYWRtaW5AYWJwLmlvIiwicm9sZSI6ImFkbWluIiwiZ2l2ZW5fbmFtZSI6ImFkbWluIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjoiRmFsc2UiLCJlbWFpbF92ZXJpZmllZCI6IkZhbHNlIiwidW5pcXVlX25hbWUiOiJhZG1pbiIsIm9pX3Byc3QiOiJQZWlzX0FwcCIsImlzcyI6Imh0dHA6Ly8xNDAuMTQzLjE2Mi4zOTo5NTI5LyIsIm9pX2F1X2lkIjoiM2EwZDJlZWQtZGZhZC02YzNhLTNmNzItNmZkNjZiMzEyNjNiIiwiY2xpZW50X2lkIjoiUGVpc19BcHAiLCJvaV90a25faWQiOiIzYTBkMmY4Yy05MzU2LWFiZDctMmYyMi03MTMyNDVmZThmNzEiLCJhdWQiOiJQZWlzIiwic2NvcGUiOiJQZWlzIG9mZmxpbmVfYWNjZXNzIiwiZXhwIjoxNjkyNzE3MTI3LCJpYXQiOjE2OTI3MDk5Mjd9.m9lI68Q3Vsn13BJxxKPOVPWUvYeoLnc98WCWHVXquY1cjddJ7i7JIXKQ3n2UnlBU5uhaHuzBMIMMSr20egwUP3NdtYwD7UAVq-ri0be-UB8eugSmdwXkN-9BWu7EbX8ZQCo24fSQTwrqtKgN6U-qY6TglbjAljJOhaY-QwHxDCRQo7hXkLII_XoWx9LcF2rRBwzgPtRfdVPwrN93EaG4e8OUzZ8LLteC4nHKKZivlRvSpTmYTfNMXoAvlRcbtZp2gTJ7IqfoLPhCEO0NnNocdBi7gAisTKkAN-fhVU1GrB2vWRNA3ybN0BWASMv1QZcUNB6B4p5vlpc8_4esriGHBA"",""Parameters"":[{""Name"":""printer"",""Value"":""admin""},{""Name"":""hisLog"",""Value"":""pic/hisLog.jpg""}{
""Name"": ""LTS"",
""Value"": ""N""
}],""ReportTable"":{""lisRequest"":[{""patientName"":""李晓阳 7"",""sexName"":""未知"",""age"":46,""sampleTypeName"":""组织涂片"",""sampleContainerName"":""ewqewq"",""sampleContainerRemark"":null,""lisRequestNo"":""T202308220013"",""patientRegisterNo"":""202307190001"",""asbitemName"":""SGTZ,2,WK""},{""patientName"":""李晓阳 7"",""sexName"":""未知"",""age"":46,""sampleTypeName"":""血清"",""sampleContainerName"":""生化仪"",""sampleContainerRemark"":""紫管 2ml"",""lisRequestNo"":""T202308220014"",""patientRegisterNo"":""202307190001"",""asbitemName"":""肝功,两对半""},{""patientName"":""李晓阳 7"",""sexName"":""未知"",""age"":46,""sampleTypeName"":""血"",""sampleContainerName"":""血球"",""sampleContainerRemark"":null,""lisRequestNo"":""T202308220015"",""patientRegisterNo"":""202307190001"",""asbitemName"":""血常规""}]}}";
string str_req_005 = @"{""ReportCode"":""0005"",""TemplatePath"":""D:\\peis-vue\\extensions\\fastReport\\template\\0005.frx"",""DataJsonPath"":""D:\\peis-vue\\extensions\\fastReport\\template\\dataJson.json"",""Parameters"":[{""Name"":""printer"",""Value"":""admin""},{""Name"":""LTS"",""Value"":""Y""},{""Name"":""hisLog"",""Value"":""pic/hisLog.jpg""},{""Name"":""peisReportFirstPage"",""Value"":""pic/peisReportFirstPage.jpg""},{""Name"":""peisReportPageHeader"",""Value"":""pic/peisReportPageHeader.jpg""},{""Name"":""peisReportPageFooter"",""Value"":""pic/peisReportPageFooter.jpg""}],""WebsiteUrl"":""http://140.143.162.39:8081/"",""IsDev"":true}";
string str_req_0004 = @"{""ReportCode"":""0004"",'preViewCanPrint':'Y',""token"":""eyJhbGciOiJSUzI1NiIsImtpZCI6IkJDQUMwNkNFQjJFMDIwMDQwRTZGQzI5N0FDNUM4RUZBQzU1NTMzN0YiLCJ4NXQiOiJ2S3dHenJMZ0lBUU9iOEtYckZ5Ty1zVlZNMzgiLCJ0eXAiOiJhdCtqd3QifQ.eyJzdWIiOiIzYTBjNDE4MC0xMDdjLTBjODktYjI1Yi0wYmQzNDY2NmRjZWMiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhZG1pbiIsImVtYWlsIjoiYWRtaW5AYWJwLmlvIiwicm9sZSI6ImFkbWluIiwiZ2l2ZW5fbmFtZSI6ImFkbWluIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjoiRmFsc2UiLCJlbWFpbF92ZXJpZmllZCI6IkZhbHNlIiwidW5pcXVlX25hbWUiOiJhZG1pbiIsIm9pX3Byc3QiOiJQZWlzX0FwcCIsImlzcyI6Imh0dHA6Ly8xNDAuMTQzLjE2Mi4zOTo5NTI5LyIsIm9pX2F1X2lkIjoiM2EwZDMyMWItMGE3My01ODhmLTQ2YzAtZWVjODc3M2Q2MGE1IiwiY2xpZW50X2lkIjoiUGVpc19BcHAiLCJvaV90a25faWQiOiIzYTBkMzRlMS1hNzZhLTc5MWQtY2RiZC05MmY3NTY3OTZlYjEiLCJhdWQiOiJQZWlzIiwic2NvcGUiOiJQZWlzIG9mZmxpbmVfYWNjZXNzIiwiZXhwIjoxNjkyODA2NTg5LCJpYXQiOjE2OTI3OTkzODl9.wYrQnZ4vLTlv-jrxbqhNQO-u7odLDGf_empmfHTmNOfQ51r_OMI-EwoK05OtiCy6bBcEQ4Nj_oKWMShmAYhZt1ICtOCvxZ4DAqQhh4gjLH2dQbwvgIZGbpAgpS00RBh7QofH-rAe3B-KScoH75OlcZgPo7qpbk9_xzXdJzUufT64ttUGSNThs0aShk7RSNPARogwuqTsYFWtJ0kp32DzLRPE6AHNrBpyB_e8q0WZyZGVhs3Ryr1FST0GmeTHGsd2F3qNsPsX66pCZWbRV_Ezh2furjO_zTp_1DZMAknbqy0rfsczYnvL7BVbVHztJ55GXSX8XZEL__cr1CmL--zLoA"",""Parameters"":[{""Name"":""printer"",""Value"":""admin""},{""Name"":""hisLog"",""Value"":""pic/hisLog.jpg""},{
""Name"": ""LTS"",
""Value"": ""N""
}],""ReportTable"":{""lisRequest"":[{""patientName"":""李晓阳 7"",""sexName"":""未知"",""age"":46,""checkRequestNo"":""T202308220005"",""patientRegisterNo"":""202307190001"",""asbitemName"":""胸部正位片"",""customerOrgName"":""个人体检"",""departmentName"":""个人体检""},{""patientName"":""李晓阳 7"",""sexName"":""未知"",""age"":46,""checkRequestNo"":""T202308220006"",""patientRegisterNo"":""202307190001"",""asbitemName"":""心电图"",""customerOrgName"":""个人体检"",""departmentName"":""个人体检""}]}}";
string str_req_0007 = @"{""ReportCode"": ""0007"",""token"": ""eyJhbGciOiJSUzI1NiIsImtpZCI6IkJDQUMwNkNFQjJFMDIwMDQwRTZGQzI5N0FDNUM4RUZBQzU1NTMzN0YiLCJ4NXQiOiJ2S3dHenJMZ0lBUU9iOEtYckZ5Ty1zVlZNMzgiLCJ0eXAiOiJhdCtqd3QifQ.eyJzdWIiOiIzYTBjNDE4MC0xMDdjLTBjODktYjI1Yi0wYmQzNDY2NmRjZWMiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhZG1pbiIsImVtYWlsIjoiYWRtaW5AYWJwLmlvIiwicm9sZSI6ImFkbWluIiwiZ2l2ZW5fbmFtZSI6ImFkbWluIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjoiRmFsc2UiLCJlbWFpbF92ZXJpZmllZCI6IkZhbHNlIiwidW5pcXVlX25hbWUiOiJhZG1pbiIsIm9pX3Byc3QiOiJQZWlzX0FwcCIsImlzcyI6Imh0dHA6Ly8xNDAuMTQzLjE2Mi4zOTo5NTI5LyIsIm9pX2F1X2lkIjoiM2EwZDJlZWQtZGZhZC02YzNhLTNmNzItNmZkNjZiMzEyNjNiIiwiY2xpZW50X2lkIjoiUGVpc19BcHAiLCJvaV90a25faWQiOiIzYTBkMmY4Yy05MzU2LWFiZDctMmYyMi03MTMyNDVmZThmNzEiLCJhdWQiOiJQZWlzIiwic2NvcGUiOiJQZWlzIG9mZmxpbmVfYWNjZXNzIiwiZXhwIjoxNjkyNzE3MTI3LCJpYXQiOjE2OTI3MDk5Mjd9.m9lI68Q3Vsn13BJxxKPOVPWUvYeoLnc98WCWHVXquY1cjddJ7i7JIXKQ3n2UnlBU5uhaHuzBMIMMSr20egwUP3NdtYwD7UAVq-ri0be-UB8eugSmdwXkN-9BWu7EbX8ZQCo24fSQTwrqtKgN6U-qY6TglbjAljJOhaY-QwHxDCRQo7hXkLII_XoWx9LcF2rRBwzgPtRfdVPwrN93EaG4e8OUzZ8LLteC4nHKKZivlRvSpTmYTfNMXoAvlRcbtZp2gTJ7IqfoLPhCEO0NnNocdBi7gAisTKkAN-fhVU1GrB2vWRNA3ybN0BWASMv1QZcUNB6B4p5vlpc8_4esriGHBA"",
'preViewCanPrint':'Y',
""Parameters"": [{
""Name"": ""printer"",
""Value"": ""admin""
},
{
""Name"": ""hisLog"",
""Value"": ""pic/hisLog.jpg""
},
],
""ReportTable"": {
""organizationUnitName"": ""长沙三院"",
""CreationTime"": ""8/25/2023"",
""CreatorName"": ""admin"",
""total"": 117,
""totalUpper"": ""(RMB)壹佰壹拾柒圆整"",
""invoiceOrgName"": ""张三"",
""invoiceNo"": ""00010001""
}}";
string url = "http://140.143.162.39:9529";
string websiteurl = "http://140.143.162.39:8081/";
string export = @"{""ReportCode"":""0001"",""TemplatePath"":""c:\\peis-vue\\extensions\\fastReport\\template\\0001.frx"",""DataJsonPath"":""c:\\peis-vue\\extensions\\fastReport\\template\\dataJson.json"",""Parameters"":[{""Name"":""printer"",""Value"":""admin""},{""Name"":""LTS"",""Value"":""Y""},{""Name"":""firstPage"",""Value"":""pic/peisReportFirstPage.jpg""},{""Name"":""pageHeader"",""Value"":""pic/peisReportPageHeader.jpg""},{""Name"":""pageFooter"",""Value"":""pic/peisReportPageFooter.jpg""},{""Name"":""orgSign"",""Value"":""pic/orgSign.png""},{""Name"":""picExtOne"",""Value"":""pic/hisLog.jpg""}],""WebsiteUrl"":""http://140.143.162.39:8081/"",""ApiUrl"":""http://140.143.162.39:9529/"",""FilePath"":""D:\\log\\002968sdffsg.pdf""}";
string print02 = @"{""ReportCode"":""0002"",""TemplatePath"":""C:\\peis-vue\\extensions\\fastReport\\template\\0002.frx"",""DataJsonPath"":""C:\\peis-vue\\extensions\\fastReport\\template\\dataJson.json"",""Parameters"":[{""Name"":""printer"",""Value"":""admin""},{""Name"":""hisLog"",""Value"":""pic/hisLog.jpg""},{""Name"":""pageFooter"",""Value"":""pic/peisQrCode.jpg""}],""WebsiteUrl"":""http://140.143.162.39:8081/"",""ApiUrl"":""http://140.143.162.39:9529/"",""ImageUrl"":""http://140.143.162.39:9529/"",""Printer"":"""",""IsPrintOption"":""N""}";
string print05 = @"{""ReportCode"":""0005"",""TemplatePath"":""C:\\peis-vue\\extensions\\fastReport\\template\\0005.frx"",""DataJsonPath"":""C:\\peis-vue\\extensions\\fastReport\\template\\dataJson.json"",""Parameters"":[{""Name"":""printer"",""Value"":""admin""},{""Name"":""hisLog"",""Value"":""pic/hisLog.jpg""},{""Name"":""pageFooter"",""Value"":""pic/peisQrCode.jpg""}],""WebsiteUrl"":""http://140.143.162.39:8081/"",""ApiUrl"":""http://140.143.162.39:9529/"",""ImageUrl"":""http://140.143.162.39:9529/"",""Printer"":"""",""IsPrintOption"":""N""}";
private async void button5_Click(object sender, EventArgs e)
{
request req = new request()
{
asMessage = print02,
};
ReportMethods report = new ReportMethods();
var res=await report.Print(req);
MessageBox.Show("11111");
}
private void button6_Click(object sender, EventArgs e)
{
}
}
}