健康问卷模块和一些修复

1.新增健康问卷模块
2.读取Excel文件方法支持公式
3.允许创建重复的人员信息
dhzzyy
LiJiaWen 1 month ago
parent da584fff1a
commit f7dd78b4dc
  1. 4
      PEIS/App.config
  2. 4
      PEIS/Entity/ExamReport.cs
  3. 77
      PEIS/Entity/HealthQuestionnaire.cs
  4. 1
      PEIS/Model/Enrollment/EnrollmentPatientModel.cs
  5. 75
      PEIS/Model/Exam/HealthQuestionnaireModel.cs
  6. 44
      PEIS/Model/Exam/HealthQuestionnaireReportModel.cs
  7. 14
      PEIS/PEIS.csproj
  8. 34
      PEIS/ReportFiles/Dhzzyy/HealthQuestionnaire.frx
  9. 188
      PEIS/ReportFiles/PeopleCount.frx
  10. 5
      PEIS/Utils/DAOHelp.cs
  11. 35
      PEIS/Utils/ExcelHelper.cs
  12. 8
      PEIS/Utils/ObjectData.cs
  13. 59
      PEIS/Utils/ReportHelper.cs
  14. 14
      PEIS/View/Base/NewPersonForm.cs
  15. 117
      PEIS/View/Exam/HealthQuestionnaireForm.Designer.cs
  16. 527
      PEIS/View/Exam/HealthQuestionnaireForm.cs
  17. 120
      PEIS/View/Exam/HealthQuestionnaireForm.resx
  18. 22
      PEIS/View/Exam/PartForm.Designer.cs
  19. 22
      PEIS/View/Exam/PartForm.cs
  20. 52
      PEIS/View/Exam/TotalForm.Designer.cs
  21. 4
      PEIS/View/Exam/TotalForm.cs
  22. 114
      PEIS/View/MainForm.Designer.cs
  23. 270
      PEIS/View/Setting/FeeItemForm.Designer.cs

@ -9,9 +9,9 @@
</appSettings>
<connectionStrings>
<!--公司内网 192.168.12.188-->
<add name="ConnString" connectionString="10C598E364BCAFCFDC6960B18CB026C75BD46245729DFD1D3D78E221B3E0300765B697A8C044694AA8A0575480464D83BBFC4445FA39D2B9C1CA21CD35ACFCC5B3BF8E10022ADBFBF9EF84CC3D425C90"/>
<!--<add name="ConnString" connectionString="10C598E364BCAFCFDC6960B18CB026C75BD46245729DFD1D3D78E221B3E0300765B697A8C044694AA8A0575480464D83BBFC4445FA39D2B9C1CA21CD35ACFCC5B3BF8E10022ADBFBF9EF84CC3D425C90"/>-->
<!--德宏中医院 200.200.200.71-->
<!--<add name="ConnString" connectionString="10C598E364BCAFCF71617738597417B368D095FA1A37D76CC4755C411E5B6E792E0D4950863434F9B242AA9F134426A27810AC34D6EDC4F6ABFC4BE6027BB990824DB7092BFDA15709314FEBC2C3C9E312752DFBDF33BC1BF3C0FC84EAA83A4F"/>-->
<add name="ConnString" connectionString="10C598E364BCAFCF71617738597417B368D095FA1A37D76CC4755C411E5B6E792E0D4950863434F9B242AA9F134426A27810AC34D6EDC4F6ABFC4BE6027BB990824DB7092BFDA15709314FEBC2C3C9E312752DFBDF33BC1BF3C0FC84EAA83A4F"/>
<!--芒市妇幼 192.168.11.5 -->
<!--<add name="ConnString" connectionString="10C598E364BCAFCFDC6960B18CB026C71974C5748654F280FDC48E754851202242B4E7B1AA07112A874114ABFCB682AC3D64541EBBF807FEB54E514CC3815F4A0521AC62245D6E0B29E34ADCAE07492C51045002E903C53C8DC45FF6FC4A547A"/>-->
<!--德宏妇幼 192.168.1.37-->

