This commit is contained in:
xinyilu 2026-01-30 11:32:14 +08:00
parent 8cce97a58a
commit add3e2416c
55 changed files with 5592 additions and 8672 deletions

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,8 @@
<location path="." allowOverride="false" inheritInChildApplications="false" />
<connectionStrings>
<!--<add name="Conn" connectionString="Data Source=.\sqlserver2019;Initial Catalog=dccdc444;User ID=sa;Password=sa123456" providerName="System.Data.SqlClient"/>-->
<add name="Conn" connectionString="Data Source=DESKTOP-NR1PSJK\MSSQLSERVER2019;Initial Catalog=dccdc5;User ID=sa;Password=123456" providerName="System.Data.SqlClient" />
<!--<add name="Conn" connectionString="Data Source=DESKTOP-NR1PSJK\MSSQLSERVER2019;Initial Catalog=dccdc5;User ID=sa;Password=123456" providerName="System.Data.SqlClient" />-->
<add name="Conn" connectionString="Data Source=.;Initial Catalog=dccdc;User ID=sa;Password=sa123456" providerName="System.Data.SqlClient" />
<!--<add name="Conn" connectionString="Data Source=111.17.199.236,31443;Initial Catalog=dccdc;User ID=oa;Password=Lltyoa@147896325" providerName="System.Data.SqlClient"/>-->
<!--<add name="BDOAConnectionString" connectionString="Data Source=192.168.100.66;Initial Catalog=oa;User ID=oa;Password=tyoa" providerName="System.Data.SqlClient" />
<add name="TJDB" connectionString="Data Source=192.168.100.66;Initial Catalog=dccdc;User ID=oa;Password=tyoa" providerName="System.Data.SqlClient" />-->
@ -18,8 +19,8 @@
<!-- 连接字符串 -->
<!--<add key="SQLConnectionString" value="Data Source=8.131.93.145,11433;Initial Catalog=oa; Persist Security Info=True;User ID=oa;Password=tyoa"/>-->
<!--<add key="SQLConnectionString" value="Data Source=111.17.199.236,31443;Initial Catalog=oa;User ID=oa;Password=Lltyoa@147896325"/>-->
<!--<add key="SQLConnectionString" value="Data Source=.\sqlserver2019;Initial Catalog=oa; Persist Security Info=True;User ID=sa;Password=sa123456"/>-->
<add key="SQLConnectionString" value="Data Source=DESKTOP-NR1PSJK\MSSQLSERVER2019;Initial Catalog=oa; Persist Security Info=True;User ID=sa;Password=123456" />
<add key="SQLConnectionString" value="Data Source=.;Initial Catalog=oa; Persist Security Info=True;User ID=sa;Password=sa123456"/>
<!--<add key="SQLConnectionString" value="Data Source=DESKTOP-NR1PSJK\MSSQLSERVER2019;Initial Catalog=oa; Persist Security Info=True;User ID=sa;Password=123456" />-->
<!--<add key="SQLConnectionString" value="Data Source=.;Initial Catalog=OA;User ID=sa;Password=2010zlf" />-->
<!--<add key="SiteConnectionString" value="Data Source=we.xinelu.cn,21433;Initial Catalog=siteserver;User ID=sa;Password=Xyl_147896325" />-->
<add key="imagesfolder" value="~/UploadFile/" />

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -13,11 +13,11 @@
<add name="TJDB" connectionString="Data Source=192.168.100.66;Initial Catalog=dccdc;User ID=oa;Password=tyoa" providerName="System.Data.SqlClient" />
<add name="LISDB" connectionString="Data Source=192.168.100.66,21433;Initial Catalog=zhongjian;User ID=lis;Password=tylis" providerName="System.Data.SqlClient" />-->
<!--<add name="pacsconn" connectionString="Data Source=192.168.100.67;Initial Catalog = WGGC;User ID=his;Password=tyhis" providerName="System.Data.SqlClient" />-->
<!--<add name="OADB" connectionString="Data Source=.\SQLSERVER2019;Initial Catalog=oa;User ID=sa;Password=sa123456" providerName="System.Data.SqlClient" />-->
<add name="OADB" connectionString="Data Source=DESKTOP-NR1PSJK\MSSQLSERVER2019;Initial Catalog=oa;User ID=sa;Password=123456" providerName="System.Data.SqlClient" />
<add name="OADB" connectionString="Data Source=.;Initial Catalog=oa;User ID=sa;Password=sa123456" providerName="System.Data.SqlClient" />
<!--<add name="OADB" connectionString="Data Source=DESKTOP-NR1PSJK\MSSQLSERVER2019;Initial Catalog=oa;User ID=sa;Password=123456" providerName="System.Data.SqlClient" />-->
<!--<add name="OADB" connectionString="Data Source=111.17.199.236,21443;Initial Catalog=oa;User ID=oa;Password=Lltyoa@147896325" providerName="System.Data.SqlClient" />-->
<!--<add name="TJDB" connectionString="Data Source=.\SQLSERVER2019;Initial Catalog=dccdc444;User ID=sa;Password=sa123456" providerName="System.Data.SqlClient"/>-->
<add name="TJDB" connectionString="Data Source=DESKTOP-NR1PSJK\MSSQLSERVER2019;Initial Catalog=dccdc5;User ID=sa;Password=123456" providerName="System.Data.SqlClient" />
<add name="TJDB" connectionString="Data Source=.;Initial Catalog=dccdc;User ID=sa;Password=sa123456" providerName="System.Data.SqlClient"/>
<!--<add name="TJDB" connectionString="Data Source=DESKTOP-NR1PSJK\MSSQLSERVER2019;Initial Catalog=dccdc5;User ID=sa;Password=123456" providerName="System.Data.SqlClient" />-->
<!--<add name="TJDB" connectionString="Data Source=111.17.199.236,21443;Initial Catalog=dccdc;User ID=oa;Password=Lltyoa@147896325" providerName="System.Data.SqlClient" />-->
<!--<add name="LISDB" connectionString="Data Source=8.131.93.145,21433;Initial Catalog=zhongjian;User ID=lis;Password=tylis" providerName="System.Data.SqlClient" />-->
</connectionStrings>

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" TextQuality="Regular" ReportInfo.Description="Demonstrates how to use the Table object. Notes:&#13;&#10;&#13;&#10;- to set the number of columns and rows, use &quot;ColumnCount&quot; and &quot;RowCount&quot; properties. Also you may add new columns/rows from a column/row context menu;&#13;&#10;&#13;&#10;- to join/split cells, use context menu of the cell;&#13;&#10;&#13;&#10;- to set the column/row autosize, use context menu of the column/row. " ReportInfo.Created="01/17/2008 17:08:04" ReportInfo.Modified="01/24/2024 17:59:04" ReportInfo.CreatorVersion="2016.1.0.0">
<Report ScriptLanguage="CSharp" TextQuality="Regular" ReportInfo.Description="Demonstrates how to use the Table object. Notes:&#13;&#10;&#13;&#10;- to set the number of columns and rows, use &quot;ColumnCount&quot; and &quot;RowCount&quot; properties. Also you may add new columns/rows from a column/row context menu;&#13;&#10;&#13;&#10;- to join/split cells, use context menu of the cell;&#13;&#10;&#13;&#10;- to set the column/row autosize, use context menu of the column/row. " ReportInfo.Created="01/17/2008 17:08:04" ReportInfo.Modified="12/30/2025 14:41:44" ReportInfo.CreatorVersion="2016.1.0.0">
<ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
@ -148,8 +148,8 @@ namespace FastReport
<Style Name="EvenRows" Fill.Color="WhiteSmoke"/>
</Styles>
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlq+rW0RkboK+/8CKGGYUID3ctBV8q9SvKYxl3iiE7vBnh7Tgou0+4WFf3NfmPSvHVFbgAuMkhKi1+dg3SnVy9+79pRZi64OOHjC6MK1u8gcNFgi3jlsydEl1HlIE2kOieySm7C003q2bWQCvM/TyXduJ7G1TcD9tAbCyGQedNyOfh8K1n/4MDcib1JLUIm2PFi"/>
<MsSqlDataConnection Name="Connection1" ConnectionString="rijcmlq+rW0RkboK+/8CKGGYUID3ctBV8q9SvKYxl3iiE7vBnh7Tgou0+4WFf3NfmPSvHVFbgAuMkhKi1+dg3SnVy9+79pRZi64OOHjC6MK1u8gcNFgi3jlsydEl1HlIE2kOieySm7C003q2bWQCvM/TyXduJ7G1TcD9tAbCyGQedNyOfh61hgH2zuxCEoAQkJqoB1H">
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlq+rW0RkboK+/8CKGGYUID3ctBV8q9SvKYxl3iiE7vBnh7Tgou0+4WFf3NfmPSvHVFbgAuMkhKi1+dg3SnVy9+79pRZi64OOHjC6MK1u8gcNFgi3jlsydEl1HlIE2kOieySm7C003q2bWQCvM/TyXduJ7G1TcD9tAbCyGQedNyOfi/vJXKASpOkqidseOz0TJv"/>
<MsSqlDataConnection Name="Connection1" ConnectionString="rijcmlqr2sEgbyd/XFgYBeuRgqcA66LDaMYVE076FbkzpzYNzPoFsGbslzjNdyWoC0o9C9s7Q5DPxJRHTu3YPGTpnS2qJIDkG1lvo7wz9MwXV+bf0mvFz3k1D4madUo/o9vAQPDWQwZnFV84vOoaLefBZpQZER42utXYF7txF7OCibqXj/JlD4DmlzwG0s0YUYLbXgglp2jTgfv2GiKlcqKjL2iEA==">
<TableDataSource Name="Table" Alias="registerOneDt" DataType="System.Int32" Enabled="true" SelectCommand="select '' as t1">
<Column Name="t1" DataType="System.String"/>
</TableDataSource>
@ -290,6 +290,9 @@ namespace FastReport
<TableDataSource Name="Table7" Alias="dtResultData" DataType="System.Int32" Enabled="true" SelectCommand="select '' as t1">
<Column Name="t1" DataType="System.String"/>
</TableDataSource>
<TableDataSource Name="Table27" Alias="dct" DataType="System.Int32" Enabled="true" SelectCommand="select '' as presenter">
<Column Name="presenter" DataType="System.String"/>
</TableDataSource>
</MsSqlDataConnection>
<Relation Name="Table21_Table24" ParentDataSource="Table21" ChildDataSource="Table24" ParentColumns="id" ChildColumns="exam_group_maintain_id" Enabled="true"/>
<Relation Name="Table22_Table25" ParentDataSource="Table22" ChildDataSource="Table25" ParentColumns="id" ChildColumns="exam_group_maintain_id" Enabled="true"/>
@ -428,7 +431,7 @@ namespace FastReport
<TextObject Name="Text105" Left="56.7" Top="472.5" Width="453.6" Height="28.35" Text=" 在岗期间( &#13;&#10;" Font="宋体, 14.25pt"/>
<TextObject Name="Text106" Left="56.7" Top="500.85" Width="453.6" Height="28.35" Text=" 离岗时( &#13;&#10;" Font="宋体, 14.25pt"/>
</DataBand>
<PageFooterBand Name="PageFooter1" Top="1004.93" Width="718.2" Height="37.8">
<PageFooterBand Name="PageFooter1" Top="1005.7" Width="718.2" Height="37.8">
<TextObject Name="Text2" Top="9.45" Width="718.2" Height="18.9" Text="铁营镇卫生院制" HorzAlign="Center" Font="宋体, 14.25pt, style=Bold"/>
</PageFooterBand>
</ReportPage>
@ -478,7 +481,7 @@ namespace FastReport
</TableRow>
</TableObject>
</DataBand>
<DataBand Name="Data6" Top="589.13" Width="718.2" Height="37.8" CanGrow="true" DataSource="Table11">
<DataBand Name="Data6" Top="589.9" Width="718.2" Height="37.8" CanGrow="true" DataSource="Table11">
<TableObject Name="Table3" Left="28.35" Width="671.73" Height="37.8">
<TableColumn Name="Column248" Width="124.56"/>
<TableColumn Name="Column249" Width="152.96"/>
@ -514,7 +517,7 @@ namespace FastReport
<TableCell Name="Cell129" Border.Lines="Left, Top, Bottom" Text="转归" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
</TableRow>
</TableObject>
<DataBand Name="Data25" Top="135.54" Width="718.2" Height="37.8" DataSource="Table13">
<DataBand Name="Data25" Top="136.31" Width="718.2" Height="37.8" DataSource="Table13">
<TableObject Name="Table14" Left="28.35" Width="652.05" Height="37.8" Border.Lines="Bottom">
<TableColumn Name="Column254" Width="130.41"/>
<TableColumn Name="Column255" Width="130.41"/>
@ -530,7 +533,7 @@ namespace FastReport
</TableRow>
</TableObject>
</DataBand>
<DataBand Name="Data22" Top="176.56" Width="718.2" Height="611.29">
<DataBand Name="Data22" Top="178.11" Width="718.2" Height="611.29" DataSource="Table19">
<TableObject Name="Table9" Left="25.11" Top="433.36" Width="652.01" Height="37.8">
<TableColumn Name="Column64" Width="64.96"/>
<TableColumn Name="Column65" Width="83.86"/>
@ -583,13 +586,13 @@ namespace FastReport
<CheckBoxObject Name="CheckBox10" Left="138.21" Top="281.25" Width="27.8" Height="29.4" Expression="IIf([doctorDt.personal].Contains(&quot;白酒&quot;)==true,true,false)"/>
<CheckBoxObject Name="CheckBox11" Left="210.64" Top="283.88" Width="26.35" Height="28.6" Expression="IIf([doctorDt.personal].Contains(&quot;红酒或黄酒&quot;)==true,true,false)"/>
<CheckBoxObject Name="CheckBox12" Left="311.9" Top="280.59" Width="30.24" Height="31.06" Expression="IIf([doctorDt.personal].Contains(&quot;啤酒&quot;)==true,true,false)"/>
<TableObject Name="Table29" Left="621.2" Top="139.95" Width="651.38" Height="37.8" Visible="false">
<TableObject Name="Table29" Left="517.25" Top="130.5" Width="651.38" Height="37.8" Visible="false">
<TableColumn Name="Column291" Visible="false" Width="100.98"/>
<TableColumn Name="Column292" Width="496.85"/>
<TableColumn Name="Column293" Width="53.55"/>
<TableRow Name="Row125" Visible="false" Height="37.8">
<TableCell Name="Cell768" Border.Lines="Bottom" Text="婚姻状况:" VertAlign="Bottom" Font="宋体, 10pt"/>
<TableCell Name="Cell769" Border.Lines="Bottom" Text="[doctorDt.marry_history]" VertAlign="Bottom" Font="宋体, 10pt" ColSpan="2"/>
<TableCell Name="Cell769" Border.Lines="Bottom" VertAlign="Bottom" Font="宋体, 10pt" ColSpan="2"/>
<TableCell Name="Cell770" Font="宋体, 9pt"/>
</TableRow>
</TableObject>
@ -627,7 +630,7 @@ namespace FastReport
<CheckBoxObject Name="CheckBox4" Left="27.33" Top="193.98" Width="18.9" Height="18.9" Expression="IIf([doctorDt.smoke_status].Contains(&quot;不吸烟&quot;)==true,true,false)"/>
<CheckBoxObject Name="CheckBox5" Left="113.72" Top="193.98" Width="18.9" Height="18.9" Expression="IIf([doctorDt.smoke_status].Contains(&quot;偶吸烟&quot;)==true,true,false)"/>
<CheckBoxObject Name="CheckBox6" Left="203.55" Top="193.98" Width="18.9" Height="18.9" Expression="IIf([doctorDt.smoke_status].Contains(&quot;经常吸烟&quot;)==true,true,false)"/>
<TextObject Name="Text115" Left="556.11" Top="139.9" Width="217.35" Height="28.35" Visible="false" Text="婚姻史" VertAlign="Center" Font="宋体, 12pt, style=Bold"/>
<TextObject Name="Text115" Left="367.11" Top="139.9" Width="75.6" Height="28.35" Visible="false" Text="婚姻史" VertAlign="Center" Font="宋体, 12pt, style=Bold"/>
<TextObject Name="Text114" Left="15.66" Top="319.96" Width="217.35" Height="28.35" Text="家族史" VertAlign="Center" Font="宋体, 12pt, style=Bold"/>
<TextObject Name="Text45" Left="15.66" Top="395.56" Width="217.35" Height="28.35" Text="其它" VertAlign="Center" Font="宋体, 12pt, style=Bold"/>
<TextObject Name="Text116" Left="129.07" Top="194.92" Width="70.94" Height="17.01" Text="偶吸烟," Font="宋体, 9pt"/>
@ -1256,7 +1259,7 @@ namespace FastReport
</TableRow>
</TableObject>
<TextObject Name="Text92" Left="28.35" Width="330.75" Height="28.35" Text="电测听" VertAlign="Center" Font="宋体, 10pt, style=Bold"/>
<PictureObject Name="Picture11" Left="103.95" Top="264.6" Width="113.4" Height="49.14" SizeMode="Normal" Padding="0, 5, 0, 0" DataColumn="dct.user"/>
<PictureObject Name="Picture11" Left="103.95" Top="264.6" Width="113.4" Height="49.14" SizeMode="Normal" Padding="0, 5, 0, 0" DataColumn="dct_presenter"/>
</DataBand>
</ReportPage>
</Report>

