2021版标准麻醉记录单开发

This commit is contained in:
leomo 2022-10-18 23:20:24 +08:00
parent 3279cd432f
commit 7d14ef4af8
23 changed files with 5440 additions and 1498 deletions

View File

@ -279,6 +279,12 @@
<Compile Include="OperationAfter\frmQualityControlViewParent.designer.cs">
<DependentUpon>frmQualityControlViewParent.cs</DependentUpon>
</Compile>
<Compile Include="OperationDoing\AnasRecordBill\frmAnasRecordBill2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="OperationDoing\AnasRecordBill\frmAnasRecordBill2.Designer.cs">
<DependentUpon>frmAnasRecordBill2.cs</DependentUpon>
</Compile>
<Compile Include="OperationDoing\AnasRecordBill\frmAnasRecordInstrument.cs">
<SubType>Form</SubType>
</Compile>
@ -1001,6 +1007,10 @@
<EmbeddedResource Include="OperationAfter\frmQualityControlViewParent.resx">
<DependentUpon>frmQualityControlViewParent.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OperationDoing\AnasRecordBill\frmAnasRecordBill2.resx">
<DependentUpon>frmAnasRecordBill2.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="OperationDoing\AnasRecordBill\frmAnasRecordInstrument.resx">
<DependentUpon>frmAnasRecordInstrument.cs</DependentUpon>
<SubType>Designer</SubType>

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<AtuoUpdate>
<!--<ConnectionString>Data Source=tx.wulvshi.cn;Initial Catalog=AIMSDB_SXTLYY;User ID=sa;Password=Test2020;</ConnectionString>-->
<ConnectionString>Data Source=.;Initial Catalog=AIMSDB_SXTLYY;User ID=sa;Password=Test2020;</ConnectionString>
<DataConnectionString>Data Source=.;Initial Catalog=AIMSDB_DATA;User ID=sa;Password=Test2020;</DataConnectionString>
<HisConnectionStringOracel>Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.10.7)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl2))));Persist Security Info=True;User ID=smview;Password=i39;</HisConnectionStringOracel>

View File