@ -9,7 +9,7 @@ namespace PEIS.Entity
/// </summary>
public partial class ExamReport : ObjectData
{
public override String TableName => "Exam_Report";
public override String TableName => "Exam_Report";
public Int64? EID { get; set; }
public String Creator { get; set; }
@ -30,7 +30,7 @@ namespace PEIS.Entity
Creator = Global.currentUser.Name;
}
public override bool Save()
public override bool Save(bool _ = false)
{
System.IO.File.WriteAllBytes("PEIS_Report.pdf", this.Report);
return DAOHelp.Execute(

@ -0,0 +1,77 @@
#region CopyRight
/****************************************************************
* ProjectPEIS
* Author
* CLR Version4.0.30319.42000
* CreateTime2023-05-01 14:41:54
* Versionv2.0
*
* Description
*
* History
*
*****************************************************************
* Copyright @ 2023 All rights reserved
*****************************************************************/
#endregion CopyRight
using System;
using System.Collections.Generic;
using PEIS.Utils;
using Newtonsoft.Json;
namespace PEIS.Entity
{
public class HealthQuestion
{
public string Id { get; set; }
public string Text { get; set; }
public string Type { get; set; }
public List<string> Options { get; set; }
public bool IsRequired { get; set; }
public string UserInput { get; set; }
}
public class HealthQuestionnaire : ObjectData
{
public override string TableName => "Exam_HealthQuestionnaire";
public long? EID { get; set; }
public string QuestionnaireJson { get; set; }
public DateTime? CreateTime { get; set; }
public string CreatorCode { get; set; }
public string Creator { get; set; }
public DateTime? UpdateTime { get; set; }
public string UpdaterCode { get; set; }
public string Updater { get; set; }
private List<HealthQuestion> _questions;
[RefFlag(true)]
public List<HealthQuestion> Questions
{
get
{
if (_questions == null && !string.IsNullOrEmpty(QuestionnaireJson))
{
_questions = JsonConvert.DeserializeObject<List<HealthQuestion>>(QuestionnaireJson);
}
return _questions;
}
set
{
_questions = value;
QuestionnaireJson = JsonConvert.SerializeObject(value);
}
}
}
}

@ -83,6 +83,7 @@ namespace PEIS.Model.Enrollment
b.Marriage,
c.DeptName AS GroupName,
a.SignTime,
a.CreateTime,
a.Tel1,
a.SpellCode,
a.Description,

@ -0,0 +1,75 @@
#region CopyRight
/****************************************************************
* ProjectPEIS
* Author
* CLR Version4.0.30319.42000
* CreateTime2023-05-01 14:41:54
* Versionv2.0
*
* Description
*
* History
*
*****************************************************************
* Copyright @ 2023 All rights reserved
*****************************************************************/
#endregion CopyRight
using System;
using System.Collections.Generic;
using System.Linq;
using PEIS.Entity;
using PEIS.Utils;
using Newtonsoft.Json;
namespace PEIS.Model.Exam
{
public class HealthQuestionnaireModel
{
public HealthQuestionnaireModel()
{
}
public List<HealthQuestion> GetActiveTemplate()
{
string sql = $"SELECT * FROM Dict_Config WHERE [Key] = 'HealthQuestionnaireTemplate'";
var configs = DAOHelp.Query<Config>(sql);
if (configs != null && configs.Count > 0)
{
var config = configs[0];
if (!string.IsNullOrEmpty(config.Value))
{
try
{
return JsonConvert.DeserializeObject<List<HealthQuestion>>(config.Value);
}
catch
{
return null;
}
}
}
return null;
}
public HealthQuestionnaire GetQuestionnaireByEId(long eid)
{
string sql = $"SELECT * FROM Exam_HealthQuestionnaire WHERE EID = {eid} ORDER BY CreateTime DESC";
var questionnaires = DAOHelp.Query<HealthQuestionnaire>(sql);
return questionnaires.FirstOrDefault();
}
public bool SaveQuestionnaire(HealthQuestionnaire questionnaire)
{
return questionnaire.SaveOrUpdate();
}
public bool DeleteQuestionnaire(long id)
{
var questionnaire = new HealthQuestionnaire { ID = id };
return questionnaire.Delete();
}
}
}

@ -0,0 +1,44 @@
#region CopyRight
/****************************************************************
* ProjectPEIS
* Author
* CLR Version4.0.30319.42000
* CreateTime2023-05-01 14:41:54
* Versionv2.0
*
* Description
*
* History
*
*****************************************************************
* Copyright @ 2023 All rights reserved
*****************************************************************/
#endregion CopyRight
using System;
using System.Collections.Generic;
using System.Linq;
using PEIS.Entity;
using PEIS.Utils;
using Newtonsoft.Json;
namespace PEIS.Model.Exam
{
public class HealthQuestionnaireReportModel
{
public string QuestionText { get; set; }
public string Answer { get; set; }
}
public class HealthQuestionnaireReportData
{
public string EID { get; set; }
public string PatientName { get; set; }
public string Sex { get; set; }
public string Age { get; set; }
public string CreateTime { get; set; }
public List<HealthQuestionnaireReportModel> Questions { get; set; }
}
}

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\PdfiumViewer.Native.x86.v8-xfa.2018.4.8.256\build\PdfiumViewer.Native.x86.v8-xfa.props" Condition="Exists('..\packages\PdfiumViewer.Native.x86.v8-xfa.2018.4.8.256\build\PdfiumViewer.Native.x86.v8-xfa.props')" />
<Import Project="..\packages\PdfiumViewer.Native.x86_64.v8-xfa.2018.4.8.256\build\PdfiumViewer.Native.x86_64.v8-xfa.props" Condition="Exists('..\packages\PdfiumViewer.Native.x86_64.v8-xfa.2018.4.8.256\build\PdfiumViewer.Native.x86_64.v8-xfa.props')" />
@ -270,6 +270,7 @@
<Compile Include="Entity\ExamConclusion.cs" />
<Compile Include="Entity\ExamPart.cs" />
<Compile Include="Entity\ExamResult.cs" />
<Compile Include="Entity\HealthQuestionnaire.cs" />
<Compile Include="LoginForm.cs">
<SubType>Form</SubType>
</Compile>
@ -319,6 +320,8 @@
<Compile Include="Model\IModel.cs" />
<Compile Include="Model\Setting\RptItemModel.cs" />
<Compile Include="Model\Exam\PartModel.cs" />
<Compile Include="Model\Exam\HealthQuestionnaireModel.cs" />
<Compile Include="Model\Exam\HealthQuestionnaireReportModel.cs" />
<Compile Include="Presenter\TotalPresenter.cs" />
<Compile Include="Presenter\PartPresenter.cs" />
<Compile Include="Presenter\Setting\FeeItemPresenter.cs" />
@ -457,6 +460,12 @@
<Compile Include="View\Exam\PartForm.Designer.cs">
<DependentUpon>PartForm.cs</DependentUpon>
</Compile>
<Compile Include="View\Exam\HealthQuestionnaireForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="View\Exam\HealthQuestionnaireForm.Designer.cs">
<DependentUpon>HealthQuestionnaireForm.cs</DependentUpon>
</Compile>
<Compile Include="View\OperationLog\ILogView.cs" />
<Compile Include="View\OperationLog\LogForm.cs">
<SubType>Form</SubType>
@ -689,6 +698,9 @@
<EmbeddedResource Include="View\Exam\EmploymentHisForm.resx">
<DependentUpon>EmploymentHisForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="View\Exam\HealthQuestionnaireForm.resx">
<DependentUpon>HealthQuestionnaireForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="View\Exam\PartForm.resx">
<DependentUpon>PartForm.cs</DependentUpon>
<SubType>Designer</SubType>

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="04/02/2026 00:00:00" ReportInfo.Modified="04/02/2026 00:00:00">
<Dictionary>
<TableDataSource Name="HealthQuestionnaire" ReferenceName="HealthQuestionnaire">
<Column Name="QuestionText" DataType="System.String"/>
<Column Name="Answer" DataType="System.String"/>
</TableDataSource>
</Dictionary>
<ReportPage Name="Page1" PageWidth="827" PageHeight="1169" LeftMargin="50" RightMargin="50" TopMargin="50" BottomMargin="50" BeforePrintEvent="Page1_BeforePrint">
<ReportTitleBand Name="ReportTitle1" Top="0" Width="727" Height="80">
<TextObject Name="Text1" Left="0" Top="0" Width="727" Height="40" Font="Arial, 20pt, style=Bold" Text="健康问卷" HorzAlign="Center" VertAlign="Center"/>
<TextObject Name="Text2" Left="0" Top="40" Width="727" Height="20" Font="Arial, 12pt" Text="体检号:[EID] 姓名:[PatientName] 性别:[Sex] 年龄:[Age]" HorzAlign="Center" VertAlign="Center"/>
<TextObject Name="Text3" Left="0" Top="60" Width="727" Height="20" Font="Arial, 10pt" Text="填写时间:[CreateTime]" HorzAlign="Center" VertAlign="Center"/>
</ReportTitleBand>
<DataHeaderBand Name="DataHeader1" Top="80" Width="727" Height="30" DataSource="HealthQuestionnaire">
<TextObject Name="Text5" Left="0" Top="0" Width="463" Height="30" Text="问题" HorzAlign="Center" VertAlign="Center" Border.Lines="All"/>
<TextObject Name="Text6" Left="463" Top="0" Width="264" Height="30" Text="答案" HorzAlign="Center" VertAlign="Center" Border.Lines="All"/>
</DataHeaderBand>
<DataBand Name="Data1" Top="110" Width="727" Height="30" DataSource="HealthQuestionnaire" CanGrow="true" CanShrink="true">
<TextObject Name="Text7" Left="0" Top="0" Width="463" Height="30" Text="[HealthQuestionnaire.QuestionText]" HorzAlign="Left" VertAlign="Center" Border.Lines="All" CanGrow="true" CanShrink="true"/>
<TextObject Name="Text8" Left="463" Top="0" Width="264" Height="30" Text="[HealthQuestionnaire.Answer]" HorzAlign="Left" VertAlign="Center" Border.Lines="All" CanGrow="true" CanShrink="true"/>
</DataBand>
<PageFooterBand Name="PageFooter1" Top="1059" Width="727" Height="60">
<TextObject Name="Text9" Left="0" Top="0" Width="727" Height="30" Text="第[Page]页,共[TotalPages]页" HorzAlign="Center" VertAlign="Center"/>
</PageFooterBand>
</ReportPage>
<Script>
<![CDATA[
private void Page1_BeforePrint(object sender, EventArgs e)
{
}
]]>
</Script>
</Report>

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="06/26/2023 17:47:58" ReportInfo.Modified="06/27/2023 15:39:58" ReportInfo.CreatorVersion="2022.1.0.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="06/26/2023 17:47:58" ReportInfo.Modified="08/29/2024 10:27:33" ReportInfo.CreatorVersion="2022.1.0.0">
<ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
@ -22,10 +22,32 @@ namespace FastReport
private void PeopleCount_AfterData(object sender, EventArgs e)
{
DataSourceBase rowData = Report.GetDataSource(&quot;P&quot;);
Cell45.Text = rowData[&quot;FinishTime&quot;] == null ? &quot;否&quot; : &quot;是&quot;;
Cell47.Text = rowData[&quot;CreateTime&quot;] == null ? &quot;&quot; : rowData[&quot;CreateTime&quot;].ToString().Substring(0,16);
Cell49.Text = rowData[&quot;SignTime&quot;] == null ? &quot;&quot; : rowData[&quot;SignTime&quot;].ToString().Substring(0,16);
Cell51.Text = rowData[&quot;Sex&quot;] == null ? &quot;&quot; : rowData[&quot;Sex&quot;].ToString().Equals(&quot;1&quot;) ? &quot;男&quot; : &quot;女&quot;;
if(Cell76.Text.Contains(&quot;签到&quot;)){
Cell87.Text = rowData[&quot;SignTime&quot;] == null ? &quot;&quot; : Convert.ToDateTime(rowData[&quot;SignTime&quot;]).ToString(&quot;yyyy-MM-dd&quot;);
}
if(Cell76.Text.Contains(&quot;登记&quot;)){
Cell87.Text = rowData[&quot;CreateTime&quot;] == null ? &quot;&quot; : Convert.ToDateTime(rowData[&quot;CreateTime&quot;]).ToString(&quot;yyyy-MM-dd&quot;);
}
if(Cell76.Text.Contains(&quot;完结&quot;)){
Cell87.Text = rowData[&quot;FinishTime&quot;] == null ? &quot;&quot; : Convert.ToDateTime(rowData[&quot;FinishTime&quot;]).ToString(&quot;yyyy-MM-dd&quot;);
}
}
private void Text7_AfterData(object sender, EventArgs e)
{
if(Text7.Text.Contains(&quot;签到&quot;)){
Cell76.Text = &quot;签到日期&quot;;
}
if(Text7.Text.Contains(&quot;登记&quot;)){
Cell76.Text = &quot;登记日期&quot;;
}
if(Text7.Text.Contains(&quot;完结&quot;)){
Cell76.Text = &quot;完结日期&quot;;
}
}
}
}
@ -34,107 +56,85 @@ namespace FastReport
<Parameter Name="HospitalName" DataType="System.String"/>
<Parameter Name="DateBetween" DataType="System.String"/>
<Parameter Name="Type" DataType="System.String"/>
<Parameter Name="TotalCount" DataType="System.String"/>
</Dictionary>
<ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" Watermark.Font="宋体, 60pt">
<PageHeaderBand Name="PageHeader1" Width="1047.06" Height="75.6">
<TextObject Name="Text1" Width="1047.06" Height="56.7" Text="体检人次统计表" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 26pt, style=Bold"/>
<ReportPage Name="Page1" RawPaperSize="9" Watermark.Font="宋体, 60pt">
<ColumnHeaderBand Name="ColumnHeader1" Width="718.2" Height="75.6" PrintOn="FirstPage">
<TextObject Name="Text1" Width="718.2" Height="56.7" Text="体检人次统计表" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 26pt, style=Bold"/>
<TextObject Name="Text2" Top="56.7" Width="66.15" Height="18.9" Text="统计单位:" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TextObject Name="Text3" Left="66.15" Top="56.7" Width="179.55" Height="18.9" CanBreak="false" Text="[HospitalName]" VertAlign="Center" WordWrap="false" Font="微软雅黑, 9pt"/>
<TextObject Name="Text4" Left="245.7" Top="56.7" Width="66.15" Height="18.9" Text="统计日期:" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TextObject Name="Text5" Left="311.85" Top="56.7" Width="226.8" Height="18.9" CanBreak="false" Text="[DateBetween]" VertAlign="Center" WordWrap="false" Font="微软雅黑, 9pt"/>
<TextObject Name="Text6" Left="538.65" Top="56.7" Width="66.15" Height="18.9" Text="统计类型:" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TextObject Name="Text7" Left="604.8" Top="56.7" Width="113.4" Height="18.9" CanBreak="false" Text="[Type]" VertAlign="Center" WordWrap="false" Font="微软雅黑, 9pt"/>
</PageHeaderBand>
<DataBand Name="PeopleCount" Top="119.8" Width="1047.06" Height="37.8" CanGrow="true" CanShrink="true" AfterDataEvent="PeopleCount_AfterData">
<TableObject Name="Table2" Width="1047" Height="37.8" CanBreak="false">
<TableColumn Name="Column20" Width="49.63"/>
<TableColumn Name="Column21" Width="59.08"/>
<TableColumn Name="Column22" Width="40.18"/>
<TableColumn Name="Column23" Width="49.63"/>
<TableColumn Name="Column24" Width="77.98"/>
<TableColumn Name="Column25" Width="40.18"/>
<TableColumn Name="Column26" Width="49.63"/>
<TableColumn Name="Column27" Width="78.02"/>
<TableColumn Name="Column28" Width="49.63"/>
<TableColumn Name="Column29" Width="78.02"/>
<TableColumn Name="Column30" Width="49.63"/>
<TableColumn Name="Column31" Width="40.18"/>
<TableColumn Name="Column32" Width="40.18"/>
<TableColumn Name="Column33" Width="40.18"/>
<TableColumn Name="Column34" Width="49.63"/>
<TableColumn Name="Column35" Width="49.63"/>
<TableColumn Name="Column36" Width="49.63"/>
<TableColumn Name="Column37" Width="87.43"/>
<TableColumn Name="Column38" Width="68.53"/>
<TableRow Name="Row2" Height="37.8" AutoSize="true">
<TableCell Name="Cell40" Border.Lines="All" Text="[P.OEID]" VertAlign="Center" Font="微软雅黑, 8pt"/>
<TableCell Name="Cell41" Border.Lines="All" Text="[P.OrgName]" VertAlign="Center" Font="微软雅黑, 8pt"/>
<TableCell Name="Cell42" Border.Lines="All" Text="[P.GroupName]" VertAlign="Center" Font="微软雅黑, 8pt"/>
<TableCell Name="Cell43" Border.Lines="All" Text="[P.ID]" VertAlign="Center" Font="微软雅黑, 8pt"/>
<TableCell Name="Cell44" Border.Lines="All" Text="[P.ExamDate]" VertAlign="Center" Font="微软雅黑, 8pt"/>
<TableCell Name="Cell45" Border.Lines="All" VertAlign="Center" Font="微软雅黑, 8pt"/>
<TableCell Name="Cell46" Border.Lines="All" Text="[P.Creator]" VertAlign="Center" Font="微软雅黑, 8pt"/>
<TableCell Name="Cell47" Border.Lines="All" VertAlign="Center" Font="微软雅黑, 8pt"/>
<TableCell Name="Cell48" Border.Lines="All" Text="[P.Signer]" VertAlign="Center" Font="微软雅黑, 8pt"/>
<TableCell Name="Cell49" Border.Lines="All" VertAlign="Center" Font="微软雅黑, 8pt"/>
<TableCell Name="Cell50" Border.Lines="All" Text="[P.Name]" VertAlign="Center" Font="微软雅黑, 8pt"/>
<TableCell Name="Cell51" Border.Lines="All" VertAlign="Center" Font="微软雅黑, 8pt"/>
<TableCell Name="Cell52" Border.Lines="All" Text="[P.Age][P.AgeClass]" VertAlign="Center" Font="微软雅黑, 8pt"/>
<TableCell Name="Cell53" Border.Lines="All" Text="[P.Marriage]" VertAlign="Center" Font="微软雅黑, 8pt"/>
<TableCell Name="Cell54" Border.Lines="All" Text="[P.Type]" VertAlign="Center" Font="微软雅黑, 8pt"/>
<TableCell Name="Cell55" Border.Lines="All" Text="[P.Education]" VertAlign="Center" Font="微软雅黑, 8pt"/>
<TableCell Name="Cell56" Border.Lines="All" Text="[P.Occupation]" VertAlign="Center" Font="微软雅黑, 8pt"/>
<TableCell Name="Cell57" Border.Lines="All" Text="[P.Tel1]" VertAlign="Center" Font="微软雅黑, 8pt"/>
<TableCell Name="Cell58" Border.Lines="All" Text="[P.Address1]" VertAlign="Center" Font="微软雅黑, 8pt"/>
<TextObject Name="Text7" Left="604.8" Top="56.7" Width="113.4" Height="18.9" AfterDataEvent="Text7_AfterData" CanBreak="false" Text="[Type]" VertAlign="Center" WordWrap="false" Font="微软雅黑, 9pt"/>
</ColumnHeaderBand>
<DataBand Name="PeopleCount" Top="117.4" Width="718.2" Height="37.8" CanGrow="true" CanShrink="true" AfterDataEvent="PeopleCount_AfterData">
<TableObject Name="Table8" Width="718.19" Height="37.8">
<TableColumn Name="Column57" Width="36.96"/>
<TableColumn Name="Column58" Width="65.31"/>
<TableColumn Name="Column59" Width="55.86"/>
<TableColumn Name="Column60" Width="65.3"/>
<TableColumn Name="Column61" Width="55.86"/>
<TableColumn Name="Column62" Width="55.86"/>
<TableColumn Name="Column63" Width="46.4"/>
<TableColumn Name="Column64" Width="36.96"/>
<TableColumn Name="Column65" Width="65.32"/>
<TableColumn Name="Column66" Width="102.06"/>
<TableColumn Name="Column67" Width="75.6"/>
<TableColumn Name="Column69" Width="56.7"/>
<TableRow Name="Row8" Height="37.8">
<TableCell Name="Cell77" Border.Lines="All" Text="[Row#]" Padding="0, 0, 0, 0" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell78" Border.Lines="All" Text="[P.OrgName]" Padding="0, 0, 0, 0" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell79" Border.Lines="All" Text="[P.OEID]" Padding="0, 0, 0, 0" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell80" Border.Lines="All" Text="[P.DeptName]" Padding="0, 0, 0, 0" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell81" Border.Lines="All" Text="[P.ID]" Padding="0, 0, 0, 0" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell82" Border.Lines="All" Text="[P.Name]" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell83" Border.Lines="All" Text="[P.Sex]" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell84" Border.Lines="All" Text="[P.AgeClass]" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell85" Border.Lines="All" Text="[P.Tel1]" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell86" Border.Lines="All" Text="[P.CardNo]" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell87" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell89" Border.Lines="All" Text="[P.Signer]" VertAlign="Center" Font="微软雅黑, 10pt"/>
</TableRow>
</TableObject>
<DataHeaderBand Name="DataHeader1" Top="78.8" Width="1047.06" Height="37.8" RepeatOnEveryPage="true">
<TableObject Name="Table1" Width="1047" Height="37.8">
<TableColumn Name="Column1" Width="49.63"/>
<TableColumn Name="Column2" Width="59.08"/>
<TableColumn Name="Column3" Width="40.18"/>
<TableColumn Name="Column4" Width="49.63"/>
<TableColumn Name="Column5" Width="77.98"/>
<TableColumn Name="Column6" Width="40.18"/>
<TableColumn Name="Column7" Width="49.63"/>
<TableColumn Name="Column8" Width="78.02"/>
<TableColumn Name="Column9" Width="49.63"/>
<TableColumn Name="Column10" Width="78.02"/>
<TableColumn Name="Column11" Width="49.63"/>
<TableColumn Name="Column12" Width="40.18"/>
<TableColumn Name="Column13" Width="40.18"/>
<TableColumn Name="Column14" Width="40.18"/>
<TableColumn Name="Column15" Width="49.63"/>
<TableColumn Name="Column16" Width="49.63"/>
<TableColumn Name="Column17" Width="49.63"/>
<TableColumn Name="Column18" Width="87.43"/>
<TableColumn Name="Column19" Width="68.53"/>
<DataHeaderBand Name="DataHeader1" Top="77.6" Width="718.2" Height="37.8">
<TableObject Name="Table1" Width="718.19" Height="37.8">
<TableColumn Name="Column1" Width="36.96"/>
<TableColumn Name="Column2" Width="65.31"/>
<TableColumn Name="Column3" Width="55.86"/>
<TableColumn Name="Column4" Width="65.3"/>
<TableColumn Name="Column5" Width="55.86"/>
<TableColumn Name="Column6" Width="55.86"/>
<TableColumn Name="Column7" Width="46.4"/>
<TableColumn Name="Column8" Width="36.96"/>
<TableColumn Name="Column9" Width="65.32"/>
<TableColumn Name="Column45" Width="102.06"/>
<TableColumn Name="Column56" Width="75.6"/>
<TableColumn Name="Column68" Width="56.7"/>
<TableRow Name="Row1" Height="37.8">
<TableCell Name="Cell1" Border.Lines="All" Text="团体&#13;&#10;体检号" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TableCell Name="Cell2" Border.Lines="All" Text="团体名称" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TableCell Name="Cell3" Border.Lines="All" Text="分组" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TableCell Name="Cell4" Border.Lines="All" Text="体检号" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TableCell Name="Cell5" Border.Lines="All" Text="体检日期" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TableCell Name="Cell26" Border.Lines="All" Text="是否&#13;&#10;完结" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TableCell Name="Cell27" Border.Lines="All" Text="登记人" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TableCell Name="Cell28" Border.Lines="All" Text="登记日期" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TableCell Name="Cell29" Border.Lines="All" Text="签到人" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TableCell Name="Cell30" Border.Lines="All" Text="签到日期" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TableCell Name="Cell31" Border.Lines="All" Text="体检者" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TableCell Name="Cell32" Border.Lines="All" Text="性别" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TableCell Name="Cell33" Border.Lines="All" Text="年龄" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TableCell Name="Cell34" Border.Lines="All" Text="婚姻&#13;&#10;情况" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TableCell Name="Cell35" Border.Lines="All" Text="体检&#13;&#10;类别" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TableCell Name="Cell36" Border.Lines="All" Text="教育&#13;&#10;程度" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TableCell Name="Cell37" Border.Lines="All" Text="职业" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TableCell Name="Cell38" Border.Lines="All" Text="联系方式" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TableCell Name="Cell39" Border.Lines="All" Text="联系地址" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TableCell Name="Cell1" Border.Lines="All" Text="序号" Padding="0, 0, 0, 0" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell2" Border.Lines="All" Text="团体名称" Padding="0, 0, 0, 0" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell3" Border.Lines="All" Text="团体体检号" Padding="0, 0, 0, 0" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell4" Border.Lines="All" Text="部门" Padding="0, 0, 0, 0" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell5" Border.Lines="All" Text="体检号" Padding="0, 0, 0, 0" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell6" Border.Lines="All" Text="姓名" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell7" Border.Lines="All" Text="性别" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell8" Border.Lines="All" Text="年龄" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell9" Border.Lines="All" Text="联系方式" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell65" Border.Lines="All" Text="证件号" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell76" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell88" Border.Lines="All" Text="发送人" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt"/>
</TableRow>
</TableObject>
</DataHeaderBand>
<DataFooterBand Name="DataFooter1" Top="157.2" Width="718.2" Height="28.35">
<TableObject Name="Table5" Width="718.2" Height="28.35" Fill.Color="InactiveBorder">
<TableColumn Name="Column35" Width="718.2"/>
<TableRow Name="Row5" Height="28.35" AutoSize="true">
<TableCell Name="Cell55" Border.Lines="All" Fill.Color="InactiveBorder" Text="-总计-[TotalCount]人" VertAlign="Center" Font="微软雅黑, 10pt"/>
</TableRow>
</TableObject>
</DataFooterBand>
</DataBand>
<PageFooterBand Name="PageFooter1" Top="160.8" Width="1047.06" Height="37.8">
<TextObject Name="Text8" Width="1047.06" Height="37.8" Text="第[Page#]页,共[TotalPages#]页" HorzAlign="Center" Font="微软雅黑, 10pt"/>
</PageFooterBand>
</ReportPage>
</Report>

