职业史问诊界面与表

dhzzyy
luoxingjian 6 months ago
parent ddb5e39f03
commit 31766afb3e
  1. 124
      PEIS/Entity/ExamCareerHisInq.cs
  2. 18
      PEIS/Model/Exam/CareerHisInqModel.cs
  3. 13
      PEIS/PEIS.csproj
  4. 24
      PEIS/Presenter/CareerHisInqPresenter.cs
  5. 10
      PEIS/Properties/licenses.licx
  6. 1472
      PEIS/View/Exam/CareerHisInqForm.Designer.cs
  7. 58
      PEIS/View/Exam/CareerHisInqForm.cs
  8. 139
      PEIS/View/Exam/CareerHisInqForm.resx
  9. 17
      PEIS/View/Exam/ICareerHisInqView.cs

@ -0,0 +1,124 @@
using PEIS.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PEIS.Entity
{
/// <summary>
/// 职业史问诊
/// </summary>
public class ExamCareerHisInq : ObjectData
{
public override String TableName => "Exam_CareerHisInq";
/// <summary>
/// 患者id
/// </summary>
public Int64? PID { get; set; }
/// <summary>
/// 既往史
/// </summary>
public string PastHistory { get; set; }
/// <summary>
/// 现病史
/// </summary>
public string PreHisIllness { get; set; }
/// <summary>
/// 家族史
/// </summary>
public string FamilyHistory { get; set; }
/// <summary>
/// 手术史
/// </summary>
public string SurgicalHistory { get; set; }
/// <summary>
///结婚日期-结婚史
/// </summary>
public string MarriageDate { get; set; }
/// <summary>
///配偶职业及健康状况-结婚史
/// </summary>
public string SpouseOctionhealth{ get; set; }
/// <summary>
///配偶放射历史-结婚史
/// </summary>
public string SpouseRadiationHis{ get; set; }
/// <summary>
/// 初潮-月经史
/// </summary>
public string Menarche { get; set; }
/// <summary>
/// 经期(天)-月经史
/// </summary>
public string MenarchePeriod { get; set; }
/// <summary>
/// 周期(天)-月经史
/// </summary>
public string MenarcheCycle { get; set; }
/// <summary>
/// 末次月经/停经年龄-月经史
/// </summary>
public string LastMenstrualPod { get; set; }
/// <summary>
/// 现有子女(人)-生育史
/// </summary>
public string ExistingChildren { get; set; }
/// <summary>
///流产(次)-生育史
/// </summary>
public string Abortion { get; set; }
/// <summary>
///早产(次)-生育史
/// </summary>
public string PrematureDelivery { get; set; }
/// <summary>
///死产(次)-生育史
/// </summary>
public string Stillbirth { get; set; }
/// <summary>
///异常胎(次)-生育史
/// </summary>
public string AbnormalFetus { get; set; }
/// <summary>
/// 吸烟情况(1:不吸烟;2:偶吸烟;3:经常吸)--烟酒史
/// </summary>
public Int64? SmokeState { get; set; }
/// <summary>
/// 吸烟数量(支/天)--烟酒史
/// </summary>
public string SmokeQuantity { get; set; }
/// <summary>
/// 吸烟年限年(年)--烟酒史
/// </summary>
public string SmokeYears { get; set; }
/// <summary>
/// 吸烟年限月(月)--烟酒史
/// </summary>
public string SmokeMonths { get; set; }
/// <summary>
/// 饮酒情况(1:不饮酒;2:偶饮酒;3:经常饮)--烟酒史
/// </summary>
public Int64? DrinkState { get; set; }
/// <summary>
/// 饮酒数量(mL/天)--烟酒史
/// </summary>
public string DrinkQuantity { get; set; }
/// <summary>
///饮酒年限年(年)--烟酒史
/// </summary>
public string DrinkYears { get; set; }
/// <summary>
/// 睡眠情况
/// </summary>
public string SleepCondition { get; set; }
/// <summary>
/// 其他
/// </summary>
public string Other { get; set; }
/// <summary>
/// 症状
/// </summary>
public string Symptom { get; set; }
}
}