@ -114,7 +114,7 @@ namespace AIMS.OperationDoing.AnasRecordBill
}
}
public static void IniDrawAnasReordBill4(OperationRecord _record, ZedGraphControl Zgc, ZedGraphControl Zgc2, ref TemplateManage templateManage , ref TemplateManage templateManage2)
public static void IniDrawAnasReordBill4(OperationRecord _record, ZedGraphControl Zgc, ZedGraphControl Zgc2, ref TemplateManage templateManage, ref TemplateManage templateManage2)
{
try
{
@ -134,19 +134,19 @@ namespace AIMS.OperationDoing.AnasRecordBill
templateManage.ZedControl.Width = templateManage.ZedControl.Parent.Width - 54;
templateManage.ZedControl.Height = (templateManage.ZedControl.Parent.Width - 54) / 8 * 11;
TextPackObj janCePack = templateManage.GetPackObjectOTag<TextPackObj>("BaseInfoTopManage_TextPackObj_2");
int LocationY = Convert.ToInt32(templateManage.ZedControl.Height * janCePack.RealY);
templateManage.LocationY = LocationY;
templateManage.SetPYL();
templateManage.ZedControl.AxisChange();
templateManage.ZedControl.Refresh();
templateManage.ZedControl.Refresh();
}
else
{
MessageBox.Show(templateManage.MsgStr);
}
}
}
}
catch (Exception ex)
{
@ -164,25 +164,107 @@ namespace AIMS.OperationDoing.AnasRecordBill
bool reVal = templateManage2.Load();
if (reVal)
{
templateManage2.DrawArea();
templateManage2.DrawArea();
templateManage2.ZedControl.Width = templateManage2.ZedControl.Parent.Width - 54;
templateManage2.ZedControl.Height = (templateManage2.ZedControl.Parent.Width - 54) / 8 * 11;
templateManage2.ZedControl.Height = (templateManage2.ZedControl.Parent.Width - 54) / 8 * 11;
templateManage2.LocationY = 0;
templateManage2.SetPYL();
templateManage2.ZedControl.AxisChange();
templateManage2.ZedControl.Refresh();
templateManage2.ZedControl.Refresh();
}
else
{
MessageBox.Show(templateManage2.MsgStr);
}
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
public static void IniDrawAnasReordBill5(OperationRecord _record, ZedGraphControl Zgc, ZedGraphControl Zgc2, ref TemplateManage templateManage, ref TemplateManage templateManage2)
{
try
{
string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=40").ToString();
if (jsonStr != null && jsonStr != "")
{
templateManage = JsonConvert.DeserializeObject<TemplateManage>(jsonStr);
templateManage.OpeRecord = BOperationRecord.getRecord(_record, -1, 1);
templateManage.ZedControl = Zgc;
templateManage.Id = 40;
bool reVal = templateManage.Load();
if (reVal)
{
templateManage.DrawArea();
DrawGraph.Util.DrawText(AIMSExtension.PublicMethod.GetHospitalName(), 0.385, 0.018, Zgc, DrawGraph.Util.Font16);
DrawGraph.Util.DrawText(" 麻醉记录单", 0.4, 0.04, Zgc, DrawGraph.Util.Font16);
#region
//在此处可随时设置板子的属性
templateManage.ZedControl.Width = templateManage.ZedControl.Parent.Width - 54;
templateManage.ZedControl.Height = (templateManage.ZedControl.Parent.Width - 54) / 8 * 11;
TextPackObj janCePack = templateManage.GetPackObjectOTag<TextPackObj>("BaseInfoTopManage_TextPackObj_2");
int LocationY = Convert.ToInt32(templateManage.ZedControl.Height * janCePack.RealY);
templateManage.LocationY = LocationY;
templateManage.SetPYL();
templateManage.ZedControl.AxisChange();
templateManage.ZedControl.Refresh();
//最后还要调整图表进行自适应
PackObjBase pack = templateManage.GetPackObjectOTag<PackObjBase>("PhysioDataManage_ChartPackObj_6");
if (pack != null)
pack.Draw();
#endregion
}
else
{
MessageBox.Show(templateManage.MsgStr);
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
try
{
string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=50").ToString();
if (jsonStr != null && jsonStr != "")
{
templateManage2 = JsonConvert.DeserializeObject<TemplateManage>(jsonStr);
templateManage2.ZedControl = Zgc2;
templateManage2.Id = 50;
templateManage2.OpeRecord = BOperationRecord.getRecord(_record, -1, 2);
bool reVal = templateManage2.Load();
if (reVal)
{
templateManage2.DrawArea();
templateManage2.ZedControl.Width = templateManage.ZedControl.Width;
templateManage2.ZedControl.Height = templateManage.ZedControl.Height;
templateManage2.LocationY = 0;
templateManage2.SetPYL();
templateManage2.ZedControl.AxisChange();
templateManage2.ZedControl.Refresh();
}
else
{
MessageBox.Show(templateManage2.MsgStr);
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
public static DataTable SelectPhysioDataUpdate(int Id)
{
string sql = string.Format("SELECT PhysioDataUpdate.Id,pr.Name ,PatientId,PhysioDataConfigId,RecordTime,[OldParamValue],[ParamValue],[PhysioDataUpdate].[OperatorName],[OperatorTime] FROM[dbo].[PhysioDataUpdate] left join PhysioDataConfig pr on pr.id =PhysioDataConfigId where PatientId ={0}", Id);

View File

@ -896,6 +896,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
{
PublicUI.UI.frmFactOutputLiquidsNew frmFactOutputLiquids = new PublicUI.UI.frmFactOutputLiquidsNew();
frmFactOutputLiquids._record = _record;
frmFactOutputLiquids.zgcAnaesRecord = zgcAnaesRecord;
frmFactOutputLiquids.OutputLiquidTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单
frmFactOutputLiquids.FormClosed += new FormClosedEventHandler(frmFactEventsNew_FormClosed);
frmFactOutputLiquids.ShowDialog();

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,411 @@
<?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>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>62</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAQEAAAAEAIAAoQgAAFgAAACgAAABAAAAAgAAAAAEAIAAAAAAAAEAAABMLAAATCwAAAAAAAAAA
AAD/////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////+//38/P/9+/r//v38////
/v//////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////v5
9//q2tD/4sq6/+rc0v/7+ff/////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///////////////////37ef/5LGP/+Kdbv/jsZD/9uzl//7/////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////8+/r/79vO/+OZZv/jk1z/45lm/+nQwP/69/b/////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////+fb0/+bLuf/jlF3/45Nc/+OT
Xf/gvaT/9vHt////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////fy
7//hv6r/45Re/+OTXP/jlF3/36+N//bs5f//////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///////////////////27+r/3rac/+OUXf/jk1z/45Nd/+Omff/y4dX//f39////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////9uzl/96ujf/jlF3/45Nc/+OTXP/mnWz/58q2//fz
8f//////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////fp4P/hp4D/45Nd/+OT
XP/jk1z/45Ja/9+0l//z6uX/////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////7/
///14tX/5qFy/+OTXP/jk1z/4pJb/+OSW//fp4H/8+PZ////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///////////////////5+Pf/68+7/+OSW//jk1z/4pJc/92OWP/hkVv/5KBx//LZyf/9/f7/////////
///////////////////////////////////////////////+/v/9+/r/+/j1//z39P/8+PX//Pn3//79
/f//////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////9vLv/+TDq//jklv/4pJb/+GRW//djlj/4JBa/+OS
Wv/kvaL/9O7q///////////////////////////////////////////////////////59vT/69nN/9+7
ov/gtZf/37id/+HGsv/17Ob//fz7////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////Ts6P/guJ7/45Jb/+KT
XP/fkFr/3I5Y/+CRWv/jkVn/36yJ//Dj2f//////////////////////////////////////////////
///38/H/6c68/+Knfv/il2P/4pdi/+KXY//jmmn/6bGM//Di2P/8+/r/////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///z5+D/3q6O/+OSW//ilmH/3q2M/+O8ov/mqH//5JZh/+Cid//x28z/////////////////////////
////////////////////////7NvP/+CqhP/jlF7/45Jb/+OTW//jk1v/45Nc/+SYY//jtZT/+O/p////
////////////////////////////////////////////////////////////////////////+PLv/+nP
v//vwqP/78Kj/+/Co//vwqP/78Kj/+/Co//vwqP/78Kj/+/Co//vwaP/7cKl/+vOu//8+vj/////////
////////////////////////8+TZ/9+ngP/jklr/45lm/+bOv//27ef/57mb/+KYZf/lnm7/7tC8//r6
+f//////+fLu/+jKtv/vwqT/78Kj/+/Co//vwqP/78Kk/+m1k//jnm//45Ja/+OTXP/jk1z/45Nc/+OT
XP/jk1z/4pln/+nPvf/59vT/////////////////////////////////////////////////////////
//////////////Xt6f/et57/5Jhk/+SYZP/kmGT/5Jhk/+SYZP/kmGT/5Jhk/+SYZP/kmGT/5Jhk/+OZ
Zv/ipHr/7d7U//38+/////////////////////////////bh0//koXT/45Re/+iofv/06+X//fz7/+TD
rf/hm2r/5JVf/+W5nP/y6ub//Pz7/+/d0P/jqYH/5Jhl/+SYZP/kmGT/5Jhk/+SYZP/lmWb/5JZh/+OT
XP/jk1z/45Nc/+OTXP/jk1z/45Nc/+OTW//guqL/9u/r////////////////////////////////////
///////////////////////////////////17ej/3ree/+WaaP/lmmf/5Zpn/+WaZ//lmmf/5Zpn/+Wa
Z//lmmf/5Ztp/+WZZv/jklr/45hk/+HFsf/8+ff///////////////////////z9/f/y2sn/5qBx/+SW
Yf/rsov//fn2//7+/v/l0MH/4Z9x/+OPVv/fpoD/7d3S//by7//jwar/5pxq/+Wda//lmmj/5Zpn/+Wa
Z//lmmf/5Zxq/+SYY//jk1v/45Nc/+OTXP/jk1z/45Nc/+OTXP/jk1v/4Luj//bw7P//////////////
////////////////////////////////////////////////////////+fXy/+3Yy//yzbT/8s20//LN
tP/yzbT/8s20//LNtP/yzbT/8s61/+3GrP/krIf/45Ja/+KXY//guZ3//Pj1////////////////////
///39PL/6cmz/+WaZ//jlmH/6LOO//76+P//////7eLb/+Wthf/jlF3/4Z9x//DVw//06uP/3qyK/+SV
YP/prIP/8cux//LNtP/yzbT/8s62/+m5mv/jnW7/45Ja/+OTXP/jk1z/45Nc/+OTXP/jk1z/5Jto/+bK
t//49PL/////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////18e7/5MOt/+SXYv/jlmH/5LCN//ny
7f//////////////////////8uzo/+K5nf/jkFf/4pdk/+O4mf/9+/n///////j29P/pwKT/45po/+Wb
af/wy7P/8dzO/+Kjef/jlmH/6LGM//369//////////////////t3ND/4ayI/+KVYP/jklr/45Jb/+OS
W//jk1v/5Jlm/+Sxjv/w4dj//Pv6////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////+vn4/+7Z
yv/lpHj/5JVf/+ene//u4NX//Pv6//////////////////Dl3f/fr4//45FZ/+KZZ//hwKj//fv6////
////////5su4/+Cdb//lmWX/5rCM/+a1lv/mnWz/4pdk/+O4nP/9+vj/////////////////+Pb0/+vU
xP/irYj/4Zlo/+KYZP/imGX/4p5w/+i1kv/o08b/+vf1////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///////////////////26eH/36mE/+OTXP/jl2P/5Mq6//r39v/////////////////v3tL/3qV//+OR
Wf/inGz/482+//38+////////////+jWzP/hpn7/45Jb/+GRWv/hklv/45Nc/+Oeb//kzb7//fz7////
///////////////////7+fj/7d/W/+LBqv/muJj/5rqc/+PLuf/v5d7//fz7////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////9e3n/96zlf/jk13/45Zh/9+8pf/59fH/////////
////////8drK/+GhdP/jkln/5KJ0/+zf1//+/f3////////////x6uT/57qc/+KYZv/gkFn/4pJb/+SX
Y//ptJD/9e7q//7+/v////////////////////////////7+/f/+/fz//vz7//78+//+/fz//v7+////
////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////fy7//iwav/45Re/+OV
YP/fsJD/+fLt//////////////////TYxP/lnWz/5JZh/+u1kf/69vT////+/////////////////+vI
sv/gmmv/4pFa/+OSW//imWb/5ryg//78+///////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///6+Pb/69XH/+ekd//jlWD/5qmB//Tn3v/9/f3///////n5+P/uzrn/5p1s/+OXY//ruZj//v38////
///////////////////p0sH/36F2/+OSWv/jklr/4Z1u/+PJuP/+/v3/////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/////////////////////////v////br4//iq4f/45Vf/+SZZv/p0cH/+vj2///////z7ur/5rye/+ST
XP/imWb/5r6h///+/f//////////////////////7N/V/+GqhP/jkFf/5Jdi/+ewi//r39f//v7+////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////48u3/3rWY/+OVX//jlF3/4L+p//fy
7///////7uPc/+CujP/jkFf/4Ztr/+PDrf/+/v3///////////////////////Tv7P/pvqH/5Zdi/+KZ
Zv/nv6T/+vj2////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////+fXy/+HC
rP/jlV//45Rd/96ylf/27uj//////+zZzf/fpX7/45FY/+GecP/kzLz//v7+////////////////////
///9/f3/7NTF/9+phv/grYr/69fJ////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//////////////v59//p1cb/5Z9w/+OUXv/hqYT/9ejf///////u1MH/4J9z/+OQV//jonb/6drQ///+
/v////////////////////////////bv6//t28//8N/T//fz8P//////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////+/f3/9erj/+WtiP/jlmD/5J1u/+7Xyf/7/f7/8dG7/+Oc
a//jk1z/6LCJ//Tv6///////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////v28v/ftZf/4pZi/+OS
Wv/kvqX/8ube//DIrf/lm2j/45hk/+3Aov//////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///7+PX/4MKs/+KXZP/jklv/3qR9/+S0lP/mrIP/5Jll/+GZaP/pwqj/////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/////////////////////////Pr5/+bSxP/knGv/4pFc/9+QWv/gkVv/35Ba/+CPWP/gnW//5sm1////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////79/f/06uX/6K+J/+OVYP/gkVr/35Ba/+CQ
Wv/ikFj/4KJ2/+bSw///////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////Pn2/+O4
mv/il2T/349Y/9+QWf/gkFr/4pBZ/+Knfv/p29L/////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//////////////37+f/hwq3/4ppo/+KRWv/fj1n/349Z/+SYZf/ouJj/7+fi////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////9/Pv/5dLF/+OcbP/jklr/4pJb/+KRWv/kmmj/7saq//z8
+///////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////v39//Ho4v/nrYX/45Vg/+OT
XP/jklv/4pxs/+3LtP//////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///7+ff/5rue/+KZZv/jklv/45Ja/+Cfc//qz73/////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/////////////////////////v39/+PEsP/hm2v/45Ja/+ORWf/fpHz/6dbJ////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////7+/f/l0cX/4p9x/+OSWf/jkVj/4aqF/+zf
1///////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////v7/7uXf/+Wq
gf/jk1z/5JNc/+W1lP/w6eT/////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//////////////v6+f/qv6H/45hl/+Scav/ryK//9/Xz////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////58u3/+Ghdf/go3n/7tfG////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////Tu6v/m0cT/5M7A//Pr
5f//////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///+/f3//Pr4//v5+P/9/fz/////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
</value>
</data>
</root>

View File

@ -36,15 +36,6 @@ namespace AIMS.PublicUI.UI
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmFactOutputLiquidsNew));
this.panel1 = new System.Windows.Forms.Panel();
this.dgvOutput = new DevComponents.DotNetBar.Controls.DataGridViewX();
this.TypeName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.OutputName = new AIMS.PublicUI.UI.DataGridViewComboEditTipBoxColumn();
this.Dose = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DoseUnit = new System.Windows.Forms.DataGridViewComboBoxColumn();
this.BeginTime = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
this.Continue = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.EndTime = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
this.Remark = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel3 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.btnDelete = new DevComponents.DotNetBar.ButtonX();
this.btnSave = new DevComponents.DotNetBar.ButtonX();
@ -54,6 +45,14 @@ namespace AIMS.PublicUI.UI
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.calendarColumn1 = new AIMS.OremrUserControl.CalendarColumn();
this.calendarColumn2 = new AIMS.OremrUserControl.CalendarColumn();
this.TypeName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.OutputName = new AIMS.PublicUI.UI.DataGridViewComboEditTipBoxColumn();
this.Dose = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DoseUnit = new System.Windows.Forms.DataGridViewComboBoxColumn();
this.BeginTime = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
this.Continue = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.EndTime = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
this.Remark = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvOutput)).BeginInit();
this.panel2.SuspendLayout();
@ -62,13 +61,12 @@ namespace AIMS.PublicUI.UI
// panel1
//
this.panel1.Controls.Add(this.dgvOutput);
this.panel1.Controls.Add(this.panel3);
this.panel1.Controls.Add(this.panel2);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(864, 471);
this.panel1.Size = new System.Drawing.Size(1035, 421);
this.panel1.TabIndex = 1;
//
// dgvOutput
@ -112,13 +110,84 @@ namespace AIMS.PublicUI.UI
this.dgvOutput.RowTemplate.Height = 23;
this.dgvOutput.ShowCellErrors = false;
this.dgvOutput.ShowCellToolTips = false;
this.dgvOutput.Size = new System.Drawing.Size(864, 419);
this.dgvOutput.Size = new System.Drawing.Size(1035, 379);
this.dgvOutput.TabIndex = 3;
this.dgvOutput.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvOutput_CellClick);
this.dgvOutput.CurrentCellDirtyStateChanged += new System.EventHandler(this.dgvDrugs_CurrentCellDirtyStateChanged);
this.dgvOutput.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.dgvOutput_EditingControlShowing);
this.dgvOutput.RowsAdded += new System.Windows.Forms.DataGridViewRowsAddedEventHandler(this.dgvEvents_RowsAdded);
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.Transparent;
this.panel2.Controls.Add(this.btnDelete);
this.panel2.Controls.Add(this.btnSave);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1035, 42);
this.panel2.TabIndex = 0;
//
// btnDelete
//
this.btnDelete.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnDelete.Location = new System.Drawing.Point(674, 7);
this.btnDelete.Name = "btnDelete";
this.btnDelete.Size = new System.Drawing.Size(86, 30);
this.btnDelete.TabIndex = 2;
this.btnDelete.Text = "删除";
this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
//
// btnSave
//
this.btnSave.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnSave.Location = new System.Drawing.Point(766, 7);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(86, 30);
this.btnSave.TabIndex = 1;
this.btnSave.Text = "保存";
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.HeaderText = "类型";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.Visible = false;
this.dataGridViewTextBoxColumn1.Width = 60;
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.HeaderText = "计量";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
//
// dataGridViewTextBoxColumn3
//
this.dataGridViewTextBoxColumn3.HeaderText = "持续";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
this.dataGridViewTextBoxColumn3.Width = 60;
//
// dataGridViewTextBoxColumn4
//
this.dataGridViewTextBoxColumn4.HeaderText = "备注";
this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
this.dataGridViewTextBoxColumn4.Width = 250;
//
// calendarColumn1
//
this.calendarColumn1.HeaderText = "开始时间";
this.calendarColumn1.Name = "calendarColumn1";
this.calendarColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.calendarColumn1.ShowUpDown = false;
this.calendarColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// calendarColumn2
//
this.calendarColumn2.HeaderText = "结束时间";
this.calendarColumn2.Name = "calendarColumn2";
this.calendarColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.calendarColumn2.ShowUpDown = false;
this.calendarColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// TypeName
//
this.TypeName.HeaderText = "类型";
@ -184,13 +253,11 @@ namespace AIMS.PublicUI.UI
this.BeginTime.MonthCalendar.Visible = false;
this.BeginTime.Name = "BeginTime";
this.BeginTime.Resizable = System.Windows.Forms.DataGridViewTriState.False;
this.BeginTime.Visible = false;
//
// Continue
//
this.Continue.HeaderText = "持续";
this.Continue.Name = "Continue";
this.Continue.Visible = false;
this.Continue.Width = 60;
//
// EndTime
@ -228,7 +295,6 @@ namespace AIMS.PublicUI.UI
this.EndTime.MonthCalendar.Visible = false;
this.EndTime.Name = "EndTime";
this.EndTime.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.EndTime.Visible = false;
//
// Remark
//
@ -236,91 +302,11 @@ namespace AIMS.PublicUI.UI
this.Remark.Name = "Remark";
this.Remark.Width = 400;
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.PaleTurquoise;
this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel3.Location = new System.Drawing.Point(0, 461);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(864, 10);
this.panel3.TabIndex = 1;
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.Transparent;
this.panel2.Controls.Add(this.btnDelete);
this.panel2.Controls.Add(this.btnSave);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(864, 42);
this.panel2.TabIndex = 0;
//
// btnDelete
//
this.btnDelete.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnDelete.Location = new System.Drawing.Point(674, 7);
this.btnDelete.Name = "btnDelete";
this.btnDelete.Size = new System.Drawing.Size(86, 30);
this.btnDelete.TabIndex = 2;
this.btnDelete.Text = "删除";
this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
//
// btnSave
//
this.btnSave.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnSave.Location = new System.Drawing.Point(766, 7);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(86, 30);
this.btnSave.TabIndex = 1;
this.btnSave.Text = "保存";
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.HeaderText = "类型";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.Visible = false;
this.dataGridViewTextBoxColumn1.Width = 60;
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.HeaderText = "计量";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
//
// dataGridViewTextBoxColumn3
//
this.dataGridViewTextBoxColumn3.HeaderText = "持续";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
this.dataGridViewTextBoxColumn3.Width = 60;
//
// dataGridViewTextBoxColumn4
//
this.dataGridViewTextBoxColumn4.HeaderText = "备注";
this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
this.dataGridViewTextBoxColumn4.Width = 250;
//
// calendarColumn1
//
this.calendarColumn1.HeaderText = "开始时间";
this.calendarColumn1.Name = "calendarColumn1";
this.calendarColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.calendarColumn1.ShowUpDown = false;
this.calendarColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// calendarColumn2
//
this.calendarColumn2.HeaderText = "结束时间";
this.calendarColumn2.Name = "calendarColumn2";
this.calendarColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.calendarColumn2.ShowUpDown = false;
this.calendarColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// frmFactOutputLiquidsNew
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(864, 471);
this.ClientSize = new System.Drawing.Size(1035, 421);
this.Controls.Add(this.panel1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
@ -351,7 +337,6 @@ namespace AIMS.PublicUI.UI
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
private CalendarColumn calendarColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.DataGridViewTextBoxColumn TypeName;
private DataGridViewComboEditTipBoxColumn OutputName;
private System.Windows.Forms.DataGridViewTextBoxColumn Dose;

View File

@ -79,8 +79,7 @@ namespace AIMS.PublicUI.UI
if (list.Count > 0)
{
foreach (FactOutputLiquids item in list)
{
#region 20160816 GZ
{
bool k = false;
foreach (DataGridViewRow row in dgvOutput.Rows)
{
@ -122,8 +121,7 @@ namespace AIMS.PublicUI.UI
}
}
}
if (k) continue;
#endregion
if (k) continue;
int index = this.dgvOutput.Rows.Add();
this.dgvOutput.Rows[index].Tag = item.Id;
this.dgvOutput.Rows[index].Cells["Remark"].Value = item.Remark;
@ -290,7 +288,7 @@ namespace AIMS.PublicUI.UI
FactOutputLiquids er = _record.FactOutputLiquidsList.Where(b => b.Id == id).ToList()[0];
//er.IsValid = 0;
BFactOutputLiquids.Delete(er);
//er.clearAddObj(zgcAnaesRecord);
er.clearAddObj(zgcAnaesRecord);
_record.FactOutputLiquidsList.Remove(er);
dgvOutput.Rows.Remove(dgvOutput.CurrentRow);

View File

@ -175,7 +175,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
{
if (State == "开始手术")
{
AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBill frmAnasRecord = new frmAnasRecordBill();
AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBill2 frmAnasRecord = new frmAnasRecordBill2();
frmAnasRecord.PatientId = PatientId;
frmAnasRecord.ApplyId = applyId;
frmAnasRecord.NowRoom = AIMSBLL.BOperationRoom.SelectSingle(RoomId);
@ -195,7 +195,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
}
else
{
AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBill frmAnasRecord = new frmAnasRecordBill();
AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBill2 frmAnasRecord = new frmAnasRecordBill2();
frmAnasRecord.PatientId = PatientId;
frmAnasRecord.ApplyId = applyId;
frmAnasRecord.NowRoom = AIMSBLL.BOperationRoom.SelectSingle(RoomId);
@ -272,7 +272,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
BOperationRecord.DeleteEvent(PatientId, 8);
HelperDB.DbHelperSQL.CommitTrans();
AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBill frmAnasRecord = new frmAnasRecordBill();
AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBill2 frmAnasRecord = new frmAnasRecordBill2();
frmAnasRecord.PatientId = PatientId;
frmAnasRecord.ApplyId = applyId;
frmAnasRecord.NowRoom = AIMSBLL.BOperationRoom.SelectSingle(int.Parse(uc.Tag.ToString()));

View File

@ -32,7 +32,7 @@ namespace AIMSBLL
if (OperationFrontdt.Rows.Count > 0)
{
_record.DepartmentId = int.Parse(OperationFrontdt.Rows[0]["DepartmentId"].ToString());
_record.ApplyDepartmentName = OperationFrontdt.Rows[0]["ApplyDepName"].ToString() + " " + OperationFrontdt.Rows[0]["SickBed"].ToString();
_record.ApplyDepartmentName = OperationFrontdt.Rows[0]["ApplyDepName"].ToString();// + " " + OperationFrontdt.Rows[0]["SickBed"].ToString();
_record.ApplyDepName = OperationFrontdt.Rows[0]["ApplyDepName"].ToString();
_record.EndemicArea = OperationFrontdt.Rows[0]["Illdistrict"].ToString();
_record.Bed = OperationFrontdt.Rows[0]["SickBed"].ToString();

View File

@ -135,14 +135,20 @@ namespace DrawGraph
case "OperationRecord.Assistant1":
Worker_Click(aEdit1, e, 0);
break;
case "OperationRecord.AnaesthesiaMethodName":
Anaes_Click(aEdit1, e);
break;
case "OperationRecord.OperationSiteId": //手术体位
TYZD_Click(aEdit1, e);
break;
case "OperationRecord.TourNurse":
Worker_Click(aEdit1, e, 3);
break;
case "OperationRecord.Operation": //手术名称
ope_Click(aEdit1, e);
break;
case "OperationRecord.AnesthesiaDoctorAssistant":
Worker_Click(aEdit1, e, 0);
case "OperationRecord.OrtherDoctorId":
Worker_Click(aEdit1, e, 3);
break;
//default:
// //在此处写日志
@ -267,6 +273,39 @@ namespace DrawGraph
AIMSExtension.PublicMethod.WriteLog(ex);
}
}
private void Anaes_Click(AbleEditPackObj sender, EventArgs e)
{
AbleEditPackObj ableEdit = sender;
if (ableEdit == null) return;
try
{
if (myOpeRecord != null)
{
SelDict(sender, e, ableEdit.ControlTitleText);
}
}
catch (Exception ex)
{
AIMSExtension.PublicMethod.WriteLog(ex);
}
}
//通用字典分组窗体打开
private void TYZD_Click(AbleEditPackObj sender, EventArgs e, bool isRadio = false)
{
AbleEditPackObj ableEdit = sender;
if (ableEdit == null) return;
try
{
if (myOpeRecord != null)
{
SelDict(sender, e, ableEdit.ControlTitleText);
}
}
catch (Exception ex)
{
AIMSExtension.PublicMethod.WriteLog(ex);
}
}
private void SelDict(AbleEditPackObj sender, EventArgs e, string _DictType)
{

View File

@ -65,7 +65,7 @@ namespace DrawGraph
if (myOpeRecord.InRoomTime != null)
{
template.SetObjValue(myOpeRecord, "OperationRecord.InRoomTime", myOpeRecord.InRoomTime.Value.ToString("yyyy-MM-dd"), myOpeRecord.InRoomTime.ToString());
}
}
if (myOpeRecord.currentPage != 0)
{
template.SetObjValue(myOpeRecord, "OperationRecord.currentPage", myOpeRecord.currentPage.ToString(), myOpeRecord.currentPage.ToString());
@ -74,6 +74,7 @@ namespace DrawGraph
{
template.SetObjValue(myOpeRecord, "OperationRecord.pageCount", myOpeRecord.pageCount.ToString(), myOpeRecord.pageCount.ToString());
}
SetBMI();
#endregion
List<PackObjBase> ables = PackManage.ListPob.Where<PackObjBase>(s => s is AbleEditPackObj).ToList<PackObjBase>();
foreach (PackObjBase pack in ables)
@ -82,6 +83,23 @@ namespace DrawGraph
SetAbleEditView(ableEdit);
}
}
public void SetBMI(bool IsUpdate = false)
{
if (myOpeRecord.Height != null && myOpeRecord.Height != "" && myOpeRecord.Weight != null && myOpeRecord.Weight != "" && myOpeRecord.Weight != "卧床")
{
double hei = double.Parse(myOpeRecord.Height) / 100;
double wei = double.Parse(myOpeRecord.Weight);
double BMI = wei / hei / hei;
myOpeRecord.BMI = Math.Floor(BMI).ToString();
template.SetObjValue(myOpeRecord, "OperationRecord.BMI", myOpeRecord.BMI.ToString(), myOpeRecord.BMI.ToString(), IsUpdate);
}
else
{
myOpeRecord.BMI = "";
template.SetObjValue(myOpeRecord, "OperationRecord.BMI", myOpeRecord.BMI.ToString(), myOpeRecord.BMI.ToString(), IsUpdate);
}
}
/// <summary>
/// 设置可编辑组件的显示样式
/// </summary>
@ -296,7 +314,7 @@ namespace DrawGraph
conl.DoubleClick += Conl_DoubleClick;
break;
case "OperationRecord.BloodType": //血型
TYZD_Click(aEdit1, e);
TYZD_Click(aEdit1, e);
break;
case "OperationRecord.Applydiagnose": //手术诊断
opeDisease_Click(aEdit1, e);
@ -522,6 +540,10 @@ namespace DrawGraph
ableEdit.IsVisible = !ableEdit.IsVisible;
template.SetObjValue(OpeRecord, DataSourceName, text, value, true);
((TextBox)control).BorderStyle = BorderStyle.None;
if (DataSourceName == "OperationRecord.Height" || DataSourceName == "OperationRecord.Weight")
{
SetBMI(true);
}
}
}
catch (Exception ex)

View File

@ -102,66 +102,66 @@ namespace DrawGraph
//}
//else
//{
if (items[1] == "OperationDoctor")
{
i += AddPerson(_operationRecord, _operationRecord.OperationDoctor, 1);
}
else if (items[1] == "Assistant1")
{
i += AddPerson(_operationRecord, _operationRecord.Assistant1, 2);
}
else if (items[1] == "Assistant2")
{
i += AddPerson(_operationRecord, _operationRecord.Assistant2, 3);
}
else if (items[1] == "Assistant3")
{
i += AddPerson(_operationRecord, _operationRecord.Assistant3, 4);
}
else if (items[1] == "AnesthesiaDoctor")
{
i += AddPerson(_operationRecord, _operationRecord.AnesthesiaDoctor, 5);
}
else if (items[1] == "InstrumentNurse")
{
i += AddPerson(_operationRecord, _operationRecord.InstrumentNurse, 6);
}
else if (items[1] == "TourNurse")
{
i += AddPerson(_operationRecord, _operationRecord.TourNurse, 7);
}
////else if (items[1] == "AnesthesiaDoctorAssistant")
////{
//// i += AddPerson(_operationRecord, _operationRecord.AnesthesiaDoctorAssistant, 11);
////}
else if (items[1] == "Operation")
{
i += AddOperation(_operationRecord, _operationRecord.Operation);
}
else if (items[1] == "Applyoperation")
{
i += AddApplyOperation(_operationRecord, _operationRecord.Applyoperation);
}
else if (items[1] == "Applydiagnose")
{
i += AddApplyDiagnose(_operationRecord, _operationRecord.Applydiagnose);
}
else if (items[1] == "AnaesthesiaMethodId")
{
i += AddAnaesthesiaMethod(_operationRecord, _operationRecord.AnaesthesiaMethodId);
}
else if (items[1] == "OperationSiteId")
{
i += AddOperationSite(_operationRecord, _operationRecord.OperationSiteId);
}
else if (items[1] == "Height" || items[1] == "Weight")
{
i += UpdatePatient(items[1] + "='" + value + "' where Id= " + _operationRecord.Id);
}
else
{
i += Update(items[1] + "='" + value + "' where Id= " + _operationRecord.Id);
}
if (items[1] == "OperationDoctor")
{
i += AddPerson(_operationRecord, _operationRecord.OperationDoctor, 1);
}
else if (items[1] == "Assistant1")
{
i += AddPerson(_operationRecord, _operationRecord.Assistant1, 2);
}
else if (items[1] == "Assistant2")
{
i += AddPerson(_operationRecord, _operationRecord.Assistant2, 3);
}
else if (items[1] == "Assistant3")
{
i += AddPerson(_operationRecord, _operationRecord.Assistant3, 4);
}
else if (items[1] == "AnesthesiaDoctor")
{
i += AddPerson(_operationRecord, _operationRecord.AnesthesiaDoctor, 5);
}
else if (items[1] == "InstrumentNurse")
{
i += AddPerson(_operationRecord, _operationRecord.InstrumentNurse, 6);
}
else if (items[1] == "TourNurse")
{
i += AddPerson(_operationRecord, _operationRecord.TourNurse, 7);
}
else if (items[1] == "OrtherDoctorId")
{
i += AddPerson(_operationRecord, _operationRecord.OrtherDoctorId, 11);
}
else if (items[1] == "Operation")
{
i += AddOperation(_operationRecord, _operationRecord.Operation);
}
else if (items[1] == "Applyoperation")
{
i += AddApplyOperation(_operationRecord, _operationRecord.Applyoperation);
}
else if (items[1] == "Applydiagnose")
{
i += AddApplyDiagnose(_operationRecord, _operationRecord.Applydiagnose);
}
else if (items[1] == "AnaesthesiaMethodId")
{
i += AddAnaesthesiaMethod(_operationRecord, _operationRecord.AnaesthesiaMethodId);
}
else if (items[1] == "OperationSiteId")
{
i += AddOperationSite(_operationRecord, _operationRecord.OperationSiteId);
}
else if (items[1] == "Height" || items[1] == "Weight")
{
i += UpdatePatient(items[1] + "='" + value + "' where Id= " + _operationRecord.PatientId);
}
else
{
i += Update(items[1] + "='" + value + "' where Id= " + _operationRecord.Id);
}
//}
}
catch (Exception)

View File

@ -15,8 +15,8 @@ namespace DrawGraph
{
/// <summary>
/// 药品区域
/// </summary>
public RectangleFramePackObj drugPpack;
/// </summary>
public RectangleFramePackObj OutputManagePpack;
public LinePackObj H3pack;
public LinePackObj H5pack;
public LinesPackObj lines;
@ -46,7 +46,7 @@ namespace DrawGraph
RowsCount = Convert.ToInt32(lines.XPageSpan / lines.XMajorGridStep);
H3pack = template.GetPackObjectOTag<LinePackObj>("DrugsManage_LinePackObj_6");
H5pack = template.GetPackObjectOTag<LinePackObj>("DrugsManage_LinePackObj_9");
drugPpack = template.GetPackObjectOTag<RectangleFramePackObj>("DrugsManage_RectangleFramePackObj_2");
OutputManagePpack = template.GetPackObjectOTag<RectangleFramePackObj>("OutputManage_RectangleFramePackObj_10");
}
#endregion
@ -118,7 +118,7 @@ namespace DrawGraph
//y的高度//主要高度
double drugsy = 0;
//加药最后位置
double maxDrugsy = drugPpack.RealY + getYPositionByListIndex(RowsCount - 1, drugPpack.RealY, drugPpack.RealEndY, RowsCount);
double maxDrugsy = lines.RealY + getYPositionByListIndex(RowsCount - 1, lines.RealY, lines.RealEndY, RowsCount);
//持续加药当前时间
DateTime curTimeTemp = OperationRecord.getOpeMaxTime(myOpeRecord);
@ -176,8 +176,8 @@ namespace DrawGraph
if (!isSapDrugs(temp))
{
//以行号返回具休的位置
drugsy = drugPpack.RealY + getYPositionByListIndex(rowDrugsIndex, drugPpack.RealY, drugPpack.RealEndY, RowsCount);
if (temp.DrugName == "氧气") drugsy = drugPpack.RealY;
drugsy = lines.RealY + getYPositionByListIndex(rowDrugsIndex, lines.RealY, lines.RealEndY, RowsCount);
if (temp.DrugName == "氧气") drugsy = lines.RealY;
SetDrug(temp, curTimeTemp, drugsy);
temp.ChildFactDrugList = new List<FactDrug>();
temp.ChildFactDrugList = _FactDrugList.Where(a => a.ParentId == temp.Id).ToList();
@ -244,7 +244,7 @@ namespace DrawGraph
{
foreach (FactDrug sItem in temp.ChildFactDrugList)
{
drugsy = drugPpack.RealY + getYPositionByListIndex(rowDrugsIndex, drugPpack.RealY, drugPpack.RealEndY, RowsCount);
drugsy = lines.RealY + getYPositionByListIndex(rowDrugsIndex, lines.RealY, lines.RealEndY, RowsCount);
SetDrug(sItem, curTimeTemp, drugsy);
if (drugsy <= maxDrugsy)
{
@ -298,7 +298,7 @@ namespace DrawGraph
}
private void DrawZuDragsLine(double x, double y, double zhuy, FactDrug temp)
{
double height = getYPositionByListIndex(1, drugPpack.RealY, drugPpack.RealEndY, RowsCount) / 2;
double height = getYPositionByListIndex(1, lines.RealY, lines.RealEndY, RowsCount) / 2;
//double x = H3pack.RealX + 0.003f;
ZUtil.DrawLine(x, zhuy + height, x, y + height, ZedControl, "zhuyDrugs" + temp.Id, Color.Red);
ZUtil.DrawLine(x, zhuy + height, x + 0.0055f, zhuy + height, ZedControl, "zhuyDrugstop" + temp.Id, Color.Red);
@ -308,7 +308,7 @@ namespace DrawGraph
{
if (temp.IsContinue == 1 && temp.DrugBeginTime == temp.DrugEndTime) temp.End = curTimeTemp;
temp.EqualDose = null;
temp.setAnasArr(ZedControl, H5pack.RealX, drugPpack.RealEndX, myOpeRecord.pageBegin, myOpeRecord.pageBegin.AddMinutes(EVERY_PAGE_TIME_SPAN));
temp.setAnasArr(ZedControl, H5pack.RealX, lines.RealEndX, myOpeRecord.pageBegin, myOpeRecord.pageBegin.AddMinutes(EVERY_PAGE_TIME_SPAN));
temp.nowY = y;
}
private static void ListAddDrugs(List<string> DrugListstr, int i, FactDrug temp)
@ -323,18 +323,7 @@ namespace DrawGraph
DrugListstr.Add(string.Format("({0}){1} {2} {3}{4}{5}", i + 1, (temp.DrugBeginTime == temp.DrugEndTime) ? temp.DrugBeginTime.ToShortTimeString() : temp.DrugBeginTime.ToShortTimeString() + "->" + temp.DrugEndTime.ToShortTimeString(), temp.DrugName.Trim(), dose, "", temp.DrugChannel == null ? "" : " " + temp.DrugChannel.ToString()));
//DrugListstr.Append(" ");
}
//private static void ListAddDrugs(List<string> DrugListstr, FactDrug temp)
//{
// string dose = "";
// if (dose.Trim() != "") dose += " ";
// dose += ((double)temp.Dosage).ToString();
// if (temp.DosageUnit != null)
// {
// dose += temp.DosageUnit;
// }
// DrugListstr.Add(string.Format("{1} {2} {3}{4}{5}", "", (temp.DrugBeginTime == temp.DrugEndTime) ? temp.DrugBeginTime.ToShortTimeString() : temp.DrugBeginTime.ToShortTimeString() + "->" + temp.DrugEndTime.ToShortTimeString(), temp.DrugName.Trim(), dose, "", temp.DrugChannel == null ? "" : "<" + temp.DrugChannel.ToString() + ">"));
// //DrugListstr.Append(" ");
//}
private bool isSapDrugs(FactDrug record)
{
bool isSap = false;
@ -357,6 +346,7 @@ namespace DrawGraph
private void DrawDrugSapDose()
{
if (OutputManagePpack != null) return;
double x = template.GetPackObjectOTag<LinePackObj>("RemarkManage_LinePackObj_9").RealX;
RectangleFramePackObj remarkPpack = template.GetPackObjectOTag<RectangleFramePackObj>("RemarkManage_RectangleFramePackObj_2");
float fontsize = 7f;

View File

@ -1,16 +1,18 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace DrawGraph
{
public class FactOutputLiquids
public class FactOutputLiquids : EventObj
{
private int _id;
private int _patientid;
private int _outputliquidstypeid;
private int _outputliquidsid;
private int _outputliquidsName;
private DateTime _begintime;
private DateTime _endtime;
private decimal _dosage;
@ -122,5 +124,174 @@ namespace DrawGraph
set { _operatedate = value; }
get { return _operatedate; }
}
public double nowY { get; set; }
public string EqualDose { get; set; }
public bool Equal(object drug1)
{
try
{
if ((this.DosageUnit == ((FactOutputLiquids)drug1).DosageUnit) && (this.OutputLiquidsName == ((FactOutputLiquids)drug1).OutputLiquidsName))
{
return true;
}
return false;
}
catch (Exception)
{
return false;
}
}
public override void clearAddObj(ZedGraphControl zgc)
{
//if (zgcAnas == null || zgcAnas != zgc)
zgcAnas = zgc;
clearAddObjPic(zgc);
clearDNDTDD(zgc);
delAddObj(this.OutputLiquidsName + this.OutputLiquidsId);
}
private void clearAddObjPic(ZedGraphControl zgc)
{
//if (zgcAnas == null || zgcAnas != zgc)
zgcAnas = zgc;
delAddObj(TextPrefix.DT + this.OutputLiquidsName + this.Id.ToString());
delAddObj(TextPrefix.DD + this.OutputLiquidsName + this.Id.ToString());
delAddObj(TextPrefix.DD + this.OutputLiquidsName + this.Id.ToString() + "spicle");
delAddObj(TextPrefix.DU + this.OutputLiquidsName + this.Id.ToString());
delAddArrows(TextPrefix.AR + this.OutputLiquidsName + this.Id.ToString());
delLineObj("A" + TextPrefix.AR + this.OutputLiquidsName + this.Id.ToString());
delLineObj("B" + TextPrefix.AR + this.OutputLiquidsName + this.Id.ToString());
}
public override void clearDNAndDT(ZedGraphControl zgc)
{
//if (zgcAnas == null)
zgcAnas = zgc;
delAddObj(TextPrefix.DN + this.OutputLiquidsName + this.Id.ToString());
delAddObj(TextPrefix.DT + this.OutputLiquidsName + this.Id.ToString());
delAddObj(TextPrefix.DU + this.OutputLiquidsName + this.Id.ToString());
//delAddObj(TextPrefix.DD + this.OutputLiquidsName + this.Id.ToString());
delAddObj(this.OutputLiquidsName + this.OutputLiquidsId);
}
/// <summary>
/// 画一条加药记录
/// </summary>
/// <param name="index">高度</param>
/// <param name="faRecord">总量</param>
public override void drawText(double x, double y)
{
if (zgcAnas == null) return;
clearAddObj(zgcAnas);
//画添加药品线,底部加加药次数和备注
this.nowY = y;
paintAdd(y);
//写加药的左边与右信息
drawAddText(x, y);
}
/// <summary>
/// 画添加药品线,底部加加药次数和备注信息
/// </summary>
/// <param name="DrugsRecord"></param>
/// <param name="index"></param>
public void paintAdd(double y)
{
string tagName = this.OutputLiquidsName + this.Id.ToString();
string DoseStr = "";
if (Dosage != 0)
DoseStr = (((double)this.Dosage).ToString());
string RemarkStr = this.Remark;//
string s = "";
if ((EqualDose == null || EqualDose == ""))
{
if (Dosage != 0)
EqualDose = ((double)Dosage).ToString();
}
DateTime dt = EndTime;
DateTime drugDt = this.BeginTime;
bool isContinued = false;
if (IsContinue == 1 && BeginTime == EndTime)
{
dt = End;
isContinued = true;
}
if (EndTime != null && BeginTime != null && BeginTime != EndTime)
{
TimeSpan tsp = EndTime - BeginTime;
if (tsp.TotalMinutes >= 10)
{
drugDt = BeginTime.AddMinutes(tsp.TotalMinutes / 2 - 3);
}
}
if (((TimeSpan)(pageEnd - this.BeginTime)).TotalMinutes <= 2)
{
if (EqualDose == null)
{
if (s.Trim() != "")
drawDoseObj(y, tagName, this.BeginTime, dt, drugDt, s + " " + RemarkStr, 5f, isContinued);
else
drawDoseObj(y, tagName, this.BeginTime, dt, drugDt, DoseStr + " " + RemarkStr, 5f, isContinued);
}
else
{
if (s.Trim() != "")
drawDoseObj(y, tagName, this.BeginTime, dt, drugDt, s + "(" + EqualDose + ")" + RemarkStr, 5f, isContinued);
else
drawDoseObj(y, tagName, this.BeginTime, dt, drugDt, EqualDose + " " + RemarkStr, 5f, isContinued);
}
}
else
{
if (EqualDose == null)
{
if (s.Trim() != "")
drawDoseObj(y, tagName, this.BeginTime, dt, drugDt, s + " " + RemarkStr, 6f, isContinued);
else
drawDoseObj(y, tagName, this.BeginTime, dt, drugDt, DoseStr + " " + RemarkStr, 6f, isContinued);
}
else
{
if (s.Trim() != "")
drawDoseObj(y, tagName, this.BeginTime, dt, drugDt, s + "(" + EqualDose + ")" + RemarkStr, 5.5f, isContinued);
else
drawDoseObj(y, tagName, this.BeginTime, dt, drugDt, EqualDose + " " + RemarkStr, 5.5f, isContinued);
}
}
}
/// <summary>
/// 写加药的左边与右信息
/// </summary>
/// <param name="y">高度</param>
/// <param name="totalDose">总量</param>
public void drawAddText(double x, double y)
{
//左边写药名
TextObj text = (TextObj)zgcAnas.MasterPane.GraphObjList[TextPrefix.DN + this.OutputLiquidsName + this.Id.ToString()];
if (text == null)
{
double x1 = x;// 0.05f;
string DrName = this.OutputLiquidsName.Trim();
//if (this.Remark != null && this.Remark != "") DrName += "(" + this.Remark + ")";
if (this.DosageUnit != null && this.DosageUnit != "") DrName += "(" + this.DosageUnit + ")";
ZUtil.DrawText(DrName, x1, y, zgcAnas, TextPrefix.DN + this.OutputLiquidsName + this.Id.ToString(), Color.Black, 5.75f);
}
}
public void clearDNDTDD(ZedGraphControl zgc)
{
//if (zgcAnas == null || zgcAnas != zgc)
zgcAnas = zgc;
delAddObj(TextPrefix.DN + this.OutputLiquidsName + this.Id.ToString());
delAddObj(TextPrefix.DT + this.OutputLiquidsName + this.Id.ToString());
delAddObj(TextPrefix.DU + this.OutputLiquidsName + this.Id.ToString());
delAddObj(TextPrefix.DD + this.OutputLiquidsName + this.Id.ToString());
delAddObj(this.OutputLiquidsName + this.OutputLiquidsId);
}
}
}

View File

@ -39,6 +39,18 @@ namespace DrawGraph
{
H5pack = template.GetPackObjectOTag<LinePackObj>("IconManage_LinePackObj_5");
IconPpack = template.GetPackObjectOTag<RectangleFramePackObj>("IconManage_RectangleFramePackObj_2");
if (IconPpack != null)
{
eventy = IconPpack.RealY;
eventendy = IconPpack.RealEndY;
}
LinePackObj line = template.GetPackObjectOTag<LinePackObj>("IconManage_LinePackObj_6");
if (line != null)
{
eventy = line.RealY;
eventendy = line.RealEndY;
eventendX = line.RealEndX+ 0.02;
}
}
#region
@ -91,6 +103,9 @@ namespace DrawGraph
}
}
double eventy;
double eventendy;
double eventendX;
/// <summary>
/// 重新画事件文本
/// </summary>
@ -98,11 +113,10 @@ namespace DrawGraph
{
//画在第几行
int rowIndex = 0;
double eventy = IconPpack.RealY;// EndChartY;
DateTime? drawDatetime = null;
FactEvents drawEvent = null;
string LastNumber = "";
double span = getYPositionByListIndex(1, IconPpack.RealY, IconPpack.RealEndY, 2);
double span = getYPositionByListIndex(1, eventy, eventendy, 2);
List<string> eventListstr = new List<string>();
eventListstr.Add("【事件】");
//myOpeRecord.FactEventsList.Sort(new FactEventsComparer());
@ -123,10 +137,10 @@ namespace DrawGraph
else
{
eventListstr.Add(string.Format("{0}{1}->{2} {3} {4}{5}", getNumber(i), temp.EventBeginTime.Value.ToShortTimeString(), temp.EventEndTime.Value.ToShortTimeString(), temp.EventName, "", temp.Remark == null ? "" : temp.Remark.ToString()));
}
}
//设置事件对象的相应属性,只达到了基本解耦,封装有限,有待完善
temp.setAnasArr(ZedControl, H5pack.RealX, IconPpack.RealEndX, myOpeRecord.pageBegin, myOpeRecord.pageBegin.AddMinutes(EVERY_PAGE_TIME_SPAN));
temp.setAnasArr(ZedControl, H5pack.RealX, eventendX , myOpeRecord.pageBegin, myOpeRecord.pageBegin.AddMinutes(EVERY_PAGE_TIME_SPAN));
try
{
//循环XML文件,文件中的内容是只画图不写字的事件对旬
@ -135,8 +149,8 @@ namespace DrawGraph
if (dr.Length > 0)
{
temp.clearDNAndDT(ZedControl);
string tagName = dr[0]["imgPath"].ToString();
temp.drawIMG(ZedControl, tagName, IconPpack.RealY, 0.013);
string tagName = dr[0]["imgPath"].ToString();
temp.drawIMG(ZedControl, tagName, eventy, 0.013);
}
else
{
@ -156,9 +170,8 @@ namespace DrawGraph
drawEvent = temp;
drawDatetime = temp.EventBeginTime.Value;
}
eventy = IconPpack.RealY + span;
//画图上的序号
temp.drawNumber(ZedControl, drawNumber, eventy - 0.001, DValue, Color.DarkBlue);
temp.drawNumber(ZedControl, drawNumber, eventy + span - 0.001, DValue, Color.DarkBlue);
}
rowIndex++;
}
@ -166,7 +179,7 @@ namespace DrawGraph
{
PublicMethod.WriteLog(exp, "");
}
}
}
myOpeRecord.EventListstr = eventListstr;
}
#region

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,255 @@
using Newtonsoft.Json;
using AIMSExtension;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace DrawGraph
{
[Serializable, JsonObject(MemberSerialization.OptOut)]
public class OutputManage : AreaManageBase
{
/// <summary>
/// 药品区域
/// </summary>
public RectangleFramePackObj sapPpack;
public LinesPackObj lines ;
public LinePackObj H3pack;
public LinePackObj H5pack;
public int RowsCount;
/// <summary>
/// 当前手术对象
/// </summary>
private OperationRecord myOpeRecord = null;
public List<string> DrugsListstr = new List<string>();
#region
public OutputManage()
{
init();
}
public OutputManage(object _operationRecor, DrawGraph.ZedGraphControl _zedControl, TemplateManage _template, string _name) : base(_operationRecor, _zedControl, _template, _name)
{
init();
}
public void init()
{
//自己要用的手术对象
myOpeRecord = OpeRecord as OperationRecord;
}
/// <summary>
/// 初始画的后置方法
/// </summary>
public override void FollowUpMethod()
{
H3pack = template.GetPackObjectOTag<LinePackObj>("OutputManage_LinePackObj_11");
H5pack = template.GetPackObjectOTag<LinePackObj>("OutputManage_LinePackObj_5");
sapPpack = template.GetPackObjectOTag<RectangleFramePackObj>("OutputManage_RectangleFramePackObj_10");
lines = template.GetPackObjectOTag<LinesPackObj >("OutputManage_LinesPackObj_15");
RowsCount = Convert.ToInt32(lines.XPageSpan / lines.XMajorGridStep);
}
#endregion
#region
/// <summary>
/// 鼠标点击画板
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public override void MouseDown(ZedGraphControl sender, MouseEventArgs e)
{
//if (e.Button == System.Windows.Forms.MouseButtons.Left)
//{
// MessageBox.Show(this.GetType().Name + "is Click Left Button");
//}
}
public override void MouseMove(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void MouseUp(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void MouseDoubleClick(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void KeyUp(ZedGraphControl sender, KeyEventArgs e)
{
}
#endregion
#region
public override void Bind()
{
init();
DrawOutput();
}
/// <summary>
/// 画加药
/// </summary>
private void DrawOutput()
{
try
{
foreach (FactOutputLiquids temp in myOpeRecord.FactOutputLiquidsList)
{
temp.clearAddObj(ZedControl);
}
reDrawDrug();
}
catch (Exception exp)
{
PublicMethod.WriteLog(exp);
}
}
/// <summary>
/// 重新画加药文本
/// </summary>
private void reDrawDrug()
{
try
{
//画在第几行
int rowDrugsIndex = 0;
//y的高度//主要高度
double drugsy = 0;
//加药最后位置
double maxDrugsy = sapPpack.RealEndY;
//持续加药当前时间
DateTime curTimeTemp = OperationRecord.getOpeMaxTime(myOpeRecord);
DateTime serverTime = DateTime.Now;
if (curTimeTemp > serverTime) curTimeTemp = serverTime;
//超出的药画备注 镇痛药备注
List<string> DrugListstr = new List<string>();
DrugListstr.Add("【出量】");
myOpeRecord.BeforeDrugs = "";
myOpeRecord.AnalgesiaDrug = "";
//当前时间段加药集合
myOpeRecord.FactOutputLiquidsList.ForEach(drug =>
{
if (drug.IsContinue == 1 && drug.BeginTime == drug.EndTime) drug.End = curTimeTemp;
else if (drug.EndTime != null) drug.End = drug.EndTime;
});
List<FactOutputLiquids> _FactOutputLiquidsList = myOpeRecord.FactOutputLiquidsList.Where(s => IfInTimeExist(s.BeginTime, s.End) == true).ToList();
//加药按加药时间排序
//_FactOutputLiquidsList.Sort(new FactOutputLiquidsComparer());
for (int i = 0; i < _FactOutputLiquidsList.Count; i++)
{
FactOutputLiquids temp = _FactOutputLiquidsList[i];
bool isEqual = false;
bool isChildEqual = false;
//以行号返回具休的位置
drugsy = sapPpack.RealY + getYPositionByListIndex(rowDrugsIndex, sapPpack.RealY, sapPpack.RealEndY, RowsCount);
SetDrug(temp, curTimeTemp, drugsy);
//判断是否重复的 主药或组药
for (int j = 0; j < i; j++)
{
FactOutputLiquids addDrug1 = _FactOutputLiquidsList[j];
//如果加药品ID相同并且加加药ID不同则认为加了同一种加药
if (addDrug1.Equal(temp) )
{
addDrug1.clearDNAndDT(ZedControl);
//因为相同则取得相同对象的Y,为当前的对象的高度
drugsy = addDrug1.nowY;
isEqual = true;
continue;
}
}
if (isChildEqual == true) continue;
if (drugsy <= maxDrugsy)
{
temp.drawText(H3pack.RealX + 0.006f, drugsy);
if (isEqual == false)
rowDrugsIndex++;
}
else
ListAddDrugs(DrugListstr, i, temp);
}
}
catch (Exception ex)
{
throw ex;
}
}
private void SetDrug(FactOutputLiquids temp, DateTime curTimeTemp, double y)
{
if (temp.IsContinue == 1 && temp.BeginTime == temp.EndTime) temp.End = curTimeTemp;
temp.EqualDose = null;
temp.setAnasArr(ZedControl, H5pack.RealX, sapPpack.RealEndX, myOpeRecord.pageBegin, myOpeRecord.pageBegin.AddMinutes(EVERY_PAGE_TIME_SPAN));
temp.nowY = y;
}
private static void ListAddDrugs(List<string> DrugListstr, int i, FactOutputLiquids temp)
{
string dose = "";
if (dose.Trim() != "") dose += " ";
dose += ((double)temp.Dosage).ToString();
if (temp.DosageUnit != null)
{
dose += temp.DosageUnit;
}
DrugListstr.Add(string.Format("({0}){1} {2} {3}{4}{5}", i + 1, (temp.BeginTime == temp.EndTime) ? temp.BeginTime.ToShortTimeString() : temp.BeginTime.ToShortTimeString() + "->" + temp.EndTime.ToShortTimeString(), temp.OutputLiquidsName.Trim(), dose, "",""));
//DrugListstr.Append(" ");
}
#endregion
#region
private bool IfInTimeExist(DateTime Begin, DateTime End)
{
DateTime lastime = myOpeRecord.lastPageBegin.AddSeconds(59);
bool b = false;
if (End == null)
{
if (Begin > myOpeRecord.pageBegin && Begin < lastime)
{
b = true;
}
}
else
{
if (Begin >= myOpeRecord.pageBegin && Begin <= lastime)
{
b = true;
}
else if (End >= myOpeRecord.pageBegin && End <= lastime)
{
b = true;
}
else if (Begin < myOpeRecord.pageBegin && End > lastime)
{
b = true;
}
}
return b;
}
/// <summary>
/// 根据顶部加药序号确定数值生命体征的纵向位置以1为单位
/// </summary>
/// <param name="index"></param>
/// <returns></returns>
public double getYPositionByListIndex(double index, double yTop, double yBottom, int rowCount)
{
double heightT = ZedControl.Height * (yBottom - yTop);
double setpTemp = heightT / rowCount;
//求一格在实际高度中的百分比
double bfb = (setpTemp / heightT);
//两线之间度*百分比得到一格的百分比高度
double ygBFB = (yBottom - yTop) * bfb;
double y = ygBFB * index;
return y;
}
#endregion
}
}

View File

@ -90,7 +90,7 @@ namespace DrawGraph
if (axis != null)
{
DateTime dt = DateTime.Now.AddMinutes(-DateTime.Now.Minute).AddMinutes(15).AddSeconds(-DateTime.Now.Second).AddMilliseconds(-DateTime.Now.Millisecond);
axis.BeginTime = dt;
axis.BeginTime = dt;
}
}
}
@ -191,7 +191,7 @@ namespace DrawGraph
curPhysioParam.onClick(e);
appTemp.IsClick = true;
curPhysioParam = appTemp;
curPhysioParam.PatientId = myOpeRecord.Id.Value;
curPhysioParam.PatientId = myOpeRecord.Id.Value;
curPhysioParam.onClick(e);
}
}
@ -498,7 +498,7 @@ namespace DrawGraph
myOpeRecord.SAreaObj.StartPD.RecordTime,
myOpeRecord.SAreaObj.EndPd.RecordTime,
startValue, endValue);
frm.selparameters = selparameters;
frm.selparameters = selparameters;
frm.FormClosed += (a, b) =>
{
if (frm.isDelete == true)
@ -538,18 +538,13 @@ namespace DrawGraph
{
init();
//if (myOpeRecord.addPhysioList.Count == 0)
iniHashCurveList(myOpeRecord.addPhysioList);
InitPhysioDataConfigList(myOpeRecord.addPhysioList);
//悬浮tip初始化
aSyncTip = TipBox.CreateInstance("async");
aSyncTip.setAnasArr(ZedControl, chartPack.RealX, chartPack.RealEndX, myOpeRecord.pageBegin, myOpeRecord.pageBegin.AddMinutes(EVERY_PAGE_TIME_SPAN));
DrawPhysioData();
AbleEditPackObj ableEdit = template.GetPackObjectOTag<AbleEditPackObj>("PhysioDataManageGoodsBill_AbleEditPackObj_61myOpeRecord_AnesthesiaDoctorAssistant");
if (ableEdit != null)
{
ableEdit.IsVisible = false;
}
}
/// <summary>
@ -613,7 +608,7 @@ namespace DrawGraph
/// 将坐标数值对加到相应的曲线上从而初始化曲线Chart
/// </summary>
/// <param name="addPhysioList"></param>
private void iniHashCurveList(List<PhysioDataConfig> addPhysioList)
private void InitPhysioDataConfigList(List<PhysioDataConfig> addPhysioList)
{
try
{
@ -622,7 +617,8 @@ namespace DrawGraph
addPhysioList.Clear();
ZedControl.GraphPane.CurveList.Clear();
//监测区域里的第1根竖线显示数值时用
LinePackObj pack = template.GetPackObjectOTag<LinePackObj>("MonitorManage_LinePackObj_4");
LinesPackObj pack = template.GetPackObjectOTag<LinesPackObj>("MonitorManage_LinesPackObj_9");
int RowsCount = Convert.ToInt32(pack.XPageSpan / pack.XMajorGridStep);
//加载生命体征图标
IList<PhysioDataConfig> dt = PhysioDataConfig.GetAllList();
@ -662,9 +658,8 @@ namespace DrawGraph
{
if (pp.showStyle.Equals("显示数值"))
{
double y = pack.RealY + getYPositionByListIndex(showvalue, pack.RealY, pack.RealEndY, 7);
ZUtil.DrawText(pp.Name, pack.RealX, y, ZedControl, "PP" + pp.Enname, 5.5f);
//ZUtil.DrawText(pp.Unit, pack.RealX + 0.05f, y, ZedControl, "PP" + pp.Enname, 4f);
double y = pack.RealY + getYPositionByListIndex(showvalue, pack.RealY, pack.RealEndY, RowsCount );
ZUtil.DrawText(pp.Name, pack.RealX, y, ZedControl, "PP" + pp.Enname, 5.5f);
pp.showValue = y + 0.002;
showvalue++;
}
@ -724,8 +719,9 @@ namespace DrawGraph
//解决办法重新定义使XML操作对象发生变化。
int showvalue = 0;
//监测区域里的第1根竖线显示数值时用
LinePackObj pack = template.GetPackObjectOTag<LinePackObj>("MonitorManage_LinePackObj_4");
LinesPackObj pack = template.GetPackObjectOTag<LinesPackObj>("MonitorManage_LinesPackObj_9");
int RowsCount = Convert.ToInt32(pack.XPageSpan / pack.XMajorGridStep);
foreach (var pp in myOpeRecord.addPhysioList)
{
string[] str = pp.Color.Split('.');
@ -762,7 +758,7 @@ namespace DrawGraph
//如果模板管理不为空
if (pack != null)
{
double y = pack.RealY + getYPositionByListIndex(showvalue, pack.RealY, pack.RealEndY, 5);
double y = pack.RealY + getYPositionByListIndex(showvalue, pack.RealY, pack.RealEndY, RowsCount);
ZUtil.DrawText(pp.Name, pack.RealX, y, ZedControl, "PP" + pp.Enname, 5.5f);
pp.showValue = y + 0.002;
showvalue++;
@ -873,7 +869,7 @@ namespace DrawGraph
pdNew.YAisx = physioParam.YAisx;
pdNew.PhysioDataConfigId = physioParam.Id;
pdNew.PatientId = myOpeRecord.Id.Value;
pdNew.IsClick = true;
pdNew.IsClick = true;
pdNews.Add(pdNew);
if (y[1].ToString() != "")
@ -885,7 +881,7 @@ namespace DrawGraph
pdNewY2.YAisx = physioParam.YAisx;
pdNewY2.PhysioDataConfigId = physioParam.Id;
pdNewY2.PatientId = myOpeRecord.Id.Value;
pdNewY2.IsClick = true;
pdNewY2.IsClick = true;
pdNews.Add(pdNewY2);
}
if (y[0].ToString() != "")
@ -897,7 +893,7 @@ namespace DrawGraph
pdNewY2.YAisx = physioParam.YAisx;
pdNewY2.PhysioDataConfigId = physioParam.Id;
pdNewY2.PatientId = myOpeRecord.Id.Value;
pdNewY2.IsClick = true;
pdNewY2.IsClick = true;
pdNews.Add(pdNewY2);
}

View File

@ -11,6 +11,7 @@ namespace DrawGraph
public class RemarkManage : AreaManageBase
{
public RectangleFramePackObj remarkPpack;
public RectangleFramePackObj OutputManagePpack;
public LinePackObj H3pack;
public LinePackObj H4pack;
public LinePackObj H5pack;
@ -41,6 +42,7 @@ namespace DrawGraph
H5pack = template.GetPackObjectOTag<LinePackObj>("RemarkManage_LinePackObj_8");
H6pack = template.GetPackObjectOTag<LinePackObj>("RemarkManage_LinePackObj_9");
remarkPpack = template.GetPackObjectOTag<RectangleFramePackObj>("RemarkManage_RectangleFramePackObj_2");
OutputManagePpack = template.GetPackObjectOTag<RectangleFramePackObj>("OutputManage_RectangleFramePackObj_10");
}
#endregion
@ -364,6 +366,11 @@ namespace DrawGraph
x = H5pack.RealX;
remarkRow = 0;
}
else if (AllRemarkRow == (remarkRowscount * 3) && OutputManagePpack != null)
{
x = H6pack.RealX;
remarkRow = 0;
}
}
#endregion

View File

@ -17,8 +17,10 @@ namespace DrawGraph
/// 药品区域
/// </summary>
public RectangleFramePackObj sapPpack;
public LinesPackObj lines;
public LinePackObj H3pack;
public LinePackObj H5pack;
public int RowsCount;
/// <summary>
/// 当前手术对象
/// </summary>
@ -50,6 +52,8 @@ namespace DrawGraph
H3pack = template.GetPackObjectOTag<LinePackObj>("SapManage_LinePackObj_3");
H5pack = template.GetPackObjectOTag<LinePackObj>("SapManage_LinePackObj_5");
sapPpack = template.GetPackObjectOTag<RectangleFramePackObj>("SapManage_RectangleFramePackObj_2");
lines = template.GetPackObjectOTag<LinesPackObj>("SapManage_LinesPackObj_7");
RowsCount = Convert.ToInt32(lines.XPageSpan / lines.XMajorGridStep);
}
#endregion
@ -153,7 +157,7 @@ namespace DrawGraph
if (isSapDrugs(temp))
{
//以行号返回具休的位置
drugsy = sapPpack.RealY + getYPositionByListIndex(rowDrugsIndex, sapPpack.RealY, sapPpack.RealEndY, 7);
drugsy = sapPpack.RealY + getYPositionByListIndex(rowDrugsIndex, sapPpack.RealY, sapPpack.RealEndY, RowsCount);
SetDrug(temp, curTimeTemp, drugsy);
temp.ChildFactDrugList = new List<FactDrug>();
temp.ChildFactDrugList = _FactDrugList.Where(a => a.ParentId == temp.Id).ToList();
@ -219,7 +223,7 @@ namespace DrawGraph
{
foreach (FactDrug sItem in temp.ChildFactDrugList)
{
drugsy = sapPpack.RealY + getYPositionByListIndex(rowDrugsIndex, sapPpack.RealY, sapPpack.RealEndY, 7);
drugsy = sapPpack.RealY + getYPositionByListIndex(rowDrugsIndex, sapPpack.RealY, sapPpack.RealEndY, RowsCount);
SetDrug(sItem, curTimeTemp, drugsy);
if (drugsy <= maxDrugsy)
{
@ -270,7 +274,7 @@ namespace DrawGraph
}
private void DrawZuDragsLine(double x, double y, double zhuy, FactDrug temp)
{
double height = getYPositionByListIndex(1, sapPpack.RealY, sapPpack.RealEndY, 7) / 2;
double height = getYPositionByListIndex(1, sapPpack.RealY, sapPpack.RealEndY, RowsCount) / 2;
//double x = H3pack.RealX + 0.003f;
ZUtil.DrawLine(x, zhuy + height, x, y + height, ZedControl, "zhuyDrugs" + temp.Id, Color.Red);
ZUtil.DrawLine(x, zhuy + height, x + 0.0055f, zhuy + height, ZedControl, "zhuyDrugstop" + temp.Id, Color.Red);

View File

@ -67,7 +67,7 @@
<Compile Include="AreaManage\DeletePhysios.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="AreaManage\OperationRecordNew.cs" />
<Compile Include="AreaManage\OutputManage.cs" />
<Compile Include="AreaManage\TempDataManage.cs" />
<Compile Include="AreaManage\OperationRecordInfo.cs" />
<Compile Include="AreaManage\OperationRecordInstrumentList.cs" />