@ -147,6 +147,11 @@ namespace PEIS.Utils
sqltext = sqltext + " select @@identity as ID";
DataRowCollection rows = GetDataBySQL(sqltext).Rows;
n = Convert.ToInt32(rows[0][0]);
var prop = obj.GetType().GetProperty("ID");
if (prop != null && prop.CanWrite)
{
prop.SetValue(obj, n, null);
}
}
else
{

@ -106,25 +106,36 @@ namespace PEIS.Utils
}
private static BasePatient ReadRowToBasePatient(IRow dataRow)
{
var sex = dataRow.GetCell(2)?.ToString() ?? "";
return new BasePatient()
{
// A-0-序号,B-1-姓名,C-2-性别,D-3-民族,E-4-婚姻,F-5-身份证号,G-6-住址,H-7-电话,I-8-部门,J-9备注
Name = dataRow.GetCell(1)?.ToString().Replace(" ", "").Trim(),
Contactor1 = dataRow.GetCell(1)?.ToString().Replace(" ", "").Trim(),
Sex = sex.Contains("女") ? "2" : "1",
Nation = dataRow.GetCell(3)?.ToString().Replace(" ", "").Trim(),
Marriage = dataRow.GetCell(4)?.ToString().Replace(" ", "").Trim(),
CardNo = dataRow.GetCell(5)?.ToString().Replace(" ", "").Trim(),
Name = GetCellText(dataRow.GetCell(1)),
Contactor1 = GetCellText(dataRow.GetCell(1)),
Sex = GetCellText(dataRow.GetCell(2)).Contains("女") ? "2" : "1",
Nation = GetCellText(dataRow.GetCell(3)),
Marriage = GetCellText(dataRow.GetCell(4)),
CardNo = GetCellText(dataRow.GetCell(5)),
CardType = "居民身份证",
Address1 = dataRow.GetCell(6)?.ToString().Replace(" ", "").Trim(),
Tel1 = dataRow.GetCell(7)?.ToString().Replace(" ", "").Trim(),
DeptName = dataRow.GetCell(8)?.ToString().Replace(" ", "").Trim(),
Description = dataRow.GetCell(9)?.ToString().Replace(" ", "").Trim(),
SpellCode = PingYinHelper.GetTotalPingYin(dataRow.GetCell(1)?.ToString().Replace(" ", "")).FirstPingYin.Count == 0 ? null : PingYinHelper.GetTotalPingYin(dataRow.GetCell(1)?.ToString().Replace(" ", "")).FirstPingYin[0]
Address1 = GetCellText(dataRow.GetCell(6)),
Tel1 = GetCellText(dataRow.GetCell(7)),
DeptName = GetCellText(dataRow.GetCell(8)),
Description = GetCellText(dataRow.GetCell(9)),
SpellCode = PingYinHelper.GetTotalPingYin(GetCellText(dataRow.GetCell(1))).FirstPingYin.Count == 0 ? null : PingYinHelper.GetTotalPingYin(GetCellText(dataRow.GetCell(1))).FirstPingYin[0]
};
}
private static string GetCellText(ICell cell)
{
if (cell == null) return string.Empty;
switch (cell.CellType)
{
case CellType.Numeric:
return cell.NumericCellValue.ToString();
default:
return cell.StringCellValue.Replace(" ", "").Trim();
}
}
#endregion