@ -0,0 +1,18 @@
using PEIS.Entity;
using PEIS.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PEIS.Model.Exam
{
public class CareerHisInqModel
{
public BasePatient GetPatient(Int64 pID)
{
var item = DAOHelp.GetDataBySQL<BasePatient>($@"Select * From Base_Patient a WHERE a.ID = {pID}");
return item.Count != 0 ? item[0] : null;
}
}
}

@ -193,10 +193,13 @@
</Compile> </Compile>
<Compile Include="Base\IViewBase.cs" /> <Compile Include="Base\IViewBase.cs" />
<Compile Include="Base\Presenter.cs" /> <Compile Include="Base\Presenter.cs" />
<Compile Include="Entity\ExamCareerHisInq.cs" />
<Compile Include="Entity\EnrollmentReserve.cs" /> <Compile Include="Entity\EnrollmentReserve.cs" />
<Compile Include="Entity\ExamResultIsm.cs" /> <Compile Include="Entity\ExamResultIsm.cs" />
<Compile Include="Entity\Log.cs" /> <Compile Include="Entity\Log.cs" />
<Compile Include="Model\Exam\CareerHisInqModel.cs" />
<Compile Include="Model\Exam\HistoryModel.cs" /> <Compile Include="Model\Exam\HistoryModel.cs" />
<Compile Include="Presenter\CareerHisInqPresenter.cs" />
<Compile Include="Presenter\EnrollmentSearchPresenter.cs" /> <Compile Include="Presenter\EnrollmentSearchPresenter.cs" />
<Compile Include="Presenter\NewBasePatientPresenter.cs" /> <Compile Include="Presenter\NewBasePatientPresenter.cs" />
<Compile Include="Presenter\NewEnrollmentPersonPresenter.cs" /> <Compile Include="Presenter\NewEnrollmentPersonPresenter.cs" />
@ -383,6 +386,13 @@
<Compile Include="View\EReport\TeamReportForm.Designer.cs"> <Compile Include="View\EReport\TeamReportForm.Designer.cs">
<DependentUpon>TeamReportForm.cs</DependentUpon> <DependentUpon>TeamReportForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="View\Exam\CareerHisInqForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="View\Exam\CareerHisInqForm.Designer.cs">
<DependentUpon>CareerHisInqForm.cs</DependentUpon>
</Compile>
<Compile Include="View\Exam\ICareerHisInqView.cs" />
<Compile Include="View\Exam\IPartView.cs" /> <Compile Include="View\Exam\IPartView.cs" />
<Compile Include="View\Exam\PartForm.cs"> <Compile Include="View\Exam\PartForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
@ -571,6 +581,9 @@
<EmbeddedResource Include="View\EReport\TeamReportForm.resx"> <EmbeddedResource Include="View\EReport\TeamReportForm.resx">
<DependentUpon>TeamReportForm.cs</DependentUpon> <DependentUpon>TeamReportForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="View\Exam\CareerHisInqForm.resx">
<DependentUpon>CareerHisInqForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="View\Exam\PartForm.resx"> <EmbeddedResource Include="View\Exam\PartForm.resx">
<DependentUpon>PartForm.cs</DependentUpon> <DependentUpon>PartForm.cs</DependentUpon>
<SubType>Designer</SubType> <SubType>Designer</SubType>

@ -0,0 +1,24 @@
using PEIS.Base;
using PEIS.Model.Exam;
using PEIS.View.Exam;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PEIS.Presenter
{
internal class CareerHisInqPresenter: Presenter<ICareerHisInqView>
{
public CareerHisInqPresenter(ICareerHisInqView view) : base(view)
{
}
protected override void OnViewSet()
{
View.GetPatients += (send, args) =>
{
View.ShowPatient(new CareerHisInqModel().GetPatient(args.ID));
};
}
}
}