View File

@ -4,6 +4,7 @@ using cn.xinelu.MedicalCheckup.Client.Common;
using cn.xinelu.MedicalCheckup.Client.Models;
using cn.xinelu.MedicalCheckup.Client.Properties;
using CSTest;
using CYQ.Data;
using FastReport;
using Google.Protobuf.WellKnownTypes;
using NetDimension.NanUI;
@ -16,6 +17,7 @@ using System.Configuration;
using System.Diagnostics;
using System.Diagnostics.Eventing.Reader;
using System.Drawing;
using System.Globalization;
using System.IO;
using System.IO.Ports;
using System.Linq;
@ -316,6 +318,8 @@ namespace cn.xinelu.MedicalCheckup.Client
else
info = ReadInfo_ShenSi(out errmsg);
});
//CYQ.Data.Log.WriteLogToTxt("身份证姓名:"+info.Name);
//Log.WriteLogToTxt("身份证读取信息errmsg" + errmsg);
if (errmsg == "")
return JavaScriptValue.CreateString(Newtonsoft.Json.JsonConvert.SerializeObject(new { state = 1, info, msg = "读身份证成功!" }));
else
@ -474,16 +478,29 @@ namespace cn.xinelu.MedicalCheckup.Client
{
IDCardInfo info = new IDCardInfo();
//CYQ.Data.Log.WriteLogToTxt("开始连接读卡器");
bool bool_Init = false;
for (int m = 1001; m <= 1016; m++)
try
{
int i = extend_100UC.CVR_InitComm(m);
if (i == 1)
for (int m = 1001; m <= 1016; m++)
{
bool_Init = true;
break;
int i = extend_100UC.CVR_InitComm(m);
if (i == 1)
{
bool_Init = true;
//CYQ.Data.Log.WriteLogToTxt("读卡器连接情况,端口:" + i.ToString() + ";是否成功:" + bool_Init.ToString());
break;
}
}
}
catch (Exception ex)
{
Log.WriteLogToTxt("读卡器状态:"+ex.ToString());
}
//初始化链接
if (!bool_Init)
{

View File

@ -2241,10 +2241,18 @@ namespace cn.xinelu.MedicalCheckup.Client
if (lx == "预览")
{
ReportPrintPreview rpp = new ReportPrintPreview();
rpp.setReport(re);
rpp.ShowDialog();
try
{
ReportPrintPreview rpp = new ReportPrintPreview();
rpp.setReport(re);
rpp.ShowDialog();
}
catch (Exception ex)
{
throw;
}
return;
}
if (lx == "下载")