@ -45,9 +45,9 @@ namespace PEIS.Utils
}
}
public virtual bool Save()
public virtual bool Save(bool isFillID = false)
{
if (DAOHelp.Save(this) > 0)
if (DAOHelp.Save(this, isFillID) > 0)
{
return true;
}
@ -74,7 +74,7 @@ namespace PEIS.Utils
/// <returns></returns>
public virtual bool SaveOrUpdate()
{
if (ID==0)
if (ID == 0)
{
if (DAOHelp.Save(this) > 0)
{
@ -89,7 +89,7 @@ namespace PEIS.Utils
}
}
return false;
return false;
}
public virtual void GetById()

@ -1,4 +1,4 @@
#region CopyRight
#region CopyRight
/****************************************************************
* ProjectPEIS
@ -29,6 +29,7 @@ using System.Drawing.Imaging;
using FastReport.Export.Pdf;
using PEIS.Model.Exam;
using PEIS.View.Exam;
using System.Web;
namespace PEIS.Utils
{
@ -592,14 +593,48 @@ namespace PEIS.Utils
SetDataSource(ref rpt, lstPacsPhotos.Concat(lstExts.Where(w => w.ReportImg != null).Select(s => new Entity.Report { ReportImage = s.ReportImg })), "I", "PACSImage");
// 科室小结
SetDataSource(ref rpt, lstExamParts, "D", "DeptSummary");
if (combineReport == null)
{
rpt.Prepare(); //准备
var b = rpt.Prepare(); //准备
}
else
{
rpt.Prepare(true); //合并报表
var b = rpt.Prepare(true); //合并报表
}
if (Global._hospital.Name == "德宏州中医医院")
{
// 附加健康问卷报告
var healthQuestionnaire = new HealthQuestionnaireModel().GetQuestionnaireByEId(eid);
if (healthQuestionnaire != null && healthQuestionnaire.Questions != null && healthQuestionnaire.Questions.Count > 0)
{
var healthQuestionnaireReportPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "ReportFiles", "HealthQuestionnaire.frx");
if (File.Exists(healthQuestionnaireReportPath))
{
rpt.Load(healthQuestionnaireReportPath);
// 设置报告参数
rpt.SetParameterValue("HospitalName", Global._hospital.Name);
rpt.SetParameterValue("EID", patient.ID.ToString());
// 转换问卷数据,添加题号
int questionNumber = 1;
var questions = healthQuestionnaire.Questions.Select(q => new PEIS.Model.Exam.HealthQuestionnaireReportModel
{
QuestionText = $"{questionNumber++}. {q.Text}",
Answer = q.UserInput != null ? q.UserInput.ToString() : ""
}).ToList();
// 设置数据源
SetDataSource(ref rpt, questions, "Q", "Questions");
// 附加到主报告
var b = rpt.Prepare(true);
}
}
}
return rpt;
}
@ -725,7 +760,7 @@ namespace PEIS.Utils
// 登记信息
rpt.SetParameterValue("Name", regInfo.Name);
rpt.SetParameterValue("Age", regInfo.Age + regInfo.AgeClass);
rpt.SetParameterValue("Age", (regInfo.Age + regInfo.AgeClass).TrimStart('0'));
rpt.SetParameterValue("Sex",
"男".Equals(regInfo.Sex) ? "男" :
"女".Equals(regInfo.Sex) ? "女" :
@ -742,9 +777,7 @@ namespace PEIS.Utils
rpt.SetParameterValue("BirthDay", regInfo.Birthday?.ToShortDateString());
rpt.SetParameterValue("Address", regInfo.Address1);
rpt.SetParameterValue("HospitalName", Global._hospital?.Name);
rpt.SetParameterValue("Url",
Global.GetWeChatPayUrl() +
Convert.ToBase64String(System.Text.Encoding.Default.GetBytes(regInfo.CardNo)));
rpt.SetParameterValue("Url", string.Format(Global.GetWeChatPayUrl(), Convert.ToBase64String(System.Text.Encoding.Default.GetBytes(regInfo.CardNo)), HttpUtility.UrlEncode(regInfo.CreateTime?.ToString("G"))));
// 收费单
rpt.RegisterData(list, "C");
@ -824,7 +857,7 @@ namespace PEIS.Utils
// 登记信息
rpt.SetParameterValue("Name", regInfo.Name);
rpt.SetParameterValue("Age", regInfo.Age + regInfo.AgeClass);
rpt.SetParameterValue("Age", (regInfo.Age + regInfo.AgeClass).TrimStart('0'));
rpt.SetParameterValue("Sex",
"男".Equals(regInfo.Sex) ? "男" :
"女".Equals(regInfo.Sex) ? "女" :
@ -840,9 +873,7 @@ namespace PEIS.Utils
rpt.SetParameterValue("CardNo", regInfo.CardNo);
rpt.SetParameterValue("HospitalName", Global._hospital?.Name);
rpt.SetParameterValue("Remark", regInfo.Description);
rpt.SetParameterValue("Url",
Global.GetWeChatPayUrl() +
Convert.ToBase64String(System.Text.Encoding.Default.GetBytes(regInfo.CardNo)));
rpt.SetParameterValue("Url", string.Format(Global.GetWeChatPayUrl(), Convert.ToBase64String(System.Text.Encoding.Default.GetBytes(regInfo.CardNo)), HttpUtility.UrlEncode(regInfo.CreateTime?.ToString("G"))));
if (string.IsNullOrEmpty(regInfo.Photo))
{
@ -1042,7 +1073,7 @@ namespace PEIS.Utils
/// 登记信息
rpt.SetParameterValue("Name", patient.Name);
rpt.SetParameterValue("Age", patient.Age + patient.AgeClass);
rpt.SetParameterValue("Age", (patient.Age + patient.AgeClass).TrimStart('0'));
rpt.SetParameterValue("Sex",
"男".Equals(patient.Sex) ? "男" :
"女".Equals(patient.Sex) ? "女" :
@ -1059,9 +1090,7 @@ namespace PEIS.Utils
rpt.SetParameterValue("BirthDay", patient.Birthday?.ToShortDateString());
rpt.SetParameterValue("Address", patient.Address1);
rpt.SetParameterValue("HospitalName", Global._hospital?.Name);
rpt.SetParameterValue("Url",
Global.GetWeChatPayUrl() +
Convert.ToBase64String(System.Text.Encoding.Default.GetBytes(patient.CardNo)));
rpt.SetParameterValue("Url", string.Format(Global.GetWeChatPayUrl(), Convert.ToBase64String(System.Text.Encoding.Default.GetBytes(patient.CardNo)), HttpUtility.UrlEncode(patient.CreateTime?.ToString("G"))));
// 收费单
rpt.RegisterData(list.Where(w => w.CostTime == null && w.OEID == null).ToList(), "C");

@ -291,8 +291,11 @@ namespace PEIS.View.Base
OnIsExitBaseInfo();
if (_patient != null)
{
Global.Msg("info", "该证件号已存在!");
return;
DialogResult result = Global.Msg("warn", "该证件号已存在!\r\n是否仍要创建重复的人员信息?");
if (result != DialogResult.Yes)
{
return;
}
}
@ -320,11 +323,14 @@ namespace PEIS.View.Base
SpellCode = PingYinHelper.GetTotalPingYin(NameTextBox.Text.Trim()).FirstPingYin.Count == 0 ? null : PingYinHelper.GetTotalPingYin(NameTextBox.Text.Trim()).FirstPingYin[0]
};
if (item.Save())
if (item.Save(true))
{
OnIsExitBaseInfo();
Global.Msg("info", "添加成功!");
_action(_patient);
if (_action != null)
{
_action(item);
}
}
else
{

@ -0,0 +1,117 @@
namespace PEIS.View.Exam
{
partial class HealthQuestionnaireForm
{
private System.ComponentModel.IContainer components = null;
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
private void InitializeComponent()
{
this.lblTitle = new System.Windows.Forms.Label();
this.btnCancel = new System.Windows.Forms.Button();
this.btnSave = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
this.panelBottom = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button();
this.panelBottom.SuspendLayout();
this.SuspendLayout();
//
// lblTitle
//
this.lblTitle.AutoSize = true;
this.lblTitle.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblTitle.Location = new System.Drawing.Point(20, 20);
this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new System.Drawing.Size(120, 25);
this.lblTitle.TabIndex = 0;
this.lblTitle.Text = "健康问卷调查";
//
// btnCancel
//
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnCancel.Location = new System.Drawing.Point(507, 28);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(100, 30);
this.btnCancel.TabIndex = 1;
this.btnCancel.Text = "取消";
this.btnCancel.UseVisualStyleBackColor = true;
//
// btnSave
//
this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnSave.Location = new System.Drawing.Point(326, 28);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(100, 30);
this.btnSave.TabIndex = 0;
this.btnSave.Text = "保存";
this.btnSave.UseVisualStyleBackColor = true;
//
// panelMain
//
this.panelMain.AutoScroll = true;
this.panelMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelMain.Location = new System.Drawing.Point(0, 0);
this.panelMain.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.panelMain.Name = "panelMain";
this.panelMain.Size = new System.Drawing.Size(933, 709);
this.panelMain.TabIndex = 2;
//
// panelBottom
//
this.panelBottom.Controls.Add(this.btnSave);
this.panelBottom.Controls.Add(this.btnCancel);
this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panelBottom.Location = new System.Drawing.Point(0, 709);
this.panelBottom.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.panelBottom.Name = "panelBottom";
this.panelBottom.Size = new System.Drawing.Size(933, 70);
this.panelBottom.TabIndex = 1;
//
// button1
//
this.button1.Location = new System.Drawing.Point(0, 0);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(933, 23);
this.button1.TabIndex = 0;
this.button1.Text = "button1";
this.button1.UseVisualStyleBackColor = true;
//
// HealthQuestionnaireForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(933, 779);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelBottom);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.MaximizeBox = true;
this.MinimizeBox = true;
this.Name = "HealthQuestionnaireForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "健康问卷调查";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.panelBottom.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label lblTitle;
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Button btnSave;
private System.Windows.Forms.Panel panelMain;
private System.Windows.Forms.Panel panelBottom;
private System.Windows.Forms.Button button1;
}
}

@ -0,0 +1,527 @@
#region CopyRight
/****************************************************************
* ProjectPEIS
* Author
* CLR Version4.0.30319.42000
* CreateTime2023-05-01 14:41:54
* Versionv2.0
*
* Description
*
* History
*
*****************************************************************
* Copyright @ 2023 All rights reserved
*****************************************************************/
#endregion CopyRight
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
using PEIS.Base;
using PEIS.Entity;
using PEIS.Model.Exam;
using PEIS.Utils;
namespace PEIS.View.Exam
{
public partial class HealthQuestionnaireForm : ViewBase
{
private readonly HealthQuestionnaireModel _model;
private List<HealthQuestion> _questions;
private readonly Dictionary<string, Control> _questionControls;
private readonly Dictionary<string, List<RadioButton>> _radioButtonGroups;
private readonly EnrollmentPatient _patient;
private HealthQuestionnaire _existingQuestionnaire;
public HealthQuestionnaireForm(EnrollmentPatient patient)
{
InitializeComponent();
_model = new HealthQuestionnaireModel();
_questionControls = new Dictionary<string, Control>();
_radioButtonGroups = new Dictionary<string, List<RadioButton>>();
_patient = patient;
Load += HealthQuestionnaireForm_Load;
btnSave.Click += BtnSave_Click;
btnCancel.Click += BtnCancel_Click;
Resize += HealthQuestionnaireForm_Resize;
}
private void HealthQuestionnaireForm_Resize(object sender, EventArgs e)
{
if (_questions == null || _questions.Count == 0)
{
return;
}
GenerateQuestionControls();
}
private void HealthQuestionnaireForm_Load(object sender, EventArgs e)
{
LoadQuestionnaire();
AutoFillPatientInfo();
GenerateQuestionControls();
}
private void LoadQuestionnaire()
{
if (_patient != null && _patient.ID > 0)
{
_existingQuestionnaire = _model.GetQuestionnaireByEId(_patient.ID);
if (_existingQuestionnaire != null && _existingQuestionnaire.Questions != null)
{
_questions = _existingQuestionnaire.Questions;
return;
}
}
_questions = _model.GetActiveTemplate();
if (_questions == null || _questions.Count == 0)
{
Global.MsgWarn("没有可用的健康问卷模板,请在Dict_Config表中配置Key为'HealthQuestionnaireTemplate'的模板");
Close();
}
}
private void AutoFillPatientInfo()
{
if (_patient == null || _questions == null)
{
return;
}
foreach (var question in _questions)
{
if (!string.IsNullOrEmpty(question.UserInput))
{
continue;
}
string autoFillValue = GetAutoFillValue(question.Text);
if (!string.IsNullOrEmpty(autoFillValue))
{
if (question.Type == "single_choice" && question.Options != null)
{
if (question.Options.Contains(autoFillValue))
{
question.UserInput = autoFillValue;
}
}
else if (question.Type == "text_input")
{
question.UserInput = autoFillValue;
}
}
}
}
private string GetAutoFillValue(string questionText)
{
if (string.IsNullOrEmpty(questionText) || _patient == null)
{
return null;
}
string lowerText = questionText.ToLower();
if (lowerText.Contains("性别"))
{
return _patient.Sex == "1" ? "男" : _patient.Sex == "2" ? "女" : "";
}
if (lowerText.Contains("出生日期") || lowerText.Contains("生日"))
{
if (_patient.Birthday.HasValue)
{
return _patient.Birthday.Value.ToString("yyyy-MM-dd");
}
if (!string.IsNullOrEmpty(_patient.CardNo) && _patient.CardNo.Length == 18)
{
return $"{_patient.CardNo.Substring(6, 4)}年{_patient.CardNo.Substring(10, 2)}月{_patient.CardNo.Substring(12, 2)}日";
}
return null;
}
if (lowerText.Contains("年龄"))
{
return _patient.Age > 0 ? _patient.Age.ToString() : "";
}
if (lowerText.Contains("民族"))
{
return _patient.Nation;
}
if (lowerText.Contains("婚姻"))
{
return _patient.Marriage;
}
if (lowerText.Contains("学历") || lowerText.Contains("文化程度"))
{
return _patient.Education;
}
if (lowerText.Contains("职业"))
{
return _patient.Occupation;
}
if (lowerText.Contains("电话") || lowerText.Contains("联系电话") || lowerText.Contains("手机"))
{
return _patient.Tel1;
}
if (lowerText.Contains("地址") || lowerText.Contains("住址"))
{
return _patient.Address1;
}
if (lowerText.Contains("身份证"))
{
return _patient.CardNo;
}
return null;
}
private void GenerateQuestionControls()
{
panelMain.Controls.Clear();
_questionControls.Clear();
_radioButtonGroups.Clear();
int padding = 20;
int gap = 20;
int panelWidth = (panelMain.Width - padding * 2 - gap) / 2;
int currentY = 20;
int questionIndex = 0;
var questionsBySection = GroupQuestionsBySection();
foreach (var section in questionsBySection)
{
var sectionQuestions = section.Value;
for (int i = 0; i < sectionQuestions.Count; i += 2)
{
var leftQuestion = sectionQuestions[i];
var rightQuestion = (i + 1 < sectionQuestions.Count) ? sectionQuestions[i + 1] : null;
int leftHeight = CalculatePanelHeight(leftQuestion);
int rightHeight = rightQuestion != null ? CalculatePanelHeight(rightQuestion) : 0;
int rowMaxHeight = Math.Max(leftHeight, rightHeight);
var leftPanel = CreateQuestionPanel(leftQuestion, questionIndex + 1, padding, currentY, panelWidth, rowMaxHeight);
panelMain.Controls.Add(leftPanel);
questionIndex++;
if (rightQuestion != null)
{
var rightPanel = CreateQuestionPanel(rightQuestion, questionIndex + 1, panelWidth + padding + gap, currentY, panelWidth, rowMaxHeight);
panelMain.Controls.Add(rightPanel);
questionIndex++;
}
currentY += rowMaxHeight + 20;
}
currentY += 20;
}
panelMain.AutoScrollMinSize = new Size(0, currentY);
}
private Dictionary<string, List<HealthQuestion>> GroupQuestionsBySection()
{
var result = new Dictionary<string, List<HealthQuestion>>();
foreach (var question in _questions)
{
string section = GetSectionFromId(question.Id);
if (!result.ContainsKey(section))
{
result[section] = new List<HealthQuestion>();
}
result[section].Add(question);
}
return result;
}
private string GetSectionFromId(string id)
{
if (string.IsNullOrEmpty(id))
{
return "A";
}
string section = "";
foreach (char c in id)
{
if (char.IsLetter(c))
{
section += c;
}
else
{
break;
}
}
return string.IsNullOrEmpty(section) ? "A" : section;
}
private Panel CreateQuestionPanel(HealthQuestion question, int questionNumber, int xPosition, int yPosition, int width, int height = 0)
{
int panelHeight = height > 0 ? height : CalculatePanelHeight(question);
var panel = new Panel
{
Location = new Point(xPosition, yPosition),
Size = new Size(width, panelHeight),
BackColor = Color.White,
Padding = new Padding(10)
};
var lblQuestion = new Label
{
Text = $"{questionNumber}. {question.Text}",
Location = new Point(10, 10),
Size = new Size(width - 40, 30),
Font = new Font("Microsoft YaHei", 10F, FontStyle.Bold),
AutoEllipsis = true
};
if (question.IsRequired)
{
lblQuestion.Text += " *";
lblQuestion.ForeColor = Color.Red;
}
panel.Controls.Add(lblQuestion);
int controlYPosition = 50;
if (question.Type == "single_choice")
{
var radioButtons = new List<RadioButton>();
var groupPanel = new Panel
{
Location = new Point(10, controlYPosition),
Size = new Size(width - 60, CalculateRadioButtonGroupHeight(question)),
AutoScroll = true
};
if (question.Options != null)
{
for (int i = 0; i < question.Options.Count; i++)
{
var option = question.Options[i];
var radioButton = new RadioButton
{
Text = option,
Location = new Point(0, i * 30),
Size = new Size(width - 80, 25),
Font = new Font("Microsoft YaHei", 9F),
AutoEllipsis = true
};
if (!string.IsNullOrEmpty(question.UserInput) && question.UserInput == option)
{
radioButton.Checked = true;
}
groupPanel.Controls.Add(radioButton);
radioButtons.Add(radioButton);
}
}
panel.Controls.Add(groupPanel);
_radioButtonGroups[question.Id] = radioButtons;
}
else if (question.Type == "text_input")
{
var textBox = new TextBox
{
Location = new Point(10, controlYPosition),
Size = new Size(width - 60, 30),
Font = new Font("Microsoft YaHei", 9F)
};
if (!string.IsNullOrEmpty(question.UserInput))
{
textBox.Text = question.UserInput;
}
panel.Controls.Add(textBox);
_questionControls[question.Id] = textBox;
}
return panel;
}
private int CalculatePanelHeight(HealthQuestion question)
{
int height = 60;
if (question.Type == "single_choice")
{
height += CalculateRadioButtonGroupHeight(question);
}
else if (question.Type == "text_input")
{
height += 40;
}
return height;
}
private int CalculateRadioButtonGroupHeight(HealthQuestion question)
{
if (question.Options == null || question.Options.Count == 0)
{
return 30;
}
return Math.Min(question.Options.Count * 30, 120);
}
private void BtnSave_Click(object sender, EventArgs e)
{
if (!ValidateQuestions())
{
return;
}
SaveAnswers();
var questionnaire = new HealthQuestionnaire
{
EID = _patient?.ID,
Questions = _questions,
CreateTime = DateTime.Now,
CreatorCode = Global.currentUser?.ID.ToString(),
Creator = Global.currentUser?.Name
};
if (_existingQuestionnaire != null)
{
questionnaire.ID = _existingQuestionnaire.ID;
questionnaire.UpdateTime = DateTime.Now;
questionnaire.UpdaterCode = Global.currentUser?.ID.ToString();
questionnaire.Updater = Global.currentUser?.Name;
}
if (_model.SaveQuestionnaire(questionnaire))
{
Global.MsgInfo("健康问卷保存成功");
DialogResult = DialogResult.OK;
Close();
}
else
{
Global.MsgErr("健康问卷保存失败");
}
}
private bool ValidateQuestions()
{
foreach (var question in _questions)
{
if (!question.IsRequired)
{
continue;
}
string answer = GetQuestionAnswer(question);
if (string.IsNullOrEmpty(answer))
{
Global.MsgWarn($"请回答问题:{question.Text}");
FocusQuestion(question);
return false;
}
}
return true;
}
private void SaveAnswers()
{
foreach (var question in _questions)
{
question.UserInput = GetQuestionAnswer(question);
}
}
private string GetQuestionAnswer(HealthQuestion question)
{
if (question.Type == "single_choice")
{
if (_radioButtonGroups.ContainsKey(question.Id))
{
var radioButtons = _radioButtonGroups[question.Id];
foreach (var radioButton in radioButtons)
{
if (radioButton.Checked)
{
return radioButton.Text;
}
}
}
return null;
}
else if (question.Type == "text_input")
{
if (_questionControls.ContainsKey(question.Id))
{
var control = _questionControls[question.Id];
if (control is TextBox textBox)
{
return textBox.Text.Trim();
}
}
return null;
}
return null;
}
private void FocusQuestion(HealthQuestion question)
{
if (question.Type == "single_choice")
{
if (_radioButtonGroups.ContainsKey(question.Id))
{
var radioButtons = _radioButtonGroups[question.Id];
if (radioButtons.Count > 0)
{
radioButtons[0].Focus();
}
}
}
else if (question.Type == "text_input")
{
if (_questionControls.ContainsKey(question.Id))
{
var control = _questionControls[question.Id];
control.Focus();
}
}
}
private void BtnCancel_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
Close();
}
protected override object CreatePresenter()
{
return null;
}
}
}

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