@ -1,11 +1 @@
DevExpress.Patch.InMemoryPatch, DevExpress.Patch.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7fc7bfca2443de66
DevExpress.XtraEditors.SearchLookUpEdit, DevExpress.XtraGrid.v17.1, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
DevExpress.XtraEditors.Repository.RepositoryItemComboBox, DevExpress.XtraEditors.v17.1, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit, DevExpress.XtraEditors.v17.1, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
DevExpress.XtraGrid.GridControl, DevExpress.XtraGrid.v17.1, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a DevExpress.XtraGrid.GridControl, DevExpress.XtraGrid.v17.1, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
DevExpress.XtraNavBar.NavBarControl, DevExpress.XtraNavBar.v17.1, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
DevExpress.XtraTabbedMdi.XtraTabbedMdiManager, DevExpress.XtraBars.v17.1, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
DevExpress.XtraEditors.Repository.RepositoryItemGridLookUpEdit, DevExpress.XtraGrid.v17.1, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
DevExpress.XtraEditors.DateEdit, DevExpress.XtraEditors.v17.1, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
DevExpress.XtraEditors.Repository.RepositoryItemSearchLookUpEdit, DevExpress.XtraGrid.v17.1, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
DevExpress.XtraEditors.Repository.RepositoryItemTextEdit, DevExpress.XtraEditors.v17.1, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a

File diff suppressed because it is too large Load Diff

@ -0,0 +1,58 @@
using PEIS.Base;
using PEIS.Entity;
using PEIS.Event;
using PEIS.Presenter;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace PEIS.View.Exam
{
public partial class CareerHisInqForm : ViewBase, ICareerHisInqView
{
private Int64 PID;
public CareerHisInqForm(Int64 pID)
{
InitializeComponent();
PID = pID;
Shown += CareerHisInqForm_Shown;
ConfirmBtn.Click += ConfirmBtn_Click;
CancelBtn.Click += CancelBtn_Click;
LoadPatients(pID);
}
protected virtual void LoadPatients(Int64 pID)
{
GetPatients?.Invoke(this, new Args<BasePatient> { ID = pID });
}
//获取患者基本信息
public event EventHandler<Args<BasePatient>> GetPatients;
public void ShowPatient(BasePatient patient)
{
}
private void CareerHisInqForm_Shown(object sender, EventArgs e)
{
throw new NotImplementedException();
}
private void ConfirmBtn_Click(object sender, EventArgs e)
{
throw new NotImplementedException();
}
private void CancelBtn_Click(object sender, EventArgs e)
{
Close();
}
protected override object CreatePresenter()
{
return new CareerHisInqPresenter(this);
}
}
}

@ -0,0 +1,139 @@
<?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>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="CancelBtn.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAH1JREFUSEvt
lEEKgDAMBPNJf5GX+T+9aiM5REhDVlPx0AGhbXan4KE0+R8787Ixr7pNIx3p6raPBNt3IJfAHaSAZG9k
iplMSCSIZhCeyDt7hRXatY5rMOJ6uTD0AiOv/0We0Dt7RCSKZikygkzGBSki2Qu40IA6w5/ryccQnexo
4OWtCNeHAAAAAElFTkSuQmCC
</value>
</data>
<data name="ConfirmBtn.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAPJJREFUSEtj
GAWjgCRgP/9/KJRJfWA/73+kw7z//4GWmEKFqAeAhsaCDAfiy3az/2tChakDgC5PhBp+3m7+f1WoMHUA
0OWpUMPP2Mz7rwQVpg4AujwTavgJl4X/5aDChIHD3P8NUCZOAHR5Ltjwuf+POE3/Lw0VJgyAmtKhGnFa
AnR5IdTlB5xn/xeHChMPgBpX4bIE6PJSqNwe54X/haHCpAO4JfP/10OFQC6vBIvN+78DKC4AFSYfwC0B
+gTo8looe4vDqv88UCWUA7glELzBsu8/J1SKegBsyfz/a4xn/meFCtEANPxngrJGwShABwwMAJBYlx6C
WXdWAAAAAElFTkSuQmCC
</value>
</data>
</root>

@ -0,0 +1,17 @@
using PEIS.Base;
using PEIS.Entity;
using PEIS.Event;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PEIS.View.Exam
{
internal interface ICareerHisInqView:IViewBase
{
//获取患者基本信息
event EventHandler<Args<BasePatient>> GetPatients;
void ShowPatient(BasePatient patient);
}
}
Loading…
Cancel
Save