@ -1,4 +1,4 @@
namespace PEIS.View.Exam
namespace PEIS.View.Exam
{
partial class PartForm
{
@ -28,7 +28,6 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PartForm));
this.splitContainerBase = new System.Windows.Forms.SplitContainer();
this.panelPatients = new System.Windows.Forms.Panel();
@ -77,7 +76,7 @@
this.dgvSign = new DevExpress.XtraGrid.Views.Grid.GridView();
this.gridColumn19 = new DevExpress.XtraGrid.Columns.GridColumn();
this.dgcExamResult = new DevExpress.XtraGrid.GridControl();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip();
this.menuGiveUp1 = new System.Windows.Forms.ToolStripMenuItem();
this.menuGiveUp2 = new System.Windows.Forms.ToolStripMenuItem();
this.menuGiveUp3 = new System.Windows.Forms.ToolStripMenuItem();
@ -157,7 +156,7 @@
this.OpsPacsImg = new PEIS.View.UControl.OpMenuSimple();
this.panelPacsRptList = new System.Windows.Forms.Panel();
this.dgcRptPacs = new DevExpress.XtraGrid.GridControl();
this.RptPacsMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
this.RptPacsMenuStrip = new System.Windows.Forms.ContextMenuStrip();
this.PrintRptPacsMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.DgvRptPacs = new DevExpress.XtraGrid.Views.Grid.GridView();
this.colPacsTime = new DevExpress.XtraGrid.Columns.GridColumn();
@ -169,7 +168,7 @@
this.panelReport = new System.Windows.Forms.Panel();
this.picReportExt = new System.Windows.Forms.PictureBox();
this.dgcRptExt = new DevExpress.XtraGrid.GridControl();
this.RptExtMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
this.RptExtMenuStrip = new System.Windows.Forms.ContextMenuStrip();
this.PrintRptExtMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.DeleteRptExtMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.DgvRptExt = new DevExpress.XtraGrid.Views.Grid.GridView();
@ -234,6 +233,7 @@
this.tsmiReview = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiConclusion = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiSave = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiHealthQuestionnaire = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiOccupation = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiPick = new System.Windows.Forms.ToolStripMenuItem();
this.strip1 = new System.Windows.Forms.ToolStripMenuItem();
@ -2898,6 +2898,7 @@
this.tsmiReview,
this.tsmiConclusion,
this.tsmiSave,
this.tsmiHealthQuestionnaire,
this.tsmiOccupation,
this.tsmiPick,
this.strip1,
@ -2951,6 +2952,16 @@
this.tsmiSave.Size = new System.Drawing.Size(73, 40);
this.tsmiSave.Text = "保存";
//
// tsmiHealthQuestionnaire
//
this.tsmiHealthQuestionnaire.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.tsmiHealthQuestionnaire.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.tsmiHealthQuestionnaire.Image = global::PEIS.Properties.Resources.__1_;
this.tsmiHealthQuestionnaire.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
this.tsmiHealthQuestionnaire.Name = "tsmiHealthQuestionnaire";
this.tsmiHealthQuestionnaire.Size = new System.Drawing.Size(105, 40);
this.tsmiHealthQuestionnaire.Text = "健康问卷";
//
// tsmiOccupation
//
this.tsmiOccupation.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
@ -3278,6 +3289,7 @@
public System.Windows.Forms.ToolStripMenuItem tsmiReview;
public System.Windows.Forms.ToolStripMenuItem tsmiConclusion;
public System.Windows.Forms.ToolStripMenuItem tsmiSave;
public System.Windows.Forms.ToolStripMenuItem tsmiHealthQuestionnaire;
private System.Windows.Forms.ToolStripMenuItem strip3;
private System.Windows.Forms.ToolStripMenuItem stripLblStatus;
private System.Windows.Forms.ToolStripMenuItem strip2;

@ -1,4 +1,4 @@
using DevExpress.XtraEditors;
using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Repository;
using DevExpress.XtraGrid.Views.Base;
using DevExpress.XtraGrid.Views.Grid;
@ -118,6 +118,8 @@ namespace PEIS.View.Exam
tsmiPick.Click += TsmiPick_Click;
// 菜单-职业问诊
tsmiOccupation.Click += TsmiOccupation_Click;
// 菜单-健康问卷
tsmiHealthQuestionnaire.Click += TsmiHealthQuestionnaire_Click;
//菜单-保存
tsmiSave.Click += TsmiSave_Click;
//菜单-生成小结结论
@ -1226,6 +1228,22 @@ namespace PEIS.View.Exam
form.ShowDialog();
}
/// <summary>
/// 健康问卷
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void TsmiHealthQuestionnaire_Click(object sender, EventArgs e)
{
if (_patient.ID <= 0)
{
Global.MsgErr("请先选择体检者!");
return;
}
HealthQuestionnaireForm form = new HealthQuestionnaireForm(_patient);
form.ShowDialog();
}
/// <summary>
/// 重新提取检查结果
@ -1773,6 +1791,8 @@ namespace PEIS.View.Exam
SetPatientInfo(item ?? _patient);
// 是否显示职业问诊按钮
tsmiOccupation.Visible = item == null ? _patient.Type != null && _patient.Type.Contains("职业") : item.Type != null && item.Type.Contains("职业");
// 是否显示健康问卷按钮(只对非职业体检人员显示)
tsmiHealthQuestionnaire.Visible = Global._hospital.Name != "德宏州中医医院" ? false : item == null ? _patient.Type == null || !_patient.Type.Contains("职业") : item.Type == null || !item.Type.Contains("职业");
OnGetDeptList();
}

@ -112,6 +112,8 @@
this.OccupationalConclusion_3 = new System.Windows.Forms.RadioButton();
this.OccupationalConclusion_2 = new System.Windows.Forms.RadioButton();
this.OccupationalConclusion_1 = new System.Windows.Forms.RadioButton();
this.OccupationalGroupBox = new System.Windows.Forms.GroupBox();
this.OccupationalText = new System.Windows.Forms.TextBox();
this.panelAllConclusion = new System.Windows.Forms.Panel();
this.DgcAllConclusion = new DevExpress.XtraGrid.GridControl();
this.DgvAllConclusion = new DevExpress.XtraGrid.Views.Grid.GridView();
@ -244,8 +246,6 @@
this.gridView6 = new DevExpress.XtraGrid.Views.Grid.GridView();
this.gridView7 = new DevExpress.XtraGrid.Views.Grid.GridView();
this.gridView8 = new DevExpress.XtraGrid.Views.Grid.GridView();
this.OccupationalGroupBox = new System.Windows.Forms.GroupBox();
this.OccupationalText = new System.Windows.Forms.TextBox();
((System.ComponentModel.ISupportInitialize)(this.splitContainerBase)).BeginInit();
this.splitContainerBase.Panel1.SuspendLayout();
this.splitContainerBase.Panel2.SuspendLayout();
@ -286,6 +286,7 @@
((System.ComponentModel.ISupportInitialize)(this.repositoryItemRichTextEdit2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gridView2)).BeginInit();
this.panelOccupational.SuspendLayout();
this.OccupationalGroupBox.SuspendLayout();
this.panelAllConclusion.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.DgcAllConclusion)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.DgvAllConclusion)).BeginInit();
@ -343,7 +344,6 @@
((System.ComponentModel.ISupportInitialize)(this.gridView6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gridView7)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gridView8)).BeginInit();
this.OccupationalGroupBox.SuspendLayout();
this.SuspendLayout();
//
// splitContainerBase
@ -1428,6 +1428,27 @@
this.OccupationalConclusion_1.Text = "目前未见异常";
this.OccupationalConclusion_1.UseVisualStyleBackColor = true;
//
// OccupationalGroupBox
//
this.OccupationalGroupBox.Controls.Add(this.OccupationalText);
this.OccupationalGroupBox.Dock = System.Windows.Forms.DockStyle.Bottom;
this.OccupationalGroupBox.Location = new System.Drawing.Point(0, 38);
this.OccupationalGroupBox.Name = "OccupationalGroupBox";
this.OccupationalGroupBox.Size = new System.Drawing.Size(442, 109);
this.OccupationalGroupBox.TabIndex = 5;
this.OccupationalGroupBox.TabStop = false;
this.OccupationalGroupBox.Text = "职业健康检查处理意见";
//
// OccupationalText
//
this.OccupationalText.AcceptsReturn = true;
this.OccupationalText.Dock = System.Windows.Forms.DockStyle.Fill;
this.OccupationalText.Location = new System.Drawing.Point(3, 18);
this.OccupationalText.Multiline = true;
this.OccupationalText.Name = "OccupationalText";
this.OccupationalText.Size = new System.Drawing.Size(436, 88);
this.OccupationalText.TabIndex = 0;
//
// panelAllConclusion
//
this.panelAllConclusion.AutoScroll = true;
@ -2992,27 +3013,6 @@
//
this.gridView8.Name = "gridView8";
//
// OccupationalGroupBox
//
this.OccupationalGroupBox.Controls.Add(this.OccupationalText);
this.OccupationalGroupBox.Dock = System.Windows.Forms.DockStyle.Bottom;
this.OccupationalGroupBox.Location = new System.Drawing.Point(0, 38);
this.OccupationalGroupBox.Name = "OccupationalGroupBox";
this.OccupationalGroupBox.Size = new System.Drawing.Size(442, 109);
this.OccupationalGroupBox.TabIndex = 5;
this.OccupationalGroupBox.TabStop = false;
this.OccupationalGroupBox.Text = "职业健康检查处理意见";
//
// OccupationalText
//
this.OccupationalText.AcceptsReturn = true;
this.OccupationalText.Dock = System.Windows.Forms.DockStyle.Fill;
this.OccupationalText.Location = new System.Drawing.Point(3, 18);
this.OccupationalText.Multiline = true;
this.OccupationalText.Name = "OccupationalText";
this.OccupationalText.Size = new System.Drawing.Size(436, 88);
this.OccupationalText.TabIndex = 0;
//
// TotalForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
@ -3067,6 +3067,8 @@
((System.ComponentModel.ISupportInitialize)(this.gridView2)).EndInit();
this.panelOccupational.ResumeLayout(false);
this.panelOccupational.PerformLayout();
this.OccupationalGroupBox.ResumeLayout(false);
this.OccupationalGroupBox.PerformLayout();
this.panelAllConclusion.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.DgcAllConclusion)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.DgvAllConclusion)).EndInit();
@ -3129,8 +3131,6 @@
((System.ComponentModel.ISupportInitialize)(this.gridView6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gridView7)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gridView8)).EndInit();
this.OccupationalGroupBox.ResumeLayout(false);
this.OccupationalGroupBox.PerformLayout();
this.ResumeLayout(false);
}

@ -468,7 +468,7 @@ namespace PEIS.View.Exam
return;
}
rpt.Show();
rpt.ShowPrepared();
}
}
@ -489,7 +489,7 @@ namespace PEIS.View.Exam
return;
}
rpt.Show();
rpt.ShowPrepared();
}
}

@ -53,6 +53,13 @@ namespace PEIS.View
this.lblStep = new System.Windows.Forms.Label();
this.lblHospital = new System.Windows.Forms.Label();
this.NbcMain = new DevExpress.XtraNavBar.NavBarControl();
this.NbgQuery = new DevExpress.XtraNavBar.NavBarGroup();
this.NbiPeopleCount = new DevExpress.XtraNavBar.NavBarItem();
this.navBarItem10 = new DevExpress.XtraNavBar.NavBarItem();
this.navBarItem11 = new DevExpress.XtraNavBar.NavBarItem();
this.navBarItem12 = new DevExpress.XtraNavBar.NavBarItem();
this.navBarItem13 = new DevExpress.XtraNavBar.NavBarItem();
this.navBarItem14 = new DevExpress.XtraNavBar.NavBarItem();
this.NbgReg = new DevExpress.XtraNavBar.NavBarGroup();
this.NbiEnrollmentSearch = new DevExpress.XtraNavBar.NavBarItem();
this.NbiEnrollmentPerson = new DevExpress.XtraNavBar.NavBarItem();
@ -62,13 +69,6 @@ namespace PEIS.View
this.NbgReport = new DevExpress.XtraNavBar.NavBarGroup();
this.NbiPReport = new DevExpress.XtraNavBar.NavBarItem();
this.NbiTReport = new DevExpress.XtraNavBar.NavBarItem();
this.NbgQuery = new DevExpress.XtraNavBar.NavBarGroup();
this.NbiPeopleCount = new DevExpress.XtraNavBar.NavBarItem();
this.navBarItem10 = new DevExpress.XtraNavBar.NavBarItem();
this.navBarItem11 = new DevExpress.XtraNavBar.NavBarItem();
this.navBarItem12 = new DevExpress.XtraNavBar.NavBarItem();
this.navBarItem13 = new DevExpress.XtraNavBar.NavBarItem();
this.navBarItem14 = new DevExpress.XtraNavBar.NavBarItem();
this.NbgSetting = new DevExpress.XtraNavBar.NavBarGroup();
this.NbiFeeItem = new DevExpress.XtraNavBar.NavBarItem();
this.NbiPackage = new DevExpress.XtraNavBar.NavBarItem();
@ -447,6 +447,56 @@ namespace PEIS.View
this.NbcMain.Text = "navBarControl1";
this.NbcMain.View = new DevExpress.XtraNavBar.ViewInfo.Office3ViewInfoRegistrator();
//
// NbgQuery
//
this.NbgQuery.Caption = "查询统计";
this.NbgQuery.Expanded = true;
this.NbgQuery.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
new DevExpress.XtraNavBar.NavBarItemLink(this.NbiPeopleCount),
new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem10),
new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem11),
new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem12),
new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem13),
new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem14)});
this.NbgQuery.Name = "NbgQuery";
this.NbgQuery.Visible = false;
//
// NbiPeopleCount
//
this.NbiPeopleCount.Caption = "人次统计表";
this.NbiPeopleCount.LargeImage = ((System.Drawing.Image)(resources.GetObject("NbiPeopleCount.LargeImage")));
this.NbiPeopleCount.Name = "NbiPeopleCount";
//
// navBarItem10
//
this.navBarItem10.Caption = "订单统计表";
this.navBarItem10.LargeImage = ((System.Drawing.Image)(resources.GetObject("navBarItem10.LargeImage")));
this.navBarItem10.Name = "navBarItem10";
//
// navBarItem11
//
this.navBarItem11.Caption = "费用明细";
this.navBarItem11.LargeImage = ((System.Drawing.Image)(resources.GetObject("navBarItem11.LargeImage")));
this.navBarItem11.Name = "navBarItem11";
//
// navBarItem12
//
this.navBarItem12.Caption = "明细统计";
this.navBarItem12.LargeImage = ((System.Drawing.Image)(resources.GetObject("navBarItem12.LargeImage")));
this.navBarItem12.Name = "navBarItem12";
//
// navBarItem13
//
this.navBarItem13.Caption = "团体汇总表";
this.navBarItem13.LargeImage = ((System.Drawing.Image)(resources.GetObject("navBarItem13.LargeImage")));
this.navBarItem13.Name = "navBarItem13";
//
// navBarItem14
//
this.navBarItem14.Caption = "个人汇总表";
this.navBarItem14.LargeImage = ((System.Drawing.Image)(resources.GetObject("navBarItem14.LargeImage")));
this.navBarItem14.Name = "navBarItem14";
//
// NbgReg
//
this.NbgReg.Caption = "检前登记";
@ -510,56 +560,6 @@ namespace PEIS.View
this.NbiTReport.LargeImage = global::PEIS.Properties.Resources.;
this.NbiTReport.Name = "NbiTReport";
//
// NbgQuery
//
this.NbgQuery.Caption = "查询统计";
this.NbgQuery.Expanded = true;
this.NbgQuery.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
new DevExpress.XtraNavBar.NavBarItemLink(this.NbiPeopleCount),
new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem10),
new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem11),
new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem12),
new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem13),
new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem14)});
this.NbgQuery.Name = "NbgQuery";
this.NbgQuery.Visible = false;
//
// NbiPeopleCount
//
this.NbiPeopleCount.Caption = "人次统计表";
this.NbiPeopleCount.LargeImage = ((System.Drawing.Image)(resources.GetObject("NbiPeopleCount.LargeImage")));
this.NbiPeopleCount.Name = "NbiPeopleCount";
//
// navBarItem10
//
this.navBarItem10.Caption = "订单统计表";
this.navBarItem10.LargeImage = ((System.Drawing.Image)(resources.GetObject("navBarItem10.LargeImage")));
this.navBarItem10.Name = "navBarItem10";
//
// navBarItem11
//
this.navBarItem11.Caption = "费用明细";
this.navBarItem11.LargeImage = ((System.Drawing.Image)(resources.GetObject("navBarItem11.LargeImage")));
this.navBarItem11.Name = "navBarItem11";
//
// navBarItem12
//
this.navBarItem12.Caption = "明细统计";
this.navBarItem12.LargeImage = ((System.Drawing.Image)(resources.GetObject("navBarItem12.LargeImage")));
this.navBarItem12.Name = "navBarItem12";
//
// navBarItem13
//
this.navBarItem13.Caption = "团体汇总表";
this.navBarItem13.LargeImage = ((System.Drawing.Image)(resources.GetObject("navBarItem13.LargeImage")));
this.navBarItem13.Name = "navBarItem13";
//
// navBarItem14
//
this.navBarItem14.Caption = "个人汇总表";
this.navBarItem14.LargeImage = ((System.Drawing.Image)(resources.GetObject("navBarItem14.LargeImage")));
this.navBarItem14.Name = "navBarItem14";
//
// NbgSetting
//
this.NbgSetting.Caption = "系统设置";

@ -33,12 +33,12 @@
this.TbFeeItem4His = new DevExpress.XtraBars.Navigation.TabNavigationPage();
this.DgcHisFeeItem = new DevExpress.XtraGrid.GridControl();
this.DgvHisFeeItem = new DevExpress.XtraGrid.Views.Grid.GridView();
this.gridColumn18 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gridColumn52 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gridColumn17 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gridColumn51 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gridColumn17 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gridColumn18 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gridColumn50 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gridColumn51 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gridColumn52 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gridColumn32 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gridColumn33 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gridColumn34 = new DevExpress.XtraGrid.Columns.GridColumn();
@ -155,14 +155,14 @@
this.tabPane1.Appearance.Options.UseBackColor = true;
this.tabPane1.Controls.Add(this.TbFeeItem4His);
this.tabPane1.Dock = System.Windows.Forms.DockStyle.Right;
this.tabPane1.Location = new System.Drawing.Point(1234, 0);
this.tabPane1.Margin = new System.Windows.Forms.Padding(8, 7, 8, 7);
this.tabPane1.Location = new System.Drawing.Point(617, 0);
this.tabPane1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tabPane1.Name = "tabPane1";
this.tabPane1.Pages.AddRange(new DevExpress.XtraBars.Navigation.NavigationPageBase[] {
this.TbFeeItem4His});
this.tabPane1.RegularSize = new System.Drawing.Size(1012, 1366);
this.tabPane1.RegularSize = new System.Drawing.Size(506, 582);
this.tabPane1.SelectedPage = this.TbFeeItem4His;
this.tabPane1.Size = new System.Drawing.Size(1012, 1366);
this.tabPane1.Size = new System.Drawing.Size(506, 582);
this.tabPane1.TabAlignment = DevExpress.XtraEditors.Alignment.Near;
this.tabPane1.TabIndex = 1;
this.tabPane1.Text = "tabPane1";
@ -176,23 +176,21 @@
this.TbFeeItem4His.Controls.Add(this.panel3);
this.TbFeeItem4His.Image = global::PEIS.Properties.Resources.;
this.TbFeeItem4His.ItemShowMode = DevExpress.XtraBars.Navigation.ItemShowMode.ImageAndText;
this.TbFeeItem4His.Margin = new System.Windows.Forms.Padding(8, 7, 8, 7);
this.TbFeeItem4His.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.TbFeeItem4His.Name = "TbFeeItem4His";
this.TbFeeItem4His.PageText = "HIS收费项目";
this.TbFeeItem4His.Properties.ShowMode = DevExpress.XtraBars.Navigation.ItemShowMode.ImageAndText;
this.TbFeeItem4His.Size = new System.Drawing.Size(978, 1273);
this.TbFeeItem4His.Size = new System.Drawing.Size(488, 524);
//
// DgcHisFeeItem
//
this.DgcHisFeeItem.Dock = System.Windows.Forms.DockStyle.Fill;
this.DgcHisFeeItem.EmbeddedNavigator.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.DgcHisFeeItem.Location = new System.Drawing.Point(0, 67);
this.DgcHisFeeItem.Location = new System.Drawing.Point(0, 37);
this.DgcHisFeeItem.MainView = this.DgvHisFeeItem;
this.DgcHisFeeItem.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.DgcHisFeeItem.Name = "DgcHisFeeItem";
this.DgcHisFeeItem.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
this.repositoryItemCheckEdit2});
this.DgcHisFeeItem.Size = new System.Drawing.Size(978, 1206);
this.DgcHisFeeItem.Size = new System.Drawing.Size(488, 487);
this.DgcHisFeeItem.TabIndex = 120;
this.DgcHisFeeItem.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.DgvHisFeeItem});
@ -231,39 +229,41 @@
this.DgvHisFeeItem.OptionsView.ShowIndicator = false;
this.DgvHisFeeItem.RowHeight = 30;
//
// gridColumn18
// gridColumn51
//
this.gridColumn18.AppearanceCell.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.gridColumn18.AppearanceCell.Options.UseFont = true;
this.gridColumn18.Caption = "项目类别";
this.gridColumn18.FieldName = "ItemClass";
this.gridColumn18.Name = "gridColumn18";
this.gridColumn18.OptionsColumn.AllowEdit = false;
this.gridColumn18.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn18.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn18.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn18.OptionsColumn.ReadOnly = true;
this.gridColumn18.OptionsFilter.AllowFilter = false;
this.gridColumn18.Visible = true;
this.gridColumn18.VisibleIndex = 3;
this.gridColumn18.Width = 60;
this.gridColumn51.AppearanceCell.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.gridColumn51.AppearanceCell.Options.UseFont = true;
this.gridColumn51.Caption = "执行科室";
this.gridColumn51.FieldName = "DeptName";
this.gridColumn51.Name = "gridColumn51";
this.gridColumn51.OptionsColumn.AllowEdit = false;
this.gridColumn51.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn51.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn51.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn51.OptionsColumn.ReadOnly = true;
this.gridColumn51.OptionsFilter.AllowFilter = false;
this.gridColumn51.Visible = true;
this.gridColumn51.VisibleIndex = 0;
this.gridColumn51.Width = 110;
//
// gridColumn52
// gridColumn5
//
this.gridColumn52.AppearanceCell.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.gridColumn52.AppearanceCell.Options.UseFont = true;
this.gridColumn52.Caption = "类型";
this.gridColumn52.FieldName = "UnitName";
this.gridColumn52.Name = "gridColumn52";
this.gridColumn52.OptionsColumn.AllowEdit = false;
this.gridColumn52.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn52.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn52.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn52.OptionsColumn.ReadOnly = true;
this.gridColumn52.OptionsFilter.AllowFilter = false;
this.gridColumn52.Visible = true;
this.gridColumn52.VisibleIndex = 5;
this.gridColumn52.Width = 50;
this.gridColumn5.AppearanceCell.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.gridColumn5.AppearanceCell.ForeColor = System.Drawing.Color.SeaGreen;
this.gridColumn5.AppearanceCell.Options.UseFont = true;
this.gridColumn5.AppearanceCell.Options.UseForeColor = true;
this.gridColumn5.Caption = "项目名称";
this.gridColumn5.FieldName = "FeeItemName";
this.gridColumn5.Name = "gridColumn5";
this.gridColumn5.OptionsColumn.AllowEdit = false;
this.gridColumn5.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn5.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn5.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn5.OptionsColumn.ReadOnly = true;
this.gridColumn5.OptionsFilter.AllowFilter = false;
this.gridColumn5.Visible = true;
this.gridColumn5.VisibleIndex = 1;
this.gridColumn5.Width = 200;
//
// gridColumn17
//
@ -285,24 +285,22 @@
this.gridColumn17.VisibleIndex = 2;
this.gridColumn17.Width = 80;
//
// gridColumn5
// gridColumn18
//
this.gridColumn5.AppearanceCell.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.gridColumn5.AppearanceCell.ForeColor = System.Drawing.Color.SeaGreen;
this.gridColumn5.AppearanceCell.Options.UseFont = true;
this.gridColumn5.AppearanceCell.Options.UseForeColor = true;
this.gridColumn5.Caption = "项目名称";
this.gridColumn5.FieldName = "FeeItemName";
this.gridColumn5.Name = "gridColumn5";
this.gridColumn5.OptionsColumn.AllowEdit = false;
this.gridColumn5.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn5.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn5.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn5.OptionsColumn.ReadOnly = true;
this.gridColumn5.OptionsFilter.AllowFilter = false;
this.gridColumn5.Visible = true;
this.gridColumn5.VisibleIndex = 1;
this.gridColumn5.Width = 200;
this.gridColumn18.AppearanceCell.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.gridColumn18.AppearanceCell.Options.UseFont = true;
this.gridColumn18.Caption = "项目类别";
this.gridColumn18.FieldName = "ItemClass";
this.gridColumn18.Name = "gridColumn18";
this.gridColumn18.OptionsColumn.AllowEdit = false;
this.gridColumn18.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn18.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn18.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn18.OptionsColumn.ReadOnly = true;
this.gridColumn18.OptionsFilter.AllowFilter = false;
this.gridColumn18.Visible = true;
this.gridColumn18.VisibleIndex = 3;
this.gridColumn18.Width = 60;
//
// gridColumn50
//
@ -321,22 +319,22 @@
this.gridColumn50.VisibleIndex = 4;
this.gridColumn50.Width = 60;
//
// gridColumn51
// gridColumn52
//
this.gridColumn51.AppearanceCell.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.gridColumn51.AppearanceCell.Options.UseFont = true;
this.gridColumn51.Caption = "执行科室";
this.gridColumn51.FieldName = "DeptName";
this.gridColumn51.Name = "gridColumn51";
this.gridColumn51.OptionsColumn.AllowEdit = false;
this.gridColumn51.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn51.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn51.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn51.OptionsColumn.ReadOnly = true;
this.gridColumn51.OptionsFilter.AllowFilter = false;
this.gridColumn51.Visible = true;
this.gridColumn51.VisibleIndex = 0;
this.gridColumn51.Width = 110;
this.gridColumn52.AppearanceCell.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.gridColumn52.AppearanceCell.Options.UseFont = true;
this.gridColumn52.Caption = "类型";
this.gridColumn52.FieldName = "UnitName";
this.gridColumn52.Name = "gridColumn52";
this.gridColumn52.OptionsColumn.AllowEdit = false;
this.gridColumn52.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn52.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn52.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
this.gridColumn52.OptionsColumn.ReadOnly = true;
this.gridColumn52.OptionsFilter.AllowFilter = false;
this.gridColumn52.Visible = true;
this.gridColumn52.VisibleIndex = 5;
this.gridColumn52.Width = 50;
//
// gridColumn32
//
@ -393,18 +391,16 @@
this.panel3.Controls.Add(this.TxtHisFeeItem);
this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
this.panel3.Location = new System.Drawing.Point(0, 0);
this.panel3.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(978, 67);
this.panel3.Size = new System.Drawing.Size(488, 37);
this.panel3.TabIndex = 121;
//
// RbNormal
//
this.RbNormal.AutoSize = true;
this.RbNormal.Location = new System.Drawing.Point(696, 15);
this.RbNormal.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.RbNormal.Location = new System.Drawing.Point(348, 8);
this.RbNormal.Name = "RbNormal";
this.RbNormal.Size = new System.Drawing.Size(93, 35);
this.RbNormal.Size = new System.Drawing.Size(50, 21);
this.RbNormal.TabIndex = 5;
this.RbNormal.TabStop = true;
this.RbNormal.Text = "普通";
@ -413,10 +409,9 @@
// RbLis
//
this.RbLis.AutoSize = true;
this.RbLis.Location = new System.Drawing.Point(566, 15);
this.RbLis.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.RbLis.Location = new System.Drawing.Point(283, 8);
this.RbLis.Name = "RbLis";
this.RbLis.Size = new System.Drawing.Size(93, 35);
this.RbLis.Size = new System.Drawing.Size(50, 21);
this.RbLis.TabIndex = 4;
this.RbLis.TabStop = true;
this.RbLis.Text = "检验";
@ -425,10 +420,9 @@
// RbPacs
//
this.RbPacs.AutoSize = true;
this.RbPacs.Location = new System.Drawing.Point(436, 15);
this.RbPacs.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.RbPacs.Location = new System.Drawing.Point(218, 8);
this.RbPacs.Name = "RbPacs";
this.RbPacs.Size = new System.Drawing.Size(93, 35);
this.RbPacs.Size = new System.Drawing.Size(50, 21);
this.RbPacs.TabIndex = 3;
this.RbPacs.TabStop = true;
this.RbPacs.Text = "检查";
@ -437,10 +431,9 @@
// RbAll
//
this.RbAll.AutoSize = true;
this.RbAll.Location = new System.Drawing.Point(306, 15);
this.RbAll.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.RbAll.Location = new System.Drawing.Point(153, 8);
this.RbAll.Name = "RbAll";
this.RbAll.Size = new System.Drawing.Size(93, 35);
this.RbAll.Size = new System.Drawing.Size(50, 21);
this.RbAll.TabIndex = 2;
this.RbAll.TabStop = true;
this.RbAll.Text = "所有";
@ -448,10 +441,9 @@
//
// TxtHisFeeItem
//
this.TxtHisFeeItem.Location = new System.Drawing.Point(12, 13);
this.TxtHisFeeItem.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.TxtHisFeeItem.Location = new System.Drawing.Point(6, 7);
this.TxtHisFeeItem.Name = "TxtHisFeeItem";
this.TxtHisFeeItem.Size = new System.Drawing.Size(260, 39);
this.TxtHisFeeItem.Size = new System.Drawing.Size(132, 23);
this.TxtHisFeeItem.TabIndex = 0;
//
// splitterControl1
@ -459,10 +451,9 @@
this.splitterControl1.Appearance.BackColor = System.Drawing.Color.White;
this.splitterControl1.Appearance.Options.UseBackColor = true;
this.splitterControl1.Dock = System.Windows.Forms.DockStyle.Right;
this.splitterControl1.Location = new System.Drawing.Point(1224, 0);
this.splitterControl1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.splitterControl1.Location = new System.Drawing.Point(612, 0);
this.splitterControl1.Name = "splitterControl1";
this.splitterControl1.Size = new System.Drawing.Size(10, 1366);
this.splitterControl1.Size = new System.Drawing.Size(5, 582);
this.splitterControl1.TabIndex = 2;
this.splitterControl1.TabStop = false;
//
@ -472,7 +463,6 @@
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
this.splitContainer1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.splitContainer1.Name = "splitContainer1";
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
@ -484,23 +474,21 @@
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
this.splitContainer1.Size = new System.Drawing.Size(1224, 1366);
this.splitContainer1.SplitterDistance = 878;
this.splitContainer1.SplitterWidth = 9;
this.splitContainer1.Size = new System.Drawing.Size(612, 582);
this.splitContainer1.SplitterDistance = 93;
this.splitContainer1.SplitterWidth = 5;
this.splitContainer1.TabIndex = 3;
//
// DgcFeeItem
//
this.DgcFeeItem.Dock = System.Windows.Forms.DockStyle.Fill;
this.DgcFeeItem.EmbeddedNavigator.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.DgcFeeItem.Location = new System.Drawing.Point(0, 75);
this.DgcFeeItem.Location = new System.Drawing.Point(0, 41);
this.DgcFeeItem.MainView = this.DgvFeeItem;
this.DgcFeeItem.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.DgcFeeItem.Name = "DgcFeeItem";
this.DgcFeeItem.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
this.repositoryItemCheckEdit1,
this.repositoryItemMemoEdit1});
this.DgcFeeItem.Size = new System.Drawing.Size(1222, 801);
this.DgcFeeItem.Size = new System.Drawing.Size(610, 50);
this.DgcFeeItem.TabIndex = 121;
this.DgcFeeItem.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.DgvFeeItem});
@ -740,9 +728,9 @@
this.MenuFee.Dock = System.Windows.Forms.DockStyle.Top;
this.MenuFee.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.MenuFee.Location = new System.Drawing.Point(0, 0);
this.MenuFee.Margin = new System.Windows.Forms.Padding(6, 11, 6, 11);
this.MenuFee.Margin = new System.Windows.Forms.Padding(3, 6, 3, 6);
this.MenuFee.Name = "MenuFee";
this.MenuFee.Size = new System.Drawing.Size(1222, 75);
this.MenuFee.Size = new System.Drawing.Size(610, 41);
this.MenuFee.TabIndex = 1;
//
// splitContainer2
@ -751,7 +739,6 @@
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
this.splitContainer2.Location = new System.Drawing.Point(0, 0);
this.splitContainer2.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.splitContainer2.Name = "splitContainer2";
//
// splitContainer2.Panel1
@ -766,22 +753,20 @@
this.splitContainer2.Panel2.Controls.Add(this.splitter1);
this.splitContainer2.Panel2.Controls.Add(this.panelControl1);
this.splitContainer2.Panel2.Controls.Add(this.panel2);
this.splitContainer2.Size = new System.Drawing.Size(1224, 479);
this.splitContainer2.SplitterDistance = 763;
this.splitContainer2.SplitterWidth = 10;
this.splitContainer2.Size = new System.Drawing.Size(612, 484);
this.splitContainer2.SplitterDistance = 150;
this.splitContainer2.SplitterWidth = 5;
this.splitContainer2.TabIndex = 0;
//
// DgcRptItem
//
this.DgcRptItem.Dock = System.Windows.Forms.DockStyle.Fill;
this.DgcRptItem.EmbeddedNavigator.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.DgcRptItem.Location = new System.Drawing.Point(0, 75);
this.DgcRptItem.Location = new System.Drawing.Point(0, 41);
this.DgcRptItem.MainView = this.DgvRptItem;
this.DgcRptItem.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.DgcRptItem.Name = "DgcRptItem";
this.DgcRptItem.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
this.repositoryItemCheckEdit4});
this.DgcRptItem.Size = new System.Drawing.Size(761, 402);
this.DgcRptItem.Size = new System.Drawing.Size(148, 441);
this.DgcRptItem.TabIndex = 122;
this.DgcRptItem.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.DgvRptItem});
@ -937,18 +922,17 @@
this.panel1.Controls.Add(this.label1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(761, 75);
this.panel1.Size = new System.Drawing.Size(148, 41);
this.panel1.TabIndex = 0;
//
// MenuRpt
//
this.MenuRpt.Dock = System.Windows.Forms.DockStyle.Fill;
this.MenuRpt.Location = new System.Drawing.Point(148, 0);
this.MenuRpt.Margin = new System.Windows.Forms.Padding(6, 7, 6, 7);
this.MenuRpt.Location = new System.Drawing.Point(74, 0);
this.MenuRpt.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.MenuRpt.Name = "MenuRpt";
this.MenuRpt.Size = new System.Drawing.Size(613, 75);
this.MenuRpt.Size = new System.Drawing.Size(74, 41);
this.MenuRpt.TabIndex = 1;
//
// label1
@ -956,9 +940,8 @@
this.label1.Dock = System.Windows.Forms.DockStyle.Left;
this.label1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(0, 0);
this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(148, 75);
this.label1.Size = new System.Drawing.Size(74, 41);
this.label1.TabIndex = 0;
this.label1.Text = "检查项目";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -966,14 +949,12 @@
// DgcSign
//
this.DgcSign.Dock = System.Windows.Forms.DockStyle.Fill;
this.DgcSign.EmbeddedNavigator.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.DgcSign.Location = new System.Drawing.Point(0, 75);
this.DgcSign.Location = new System.Drawing.Point(0, 41);
this.DgcSign.MainView = this.DgvSign;
this.DgcSign.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.DgcSign.Name = "DgcSign";
this.DgcSign.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
this.CmbConclusionSearch});
this.DgcSign.Size = new System.Drawing.Size(449, 215);
this.DgcSign.Size = new System.Drawing.Size(455, 338);
this.DgcSign.TabIndex = 123;
this.DgcSign.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.DgvSign});
@ -1215,10 +1196,9 @@
// splitter1
//
this.splitter1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.splitter1.Location = new System.Drawing.Point(0, 290);
this.splitter1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.splitter1.Location = new System.Drawing.Point(0, 379);
this.splitter1.Name = "splitter1";
this.splitter1.Size = new System.Drawing.Size(449, 5);
this.splitter1.Size = new System.Drawing.Size(455, 3);
this.splitter1.TabIndex = 126;
this.splitter1.TabStop = false;
//
@ -1230,10 +1210,9 @@
this.panelControl1.Controls.Add(this.panelSuggestion);
this.panelControl1.Controls.Add(this.label3);
this.panelControl1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panelControl1.Location = new System.Drawing.Point(0, 295);
this.panelControl1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.panelControl1.Location = new System.Drawing.Point(0, 382);
this.panelControl1.Name = "panelControl1";
this.panelControl1.Size = new System.Drawing.Size(449, 182);
this.panelControl1.Size = new System.Drawing.Size(455, 100);
this.panelControl1.TabIndex = 124;
//
// panelSuggestion
@ -1241,10 +1220,9 @@
this.panelSuggestion.AutoScroll = true;
this.panelSuggestion.Controls.Add(this.LblSuggestion);
this.panelSuggestion.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelSuggestion.Location = new System.Drawing.Point(88, 0);
this.panelSuggestion.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.panelSuggestion.Location = new System.Drawing.Point(44, 0);
this.panelSuggestion.Name = "panelSuggestion";
this.panelSuggestion.Size = new System.Drawing.Size(361, 182);
this.panelSuggestion.Size = new System.Drawing.Size(411, 100);
this.panelSuggestion.TabIndex = 10;
//
// LblSuggestion
@ -1252,12 +1230,11 @@
this.LblSuggestion.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.LblSuggestion.Dock = System.Windows.Forms.DockStyle.Fill;
this.LblSuggestion.Location = new System.Drawing.Point(0, 0);
this.LblSuggestion.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.LblSuggestion.Multiline = true;
this.LblSuggestion.Name = "LblSuggestion";
this.LblSuggestion.ReadOnly = true;
this.LblSuggestion.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.LblSuggestion.Size = new System.Drawing.Size(361, 182);
this.LblSuggestion.Size = new System.Drawing.Size(411, 100);
this.LblSuggestion.TabIndex = 0;
//
// label3
@ -1265,9 +1242,8 @@
this.label3.Dock = System.Windows.Forms.DockStyle.Left;
this.label3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(0, 0);
this.label3.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(88, 182);
this.label3.Size = new System.Drawing.Size(44, 100);
this.label3.TabIndex = 9;
this.label3.Text = "总检建议";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -1279,18 +1255,17 @@
this.panel2.Controls.Add(this.label2);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(449, 75);
this.panel2.Size = new System.Drawing.Size(455, 41);
this.panel2.TabIndex = 1;
//
// MenuSign
//
this.MenuSign.Dock = System.Windows.Forms.DockStyle.Fill;
this.MenuSign.Location = new System.Drawing.Point(116, 0);
this.MenuSign.Margin = new System.Windows.Forms.Padding(6, 11, 6, 11);
this.MenuSign.Location = new System.Drawing.Point(58, 0);
this.MenuSign.Margin = new System.Windows.Forms.Padding(3, 6, 3, 6);
this.MenuSign.Name = "MenuSign";
this.MenuSign.Size = new System.Drawing.Size(333, 75);
this.MenuSign.Size = new System.Drawing.Size(397, 41);
this.MenuSign.TabIndex = 2;
//
// label2
@ -1298,9 +1273,8 @@
this.label2.Dock = System.Windows.Forms.DockStyle.Left;
this.label2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(0, 0);
this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(116, 75);
this.label2.Size = new System.Drawing.Size(58, 41);
this.label2.TabIndex = 1;
this.label2.Text = "体征词";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -1346,13 +1320,13 @@
//
// FeeItemForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(14F, 31F);
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(2246, 1366);
this.ClientSize = new System.Drawing.Size(1123, 582);
this.Controls.Add(this.splitContainer1);
this.Controls.Add(this.splitterControl1);
this.Controls.Add(this.tabPane1);
this.Margin = new System.Windows.Forms.Padding(8, 7, 8, 7);
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Name = "FeeItemForm";
this.Text = "收费项目";
((System.ComponentModel.ISupportInitialize)(this.tabPane1)).EndInit();

Loading…
Cancel
Save