动态器械清点单
This commit is contained in:
parent
f23914306d
commit
e2bd2d9f8d
@ -279,6 +279,12 @@
|
||||
<Compile Include="OperationAfter\frmQualityControlViewParent.designer.cs">
|
||||
<DependentUpon>frmQualityControlViewParent.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="OperationDoing\AnasRecordBill\frmAnasRecordInstrument.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="OperationDoing\AnasRecordBill\frmAnasRecordInstrument.Designer.cs">
|
||||
<DependentUpon>frmAnasRecordInstrument.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="OperationDoing\AnasRecordBill\frmSeleteRoom.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@ -309,11 +315,11 @@
|
||||
<Compile Include="OperationDoing\AnasRecordBill\frmSafetyExamine.Designer.cs">
|
||||
<DependentUpon>frmSafetyExamine.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="OperationDoing\AnasRecoverBill\frmAnasRecoverBillNew.cs">
|
||||
<Compile Include="OperationDoing\AnasRecoverBill\frmAnasRecoverBill.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="OperationDoing\AnasRecoverBill\frmAnasRecoverBillNew.Designer.cs">
|
||||
<DependentUpon>frmAnasRecoverBillNew.cs</DependentUpon>
|
||||
<Compile Include="OperationDoing\AnasRecoverBill\frmAnasRecoverBill.Designer.cs">
|
||||
<DependentUpon>frmAnasRecoverBill.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="OperationDoing\AnasRecoverBill\frmRecoverPatient.cs">
|
||||
<SubType>Form</SubType>
|
||||
@ -571,11 +577,11 @@
|
||||
<DependentUpon>frmOperationReview.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="OperationDoing\AnasRecordBill\DrawAnasReordBill.cs" />
|
||||
<Compile Include="OperationDoing\AnasRecordBill\frmAnasRecordBillNew.cs">
|
||||
<Compile Include="OperationDoing\AnasRecordBill\frmAnasRecordBill.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="OperationDoing\AnasRecordBill\frmAnasRecordBillNew.Designer.cs">
|
||||
<DependentUpon>frmAnasRecordBillNew.cs</DependentUpon>
|
||||
<Compile Include="OperationDoing\AnasRecordBill\frmAnasRecordBill.Designer.cs">
|
||||
<DependentUpon>frmAnasRecordBill.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="OperationDoing\AnasRecordBill\frmSelectPatientNew.cs">
|
||||
<SubType>Form</SubType>
|
||||
@ -1001,6 +1007,10 @@
|
||||
<EmbeddedResource Include="OperationAfter\frmQualityControlViewParent.resx">
|
||||
<DependentUpon>frmQualityControlViewParent.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="OperationDoing\AnasRecordBill\frmAnasRecordInstrument.resx">
|
||||
<DependentUpon>frmAnasRecordInstrument.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="OperationDoing\AnasRecordBill\frmBloodGasAnalysisNew.resx">
|
||||
<DependentUpon>frmBloodGasAnalysisNew.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
@ -1016,8 +1026,8 @@
|
||||
<EmbeddedResource Include="OperationDoing\AnasRecordBill\frmSafetyExamine.resx">
|
||||
<DependentUpon>frmSafetyExamine.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="OperationDoing\AnasRecoverBill\frmAnasRecoverBillNew.resx">
|
||||
<DependentUpon>frmAnasRecoverBillNew.cs</DependentUpon>
|
||||
<EmbeddedResource Include="OperationDoing\AnasRecoverBill\frmAnasRecoverBill.resx">
|
||||
<DependentUpon>frmAnasRecoverBill.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="OperationDoing\AnasRecoverBill\frmRecoverPatient.resx">
|
||||
@ -1140,8 +1150,8 @@
|
||||
<EmbeddedResource Include="OperationAfter\frmOperationReview.resx">
|
||||
<DependentUpon>frmOperationReview.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="OperationDoing\AnasRecordBill\frmAnasRecordBillNew.resx">
|
||||
<DependentUpon>frmAnasRecordBillNew.cs</DependentUpon>
|
||||
<EmbeddedResource Include="OperationDoing\AnasRecordBill\frmAnasRecordBill.resx">
|
||||
<DependentUpon>frmAnasRecordBill.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="OperationDoing\AnasRecordBill\frmSelectPatientNew.resx">
|
||||
@ -1312,9 +1322,7 @@
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<None Include="Template\手术清点记录单.xlsx">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="Template\手术清点记录单.xlsx" />
|
||||
<None Include="Template\排班按月.xlt">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
|
||||
@ -29,11 +29,11 @@ namespace AIMS
|
||||
//label2.Text = "@山西瑞禾康医疗科技有限公司 V" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||
txtNo.Select();
|
||||
txtNo.Focus();
|
||||
//#if DEBUG
|
||||
// txtNo.Text = "admin";
|
||||
// txtPassWord.Text = "1";
|
||||
// btnOk_Click(null, null);
|
||||
//#endif
|
||||
#if DEBUG
|
||||
txtNo.Text = "admin";
|
||||
txtPassWord.Text = "123";
|
||||
btnOk_Click(null, null);
|
||||
#endif
|
||||
}
|
||||
private void btnOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@ -471,7 +471,7 @@ namespace AIMS
|
||||
if (SelApplyId != 0)
|
||||
{
|
||||
OperationApply apply = BOperationApply.GetModel(SelApplyId);
|
||||
AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBillNew frmAnasRecord = new OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBillNew();
|
||||
AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBill frmAnasRecord = new OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBill();
|
||||
frmAnasRecord.PatientId = apply.OrisPatientId.Value;
|
||||
frmAnasRecord.ApplyId = apply.Id.Value;
|
||||
frmAnasRecord.State = AIMSExtension.EditState.BROWSE;
|
||||
|
||||
@ -60,7 +60,7 @@ namespace AIMS.OperationAfter.UI
|
||||
int PatientId = int.Parse(dgv.CurrentRow.Cells["PatientId"].Value.ToString());
|
||||
int ApplyId = int.Parse(dgv.CurrentRow.Cells["ApplyId"].Value.ToString());
|
||||
|
||||
AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBillNew frmAnasRecord = new AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBillNew();
|
||||
AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBill frmAnasRecord = new AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBill();
|
||||
frmAnasRecord.PatientId = PatientId;
|
||||
frmAnasRecord.ApplyId = ApplyId;
|
||||
frmAnasRecord.State = AIMSExtension.EditState.BROWSE;
|
||||
@ -80,7 +80,7 @@ namespace AIMS.OperationAfter.UI
|
||||
int PatientId = int.Parse(dgv.CurrentRow.Cells["PatientId"].Value.ToString());
|
||||
int ApplyId = int.Parse(dgv.CurrentRow.Cells["ApplyId"].Value.ToString());
|
||||
|
||||
AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBillNew frmAnasRecord = new OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBillNew();
|
||||
AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBill frmAnasRecord = new OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBill();
|
||||
frmAnasRecord.PatientId = PatientId;
|
||||
frmAnasRecord.ApplyId = ApplyId;
|
||||
frmAnasRecord.State = AIMSExtension.EditState.BROWSE;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using AIMSBLL;
|
||||
using AxNsoOfficeLib;
|
||||
using DrawGraph;
|
||||
using HelperDB;
|
||||
using Newtonsoft.Json;
|
||||
@ -12,9 +13,9 @@ namespace AIMS.OperationDoing.AnasRecordBill
|
||||
public class DrawAnasReordBill
|
||||
{
|
||||
public static void IniDrawAnasReordBill2(OperationRecord _record, ZedGraphControl Zgc, ref TemplateManage templateManage)
|
||||
{
|
||||
{
|
||||
try
|
||||
{
|
||||
{
|
||||
string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=1").ToString();
|
||||
if (jsonStr != null && jsonStr != "")
|
||||
{
|
||||
@ -63,7 +64,7 @@ namespace AIMS.OperationDoing.AnasRecordBill
|
||||
}
|
||||
|
||||
public static void IniDrawAnasReordBill3(OperationRecord _record, ZedGraphControl Zgc, ref TemplateManage templateManage)
|
||||
{
|
||||
{
|
||||
try
|
||||
{
|
||||
string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=10").ToString();
|
||||
@ -113,8 +114,77 @@ namespace AIMS.OperationDoing.AnasRecordBill
|
||||
}
|
||||
}
|
||||
|
||||
public static void IniDrawAnasReordBill4(OperationRecord _record, ZedGraphControl Zgc, ZedGraphControl Zgc2, ref TemplateManage templateManage , ref TemplateManage templateManage2)
|
||||
{
|
||||
try
|
||||
{
|
||||
string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=20").ToString();
|
||||
if (jsonStr != null && jsonStr != "")
|
||||
{
|
||||
templateManage = JsonConvert.DeserializeObject<TemplateManage>(jsonStr);
|
||||
templateManage.ZedControl = Zgc;
|
||||
templateManage.Id = 20;
|
||||
templateManage.OpeRecord = BOperationRecord.getRecord(_record, -1, 2);
|
||||
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);
|
||||
|
||||
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();
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show(templateManage.MsgStr);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
try
|
||||
{
|
||||
string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=30").ToString();
|
||||
if (jsonStr != null && jsonStr != "")
|
||||
{
|
||||
templateManage2 = JsonConvert.DeserializeObject<TemplateManage>(jsonStr);
|
||||
templateManage2.ZedControl = Zgc2;
|
||||
templateManage2.Id = 30;
|
||||
templateManage2.OpeRecord = BOperationRecord.getRecord(_record, -1, 2);
|
||||
bool reVal = templateManage2.Load();
|
||||
if (reVal)
|
||||
{
|
||||
templateManage2.DrawArea();
|
||||
templateManage2.ZedControl.Width = templateManage2.ZedControl.Parent.Width - 54;
|
||||
templateManage2.ZedControl.Height = (templateManage2.ZedControl.Parent.Width - 54) / 8 * 11;
|
||||
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);
|
||||
DataTable dt = DBHelper.GetDataTable(sql);
|
||||
return dt;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
namespace AIMS.OperationDoing.AnasRecordBill.UI
|
||||
{
|
||||
partial class frmAnasRecordBillNew
|
||||
partial class frmAnasRecordBill
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
@ -29,7 +29,7 @@
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmAnasRecordBillNew));
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmAnasRecordBill));
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.panel14 = new System.Windows.Forms.Panel();
|
||||
@ -19,7 +19,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace AIMS.OperationDoing.AnasRecordBill.UI
|
||||
{
|
||||
public partial class frmAnasRecordBillNew : Form
|
||||
public partial class frmAnasRecordBill : Form
|
||||
{
|
||||
#region 初始化
|
||||
public OperationRecord _record;
|
||||
@ -32,7 +32,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
|
||||
public AIMSExtension.EditState State;
|
||||
public bool isReadOnly = false;
|
||||
|
||||
public frmAnasRecordBillNew()
|
||||
public frmAnasRecordBill()
|
||||
{
|
||||
InitializeComponent();
|
||||
#region 时间轴事件
|
||||
2874
AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.Designer.cs
generated
Normal file
2874
AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
1968
AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs
Normal file
1968
AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs
Normal file
File diff suppressed because it is too large
Load Diff
@ -118,6 +118,159 @@
|
||||
<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="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAAJYAAACICAIAAACKv4VeAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS
|
||||
cQAAEnEB89x6jgAAIcVJREFUeF7tnXlUFecZxsnpkpOe2lib9hzbmMa2mpNooiUY0ciiuKEpEUUjBhSj
|
||||
uAKCEiMuuGCVuBuViEtxzYJGI1GUoLjVkBAVFa1RJApqYoDELUiMNe2vdz5uhtnuNhe5PT5/cO47wL0z
|
||||
87zL837fN9/1+s99eDjuU+jxuE+hx+M+hR6POqLw9u3bJ06cOHLkSFFR0d27d8XR+zADbqdwz549fn5+
|
||||
jRo1+tOf/vTkk0/y87e//W3z5s3z8/PFX/wf4d///vf58+fPnj27bdu2pUuX5uTklJSUfP/99+LX7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JKARl24cGFmZiZhV1xczJHx48cbfJvCfWjCBAoBuX79
|
||||
+vUkjXHjxk2fPh0ycnJyjIcEr1+/TuVDl5NpYY6f1Illy5Z57sTTvYI5FErg7ldUVMinmewBXJ46dYoo
|
||||
JBXLZxnvw06YSeF93AP85z//BXpcYHjbZFOvAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>62</value>
|
||||
</metadata>
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAQEAAAAEAIAAoQgAAFgAAACgAAABAAAAAgAAAAAEAIAAAAAAAAEAAABMLAAATCwAAAAAAAAAA
|
||||
@ -12,7 +12,7 @@ namespace AIMS.PublicUI.UI
|
||||
public partial class frmAnaseDataQualityRecord : Form
|
||||
{
|
||||
/// <summary>
|
||||
/// 手术记录
|
||||
/// 手术记录
|
||||
/// </summary>
|
||||
public DrawGraph.OperationRecord _record;
|
||||
/// <summary>
|
||||
|
||||
@ -30,23 +30,23 @@
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmAnaseDataQualityRecord));
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
||||
this.btndefault = new DevComponents.DotNetBar.ButtonX();
|
||||
this.btnSave = new DevComponents.DotNetBar.ButtonX();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.superTabControl1 = new DevComponents.DotNetBar.SuperTabControl();
|
||||
this.spTabZLZK = new DevComponents.DotNetBar.SuperTabItem();
|
||||
this.superTabControlPanel2 = new DevComponents.DotNetBar.SuperTabControlPanel();
|
||||
this.panelExBLSJ = new DevComponents.DotNetBar.PanelEx();
|
||||
this.superTabControlPanel1 = new DevComponents.DotNetBar.SuperTabControlPanel();
|
||||
this.panelExZKZB = new DevComponents.DotNetBar.PanelEx();
|
||||
this.superTabControl1 = new DevComponents.DotNetBar.SuperTabControl();
|
||||
this.spTabZLZK = new DevComponents.DotNetBar.SuperTabItem();
|
||||
this.spTabBLSJ = new DevComponents.DotNetBar.SuperTabItem();
|
||||
this.superTabControlPanel2 = new DevComponents.DotNetBar.SuperTabControlPanel();
|
||||
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
||||
this.panelExBLSJ = new DevComponents.DotNetBar.PanelEx();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel3.SuspendLayout();
|
||||
this.superTabControlPanel2.SuspendLayout();
|
||||
this.superTabControlPanel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.superTabControl1)).BeginInit();
|
||||
this.superTabControl1.SuspendLayout();
|
||||
this.superTabControlPanel1.SuspendLayout();
|
||||
this.superTabControlPanel2.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panel1
|
||||
@ -62,6 +62,16 @@
|
||||
this.panel1.Size = new System.Drawing.Size(495, 49);
|
||||
this.panel1.TabIndex = 4;
|
||||
//
|
||||
// checkBox1
|
||||
//
|
||||
this.checkBox1.AutoSize = true;
|
||||
this.checkBox1.Location = new System.Drawing.Point(12, 12);
|
||||
this.checkBox1.Name = "checkBox1";
|
||||
this.checkBox1.Size = new System.Drawing.Size(98, 24);
|
||||
this.checkBox1.TabIndex = 7;
|
||||
this.checkBox1.Text = "无不良事件";
|
||||
this.checkBox1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btndefault
|
||||
//
|
||||
this.btndefault.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||
@ -93,6 +103,62 @@
|
||||
this.panel3.Size = new System.Drawing.Size(495, 598);
|
||||
this.panel3.TabIndex = 6;
|
||||
//
|
||||
// superTabControlPanel2
|
||||
//
|
||||
this.superTabControlPanel2.Controls.Add(this.panelExBLSJ);
|
||||
this.superTabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.superTabControlPanel2.Location = new System.Drawing.Point(0, 0);
|
||||
this.superTabControlPanel2.Name = "superTabControlPanel2";
|
||||
this.superTabControlPanel2.Size = new System.Drawing.Size(495, 598);
|
||||
this.superTabControlPanel2.TabIndex = 0;
|
||||
this.superTabControlPanel2.TabItem = this.spTabBLSJ;
|
||||
//
|
||||
// panelExBLSJ
|
||||
//
|
||||
this.panelExBLSJ.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.panelExBLSJ.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.panelExBLSJ.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.panelExBLSJ.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panelExBLSJ.Location = new System.Drawing.Point(0, 0);
|
||||
this.panelExBLSJ.Name = "panelExBLSJ";
|
||||
this.panelExBLSJ.Size = new System.Drawing.Size(495, 598);
|
||||
this.panelExBLSJ.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.panelExBLSJ.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
|
||||
this.panelExBLSJ.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
|
||||
this.panelExBLSJ.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.panelExBLSJ.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.panelExBLSJ.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.panelExBLSJ.Style.GradientAngle = 90;
|
||||
this.panelExBLSJ.TabIndex = 0;
|
||||
//
|
||||
// superTabControlPanel1
|
||||
//
|
||||
this.superTabControlPanel1.Controls.Add(this.panelExZKZB);
|
||||
this.superTabControlPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.superTabControlPanel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.superTabControlPanel1.Name = "superTabControlPanel1";
|
||||
this.superTabControlPanel1.Size = new System.Drawing.Size(495, 598);
|
||||
this.superTabControlPanel1.TabIndex = 1;
|
||||
this.superTabControlPanel1.TabItem = this.spTabZLZK;
|
||||
//
|
||||
// panelExZKZB
|
||||
//
|
||||
this.panelExZKZB.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.panelExZKZB.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.panelExZKZB.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.panelExZKZB.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panelExZKZB.Location = new System.Drawing.Point(0, 0);
|
||||
this.panelExZKZB.Name = "panelExZKZB";
|
||||
this.panelExZKZB.Size = new System.Drawing.Size(495, 598);
|
||||
this.panelExZKZB.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.panelExZKZB.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
|
||||
this.panelExZKZB.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
|
||||
this.panelExZKZB.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.panelExZKZB.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.panelExZKZB.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.panelExZKZB.Style.GradientAngle = 90;
|
||||
this.panelExZKZB.TabIndex = 0;
|
||||
//
|
||||
// superTabControl1
|
||||
//
|
||||
//
|
||||
@ -121,9 +187,6 @@
|
||||
this.superTabControl1.Size = new System.Drawing.Size(495, 598);
|
||||
this.superTabControl1.TabFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.superTabControl1.TabIndex = 0;
|
||||
this.superTabControl1.Tabs.AddRange(new DevComponents.DotNetBar.BaseItem[] {
|
||||
this.spTabZLZK,
|
||||
this.spTabBLSJ});
|
||||
//
|
||||
// spTabZLZK
|
||||
//
|
||||
@ -132,34 +195,6 @@
|
||||
this.spTabZLZK.Name = "spTabZLZK";
|
||||
this.spTabZLZK.Text = "麻醉质量指控";
|
||||
//
|
||||
// superTabControlPanel1
|
||||
//
|
||||
this.superTabControlPanel1.Controls.Add(this.panelExZKZB);
|
||||
this.superTabControlPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.superTabControlPanel1.Location = new System.Drawing.Point(0, 28);
|
||||
this.superTabControlPanel1.Name = "superTabControlPanel1";
|
||||
this.superTabControlPanel1.Size = new System.Drawing.Size(495, 570);
|
||||
this.superTabControlPanel1.TabIndex = 1;
|
||||
this.superTabControlPanel1.TabItem = this.spTabZLZK;
|
||||
//
|
||||
// panelExZKZB
|
||||
//
|
||||
this.panelExZKZB.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.panelExZKZB.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.panelExZKZB.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.panelExZKZB.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panelExZKZB.Location = new System.Drawing.Point(0, 0);
|
||||
this.panelExZKZB.Name = "panelExZKZB";
|
||||
this.panelExZKZB.Size = new System.Drawing.Size(495, 570);
|
||||
this.panelExZKZB.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.panelExZKZB.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
|
||||
this.panelExZKZB.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
|
||||
this.panelExZKZB.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.panelExZKZB.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.panelExZKZB.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.panelExZKZB.Style.GradientAngle = 90;
|
||||
this.panelExZKZB.TabIndex = 0;
|
||||
//
|
||||
// spTabBLSJ
|
||||
//
|
||||
this.spTabBLSJ.AttachedControl = this.superTabControlPanel2;
|
||||
@ -167,44 +202,6 @@
|
||||
this.spTabBLSJ.Name = "spTabBLSJ";
|
||||
this.spTabBLSJ.Text = "不良事件";
|
||||
//
|
||||
// superTabControlPanel2
|
||||
//
|
||||
this.superTabControlPanel2.Controls.Add(this.panelExBLSJ);
|
||||
this.superTabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.superTabControlPanel2.Location = new System.Drawing.Point(0, 28);
|
||||
this.superTabControlPanel2.Name = "superTabControlPanel2";
|
||||
this.superTabControlPanel2.Size = new System.Drawing.Size(495, 570);
|
||||
this.superTabControlPanel2.TabIndex = 0;
|
||||
this.superTabControlPanel2.TabItem = this.spTabBLSJ;
|
||||
//
|
||||
// checkBox1
|
||||
//
|
||||
this.checkBox1.AutoSize = true;
|
||||
this.checkBox1.Location = new System.Drawing.Point(12, 12);
|
||||
this.checkBox1.Name = "checkBox1";
|
||||
this.checkBox1.Size = new System.Drawing.Size(98, 24);
|
||||
this.checkBox1.TabIndex = 7;
|
||||
this.checkBox1.Text = "无不良事件";
|
||||
this.checkBox1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// panelExBLSJ
|
||||
//
|
||||
this.panelExBLSJ.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.panelExBLSJ.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.panelExBLSJ.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.panelExBLSJ.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panelExBLSJ.Location = new System.Drawing.Point(0, 0);
|
||||
this.panelExBLSJ.Name = "panelExBLSJ";
|
||||
this.panelExBLSJ.Size = new System.Drawing.Size(495, 570);
|
||||
this.panelExBLSJ.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.panelExBLSJ.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
|
||||
this.panelExBLSJ.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
|
||||
this.panelExBLSJ.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.panelExBLSJ.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.panelExBLSJ.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.panelExBLSJ.Style.GradientAngle = 90;
|
||||
this.panelExBLSJ.TabIndex = 0;
|
||||
//
|
||||
// frmAnaseDataQualityRecord
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
@ -223,10 +220,10 @@
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.panel3.ResumeLayout(false);
|
||||
this.superTabControlPanel2.ResumeLayout(false);
|
||||
this.superTabControlPanel1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.superTabControl1)).EndInit();
|
||||
this.superTabControl1.ResumeLayout(false);
|
||||
this.superTabControlPanel1.ResumeLayout(false);
|
||||
this.superTabControlPanel2.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@ -237,13 +234,13 @@
|
||||
private System.Windows.Forms.Panel panel3;
|
||||
private DevComponents.DotNetBar.ButtonX btnSave;
|
||||
private DevComponents.DotNetBar.ButtonX btndefault;
|
||||
private System.Windows.Forms.CheckBox checkBox1;
|
||||
private DevComponents.DotNetBar.SuperTabControl superTabControl1;
|
||||
private DevComponents.DotNetBar.SuperTabControlPanel superTabControlPanel1;
|
||||
private DevComponents.DotNetBar.PanelEx panelExZKZB;
|
||||
private DevComponents.DotNetBar.SuperTabItem spTabZLZK;
|
||||
private System.Windows.Forms.CheckBox checkBox1;
|
||||
private DevComponents.DotNetBar.SuperTabControlPanel superTabControlPanel2;
|
||||
private DevComponents.DotNetBar.SuperTabItem spTabBLSJ;
|
||||
private DevComponents.DotNetBar.PanelEx panelExBLSJ;
|
||||
private DevComponents.DotNetBar.SuperTabItem spTabBLSJ;
|
||||
}
|
||||
}
|
||||
@ -175,7 +175,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
|
||||
{
|
||||
if (State == "开始手术")
|
||||
{
|
||||
AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBillNew frmAnasRecord = new frmAnasRecordBillNew();
|
||||
AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBill frmAnasRecord = new frmAnasRecordBill();
|
||||
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.frmAnasRecordBillNew frmAnasRecord = new frmAnasRecordBillNew();
|
||||
AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBill frmAnasRecord = new frmAnasRecordBill();
|
||||
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.frmAnasRecordBillNew frmAnasRecord = new frmAnasRecordBillNew();
|
||||
AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBill frmAnasRecord = new frmAnasRecordBill();
|
||||
frmAnasRecord.PatientId = PatientId;
|
||||
frmAnasRecord.ApplyId = applyId;
|
||||
frmAnasRecord.NowRoom = AIMSBLL.BOperationRoom.SelectSingle(int.Parse(uc.Tag.ToString()));
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
namespace AIMS.OperationDoing.AnasRecoverBill.UI
|
||||
{
|
||||
partial class frmAnasRecoverBillNew
|
||||
partial class frmAnasRecoverBill
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
@ -29,7 +29,7 @@
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmAnasRecoverBillNew));
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmAnasRecoverBill));
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.panel14 = new System.Windows.Forms.Panel();
|
||||
@ -20,7 +20,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace AIMS.OperationDoing.AnasRecoverBill.UI
|
||||
{
|
||||
public partial class frmAnasRecoverBillNew : Form
|
||||
public partial class frmAnasRecoverBill : Form
|
||||
{
|
||||
#region 初始化
|
||||
public OperationRecord _record;
|
||||
@ -33,7 +33,7 @@ namespace AIMS.OperationDoing.AnasRecoverBill.UI
|
||||
public AIMSExtension.EditState State;
|
||||
public bool isReadOnly = false;
|
||||
|
||||
public frmAnasRecoverBillNew()
|
||||
public frmAnasRecoverBill()
|
||||
{
|
||||
InitializeComponent();
|
||||
#region 时间轴事件
|
||||
@ -142,7 +142,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
|
||||
{
|
||||
if (supTabPatient.SelectedTab.Name == "待恢复" && dgv.SelectedRows.Count > 0)
|
||||
{
|
||||
AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBillNew frmAnasRecord = new AnasRecoverBill.UI.frmAnasRecoverBillNew();
|
||||
AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBill frmAnasRecord = new AnasRecoverBill.UI.frmAnasRecoverBill();
|
||||
frmAnasRecord.PatientId = int.Parse(dgv.SelectedRows[0].Cells["PatientIdColumn"].Value.ToString());
|
||||
frmAnasRecord.ApplyId = int.Parse(dgv.SelectedRows[0].Cells["ApplyIdColumn"].Value.ToString());
|
||||
frmAnasRecord.RecoverId = RecoverId;
|
||||
@ -182,7 +182,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
|
||||
}
|
||||
else
|
||||
{
|
||||
AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBillNew frmAnasRecord = new AnasRecoverBill.UI.frmAnasRecoverBillNew();
|
||||
AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBill frmAnasRecord = new AnasRecoverBill.UI.frmAnasRecoverBill();
|
||||
frmAnasRecord.PatientId = PatientId;
|
||||
frmAnasRecord.ApplyId = applyId;
|
||||
frmAnasRecord.NowRoom = AIMSBLL.BOperationRoom.SelectSingle(int.Parse(uc.Tag.ToString()));
|
||||
@ -202,7 +202,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
|
||||
int SelApplyId = int.Parse(dgv2.CurrentRow.Cells["ApplyIdColumn2"].Value.ToString());
|
||||
int SelPatientId = int.Parse(dgv2.CurrentRow.Cells["PatientIdColumn2"].Value.ToString());
|
||||
|
||||
AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBillNew frmAnasRecord = new OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBillNew();
|
||||
AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBill frmAnasRecord = new OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBill();
|
||||
frmAnasRecord.PatientId = SelPatientId;
|
||||
frmAnasRecord.ApplyId = SelApplyId;
|
||||
frmAnasRecord.State = AIMSExtension.EditState.BROWSE;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -121,7 +121,7 @@
|
||||
<data name="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAAJYAAACICAIAAACKv4VeAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS
|
||||
cgAAEnIBXmVb4wAAIcVJREFUeF7tnXlUFecZxsnpkpOe2lib9hzbmMa2mpNooiUY0ciiuKEpEUUjBhSj
|
||||
cQAAEnEB89x6jgAAIcVJREFUeF7tnXlUFecZxsnpkpOe2lib9hzbmMa2mpNooiUY0ciiuKEpEUUjBhSj
|
||||
uAKCEiMuuGCVuBuViEtxzYJGI1GUoLjVkBAVFa1RJApqYoDELUiMNe2vdz5uhtnuNhe5PT5/cO47wL0z
|
||||
87zL837fN9/1+s99eDjuU+jxuE+hx+M+hR6POqLw9u3bJ06cOHLkSFFR0d27d8XR+zADbqdwz549fn5+
|
||||
jRo1+tOf/vTkk0/y87e//W3z5s3z8/PFX/wf4d///vf58+fPnj27bdu2pUuX5uTklJSUfP/99+LX7oEb
|
||||
|
||||
@ -61,7 +61,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
|
||||
panel3.Controls.Clear();
|
||||
panel2.Visible = false;
|
||||
int i = 0, j = 0;
|
||||
|
||||
|
||||
DataTable dt2 = SelectPatient.GetRelieveLockingPatientDataTable
|
||||
(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()), cboRoom.SelectedValue.ToString());
|
||||
foreach (DataRow dr in dt2.Rows)
|
||||
@ -116,21 +116,43 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
|
||||
|
||||
private void Uc_InRoom(ucPatientCard uc, int PatientId, int applyId)
|
||||
{
|
||||
SatrtOperation(uc.buttonX1.Text, PatientId, applyId);
|
||||
string RoomStr = uc.Tag.ToString();
|
||||
SatrtOperation(uc.buttonX1.Text, PatientId, applyId, int.Parse(RoomStr));
|
||||
}
|
||||
|
||||
private void SatrtOperation(string State, int PatientId, int applyId)
|
||||
private void SatrtOperation(string State, int PatientId, int applyId, int RoomId)
|
||||
{
|
||||
//try
|
||||
//{
|
||||
// OperationRecord _record = new OperationRecord();
|
||||
// _record = BOperationRecord.getRecord(_record, PatientId, 1);
|
||||
// if (_record == null || _record.Id == 0) return;
|
||||
// frmGoodsBillRecord frm = new frmGoodsBillRecord();
|
||||
// frm._record = _record;
|
||||
// frm.Show();
|
||||
// frm.Focus();
|
||||
// frm.BringToFront();
|
||||
//}
|
||||
//catch (Exception ex)
|
||||
//{
|
||||
// AIMSExtension.PublicMethod.WriteLog(ex);
|
||||
//}
|
||||
try
|
||||
{
|
||||
OperationRecord _record = new OperationRecord();
|
||||
_record = BOperationRecord.getRecord(_record, PatientId, 1);
|
||||
if (_record == null || _record.Id == 0) return;
|
||||
frmGoodsBillRecord frm = new frmGoodsBillRecord();
|
||||
frm._record = _record;
|
||||
frm.Show();
|
||||
frm.Focus();
|
||||
frm.BringToFront();
|
||||
AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordInstrument frmAnasRecord = new frmAnasRecordInstrument();
|
||||
frmAnasRecord.PatientId = PatientId;
|
||||
frmAnasRecord.ApplyId = applyId;
|
||||
frmAnasRecord.NowRoom = AIMSBLL.BOperationRoom.SelectSingle(RoomId);
|
||||
frmAnasRecord.State = AIMSExtension.EditState.BROWSE;
|
||||
if (isMainOpen == false)
|
||||
{
|
||||
frmAnasRecord.ShowDialog();
|
||||
FillDgv();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@ -145,7 +167,8 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
|
||||
|
||||
private void buttonX1_Click(object sender, EventArgs e)
|
||||
{
|
||||
SatrtOperation(buttonX1.Text, SelPatientId, SelApplyId);
|
||||
string RoomStr = txtRoom.Tag.ToString();
|
||||
SatrtOperation(buttonX1.Text, SelPatientId, SelApplyId, (int.Parse(RoomStr)));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
using AIMSBLL;
|
||||
using AIMSModel;
|
||||
using DrawGraph;
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
|
||||
@ -101,7 +101,6 @@
|
||||
<Compile Include="BLL\AutoGenerate\BOperationApplyVerifyRole.cs" />
|
||||
<Compile Include="BLL\AutoGenerate\BOperationBodyPosition.cs" />
|
||||
<Compile Include="BLL\AutoGenerate\BOperationCutType.cs" />
|
||||
<Compile Include="BLL\AutoGenerate\BOperationGoodsBillRecord.cs" />
|
||||
<Compile Include="BLL\AutoGenerate\BOperationLevel.cs" />
|
||||
<Compile Include="BLL\AutoGenerate\BOperationPosition.cs" />
|
||||
<Compile Include="BLL\AutoGenerate\BOperationRecordInfo.cs" />
|
||||
@ -251,7 +250,6 @@
|
||||
<Compile Include="DAL\AutoGenerate\DOperationApplyVerifyRole.cs" />
|
||||
<Compile Include="DAL\AutoGenerate\DOperationBodyPosition.cs" />
|
||||
<Compile Include="DAL\AutoGenerate\DOperationCutType.cs" />
|
||||
<Compile Include="DAL\AutoGenerate\DOperationGoodsBillRecord.cs" />
|
||||
<Compile Include="DAL\AutoGenerate\DOperationLevel.cs" />
|
||||
<Compile Include="DAL\AutoGenerate\DOperationPosition.cs" />
|
||||
<Compile Include="DAL\AutoGenerate\DOperationRecordInfo.cs" />
|
||||
@ -344,7 +342,6 @@
|
||||
<Compile Include="Model\AutoGenerate\AnaesthesiaEvents.cs" />
|
||||
<Compile Include="Model\AutoGenerate\AnaesthesiaMethod.cs" />
|
||||
<Compile Include="Model\AutoGenerate\Appliance.cs" />
|
||||
<Compile Include="Model\AutoGenerate\ApplianceRecord.cs" />
|
||||
<Compile Include="Model\AutoGenerate\ApplianceUseType.cs" />
|
||||
<Compile Include="Model\AutoGenerate\ApplyAnaesthesiaMethod.cs" />
|
||||
<Compile Include="Model\AutoGenerate\ApplyDiagnoseInfo.cs" />
|
||||
@ -384,10 +381,8 @@
|
||||
<Compile Include="Model\AutoGenerate\OperationApplyVerifyRole.cs" />
|
||||
<Compile Include="Model\AutoGenerate\OperationBodyPosition.cs" />
|
||||
<Compile Include="Model\AutoGenerate\OperationCutType.cs" />
|
||||
<Compile Include="Model\AutoGenerate\OperationGoodsBillRecord.cs" />
|
||||
<Compile Include="Model\AutoGenerate\OperationLevel.cs" />
|
||||
<Compile Include="Model\AutoGenerate\OperationPosition.cs" />
|
||||
<Compile Include="Model\AutoGenerate\OperationRecordInstrumentList.cs" />
|
||||
<Compile Include="Model\AutoGenerate\OperationRoom.cs" />
|
||||
<Compile Include="Model\AutoGenerate\OperationTemplate.cs" />
|
||||
<Compile Include="Model\AutoGenerate\OrisPatient.cs" />
|
||||
|
||||
@ -3,6 +3,7 @@ using AIMSDAL;
|
||||
using AIMSModel;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using DrawGraph;
|
||||
|
||||
namespace AIMSBLL
|
||||
{
|
||||
|
||||
@ -1,160 +0,0 @@
|
||||
using System;
|
||||
using AIMSDAL;
|
||||
using AIMSModel;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AIMSBLL
|
||||
{
|
||||
public partial class BOperationGoodsBillRecord
|
||||
{
|
||||
#region 插入实体操作部份
|
||||
/// <summary>
|
||||
/// 插入实体
|
||||
/// </summary>
|
||||
/// <param name="operationGoodsBillRecord">实体类对象</param>
|
||||
/// <returns>标识列值或影响的记录行数</returns>
|
||||
public static int Insert(OperationGoodsBillRecord operationGoodsBillRecord)
|
||||
{
|
||||
return DOperationGoodsBillRecord.Insert(operationGoodsBillRecord);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 删除实体操作
|
||||
/// <summary>
|
||||
/// 删除实体
|
||||
/// </summary>
|
||||
/// <param name="operationGoodsBillRecord">实体类对象</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int Delete(OperationGoodsBillRecord operationGoodsBillRecord)
|
||||
{
|
||||
return DOperationGoodsBillRecord.Delete(operationGoodsBillRecord);
|
||||
}
|
||||
/// <summary>
|
||||
/// 根据对象查询语句删除
|
||||
/// </summary>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int Delete(string oql, ParameterList parameters)
|
||||
{
|
||||
return DOperationGoodsBillRecord.Delete(oql,parameters);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 更新实体操作
|
||||
|
||||
/// <summary>
|
||||
/// 更新实体
|
||||
/// </summary>
|
||||
/// <param name="operationGoodsBillRecord">实体类对象</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int Update(OperationGoodsBillRecord operationGoodsBillRecord)
|
||||
{
|
||||
return DOperationGoodsBillRecord.Update(operationGoodsBillRecord);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据对象查询语句更新实体
|
||||
/// </summary>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int Update(string oql, ParameterList parameters)
|
||||
{
|
||||
return DOperationGoodsBillRecord.Update(oql,parameters);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查询实体集合
|
||||
/// <summary>
|
||||
/// \查询实体集合
|
||||
/// </summary>
|
||||
/// <returns>实体类对象集合</returns>
|
||||
public static List<OperationGoodsBillRecord> Select()
|
||||
{
|
||||
return DOperationGoodsBillRecord.Select();
|
||||
}
|
||||
/// <summary>
|
||||
/// 递归查询实体集合
|
||||
/// </summary>
|
||||
/// <param name="recursiveType">递归类型</param>
|
||||
/// <param name="recursiveDepth">递归深度</param>
|
||||
/// <returns>实体类对象集合</returns>
|
||||
public static List<OperationGoodsBillRecord> Select(RecursiveType recursiveType, int recursiveDepth)
|
||||
{
|
||||
return DOperationGoodsBillRecord.Select(recursiveType, recursiveDepth);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据对象查询语句查询实体集合
|
||||
/// </summary>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>实体类对象集合</returns>
|
||||
public static List<OperationGoodsBillRecord> Select(string oql, ParameterList parameters)
|
||||
{
|
||||
return DOperationGoodsBillRecord.Select(oql, parameters);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据对象查询语句递归查询实体集合
|
||||
/// </summary>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <param name="recursiveType">递归类型</param>
|
||||
/// <param name="recursiveDepth">递归深度</param>
|
||||
/// <returns>实体类对象集合</returns>
|
||||
public static List<OperationGoodsBillRecord> Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth)
|
||||
{
|
||||
return DOperationGoodsBillRecord.Select(oql, parameters, recursiveType, recursiveDepth);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查询单个实体
|
||||
/// <summary>
|
||||
/// 更据对象查询语句查询单个实体
|
||||
/// </summary>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>实体对象</returns>
|
||||
public static OperationGoodsBillRecord SelectSingle(string oql, ParameterList parameters)
|
||||
{
|
||||
return DOperationGoodsBillRecord.SelectSingle(oql, parameters);
|
||||
}
|
||||
/// <summary>
|
||||
/// 更据对象查询语句递归查询单个实体
|
||||
/// </summary>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <param name="recursiveType">递归类型</param>
|
||||
/// <param name="recursiveDepth">递归深度</param>
|
||||
/// <returns>实体对象</returns>
|
||||
public static OperationGoodsBillRecord SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
|
||||
{
|
||||
return DOperationGoodsBillRecord.SelectSingle(oql, parameters, recursiveType, recursiveDepth);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 按主键字段查询特定实体
|
||||
/// </summary>
|
||||
/// <param name="id">主键值</param>
|
||||
/// <returns>实体类对象</returns>
|
||||
public static OperationGoodsBillRecord SelectSingle(int? id)
|
||||
{
|
||||
return DOperationGoodsBillRecord.SelectSingle(id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更据主键递归查询单个实体
|
||||
/// </summary>
|
||||
/// <param name="recursiveType">递归类型</param>
|
||||
/// <param name="recursiveDepth">递归深度</param>
|
||||
/// <returns>实体对象</returns>
|
||||
public static OperationGoodsBillRecord SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth)
|
||||
{
|
||||
return DOperationGoodsBillRecord.SelectSingle(id, recursiveType, recursiveDepth);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@ -3,6 +3,7 @@ using AIMSDAL;
|
||||
using AIMSModel;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using DrawGraph;
|
||||
|
||||
namespace AIMSBLL
|
||||
{
|
||||
|
||||
@ -185,6 +185,12 @@ namespace AIMSBLL
|
||||
_record.SpareThree = allOutDose.ToString();
|
||||
|
||||
|
||||
_record.InstrumentList = BOperationRecordInstrumentList.SelectSingle(" OperationRecordId=" + Convert.ToInt32(_record.Id), null);
|
||||
if (_record.InstrumentList != null)
|
||||
{
|
||||
_record.InstrumentList.ApplianceRecordList = BApplianceRecord.GetApplianceRecordById(Convert.ToInt32(_record.Id), Convert.ToInt32(_record.InstrumentList.Id));
|
||||
}
|
||||
|
||||
return _record;
|
||||
|
||||
}
|
||||
|
||||
@ -5,6 +5,7 @@ using System.Collections;
|
||||
using AIMSModel;
|
||||
using AIMSObjectQuery;
|
||||
using System.Collections.Generic;
|
||||
using DrawGraph;
|
||||
|
||||
namespace AIMSDAL
|
||||
{
|
||||
|
||||
@ -1,765 +0,0 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Collections;
|
||||
using AIMSModel;
|
||||
using AIMSObjectQuery;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AIMSDAL
|
||||
{
|
||||
public partial class DOperationGoodsBillRecord
|
||||
{
|
||||
#region 插入实体操作部份
|
||||
/// <summary>
|
||||
/// 插入
|
||||
/// </summary>
|
||||
/// <param name="cmd">Command对象</param>
|
||||
/// <param name="operationGoodsBillRecord">实体类对象</param>
|
||||
/// <returns>标识列值或影响的记录行数</returns>
|
||||
public static int Insert(SqlCommand cmd, OperationGoodsBillRecord operationGoodsBillRecord)
|
||||
{
|
||||
cmd.Parameters.Clear();
|
||||
cmd.CommandText = "insert into OperationGoodsBillRecord (OperationRecordId,ApplianceUseType,BloodType,Erythrocyte,Platelet,PlateletUnit,Plasma,Other,Autoblood,InfusionLocation,Liquid,TourniquetBeginTime,TourniquetEndTime,TourniquetLocation,Specimen,SpecimenNumber,ToFreeze,ToPathology,ToRoom,NotToTest,NegativePlateLocation,DoctorSign,Remark,InvasiveScreening,ScrubNurse,ScrubNurseSucceed,ScrubSucceedTime,TourNurse,TourNurseSucceed,TourSucceedTime,ColdDeposit) values (@OperationRecordId,@ApplianceUseType,@BloodType,@Erythrocyte,@Platelet,@PlateletUnit,@Plasma,@Other,@Autoblood,@InfusionLocation,@Liquid,@TourniquetBeginTime,@TourniquetEndTime,@TourniquetLocation,@Specimen,@SpecimenNumber,@ToFreeze,@ToPathology,@ToRoom,@NotToTest,@NegativePlateLocation,@DoctorSign,@Remark,@InvasiveScreening,@ScrubNurse,@ScrubNurseSucceed,@ScrubSucceedTime,@TourNurse,@TourNurseSucceed,@TourSucceedTime,@ColdDeposit);select @@identity";
|
||||
//从实体中取出值放入Command的参数列表
|
||||
cmd.Parameters.Add(new SqlParameter("@OperationRecordId",operationGoodsBillRecord.OperationRecordId.HasValue?(object)operationGoodsBillRecord.OperationRecordId.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@ApplianceUseType",operationGoodsBillRecord.ApplianceUseType==null?(object)DBNull.Value:(object)operationGoodsBillRecord.ApplianceUseType));
|
||||
cmd.Parameters.Add(new SqlParameter("@BloodType",operationGoodsBillRecord.BloodType==null?(object)DBNull.Value:(object)operationGoodsBillRecord.BloodType));
|
||||
cmd.Parameters.Add(new SqlParameter("@Erythrocyte",operationGoodsBillRecord.Erythrocyte==null?(object)DBNull.Value:(object)operationGoodsBillRecord.Erythrocyte));
|
||||
cmd.Parameters.Add(new SqlParameter("@Platelet",operationGoodsBillRecord.Platelet==null?(object)DBNull.Value:(object)operationGoodsBillRecord.Platelet));
|
||||
cmd.Parameters.Add(new SqlParameter("@PlateletUnit",operationGoodsBillRecord.PlateletUnit==null?(object)DBNull.Value:(object)operationGoodsBillRecord.PlateletUnit));
|
||||
cmd.Parameters.Add(new SqlParameter("@Plasma",operationGoodsBillRecord.Plasma==null?(object)DBNull.Value:(object)operationGoodsBillRecord.Plasma));
|
||||
cmd.Parameters.Add(new SqlParameter("@Other",operationGoodsBillRecord.Other==null?(object)DBNull.Value:(object)operationGoodsBillRecord.Other));
|
||||
cmd.Parameters.Add(new SqlParameter("@Autoblood",operationGoodsBillRecord.Autoblood==null?(object)DBNull.Value:(object)operationGoodsBillRecord.Autoblood));
|
||||
cmd.Parameters.Add(new SqlParameter("@InfusionLocation",operationGoodsBillRecord.InfusionLocation==null?(object)DBNull.Value:(object)operationGoodsBillRecord.InfusionLocation));
|
||||
cmd.Parameters.Add(new SqlParameter("@Liquid",operationGoodsBillRecord.Liquid==null?(object)DBNull.Value:(object)operationGoodsBillRecord.Liquid));
|
||||
cmd.Parameters.Add(new SqlParameter("@TourniquetBeginTime",operationGoodsBillRecord.TourniquetBeginTime.HasValue?(object)operationGoodsBillRecord.TourniquetBeginTime.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@TourniquetEndTime",operationGoodsBillRecord.TourniquetEndTime.HasValue?(object)operationGoodsBillRecord.TourniquetEndTime.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@TourniquetLocation",operationGoodsBillRecord.TourniquetLocation==null?(object)DBNull.Value:(object)operationGoodsBillRecord.TourniquetLocation));
|
||||
cmd.Parameters.Add(new SqlParameter("@Specimen",operationGoodsBillRecord.Specimen.HasValue?(object)operationGoodsBillRecord.Specimen.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@SpecimenNumber",operationGoodsBillRecord.SpecimenNumber.HasValue?(object)operationGoodsBillRecord.SpecimenNumber.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@ToFreeze",operationGoodsBillRecord.ToFreeze.HasValue?(object)operationGoodsBillRecord.ToFreeze.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@ToPathology",operationGoodsBillRecord.ToPathology.HasValue?(object)operationGoodsBillRecord.ToPathology.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@ToRoom",operationGoodsBillRecord.ToRoom.HasValue?(object)operationGoodsBillRecord.ToRoom.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@NotToTest",operationGoodsBillRecord.NotToTest.HasValue?(object)operationGoodsBillRecord.NotToTest.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@NegativePlateLocation",operationGoodsBillRecord.NegativePlateLocation==null?(object)DBNull.Value:(object)operationGoodsBillRecord.NegativePlateLocation));
|
||||
cmd.Parameters.Add(new SqlParameter("@DoctorSign",operationGoodsBillRecord.DoctorSign==null?(object)DBNull.Value:(object)operationGoodsBillRecord.DoctorSign));
|
||||
cmd.Parameters.Add(new SqlParameter("@Remark",operationGoodsBillRecord.Remark==null?(object)DBNull.Value:(object)operationGoodsBillRecord.Remark));
|
||||
cmd.Parameters.Add(new SqlParameter("@InvasiveScreening",operationGoodsBillRecord.InvasiveScreening==null?(object)DBNull.Value:(object)operationGoodsBillRecord.InvasiveScreening));
|
||||
cmd.Parameters.Add(new SqlParameter("@ScrubNurse",operationGoodsBillRecord.ScrubNurse==null?(object)DBNull.Value:(object)operationGoodsBillRecord.ScrubNurse));
|
||||
cmd.Parameters.Add(new SqlParameter("@ScrubNurseSucceed",operationGoodsBillRecord.ScrubNurseSucceed==null?(object)DBNull.Value:(object)operationGoodsBillRecord.ScrubNurseSucceed));
|
||||
cmd.Parameters.Add(new SqlParameter("@ScrubSucceedTime",operationGoodsBillRecord.ScrubSucceedTime==null?(object)DBNull.Value:(object)operationGoodsBillRecord.ScrubSucceedTime));
|
||||
cmd.Parameters.Add(new SqlParameter("@TourNurse",operationGoodsBillRecord.TourNurse==null?(object)DBNull.Value:(object)operationGoodsBillRecord.TourNurse));
|
||||
cmd.Parameters.Add(new SqlParameter("@TourNurseSucceed",operationGoodsBillRecord.TourNurseSucceed==null?(object)DBNull.Value:(object)operationGoodsBillRecord.TourNurseSucceed));
|
||||
cmd.Parameters.Add(new SqlParameter("@TourSucceedTime",operationGoodsBillRecord.TourSucceedTime==null?(object)DBNull.Value:(object)operationGoodsBillRecord.TourSucceedTime));
|
||||
cmd.Parameters.Add(new SqlParameter("@ColdDeposit",operationGoodsBillRecord.ColdDeposit==null?(object)DBNull.Value:(object)operationGoodsBillRecord.ColdDeposit));
|
||||
return Convert.ToInt32(cmd.ExecuteScalar());
|
||||
}
|
||||
/// <summary>
|
||||
/// 不使用事务的插入方法
|
||||
/// </summary>
|
||||
/// <param name="operationGoodsBillRecord">实体类对象</param>
|
||||
/// <returns>标识列值或影响的记录行数</returns>
|
||||
public static int Insert(OperationGoodsBillRecord operationGoodsBillRecord)
|
||||
{
|
||||
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
using (SqlCommand cmd = conn.CreateCommand())
|
||||
{
|
||||
return Insert(cmd, operationGoodsBillRecord);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 使用事务的插入方法
|
||||
/// </summary>
|
||||
/// <param name="connection">实现共享Connection的对象</param>
|
||||
/// <param name="operationGoodsBillRecord">实体类对象</param>
|
||||
/// <returns>标识列值或影响的记录行数</returns>
|
||||
public static int Insert(Connection connection,OperationGoodsBillRecord operationGoodsBillRecord)
|
||||
{
|
||||
return Insert(connection.Command, operationGoodsBillRecord);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 删除实体操作
|
||||
|
||||
/// <summary>
|
||||
/// 删除
|
||||
/// </summary>
|
||||
/// <param name="cmd">Command对象</param>
|
||||
/// <param name="operationGoodsBillRecord">实体类对象</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int ExcuteDeleteCommand(SqlCommand cmd, OperationGoodsBillRecord operationGoodsBillRecord)
|
||||
{
|
||||
cmd.Parameters.Clear();
|
||||
cmd.CommandText = "delete from OperationGoodsBillRecord where Id=@Id";
|
||||
//从实体中取出值放入Command的参数列表
|
||||
cmd.Parameters.Add(new SqlParameter("@Id", operationGoodsBillRecord.Id));
|
||||
return cmd.ExecuteNonQuery();
|
||||
}
|
||||
/// <summary>
|
||||
/// 不使用事务的删除方法
|
||||
/// </summary>
|
||||
/// <param name="operationGoodsBillRecord">实体类对象</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int Delete(OperationGoodsBillRecord operationGoodsBillRecord)
|
||||
{
|
||||
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
using (SqlCommand cmd = conn.CreateCommand())
|
||||
{
|
||||
return ExcuteDeleteCommand(cmd, operationGoodsBillRecord);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 使用事务的删除方法
|
||||
/// </summary>
|
||||
/// <param name="connection">实现共享Connection的对象</param>
|
||||
/// <param name="operationGoodsBillRecord">实体类对象</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int Delete(Connection connection,OperationGoodsBillRecord operationGoodsBillRecord)
|
||||
{
|
||||
return ExcuteDeleteCommand(connection.Command, operationGoodsBillRecord);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 执行删除命令
|
||||
/// </summary>
|
||||
/// <param name="cmd">Command对象</param>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int ExcuteDeleteCommand(SqlCommand cmd, string oql, ParameterList parameters)
|
||||
{
|
||||
//解析过滤部份Sql语句
|
||||
string filterString = SyntaxAnalyzer.ParseSql(oql, new OperationGoodsBillRecordMap());
|
||||
if (filterString != string.Empty)
|
||||
{
|
||||
filterString = " where " + filterString;
|
||||
}
|
||||
cmd.Parameters.Clear();
|
||||
cmd.CommandText = "delete from OperationGoodsBillRecord " + filterString;
|
||||
//添加参数
|
||||
if (parameters != null)
|
||||
{
|
||||
foreach (string key in parameters.Keys)
|
||||
{
|
||||
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
|
||||
}
|
||||
}
|
||||
return cmd.ExecuteNonQuery();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 不使用事务的删除方法
|
||||
/// </summary>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int Delete(string oql, ParameterList parameters)
|
||||
{
|
||||
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
using (SqlCommand cmd = conn.CreateCommand())
|
||||
{
|
||||
return ExcuteDeleteCommand(cmd, oql, parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 使用事务的删除方法
|
||||
/// </summary>
|
||||
/// <param name="connection">实现共享Connection的对象</param>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int Delete(Connection connection, string oql, ParameterList parameters)
|
||||
{
|
||||
return ExcuteDeleteCommand(connection.Command, oql, parameters);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 更新实体操作
|
||||
|
||||
/// <summary>
|
||||
/// 更新
|
||||
/// </summary>
|
||||
/// <param name="cmd">Command对象</param>
|
||||
/// <param name="operationGoodsBillRecord">实体类对象</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int ExcuteUpdateCommand(SqlCommand cmd, OperationGoodsBillRecord operationGoodsBillRecord)
|
||||
{
|
||||
cmd.CommandText = "update OperationGoodsBillRecord set OperationRecordId=@OperationRecordId,ApplianceUseType=@ApplianceUseType,BloodType=@BloodType,Erythrocyte=@Erythrocyte,Platelet=@Platelet,PlateletUnit=@PlateletUnit,Plasma=@Plasma,Other=@Other,Autoblood=@Autoblood,InfusionLocation=@InfusionLocation,Liquid=@Liquid,TourniquetBeginTime=@TourniquetBeginTime,TourniquetEndTime=@TourniquetEndTime,TourniquetLocation=@TourniquetLocation,Specimen=@Specimen,SpecimenNumber=@SpecimenNumber,ToFreeze=@ToFreeze,ToPathology=@ToPathology,ToRoom=@ToRoom,NotToTest=@NotToTest,NegativePlateLocation=@NegativePlateLocation,DoctorSign=@DoctorSign,Remark=@Remark,InvasiveScreening=@InvasiveScreening,ScrubNurse=@ScrubNurse,ScrubNurseSucceed=@ScrubNurseSucceed,ScrubSucceedTime=@ScrubSucceedTime,TourNurse=@TourNurse,TourNurseSucceed=@TourNurseSucceed,TourSucceedTime=@TourSucceedTime,ColdDeposit=@ColdDeposit where Id=@Id";
|
||||
//从实体中取出值放入Command的参数列表
|
||||
cmd.Parameters.Add(new SqlParameter("@OperationRecordId",operationGoodsBillRecord.OperationRecordId.HasValue?(object)operationGoodsBillRecord.OperationRecordId.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@ApplianceUseType",operationGoodsBillRecord.ApplianceUseType==null?(object)DBNull.Value:(object)operationGoodsBillRecord.ApplianceUseType));
|
||||
cmd.Parameters.Add(new SqlParameter("@BloodType",operationGoodsBillRecord.BloodType==null?(object)DBNull.Value:(object)operationGoodsBillRecord.BloodType));
|
||||
cmd.Parameters.Add(new SqlParameter("@Erythrocyte",operationGoodsBillRecord.Erythrocyte==null?(object)DBNull.Value:(object)operationGoodsBillRecord.Erythrocyte));
|
||||
cmd.Parameters.Add(new SqlParameter("@Platelet",operationGoodsBillRecord.Platelet==null?(object)DBNull.Value:(object)operationGoodsBillRecord.Platelet));
|
||||
cmd.Parameters.Add(new SqlParameter("@PlateletUnit",operationGoodsBillRecord.PlateletUnit==null?(object)DBNull.Value:(object)operationGoodsBillRecord.PlateletUnit));
|
||||
cmd.Parameters.Add(new SqlParameter("@Plasma",operationGoodsBillRecord.Plasma==null?(object)DBNull.Value:(object)operationGoodsBillRecord.Plasma));
|
||||
cmd.Parameters.Add(new SqlParameter("@Other",operationGoodsBillRecord.Other==null?(object)DBNull.Value:(object)operationGoodsBillRecord.Other));
|
||||
cmd.Parameters.Add(new SqlParameter("@Autoblood",operationGoodsBillRecord.Autoblood==null?(object)DBNull.Value:(object)operationGoodsBillRecord.Autoblood));
|
||||
cmd.Parameters.Add(new SqlParameter("@InfusionLocation",operationGoodsBillRecord.InfusionLocation==null?(object)DBNull.Value:(object)operationGoodsBillRecord.InfusionLocation));
|
||||
cmd.Parameters.Add(new SqlParameter("@Liquid",operationGoodsBillRecord.Liquid==null?(object)DBNull.Value:(object)operationGoodsBillRecord.Liquid));
|
||||
cmd.Parameters.Add(new SqlParameter("@TourniquetBeginTime",operationGoodsBillRecord.TourniquetBeginTime.HasValue?(object)operationGoodsBillRecord.TourniquetBeginTime.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@TourniquetEndTime",operationGoodsBillRecord.TourniquetEndTime.HasValue?(object)operationGoodsBillRecord.TourniquetEndTime.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@TourniquetLocation",operationGoodsBillRecord.TourniquetLocation==null?(object)DBNull.Value:(object)operationGoodsBillRecord.TourniquetLocation));
|
||||
cmd.Parameters.Add(new SqlParameter("@Specimen",operationGoodsBillRecord.Specimen.HasValue?(object)operationGoodsBillRecord.Specimen.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@SpecimenNumber",operationGoodsBillRecord.SpecimenNumber.HasValue?(object)operationGoodsBillRecord.SpecimenNumber.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@ToFreeze",operationGoodsBillRecord.ToFreeze.HasValue?(object)operationGoodsBillRecord.ToFreeze.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@ToPathology",operationGoodsBillRecord.ToPathology.HasValue?(object)operationGoodsBillRecord.ToPathology.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@ToRoom",operationGoodsBillRecord.ToRoom.HasValue?(object)operationGoodsBillRecord.ToRoom.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@NotToTest",operationGoodsBillRecord.NotToTest.HasValue?(object)operationGoodsBillRecord.NotToTest.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@NegativePlateLocation",operationGoodsBillRecord.NegativePlateLocation==null?(object)DBNull.Value:(object)operationGoodsBillRecord.NegativePlateLocation));
|
||||
cmd.Parameters.Add(new SqlParameter("@DoctorSign",operationGoodsBillRecord.DoctorSign==null?(object)DBNull.Value:(object)operationGoodsBillRecord.DoctorSign));
|
||||
cmd.Parameters.Add(new SqlParameter("@Remark",operationGoodsBillRecord.Remark==null?(object)DBNull.Value:(object)operationGoodsBillRecord.Remark));
|
||||
cmd.Parameters.Add(new SqlParameter("@InvasiveScreening",operationGoodsBillRecord.InvasiveScreening==null?(object)DBNull.Value:(object)operationGoodsBillRecord.InvasiveScreening));
|
||||
cmd.Parameters.Add(new SqlParameter("@ScrubNurse",operationGoodsBillRecord.ScrubNurse==null?(object)DBNull.Value:(object)operationGoodsBillRecord.ScrubNurse));
|
||||
cmd.Parameters.Add(new SqlParameter("@ScrubNurseSucceed",operationGoodsBillRecord.ScrubNurseSucceed==null?(object)DBNull.Value:(object)operationGoodsBillRecord.ScrubNurseSucceed));
|
||||
cmd.Parameters.Add(new SqlParameter("@ScrubSucceedTime",operationGoodsBillRecord.ScrubSucceedTime==null?(object)DBNull.Value:(object)operationGoodsBillRecord.ScrubSucceedTime));
|
||||
cmd.Parameters.Add(new SqlParameter("@TourNurse",operationGoodsBillRecord.TourNurse==null?(object)DBNull.Value:(object)operationGoodsBillRecord.TourNurse));
|
||||
cmd.Parameters.Add(new SqlParameter("@TourNurseSucceed",operationGoodsBillRecord.TourNurseSucceed==null?(object)DBNull.Value:(object)operationGoodsBillRecord.TourNurseSucceed));
|
||||
cmd.Parameters.Add(new SqlParameter("@TourSucceedTime",operationGoodsBillRecord.TourSucceedTime==null?(object)DBNull.Value:(object)operationGoodsBillRecord.TourSucceedTime));
|
||||
cmd.Parameters.Add(new SqlParameter("@ColdDeposit",operationGoodsBillRecord.ColdDeposit==null?(object)DBNull.Value:(object)operationGoodsBillRecord.ColdDeposit));
|
||||
cmd.Parameters.Add(new SqlParameter("@Id", operationGoodsBillRecord.Id));
|
||||
return cmd.ExecuteNonQuery();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 不使用事务的更新方法
|
||||
/// </summary>
|
||||
/// <param name="operationGoodsBillRecord">实体类对象</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int Update(OperationGoodsBillRecord operationGoodsBillRecord)
|
||||
{
|
||||
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
using (SqlCommand cmd = conn.CreateCommand())
|
||||
{
|
||||
return ExcuteUpdateCommand(cmd, operationGoodsBillRecord);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 使用事务的更新方法
|
||||
/// </summary>
|
||||
/// <param name="connection">实现共享Connection的对象</param>
|
||||
/// <param name="operationGoodsBillRecord">实体类对象</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int Update(Connection connection,OperationGoodsBillRecord operationGoodsBillRecord)
|
||||
{
|
||||
return ExcuteUpdateCommand(connection.Command, operationGoodsBillRecord);
|
||||
}
|
||||
/// <summary>
|
||||
/// 执行更新命令
|
||||
/// </summary>
|
||||
/// <param name="cmd">Command对象</param>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int ExcuteUpdateCommand(SqlCommand cmd, string oql, ParameterList parameters)
|
||||
{
|
||||
//解析过滤部份Sql语句
|
||||
string updateString = SyntaxAnalyzer.ParseSql(oql, new OperationGoodsBillRecordMap());
|
||||
cmd.CommandText = "update OperationGoodsBillRecord set " + updateString;
|
||||
cmd.Parameters.Clear();
|
||||
//添加参数
|
||||
if (parameters != null)
|
||||
{
|
||||
foreach (string key in parameters.Keys)
|
||||
{
|
||||
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
|
||||
}
|
||||
}
|
||||
return cmd.ExecuteNonQuery();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 不使用事务的更新方法
|
||||
/// </summary>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int Update(string oql, ParameterList parameters)
|
||||
{
|
||||
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
using (SqlCommand cmd = conn.CreateCommand())
|
||||
{
|
||||
return ExcuteUpdateCommand(cmd, oql, parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 使用事务的更新方法
|
||||
/// </summary>
|
||||
/// <param name="connection">实现共享Connection的对象</param>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int Update(Connection connection, string oql, ParameterList parameters)
|
||||
{
|
||||
return ExcuteUpdateCommand(connection.Command, oql, parameters);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查询实体集合
|
||||
/// <summary>
|
||||
/// 执行Command获取对象列表
|
||||
/// </summary>
|
||||
/// <param name="cmd">Command对象</param>
|
||||
/// <param name="recursiveType">递归类型</param>
|
||||
/// <param name="recursiveDepth">递归深度</param>
|
||||
/// <returns>实体类对象列表</returns>
|
||||
public static List<OperationGoodsBillRecord> ExcuteSelectCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth)
|
||||
{
|
||||
List<OperationGoodsBillRecord> operationGoodsBillRecordList = new List<OperationGoodsBillRecord>();
|
||||
using (SqlDataReader dr = cmd.ExecuteReader())
|
||||
{
|
||||
while (dr.Read())
|
||||
{
|
||||
OperationGoodsBillRecord operationGoodsBillRecord = DataReaderToEntity(dr);
|
||||
operationGoodsBillRecordList.Add(operationGoodsBillRecord);
|
||||
}
|
||||
}
|
||||
return operationGoodsBillRecordList;
|
||||
}
|
||||
/// <summary>
|
||||
/// 执行查询命令
|
||||
/// </summary>
|
||||
/// <param name="cmd">Command对象</param>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <param name="recursiveType">递归类型</param>
|
||||
/// <param name="recursiveDepth">递归深度</param>
|
||||
/// <returns>实体类对象集合</returns>
|
||||
public static List<OperationGoodsBillRecord> ExcuteSelectCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth)
|
||||
{
|
||||
//解析过滤部份Sql语句
|
||||
string filterString = SyntaxAnalyzer.ParseSql(oql, new OperationGoodsBillRecordMap());
|
||||
if (filterString != string.Empty)
|
||||
{
|
||||
if(filterString.Trim().ToLower().IndexOf("order ")!=0)
|
||||
filterString = " where " + filterString;
|
||||
}
|
||||
cmd.Parameters.Clear();
|
||||
cmd.CommandText = "select * from OperationGoodsBillRecord " + filterString;
|
||||
//添加参数
|
||||
if (parameters != null)
|
||||
{
|
||||
foreach (string key in parameters.Keys)
|
||||
{
|
||||
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
|
||||
}
|
||||
}
|
||||
return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据对象查询语句查询实体集合
|
||||
/// </summary>
|
||||
/// <returns>实体类对象集合</returns>
|
||||
public static List<OperationGoodsBillRecord> Select()
|
||||
{
|
||||
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
using (SqlCommand cmd = conn.CreateCommand())
|
||||
{
|
||||
cmd.CommandText = "select * from OperationGoodsBillRecord";
|
||||
return ExcuteSelectCommand(cmd, RecursiveType.Parent, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 根据对象查询语句查询实体集合
|
||||
/// </summary>
|
||||
/// <param name="recursiveType">递归类型</param>
|
||||
/// <param name="recursiveDepth">递归深度</param>
|
||||
/// <returns>实体类对象集合</returns>
|
||||
public static List<OperationGoodsBillRecord> Select(RecursiveType recursiveType, int recursiveDepth)
|
||||
{
|
||||
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
using (SqlCommand cmd = conn.CreateCommand())
|
||||
{
|
||||
cmd.CommandText = "select * from OperationGoodsBillRecord";
|
||||
return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据对象查询语句查询实体集合
|
||||
/// </summary>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>实体类对象集合</returns>
|
||||
public static List<OperationGoodsBillRecord> Select(string oql, ParameterList parameters)
|
||||
{
|
||||
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
using (SqlCommand cmd = conn.CreateCommand())
|
||||
{
|
||||
return ExcuteSelectCommand(cmd, oql, parameters, RecursiveType.Parent, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据对象查询语句查询实体集合
|
||||
/// </summary>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <param name="recursiveType">递归类型</param>
|
||||
/// <param name="recursiveDepth">递归深度</param>
|
||||
/// <returns>实体类对象集合</returns>
|
||||
public static List<OperationGoodsBillRecord> Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth)
|
||||
{
|
||||
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
using (SqlCommand cmd = conn.CreateCommand())
|
||||
{
|
||||
return ExcuteSelectCommand(cmd, oql, parameters, recursiveType, recursiveDepth);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据对象查询语句查询实体集合(启用事务)
|
||||
/// </summary>
|
||||
/// <param name="connection">连接对象</param>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <param name="recursiveType">递归类型</param>
|
||||
/// <param name="recursiveDepth">递归深度</param>
|
||||
/// <returns>实体类对象集合</returns>
|
||||
public static List<OperationGoodsBillRecord> Select(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
|
||||
{
|
||||
return ExcuteSelectCommand(connection.Command, oql, parameters,recursiveType, recursiveDepth);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查询单个实体
|
||||
|
||||
/// <summary>
|
||||
/// 递归查询单个实体
|
||||
/// </summary>
|
||||
/// <param name="cmd">Command对象</param>
|
||||
/// <param name="recursiveType">递归类型</param>
|
||||
/// <param name="recursiveDepth">递归深度</param>
|
||||
/// <returns>实体对象</returns>
|
||||
public static OperationGoodsBillRecord ExcuteSelectSingleCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth)
|
||||
{
|
||||
OperationGoodsBillRecord operationGoodsBillRecord=null;
|
||||
using (SqlDataReader dr = cmd.ExecuteReader())
|
||||
{
|
||||
if(dr.Read())
|
||||
operationGoodsBillRecord = DataReaderToEntity(dr);
|
||||
}
|
||||
if(operationGoodsBillRecord==null)
|
||||
return operationGoodsBillRecord;
|
||||
return operationGoodsBillRecord;
|
||||
}
|
||||
/// <summary>
|
||||
/// 更据对象查询语句递归查询单个实体
|
||||
/// </summary>
|
||||
/// <param name="cmd">Command对象</param>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <param name="recursiveType">递归类型</param>
|
||||
/// <param name="recursiveDepth">递归深度</param>
|
||||
/// <returns>实体对象</returns>
|
||||
public static OperationGoodsBillRecord ExcuteSelectSingleCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth)
|
||||
{
|
||||
//解析过滤部份Sql语句
|
||||
string filterString = SyntaxAnalyzer.ParseSql(oql, new OperationGoodsBillRecordMap());
|
||||
if(filterString!=string.Empty)
|
||||
{
|
||||
filterString=" where "+filterString;
|
||||
}
|
||||
cmd.CommandText = "select * from OperationGoodsBillRecord " + filterString;
|
||||
cmd.Parameters.Clear();
|
||||
//添加参数
|
||||
if (parameters != null)
|
||||
{
|
||||
foreach (string key in parameters.Keys)
|
||||
{
|
||||
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
|
||||
}
|
||||
}
|
||||
return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更据对象查询语句递归查询单个实体
|
||||
/// </summary>
|
||||
/// <param name="cmd">Command对象</param>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <param name="recursiveType">递归类型</param>
|
||||
/// <param name="recursiveDepth">递归深度</param>
|
||||
/// <returns>实体对象</returns>
|
||||
public static OperationGoodsBillRecord SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
|
||||
{
|
||||
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
using (SqlCommand cmd = conn.CreateCommand())
|
||||
{
|
||||
return ExcuteSelectSingleCommand(cmd, oql, parameters, recursiveType, recursiveDepth);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更据对象查询语句查询单个实体
|
||||
/// </summary>
|
||||
/// <param name="cmd">Command对象</param>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>实体对象</returns>
|
||||
public static OperationGoodsBillRecord SelectSingle(string oql, ParameterList parameters)
|
||||
{
|
||||
return SelectSingle(oql,parameters,RecursiveType.Parent,1);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更据对象查询语句并启用事务查询单个实体
|
||||
/// </summary>
|
||||
/// <param name="connection">连接对象</param>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>实体对象</returns>
|
||||
public static OperationGoodsBillRecord SelectSingle(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
|
||||
{
|
||||
return ExcuteSelectSingleCommand(connection.Command, oql, parameters, recursiveType, recursiveDepth);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更据主键值递归查询单个实体
|
||||
/// </summary>
|
||||
/// <param name="cmd">Command对象</param>
|
||||
/// <param name="id">主键值</param>
|
||||
/// <param name="recursiveType">递归类型</param>
|
||||
/// <param name="recursiveDepth">递归深度</param>
|
||||
/// <returns>实体对象</returns>
|
||||
public static OperationGoodsBillRecord SelectSingle(SqlCommand cmd, int? id,RecursiveType recursiveType,int recursiveDepth)
|
||||
{
|
||||
cmd.Parameters.Clear();
|
||||
if(id.HasValue)
|
||||
{
|
||||
cmd.CommandText = "select * from OperationGoodsBillRecord where Id=@pk";
|
||||
cmd.Parameters.Add(new SqlParameter("@pk",id.Value));
|
||||
}
|
||||
else
|
||||
{
|
||||
cmd.CommandText = "select * from OperationGoodsBillRecord where Id is null";
|
||||
}
|
||||
return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 按主键字段查询特定实体
|
||||
/// </summary>
|
||||
/// <param name="id">主键值</param>
|
||||
/// <returns>实体类对象</returns>
|
||||
public static OperationGoodsBillRecord SelectSingle(int? id)
|
||||
{
|
||||
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
using (SqlCommand cmd = conn.CreateCommand())
|
||||
{
|
||||
return SelectSingle(cmd,id,RecursiveType.Parent,1);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 按主键字段查询特定实体
|
||||
/// </summary>
|
||||
/// <param name="id">主键值</param>
|
||||
/// <param name="recursiveType">递归类型</param>
|
||||
/// <param name="recursiveDepth">递归深度</param>
|
||||
/// <returns>实体类对象</returns>
|
||||
public static OperationGoodsBillRecord SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth)
|
||||
{
|
||||
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
using (SqlCommand cmd = conn.CreateCommand())
|
||||
{
|
||||
return SelectSingle(cmd,id, recursiveType, recursiveDepth);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 使用事务并按主键字段查询特定实体
|
||||
/// </summary>
|
||||
/// <param name="connection">连接对象</param>
|
||||
/// <param name="id">主键值</param>
|
||||
/// <returns>实体类对象</returns>
|
||||
public static OperationGoodsBillRecord SelectSingle(Connection connection,int? id, RecursiveType recursiveType, int recursiveDepth)
|
||||
{
|
||||
return SelectSingle(connection.Command, id, recursiveType, recursiveDepth);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 从DataReader中取出值生成实体对象
|
||||
/// </summary>
|
||||
/// <param name="searcher">查询对象</param>
|
||||
/// <returns>过滤条件字符串</returns>
|
||||
private static OperationGoodsBillRecord DataReaderToEntity(SqlDataReader dr)
|
||||
{
|
||||
OperationGoodsBillRecord entity = new OperationGoodsBillRecord ();
|
||||
if(dr["Id"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Id=Convert.ToInt32(dr["Id"]);
|
||||
}
|
||||
if(dr["OperationRecordId"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.OperationRecordId=Convert.ToInt32(dr["OperationRecordId"]);
|
||||
}
|
||||
if(dr["ApplianceUseType"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.ApplianceUseType=dr["ApplianceUseType"].ToString();
|
||||
}
|
||||
if(dr["BloodType"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.BloodType=dr["BloodType"].ToString();
|
||||
}
|
||||
if(dr["Erythrocyte"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Erythrocyte=dr["Erythrocyte"].ToString();
|
||||
}
|
||||
if(dr["Platelet"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Platelet=dr["Platelet"].ToString();
|
||||
}
|
||||
if(dr["PlateletUnit"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.PlateletUnit=dr["PlateletUnit"].ToString();
|
||||
}
|
||||
if(dr["Plasma"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Plasma=dr["Plasma"].ToString();
|
||||
}
|
||||
if(dr["Other"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Other=dr["Other"].ToString();
|
||||
}
|
||||
if(dr["Autoblood"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Autoblood=dr["Autoblood"].ToString();
|
||||
}
|
||||
if(dr["InfusionLocation"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.InfusionLocation=dr["InfusionLocation"].ToString();
|
||||
}
|
||||
if(dr["Liquid"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Liquid=dr["Liquid"].ToString();
|
||||
}
|
||||
if(dr["TourniquetBeginTime"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.TourniquetBeginTime=Convert.ToDateTime(dr["TourniquetBeginTime"]);
|
||||
}
|
||||
if(dr["TourniquetEndTime"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.TourniquetEndTime=Convert.ToDateTime(dr["TourniquetEndTime"]);
|
||||
}
|
||||
if(dr["TourniquetLocation"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.TourniquetLocation=dr["TourniquetLocation"].ToString();
|
||||
}
|
||||
if(dr["Specimen"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Specimen=Convert.ToInt32(dr["Specimen"]);
|
||||
}
|
||||
if(dr["SpecimenNumber"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.SpecimenNumber=Convert.ToInt32(dr["SpecimenNumber"]);
|
||||
}
|
||||
if(dr["ToFreeze"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.ToFreeze=Convert.ToInt32(dr["ToFreeze"]);
|
||||
}
|
||||
if(dr["ToPathology"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.ToPathology=Convert.ToInt32(dr["ToPathology"]);
|
||||
}
|
||||
if(dr["ToRoom"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.ToRoom=Convert.ToInt32(dr["ToRoom"]);
|
||||
}
|
||||
if(dr["NotToTest"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.NotToTest=Convert.ToInt32(dr["NotToTest"]);
|
||||
}
|
||||
if(dr["NegativePlateLocation"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.NegativePlateLocation=dr["NegativePlateLocation"].ToString();
|
||||
}
|
||||
if(dr["DoctorSign"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.DoctorSign=dr["DoctorSign"].ToString();
|
||||
}
|
||||
if(dr["Remark"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Remark=dr["Remark"].ToString();
|
||||
}
|
||||
if(dr["InvasiveScreening"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.InvasiveScreening=dr["InvasiveScreening"].ToString();
|
||||
}
|
||||
if(dr["ScrubNurse"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.ScrubNurse=dr["ScrubNurse"].ToString();
|
||||
}
|
||||
if(dr["ScrubNurseSucceed"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.ScrubNurseSucceed=dr["ScrubNurseSucceed"].ToString();
|
||||
}
|
||||
if(dr["ScrubSucceedTime"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.ScrubSucceedTime=dr["ScrubSucceedTime"].ToString();
|
||||
}
|
||||
if(dr["TourNurse"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.TourNurse=dr["TourNurse"].ToString();
|
||||
}
|
||||
if(dr["TourNurseSucceed"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.TourNurseSucceed=dr["TourNurseSucceed"].ToString();
|
||||
}
|
||||
if(dr["TourSucceedTime"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.TourSucceedTime=dr["TourSucceedTime"].ToString();
|
||||
}
|
||||
if(dr["ColdDeposit"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.ColdDeposit=dr["ColdDeposit"].ToString();
|
||||
}
|
||||
return entity;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,6 +5,7 @@ using System.Collections;
|
||||
using AIMSModel;
|
||||
using AIMSObjectQuery;
|
||||
using System.Collections.Generic;
|
||||
using DrawGraph;
|
||||
|
||||
namespace AIMSDAL
|
||||
{
|
||||
|
||||
@ -1,318 +0,0 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
namespace AIMSModel
|
||||
{
|
||||
[Serializable]
|
||||
public partial class OperationGoodsBillRecord
|
||||
{
|
||||
private int? id;
|
||||
private int? operationRecordId;
|
||||
private string applianceUseType;
|
||||
private string bloodType;
|
||||
private string erythrocyte;
|
||||
private string platelet;
|
||||
private string plateletUnit;
|
||||
private string plasma;
|
||||
private string other;
|
||||
private string autoblood;
|
||||
private string infusionLocation;
|
||||
private string liquid;
|
||||
private DateTime? tourniquetBeginTime;
|
||||
private DateTime? tourniquetEndTime;
|
||||
private string tourniquetLocation;
|
||||
private int? specimen;
|
||||
private int? specimenNumber;
|
||||
private int? toFreeze;
|
||||
private int? toPathology;
|
||||
private int? toRoom;
|
||||
private int? notToTest;
|
||||
private string negativePlateLocation;
|
||||
private string doctorSign;
|
||||
private string remark;
|
||||
private string invasiveScreening;
|
||||
private string scrubNurse;
|
||||
private string scrubNurseSucceed;
|
||||
private string scrubSucceedTime;
|
||||
private string tourNurse;
|
||||
private string tourNurseSucceed;
|
||||
private string tourSucceedTime;
|
||||
private string coldDeposit;
|
||||
private List<ApplianceRecord> applianceRecordList;
|
||||
private List<ApplianceRecord> applianceRecordListraw;
|
||||
|
||||
/// <summary>
|
||||
/// 编号,自增
|
||||
/// </summary>
|
||||
public int? Id
|
||||
{
|
||||
get{ return id; }
|
||||
set{ id=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 手术记录编号
|
||||
/// </summary>
|
||||
public int? OperationRecordId
|
||||
{
|
||||
get{ return operationRecordId; }
|
||||
set{ operationRecordId=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 使用科室
|
||||
/// </summary>
|
||||
public string ApplianceUseType
|
||||
{
|
||||
get{ return applianceUseType; }
|
||||
set{ applianceUseType=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 血型
|
||||
/// </summary>
|
||||
public string BloodType
|
||||
{
|
||||
get{ return bloodType; }
|
||||
set{ bloodType=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 红细胞
|
||||
/// </summary>
|
||||
public string Erythrocyte
|
||||
{
|
||||
get{ return erythrocyte; }
|
||||
set{ erythrocyte=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 血小板
|
||||
/// </summary>
|
||||
public string Platelet
|
||||
{
|
||||
get{ return platelet; }
|
||||
set{ platelet=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 血小板单位
|
||||
/// </summary>
|
||||
public string PlateletUnit
|
||||
{
|
||||
get{ return plateletUnit; }
|
||||
set{ plateletUnit=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 血浆
|
||||
/// </summary>
|
||||
public string Plasma
|
||||
{
|
||||
get{ return plasma; }
|
||||
set{ plasma=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 其它
|
||||
/// </summary>
|
||||
public string Other
|
||||
{
|
||||
get{ return other; }
|
||||
set{ other=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 自体血
|
||||
/// </summary>
|
||||
public string Autoblood
|
||||
{
|
||||
get{ return autoblood; }
|
||||
set{ autoblood=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 输液部位
|
||||
/// </summary>
|
||||
public string InfusionLocation
|
||||
{
|
||||
get{ return infusionLocation; }
|
||||
set{ infusionLocation=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 液体
|
||||
/// </summary>
|
||||
public string Liquid
|
||||
{
|
||||
get{ return liquid; }
|
||||
set{ liquid=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 止血带开始时间
|
||||
/// </summary>
|
||||
public DateTime? TourniquetBeginTime
|
||||
{
|
||||
get{ return tourniquetBeginTime; }
|
||||
set{ tourniquetBeginTime=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 止血带结束时间
|
||||
/// </summary>
|
||||
public DateTime? TourniquetEndTime
|
||||
{
|
||||
get{ return tourniquetEndTime; }
|
||||
set{ tourniquetEndTime=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 止血带位置
|
||||
/// </summary>
|
||||
public string TourniquetLocation
|
||||
{
|
||||
get{ return tourniquetLocation; }
|
||||
set{ tourniquetLocation=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 标本,0无、1有
|
||||
/// </summary>
|
||||
public int? Specimen
|
||||
{
|
||||
get{ return specimen; }
|
||||
set{ specimen=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 标本数量
|
||||
/// </summary>
|
||||
public int? SpecimenNumber
|
||||
{
|
||||
get{ return specimenNumber; }
|
||||
set{ specimenNumber=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 送冰冻,0无、1,有
|
||||
/// </summary>
|
||||
public int? ToFreeze
|
||||
{
|
||||
get{ return toFreeze; }
|
||||
set{ toFreeze=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 送病理,0无、1,有
|
||||
/// </summary>
|
||||
public int? ToPathology
|
||||
{
|
||||
get{ return toPathology; }
|
||||
set{ toPathology=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 送病房,0无、1,有
|
||||
/// </summary>
|
||||
public int? ToRoom
|
||||
{
|
||||
get{ return toRoom; }
|
||||
set{ toRoom=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 不送检
|
||||
/// </summary>
|
||||
public int? NotToTest
|
||||
{
|
||||
get{ return notToTest; }
|
||||
set{ notToTest=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 负极板位置
|
||||
/// </summary>
|
||||
public string NegativePlateLocation
|
||||
{
|
||||
get{ return negativePlateLocation; }
|
||||
set{ negativePlateLocation=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 医生签名
|
||||
/// </summary>
|
||||
public string DoctorSign
|
||||
{
|
||||
get{ return doctorSign; }
|
||||
set{ doctorSign=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Remark
|
||||
{
|
||||
get{ return remark; }
|
||||
set{ remark=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 有创筛前检查
|
||||
/// </summary>
|
||||
public string InvasiveScreening
|
||||
{
|
||||
get{ return invasiveScreening; }
|
||||
set{ invasiveScreening=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 洗手护士
|
||||
/// </summary>
|
||||
public string ScrubNurse
|
||||
{
|
||||
get{ return scrubNurse; }
|
||||
set{ scrubNurse=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 洗手接台护士
|
||||
/// </summary>
|
||||
public string ScrubNurseSucceed
|
||||
{
|
||||
get{ return scrubNurseSucceed; }
|
||||
set{ scrubNurseSucceed=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 洗手护士接台时间
|
||||
/// </summary>
|
||||
public string ScrubSucceedTime
|
||||
{
|
||||
get{ return scrubSucceedTime; }
|
||||
set{ scrubSucceedTime=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 巡回护士
|
||||
/// </summary>
|
||||
public string TourNurse
|
||||
{
|
||||
get{ return tourNurse; }
|
||||
set{ tourNurse=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 巡回接台护士
|
||||
/// </summary>
|
||||
public string TourNurseSucceed
|
||||
{
|
||||
get{ return tourNurseSucceed; }
|
||||
set{ tourNurseSucceed=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 巡回护士接台时间
|
||||
/// </summary>
|
||||
public string TourSucceedTime
|
||||
{
|
||||
get{ return tourSucceedTime; }
|
||||
set{ tourSucceedTime=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 冷沉淀
|
||||
/// </summary>
|
||||
public string ColdDeposit
|
||||
{
|
||||
get{ return coldDeposit; }
|
||||
set{ coldDeposit=value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 术中使用器械集合
|
||||
/// </summary>
|
||||
public List<ApplianceRecord> ApplianceRecordList
|
||||
{
|
||||
get { return applianceRecordList; }
|
||||
set { applianceRecordList = value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 术中使用辅料包集合
|
||||
/// </summary>
|
||||
public List<ApplianceRecord> ApplianceRecordListRaw
|
||||
{
|
||||
get { return applianceRecordListraw; }
|
||||
set { applianceRecordListraw = value; }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -2,7 +2,7 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AIMSModel
|
||||
namespace DrawGraph
|
||||
{
|
||||
[Serializable]
|
||||
public partial class ApplianceRecord
|
||||
@ -295,6 +295,9 @@ namespace DrawGraph
|
||||
public virtual void initChart()
|
||||
{
|
||||
}
|
||||
public virtual void BindTempData()
|
||||
{
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -8,8 +8,8 @@ using System.Text;
|
||||
namespace DrawGraph
|
||||
{
|
||||
public class DBManage
|
||||
{
|
||||
public static DataTable GetDictDataTable(OperationRecord OpeRecord,string HelpCode, string _title, string PersonType, string SelPerson)
|
||||
{
|
||||
public static DataTable GetDictDataTable(OperationRecord OpeRecord, string HelpCode, string _title, string PersonType, string SelPerson)
|
||||
{
|
||||
string strSql = "";
|
||||
switch (_title)
|
||||
@ -48,7 +48,7 @@ namespace DrawGraph
|
||||
{
|
||||
strSql = "SELECT top 10 p.Id,p.Name,p.IcdCode Code FROM Disease p WHERE p.IsValid=1 AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%')";
|
||||
if (SelPerson != "") strSql += " AND p.Id not in (" + SelPerson + ") ";
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "手术":
|
||||
strSql = "SELECT top 20 p.Id,p.Name,p.IcdCode Code FROM Operation p WHERE p.IsValid=1 AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' OR p.IcdCode LIKE '%" + HelpCode + "%')";
|
||||
@ -89,68 +89,78 @@ namespace DrawGraph
|
||||
try
|
||||
{
|
||||
if (items.Length < 1) return i;
|
||||
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.Length > 2)
|
||||
//{
|
||||
// if (items[1] == "InstrumentList")
|
||||
// {
|
||||
// i += UpdateInstrumentList(items[2] + "='" + value + "' where Id= " + _operationRecord.Id);
|
||||
// }
|
||||
//}
|
||||
//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);
|
||||
}
|
||||
//}
|
||||
}
|
||||
catch (Exception )
|
||||
catch (Exception)
|
||||
{
|
||||
//PublicMethod.WriteLog(new Exception("回写数据出错:" + propertyName + " 值:" + value + " 错误:" + ex.Message));
|
||||
}
|
||||
@ -168,6 +178,11 @@ namespace DrawGraph
|
||||
string sqlStr = "update Oris_Patient set " + sql;
|
||||
return DBHelper.ExecNonQuery(sqlStr);
|
||||
}
|
||||
public static int UpdateInstrumentList(string sql)
|
||||
{
|
||||
string sqlStr = "update InstrumentList set " + sql;
|
||||
return DBHelper.ExecNonQuery(sqlStr);
|
||||
}
|
||||
public static int AddPerson(OperationRecord _operationRecord, string Persons, int PersonDutyId)
|
||||
{
|
||||
int i = 0;
|
||||
@ -242,12 +257,12 @@ namespace DrawGraph
|
||||
int i = 0;
|
||||
if (Operation.Trim() == "" || Operation == ",")
|
||||
{
|
||||
DeleteApplyOperation(_operationRecord.OperationApplyId .Value);
|
||||
DeleteApplyOperation(_operationRecord.OperationApplyId.Value);
|
||||
i++;
|
||||
}
|
||||
else
|
||||
{
|
||||
DeleteApplyOperation(_operationRecord.OperationApplyId .Value);
|
||||
DeleteApplyOperation(_operationRecord.OperationApplyId.Value);
|
||||
i++;
|
||||
string[] Operationstr = Operation.Split(',');
|
||||
foreach (string OperationId in Operationstr)
|
||||
@ -270,18 +285,18 @@ namespace DrawGraph
|
||||
}
|
||||
}
|
||||
return i;
|
||||
}
|
||||
}
|
||||
public static int AddApplyDiagnose(OperationRecord _operationRecord, string Diagnose)
|
||||
{
|
||||
int i = 0;
|
||||
if (Diagnose.Trim() == "" || Diagnose == ",")
|
||||
{
|
||||
DeleteApplyDiagnose(_operationRecord.OperationApplyId .Value);
|
||||
DeleteApplyDiagnose(_operationRecord.OperationApplyId.Value);
|
||||
i++;
|
||||
}
|
||||
else
|
||||
{
|
||||
DeleteApplyDiagnose(_operationRecord.OperationApplyId .Value);
|
||||
DeleteApplyDiagnose(_operationRecord.OperationApplyId.Value);
|
||||
i++;
|
||||
string[] Diagnosestr = Diagnose.Split(',');
|
||||
foreach (string DiagnoseId in Diagnosestr)
|
||||
@ -292,7 +307,7 @@ namespace DrawGraph
|
||||
strSql.Append(")");
|
||||
strSql.Append(" values (");
|
||||
strSql.Append("" + _operationRecord.OperationApplyId + ",");
|
||||
strSql.Append("" + DiagnoseId + ",");
|
||||
strSql.Append("" + DiagnoseId + ",");
|
||||
strSql.Append("'" + AIMSExtension.PublicMethod.OperatorNo + "',");
|
||||
strSql.Append("'" + AIMSExtension.PublicMethod.OperatorName + "',");
|
||||
strSql.Append("'" + DateTime.Now + "'");
|
||||
@ -301,7 +316,7 @@ namespace DrawGraph
|
||||
}
|
||||
}
|
||||
return i;
|
||||
}
|
||||
}
|
||||
public static int AddOperationSite(OperationRecord _operationRecord, string OperationSite)
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
@ -21,7 +21,87 @@ namespace DrawGraph
|
||||
public DateTime endTime;
|
||||
public double startValue;
|
||||
public double endValue;
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DeletePhysios));
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.btnDelete = new DevComponents.DotNetBar.ButtonX();
|
||||
this.btnSave = new DevComponents.DotNetBar.ButtonX();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Location = new System.Drawing.Point(15, 12);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(227, 304);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// btnDelete
|
||||
//
|
||||
this.btnDelete.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||
this.btnDelete.Location = new System.Drawing.Point(37, 323);
|
||||
this.btnDelete.Name = "btnDelete";
|
||||
this.btnDelete.Size = new System.Drawing.Size(86, 30);
|
||||
this.btnDelete.TabIndex = 4;
|
||||
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(129, 323);
|
||||
this.btnSave.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(86, 30);
|
||||
this.btnSave.TabIndex = 3;
|
||||
this.btnSave.Text = "取消";
|
||||
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
|
||||
//
|
||||
// frmDeletePhysios
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(254, 359);
|
||||
this.Controls.Add(this.btnDelete);
|
||||
this.Controls.Add(this.btnSave);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "frmDeletePhysios";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "选择要删除的生命体征";
|
||||
this.Load += new System.EventHandler(this.frmDeletePhysio_Load);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private DevComponents.DotNetBar.ButtonX btnDelete;
|
||||
private DevComponents.DotNetBar.ButtonX btnSave;
|
||||
public DeletePhysios()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
88
DrawGraph/AreaManage/DeletePhysios.designer.cs
generated
88
DrawGraph/AreaManage/DeletePhysios.designer.cs
generated
@ -1,88 +0,0 @@
|
||||
|
||||
namespace DrawGraph
|
||||
{
|
||||
partial class DeletePhysios
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DeletePhysios));
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.btnDelete = new DevComponents.DotNetBar.ButtonX();
|
||||
this.btnSave = new DevComponents.DotNetBar.ButtonX();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Location = new System.Drawing.Point(15, 12);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(227, 304);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// btnDelete
|
||||
//
|
||||
this.btnDelete.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||
this.btnDelete.Location = new System.Drawing.Point(37, 323);
|
||||
this.btnDelete.Name = "btnDelete";
|
||||
this.btnDelete.Size = new System.Drawing.Size(86, 30);
|
||||
this.btnDelete.TabIndex = 4;
|
||||
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(129, 323);
|
||||
this.btnSave.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(86, 30);
|
||||
this.btnSave.TabIndex = 3;
|
||||
this.btnSave.Text = "取消";
|
||||
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
|
||||
//
|
||||
// frmDeletePhysios
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(254, 359);
|
||||
this.Controls.Add(this.btnDelete);
|
||||
this.Controls.Add(this.btnSave);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "frmDeletePhysios";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "选择要删除的生命体征";
|
||||
this.Load += new System.EventHandler(this.frmDeletePhysio_Load);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private DevComponents.DotNetBar.ButtonX btnDelete;
|
||||
private DevComponents.DotNetBar.ButtonX btnSave;
|
||||
}
|
||||
}
|
||||
528
DrawGraph/AreaManage/InstrumentDataManage.cs
Normal file
528
DrawGraph/AreaManage/InstrumentDataManage.cs
Normal file
@ -0,0 +1,528 @@
|
||||
using AIMSExtension;
|
||||
using DevComponents.DotNetBar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace DrawGraph
|
||||
{
|
||||
/// <summary>
|
||||
/// 麻醉前访视单
|
||||
/// </summary>
|
||||
public class InstrumentDataManage : AreaManageBase
|
||||
{
|
||||
|
||||
private OperationRecord myOpeRecord = null;
|
||||
private bool valChang = false; //值不变
|
||||
public TextPackObj txtObj;
|
||||
public TablePackObj tablePackObj;
|
||||
public TablePackObj tablePackObj1;
|
||||
public TablePackObj tablePackObj2;
|
||||
public TablePackObj tablePackObj3;
|
||||
public float chaY;
|
||||
public float fontsize;
|
||||
|
||||
public InstrumentDataManage() { }
|
||||
public InstrumentDataManage(object _operationRecor, DrawGraph.ZedGraphControl _zedControl, TemplateManage _template, string _name) : base(_operationRecor, _zedControl, _template, _name)
|
||||
{ }
|
||||
|
||||
public void init()
|
||||
{
|
||||
txtObj = template.GetPackObjectOTag<TextPackObj>("InstrumentDataManage_TextPackObj_40");
|
||||
tablePackObj = template.GetPackObjectOTag<TablePackObj>("InstrumentDataManage_TablePackObj_39");
|
||||
tablePackObj1 = template.GetPackObjectOTag<TablePackObj>("InstrumentDataManage_TablePackObj_41");
|
||||
tablePackObj2 = template.GetPackObjectOTag<TablePackObj>("InstrumentDataManage_TablePackObj_42");
|
||||
tablePackObj3 = template.GetPackObjectOTag<TablePackObj>("InstrumentDataManage_TablePackObj_43");
|
||||
if (tablePackObj != null)
|
||||
{
|
||||
chaY = (tablePackObj.EndY - tablePackObj.Y) / tablePackObj.Rows;
|
||||
fontsize = txtObj.FontSize - 2;
|
||||
}
|
||||
myOpeRecord = OpeRecord as OperationRecord;
|
||||
}
|
||||
#region 重写的事件
|
||||
/// <summary>
|
||||
/// 鼠标点击画板
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
public override void MouseDown(ZedGraphControl sender, MouseEventArgs e)
|
||||
{
|
||||
}
|
||||
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)
|
||||
{
|
||||
}
|
||||
|
||||
private void SetApplianceMethod(List<ApplianceRecord> ApplianceRecordList)
|
||||
{
|
||||
if (tablePackObj == null) return;
|
||||
for (int i = 0; i < tablePackObj.Rows * 3 + 1; i++)
|
||||
{
|
||||
DelAddObj("ApplianceRecordList" + i);
|
||||
DelAddObj("ApplianceRecordListOpeFront" + i);
|
||||
DelAddObj("ApplianceRecordListOpeDoing" + i);
|
||||
DelAddObj("ApplianceRecordListCloseFront" + i);
|
||||
DelAddObj("ApplianceRecordListCloseLast" + i);
|
||||
}
|
||||
for (int index = 0; index < tablePackObj.Rows - 1; index++)
|
||||
{
|
||||
if (ApplianceRecordList.Count > 0 && index < ApplianceRecordList.Count)
|
||||
{
|
||||
double y = tablePackObj.RealY + chaY + chaY * index;
|
||||
ZUtil.DrawText(ApplianceRecordList[index].ApplianceName, tablePackObj.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordList" + index, Color.Black, fontsize, false);
|
||||
|
||||
if (ApplianceRecordList[index].OpeFront != null && ApplianceRecordList[index].OpeFront != "")// && ApplianceRecordList[index].OpeFront != @"\"
|
||||
ZUtil.DrawText(ApplianceRecordList[index].OpeFront, tablePackObj1.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListOpeFront" + index, Color.Black, fontsize, false);
|
||||
if (ApplianceRecordList[index].OpeDoing != null && ApplianceRecordList[index].OpeDoing != "")// && ApplianceRecordList[index].OpeDoing != @"\"
|
||||
ZUtil.DrawText(ApplianceRecordList[index].OpeDoing, (tablePackObj1.EndX - tablePackObj1.X) / 4 * 1 + tablePackObj1.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListOpeDoing" + index, Color.Black, fontsize, false);
|
||||
if (ApplianceRecordList[index].CloseFront != null && ApplianceRecordList[index].CloseFront != "")//&& ApplianceRecordList[index].CloseFront != @"\"
|
||||
ZUtil.DrawText(ApplianceRecordList[index].CloseFront, (tablePackObj1.EndX - tablePackObj1.X) / 4 * 2 + tablePackObj1.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListCloseFront" + index, Color.Black, fontsize, false);
|
||||
if (ApplianceRecordList[index].CloseLast != null && ApplianceRecordList[index].CloseLast != "")//&& ApplianceRecordList[index].CloseLast != @"\"
|
||||
ZUtil.DrawText(ApplianceRecordList[index].CloseLast, (tablePackObj1.EndX - tablePackObj1.X) / 4 * 3 + tablePackObj1.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListCloseLast" + index, Color.Black, fontsize, false);
|
||||
|
||||
continue;
|
||||
}
|
||||
}
|
||||
for (int index = (int)tablePackObj.Rows - 1; index < tablePackObj.Rows * 2 - 2; index++)
|
||||
{
|
||||
if (ApplianceRecordList.Count > 0 && index < ApplianceRecordList.Count)
|
||||
{
|
||||
double y = tablePackObj.RealY + chaY + (chaY * (index + 1 - tablePackObj.Rows));
|
||||
ZUtil.DrawText(ApplianceRecordList[index].ApplianceName, (tablePackObj.EndX - tablePackObj.X) / 3 * 1 + tablePackObj.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordList" + index, Color.Black, fontsize, false);
|
||||
|
||||
if (ApplianceRecordList[index].OpeFront != null && ApplianceRecordList[index].OpeFront != "")//&& ApplianceRecordList[index].OpeFront != @"\"
|
||||
ZUtil.DrawText(ApplianceRecordList[index].OpeFront, tablePackObj2.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListOpeFront" + index, Color.Black, fontsize, false);
|
||||
if (ApplianceRecordList[index].OpeDoing != null && ApplianceRecordList[index].OpeDoing != "")//&& ApplianceRecordList[index].OpeDoing != @"\"
|
||||
ZUtil.DrawText(ApplianceRecordList[index].OpeDoing, (tablePackObj2.EndX - tablePackObj2.X) / 4 * 1 + tablePackObj2.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListOpeDoing" + index, Color.Black, fontsize, false);
|
||||
if (ApplianceRecordList[index].CloseFront != null && ApplianceRecordList[index].CloseFront != "")//&& ApplianceRecordList[index].CloseFront != @"\"
|
||||
ZUtil.DrawText(ApplianceRecordList[index].CloseFront, (tablePackObj2.EndX - tablePackObj2.X) / 4 * 2 + tablePackObj2.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListCloseFront" + index, Color.Black, fontsize, false);
|
||||
if (ApplianceRecordList[index].CloseLast != null && ApplianceRecordList[index].CloseLast != "")// && ApplianceRecordList[index].CloseLast != @"\"
|
||||
ZUtil.DrawText(ApplianceRecordList[index].CloseLast, (tablePackObj2.EndX - tablePackObj2.X) / 4 * 3 + tablePackObj2.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListCloseLast" + index, Color.Black, fontsize, false);
|
||||
|
||||
continue;
|
||||
}
|
||||
}
|
||||
for (int index = (int)tablePackObj.Rows * 2 - 2; index < tablePackObj.Rows * 3 - 3; index++)
|
||||
{
|
||||
if (ApplianceRecordList.Count > 0 && index < ApplianceRecordList.Count)
|
||||
{
|
||||
double y = tablePackObj.RealY + chaY + (chaY * (index + 2 - tablePackObj.Rows * 2));
|
||||
ZUtil.DrawText(ApplianceRecordList[index].ApplianceName, (tablePackObj.EndX - tablePackObj.X) / 3 * 2 + tablePackObj.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordList" + index, Color.Black, fontsize, false);
|
||||
|
||||
if (ApplianceRecordList[index].OpeFront != null && ApplianceRecordList[index].OpeFront != "")//&& ApplianceRecordList[index].OpeFront != @"\"
|
||||
ZUtil.DrawText(ApplianceRecordList[index].OpeFront, tablePackObj3.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListOpeFront" + index, Color.Black, fontsize, false);
|
||||
if (ApplianceRecordList[index].OpeDoing != null && ApplianceRecordList[index].OpeDoing != "")//&& ApplianceRecordList[index].OpeDoing != @"\"
|
||||
ZUtil.DrawText(ApplianceRecordList[index].OpeDoing, (tablePackObj3.EndX - tablePackObj3.X) / 4 * 1 + tablePackObj3.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListOpeDoing" + index, Color.Black, fontsize, false);
|
||||
if (ApplianceRecordList[index].CloseFront != null && ApplianceRecordList[index].CloseFront != "")//&& ApplianceRecordList[index].CloseFront != @"\"
|
||||
ZUtil.DrawText(ApplianceRecordList[index].CloseFront, (tablePackObj3.EndX - tablePackObj3.X) / 4 * 2 + tablePackObj3.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListCloseFront" + index, Color.Black, fontsize, false);
|
||||
if (ApplianceRecordList[index].CloseLast != null && ApplianceRecordList[index].CloseLast != "")// && ApplianceRecordList[index].CloseLast != @"\"
|
||||
ZUtil.DrawText(ApplianceRecordList[index].CloseLast, (tablePackObj3.EndX - tablePackObj3.X) / 4 * 3 + tablePackObj3.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListCloseLast" + index, Color.Black, fontsize, false);
|
||||
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void editAr_Click(object sender, EventArgs e)
|
||||
{
|
||||
//传过来的数据是不是可编辑的
|
||||
AbleEditPackObj editPack = sender as AbleEditPackObj;
|
||||
if (editPack == null) return;
|
||||
//找到这个组件
|
||||
AbleEditPackObj aEdit1 = PackManage.ListPob.FirstOrDefault<PackObjBase>(s => s is AbleEditPackObj && s.PackTag == editPack.PackTag) as AbleEditPackObj;
|
||||
if (aEdit1 == null) return;
|
||||
|
||||
txt_DoubleClick(aEdit1.CControl, null);
|
||||
}
|
||||
|
||||
public override void Bind()
|
||||
{
|
||||
base.Bind();
|
||||
init();
|
||||
List<PackObjBase> ables = PackManage.ListPob.Where<PackObjBase>(s => s is AbleEditPackObj).ToList<PackObjBase>();
|
||||
foreach (PackObjBase pack in ables)
|
||||
{
|
||||
AbleEditPackObj ableEdit = pack as AbleEditPackObj;
|
||||
|
||||
if (ableEdit != null)
|
||||
{
|
||||
ableEdit.IsVisible = true;
|
||||
if (ableEdit.ControlType == EControlType.DateTimePicker)
|
||||
{
|
||||
ableEdit.CControl.Leave -= new EventHandler(txt_Leave);
|
||||
ableEdit.CControl.Leave += new EventHandler(txt_Leave);
|
||||
}
|
||||
else if (ableEdit.ControlType == EControlType.Directory)
|
||||
{
|
||||
ableEdit.CControl.DoubleClick -= new EventHandler(txt_DoubleClick);
|
||||
ableEdit.CControl.DoubleClick += new EventHandler(txt_DoubleClick);
|
||||
ableEdit.CControl.TextChanged -= new EventHandler(txt_Leave);
|
||||
ableEdit.CControl.TextChanged += new EventHandler(txt_Leave);
|
||||
}
|
||||
else if (ableEdit.ControlType == EControlType.CheckBox)
|
||||
{
|
||||
Panel pan = ableEdit.CControl as Panel;
|
||||
if (pan != null)
|
||||
{
|
||||
foreach (Control conl in pan.Controls)
|
||||
{
|
||||
CheckBox chBox = conl as CheckBox;
|
||||
if (chBox != null)
|
||||
{
|
||||
chBox.CheckedChanged -= new EventHandler(txt_Leave);
|
||||
chBox.CheckedChanged += new EventHandler(txt_Leave);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (ableEdit.ControlType == EControlType.RadioButtonList)
|
||||
{
|
||||
Panel pan = ableEdit.CControl as Panel;
|
||||
if (pan != null)
|
||||
{
|
||||
foreach (Control conl in pan.Controls)
|
||||
{
|
||||
RadioButton chBox = conl as RadioButton;
|
||||
if (chBox != null)
|
||||
{
|
||||
chBox.CheckedChanged -= new EventHandler(txt_Leave);
|
||||
chBox.CheckedChanged += new EventHandler(txt_Leave);
|
||||
chBox.Click -= new EventHandler(radio_click);
|
||||
chBox.Click += new EventHandler(radio_click);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ableEdit.ControlType == EControlType.TextBox)
|
||||
{
|
||||
ableEdit.CControl.KeyDown -= new KeyEventHandler(text_keyDown);
|
||||
ableEdit.CControl.KeyDown += new KeyEventHandler(text_keyDown);
|
||||
ableEdit.CControl.GotFocus -= new EventHandler(txt_Focus);
|
||||
ableEdit.CControl.GotFocus += new EventHandler(txt_Focus);
|
||||
}
|
||||
ableEdit.CControl.Leave -= new EventHandler(txt_Leave);
|
||||
ableEdit.CControl.Leave += new EventHandler(txt_Leave);
|
||||
}
|
||||
SetAbleEditView(ableEdit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void txt_Focus(object sender, EventArgs e)
|
||||
{
|
||||
TextBox control = (TextBox)sender;
|
||||
if (control == null) return;
|
||||
AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj;
|
||||
if (ableEdit == null) return;
|
||||
if (control.Focused == true && (ableEdit.PackValue == ableEdit.DefaultValue || ableEdit.PackValue == ""))
|
||||
control.Clear();
|
||||
}
|
||||
private void text_keyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.Modifiers.CompareTo(Keys.Control) == 0 && e.KeyCode == Keys.V)
|
||||
{
|
||||
string val = Clipboard.GetText();
|
||||
val = val.Replace("\r", "").Replace("\n", "");
|
||||
Clipboard.SetText(val);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 在画完表单后,显示多选单选的默认项
|
||||
/// </summary>
|
||||
public override void FollowUpMethod()
|
||||
{
|
||||
base.FollowUpMethod();
|
||||
//在这里画积分
|
||||
BindTempData();
|
||||
List<PackObjBase> ables = PackManage.ListPob.Where<PackObjBase>(s => s is AbleEditPackObj).ToList<PackObjBase>();
|
||||
foreach (PackObjBase pack in ables)
|
||||
{
|
||||
AbleEditPackObj ableEdit = pack as AbleEditPackObj;
|
||||
SetAbleEditView(ableEdit);
|
||||
}
|
||||
}
|
||||
|
||||
public override void BindTempData()
|
||||
{
|
||||
if (myOpeRecord != null && myOpeRecord.Id != null)
|
||||
{
|
||||
if (myOpeRecord.InstrumentList != null && tablePackObj != null)
|
||||
{
|
||||
SetApplianceMethod(myOpeRecord.InstrumentList.ApplianceRecordList);
|
||||
}
|
||||
}
|
||||
List<PackObjBase> ables = PackManage.ListPob.Where<PackObjBase>(s => s is AbleEditPackObj).ToList<PackObjBase>();
|
||||
foreach (PackObjBase pack in ables)
|
||||
{
|
||||
pack.Draw();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 公共验证方法
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool Verification()
|
||||
{
|
||||
List<PackObjBase> editPack = PackManage.ListPob.Where<PackObjBase>(s => s is AbleEditPackObj).ToList<PackObjBase>();
|
||||
foreach (PackObjBase pack in editPack)
|
||||
{
|
||||
AbleEditPackObj ablePack = pack as AbleEditPackObj;
|
||||
if (ablePack != null)
|
||||
{
|
||||
if (ablePack.ValidType == EValidType.IsRequired)
|
||||
{
|
||||
if (ablePack.PackValue.Trim() == "")
|
||||
{
|
||||
MessageBox.Show(pack.Descript + "不能为空");
|
||||
return false;
|
||||
}
|
||||
};
|
||||
if (ablePack.PackValue != "" && ablePack.ValidType == EValidType.IsNumber)
|
||||
{
|
||||
try
|
||||
{
|
||||
int.Parse(ablePack.PackValue);
|
||||
}
|
||||
catch (Exception exp)
|
||||
{
|
||||
MessageBox.Show(pack.Descript + "不能为空且必须是数值型");
|
||||
return false;
|
||||
}
|
||||
};
|
||||
if (ablePack.TextLength != 0)
|
||||
{
|
||||
if (ablePack.PackValue.Length >= ablePack.TextLength)
|
||||
{
|
||||
MessageBox.Show(ablePack.Descript + "长度不能超过" + ablePack.TextLength + "字");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
#endregion 重写的事件结束
|
||||
|
||||
/// <summary>
|
||||
/// 设置可编辑组件的显示样式
|
||||
/// </summary>
|
||||
/// <param name="ableEdit"></param>
|
||||
private void SetAbleEditView(AbleEditPackObj ableEdit)
|
||||
{
|
||||
string span = "";
|
||||
double spanSum = Math.Round((float)(ableEdit.OneUnitCount / 18));
|
||||
for (int i = 0; i < spanSum; i++)
|
||||
{
|
||||
if (ableEdit.IsHorizontal == ELineType.Horizontal)
|
||||
{
|
||||
span += " ";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
span += "\n";
|
||||
}
|
||||
}
|
||||
string text = "", value = "";
|
||||
if (ableEdit != null && ableEdit.CControl != null)
|
||||
{
|
||||
switch (ableEdit.ControlType)
|
||||
{
|
||||
case EControlType.RadioButtonList:
|
||||
foreach (Control conl in ableEdit.CControl.Controls)
|
||||
{
|
||||
string spanT = span.Clone().ToString();
|
||||
if (ableEdit.DfArrangement == EIsBool.True)
|
||||
{
|
||||
if (spanT.Length - conl.Text.Length >= conl.Text.Length)
|
||||
{
|
||||
spanT = spanT.Remove(spanT.Length - conl.Text.Length, conl.Text.Length);
|
||||
}
|
||||
}
|
||||
RadioButton radio = conl as RadioButton;
|
||||
if (radio.Checked)
|
||||
{
|
||||
text += "☑" + conl.Text + spanT;
|
||||
value = conl.Text;
|
||||
}
|
||||
else
|
||||
{
|
||||
text += "□" + conl.Text + spanT;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case EControlType.CheckBox:
|
||||
foreach (Control conl in ableEdit.CControl.Controls)
|
||||
{
|
||||
string spanT = span.Clone().ToString();
|
||||
if (ableEdit.DfArrangement == EIsBool.True)
|
||||
{
|
||||
if (spanT.Length - conl.Text.Length >= conl.Text.Length)
|
||||
{
|
||||
spanT = spanT.Remove(spanT.Length - conl.Text.Length, conl.Text.Length);
|
||||
}
|
||||
}
|
||||
CheckBox radio = conl as CheckBox;
|
||||
if (radio.Checked)
|
||||
{
|
||||
text += "☑" + conl.Text + spanT;
|
||||
value += conl.Text + ",";
|
||||
}
|
||||
else
|
||||
{
|
||||
text += "□" + conl.Text + spanT;
|
||||
}
|
||||
}
|
||||
value = value.TrimEnd(',');
|
||||
break;
|
||||
case EControlType.Directory:
|
||||
if (ableEdit.ControlTitleText.Contains("模板"))
|
||||
{
|
||||
text = ableEdit.CControl.Text;
|
||||
value = ableEdit.CControl.Text;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = ableEdit.PackValue;
|
||||
string typeName = ableEdit.ControlTitleText;
|
||||
//如果是“人员,2”这种需要把人员取出来
|
||||
if (ableEdit.ControlTitleText.Contains(",") || ableEdit.ControlTitleText.Contains(","))
|
||||
{
|
||||
string[] strs = ableEdit.ControlTitleText.Replace(",", ",").Split(',');
|
||||
typeName = strs[0];
|
||||
}
|
||||
text = DocumentEntityMethod.GetDictionaryValuesById(ableEdit.PackValue, typeName);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
text = ableEdit.CControl.Text;
|
||||
value = ableEdit.CControl.Text;
|
||||
break;
|
||||
}
|
||||
|
||||
//设置属性的值
|
||||
template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value);
|
||||
//如果有逻辑区域,则区域进行更新。
|
||||
//template.NotificationAreaBindingUpdate(template.ProjectName + "逻辑");
|
||||
}
|
||||
}
|
||||
|
||||
private void txt_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
Control control = (Control)sender;
|
||||
if (control == null) return;
|
||||
AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj;
|
||||
if (ableEdit == null) return;
|
||||
string DataSourceName = ableEdit.ClassDataSourceName;
|
||||
try
|
||||
{
|
||||
string text = "", value = "";
|
||||
switch (ableEdit.ControlType)
|
||||
{
|
||||
case EControlType.DateTimePicker:
|
||||
text = DateTime.Now.ToString();
|
||||
value = DateTime.Now.ToString();
|
||||
control.Text = text;
|
||||
break;
|
||||
default:
|
||||
text = ableEdit.CControl.Text;
|
||||
value = ableEdit.CControl.Text;
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
finally
|
||||
{
|
||||
template.ZedControl.Refresh();
|
||||
}
|
||||
}
|
||||
|
||||
private void radio_click(object sender, EventArgs e)
|
||||
{
|
||||
RadioButton control = (RadioButton)sender;
|
||||
if (control == null) return;
|
||||
|
||||
if (!valChang)
|
||||
{
|
||||
control.Checked = false;
|
||||
}
|
||||
|
||||
valChang = false;
|
||||
|
||||
}
|
||||
|
||||
private void txt_Leave(object sender, EventArgs e)
|
||||
{
|
||||
Control control = (Control)sender;
|
||||
if (control == null) return;
|
||||
AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj;
|
||||
if (ableEdit == null) return;
|
||||
//拿到数据源(格式:OperationRecord.PatientRef.Bed)
|
||||
bool updateOk = true;
|
||||
try
|
||||
{
|
||||
SetAbleEditView(ableEdit);
|
||||
if (ableEdit.ControlType == EControlType.RadioButtonList)
|
||||
{
|
||||
RadioButton rb = (RadioButton)sender;
|
||||
|
||||
if (control == null) return;
|
||||
AbleEditPackObj ableEdit1 = control.Tag as AbleEditPackObj;
|
||||
AbleEditPackObj selectAbleEdit = null;
|
||||
|
||||
//值变了
|
||||
valChang = true;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
//写日志
|
||||
updateOk = false;
|
||||
}
|
||||
}
|
||||
|
||||
//设置打印模式,组件不显示
|
||||
public override void setPrint(bool isVisible)
|
||||
{
|
||||
//预览状态时所可编辑组件的组件隐藏
|
||||
List<PackObjBase> ables = PackManage.ListPob.Where<PackObjBase>(s => s is AbleEditPackObj).ToList<PackObjBase>();
|
||||
foreach (PackObjBase pack1 in ables)
|
||||
{
|
||||
AbleEditPackObj ableEdit = pack1 as AbleEditPackObj;
|
||||
|
||||
if (ableEdit != null)
|
||||
{
|
||||
ableEdit.IsVisible = isVisible;
|
||||
if (isVisible == true)
|
||||
ableEdit.IsViewBoard = EIsBool.True;
|
||||
else
|
||||
ableEdit.IsViewBoard = EIsBool.False;
|
||||
}
|
||||
}
|
||||
}
|
||||
public void DelAddObj(string tagName)
|
||||
{
|
||||
TextObj text = (TextObj)ZedControl.MasterPane.GraphObjList[tagName];
|
||||
if (text != null)
|
||||
ZedControl.MasterPane.GraphObjList.Remove(text);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -130,7 +130,8 @@ namespace DrawGraph
|
||||
private List<AnaseDataQualityRecord> anaseDataQualityRecordList;
|
||||
private OperationRecordInfo opeRecordInfo;
|
||||
private OperationRecoverInInfo opeRecoverInInfo;
|
||||
private OperationRecoverOutInfo opeRecoverOutInfo;
|
||||
private OperationRecoverOutInfo opeRecoverOutInfo;
|
||||
private OperationRecordInstrumentList instrumentList;
|
||||
|
||||
public List<string> EventListstr = new List<string>();
|
||||
public List<string> DrugsListstr = new List<string>();
|
||||
@ -1140,6 +1141,18 @@ namespace DrawGraph
|
||||
opeRecoverOutInfo = value;
|
||||
}
|
||||
}
|
||||
[ClassAttributs(Description = "器械清点单类")]
|
||||
public OperationRecordInstrumentList InstrumentList
|
||||
{
|
||||
get
|
||||
{
|
||||
return instrumentList;
|
||||
}
|
||||
set
|
||||
{
|
||||
instrumentList = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 选择的药品名称和显示行索引表示的Hashtable
|
||||
/// </summary>
|
||||
@ -1183,8 +1196,9 @@ namespace DrawGraph
|
||||
AnaseDataQualityRecordList = new List<AnaseDataQualityRecord>();
|
||||
addPhysioList = new List<PhysioDataConfig>();
|
||||
OpeRecordInfo = new OperationRecordInfo();
|
||||
opeRecoverInInfo = new OperationRecoverInInfo();
|
||||
opeRecoverOutInfo = new OperationRecoverOutInfo();
|
||||
OpeRecoverInInfo = new OperationRecoverInInfo();
|
||||
OpeRecoverOutInfo = new OperationRecoverOutInfo();
|
||||
InstrumentList = new OperationRecordInstrumentList();
|
||||
FactBloodGasAnalysisList = new List<FactBloodGasAnalysis>();
|
||||
}
|
||||
|
||||
|
||||
@ -1,9 +1,8 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using AIMSDAL;
|
||||
|
||||
namespace AIMSModel
|
||||
namespace DrawGraph
|
||||
{
|
||||
[Serializable]
|
||||
public partial class OperationRecordInstrumentList
|
||||
@ -18,76 +17,83 @@ namespace AIMSModel
|
||||
private string operatorName;
|
||||
private DateTime? operateDate;
|
||||
|
||||
public List<ApplianceRecord> ApplianceRecordList;
|
||||
public List<ApplianceRecord> ApplianceRecordList;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[NoCreatControlAttributs]
|
||||
public int? Id
|
||||
{
|
||||
get{ return id; }
|
||||
set{ id=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int? OperationRecordId
|
||||
}
|
||||
[NoCreatControlAttributs]
|
||||
public int? OperationRecordId
|
||||
{
|
||||
get{ return operationRecordId; }
|
||||
set{ operationRecordId=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// <summary>
|
||||
/// 器械包Id
|
||||
/// </summary>
|
||||
public string ApplianceUseType
|
||||
[NoCreatControlAttributs]
|
||||
public string ApplianceUseType
|
||||
{
|
||||
get{ return applianceUseType; }
|
||||
set{ applianceUseType=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// <summary>
|
||||
/// 人体标记图
|
||||
/// </summary>
|
||||
[NoCreatControlAttributs]
|
||||
public string TagPicture
|
||||
{
|
||||
get{ return tagPicture; }
|
||||
set{ tagPicture=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
[ClassAttributs(Description = "人体标记图")]
|
||||
public string TagPicturePanel { get; set; }
|
||||
[ClassAttributs(Description = "灭菌包列表")]
|
||||
public string PackPanel { get; set; }
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[ClassAttributs(Description = "备注")]
|
||||
public string Remark
|
||||
{
|
||||
get{ return remark; }
|
||||
set{ remark=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// 格式化文本
|
||||
/// </summary>
|
||||
[NoCreatControlAttributs]
|
||||
public string JsonTextData
|
||||
{
|
||||
get{ return jsonTextData; }
|
||||
set{ jsonTextData=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// <summary>
|
||||
/// 操作工号3
|
||||
/// </summary>
|
||||
[NoCreatControlAttributs]
|
||||
public string OperatorNo
|
||||
{
|
||||
get{ return operatorNo; }
|
||||
set{ operatorNo=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// <summary>
|
||||
/// 操作人名称
|
||||
/// </summary>
|
||||
public string OperatorName
|
||||
[NoCreatControlAttributs]
|
||||
public string OperatorName
|
||||
{
|
||||
get{ return operatorName; }
|
||||
set{ operatorName=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// <summary>
|
||||
/// 操作时间
|
||||
/// </summary>
|
||||
public DateTime? OperateDate
|
||||
[NoCreatControlAttributs]
|
||||
public DateTime? OperateDate
|
||||
{
|
||||
get{ return operateDate; }
|
||||
set{ operateDate=value; }
|
||||
@ -172,7 +172,7 @@ namespace DrawGraph
|
||||
|
||||
}
|
||||
//出量备注
|
||||
SetRemarkInfo(myOpeRecord.FluidListstr, remarkRowscount, ref x, ref remarkRow, ref AllRemarkRow, fontsize, ref fontlength);
|
||||
//SetRemarkInfo(myOpeRecord.FluidListstr, remarkRowscount, ref x, ref remarkRow, ref AllRemarkRow, fontsize, ref fontlength);
|
||||
|
||||
//用药备注
|
||||
SetRemarkInfo(myOpeRecord.DrugsListstr, remarkRowscount, ref x, ref remarkRow, ref AllRemarkRow, fontsize, ref fontlength);
|
||||
|
||||
470
DrawGraph/AreaManage/TempDataManage.cs
Normal file
470
DrawGraph/AreaManage/TempDataManage.cs
Normal file
@ -0,0 +1,470 @@
|
||||
using AIMSExtension;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace DrawGraph
|
||||
{
|
||||
/// <summary>
|
||||
/// 麻醉前访视单
|
||||
/// </summary>
|
||||
public class TempDataManage : AreaManageBase
|
||||
{
|
||||
|
||||
private OperationRecord myOpeRecord = null;
|
||||
private bool valChang = false; //值不变
|
||||
|
||||
AbleEditPackObj ableEdit2;
|
||||
public TempDataManage() { }
|
||||
public TempDataManage(object _operationRecor, DrawGraph.ZedGraphControl _zedControl, TemplateManage _template, string _name) : base(_operationRecor, _zedControl, _template, _name)
|
||||
{ }
|
||||
|
||||
public void init()
|
||||
{
|
||||
//自己要用的手术对象
|
||||
myOpeRecord = OpeRecord as OperationRecord;
|
||||
ableEdit2 = template.GetPackObjectOTag<AbleEditPackObj>("TempDataManage_AbleEditPackObj_357_OperationRecord_InstrumentList_TagPicturePanel");
|
||||
}
|
||||
#region 重写的事件
|
||||
/// <summary>
|
||||
/// 鼠标点击画板
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
public override void MouseDown(ZedGraphControl sender, MouseEventArgs e)
|
||||
{
|
||||
}
|
||||
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)
|
||||
{
|
||||
}
|
||||
|
||||
public override void editAr_Click(object sender, EventArgs e)
|
||||
{
|
||||
//传过来的数据是不是可编辑的
|
||||
AbleEditPackObj editPack = sender as AbleEditPackObj;
|
||||
if (editPack == null) return;
|
||||
//找到这个组件
|
||||
AbleEditPackObj aEdit1 = PackManage.ListPob.FirstOrDefault<PackObjBase>(s => s is AbleEditPackObj && s.PackTag == editPack.PackTag) as AbleEditPackObj;
|
||||
if (aEdit1 == null) return;
|
||||
|
||||
txt_DoubleClick(aEdit1.CControl, null);
|
||||
}
|
||||
|
||||
public override void Bind()
|
||||
{
|
||||
base.Bind();
|
||||
init();
|
||||
if (ableEdit2 != null)
|
||||
{
|
||||
GraphObj gos = ZedControl.MasterPane.GraphObjList[TextPrefix.IM + "InstrumentListTagPicturePanel2"];
|
||||
if (gos == null)
|
||||
{
|
||||
ZUtil.DrawImage("bjtp", ableEdit2.RealEndX, ableEdit2.RealY, (ableEdit2.RealEndX - ableEdit2.RealX), (ableEdit2.RealEndY - ableEdit2.RealY) / 2, ZedControl, TextPrefix.IM + "InstrumentListTagPicturePanel2");
|
||||
}
|
||||
}
|
||||
List<PackObjBase> ables = PackManage.ListPob.Where<PackObjBase>(s => s is AbleEditPackObj).ToList<PackObjBase>();
|
||||
foreach (PackObjBase pack in ables)
|
||||
{
|
||||
AbleEditPackObj ableEdit = pack as AbleEditPackObj;
|
||||
|
||||
if (ableEdit != null)
|
||||
{
|
||||
ableEdit.IsVisible = true;
|
||||
if (ableEdit.ControlType == EControlType.DateTimePicker)
|
||||
{
|
||||
ableEdit.CControl.Leave -= new EventHandler(txt_Leave);
|
||||
ableEdit.CControl.Leave += new EventHandler(txt_Leave);
|
||||
}
|
||||
else if (ableEdit.ControlType == EControlType.Directory)
|
||||
{
|
||||
ableEdit.CControl.DoubleClick -= new EventHandler(txt_DoubleClick);
|
||||
ableEdit.CControl.DoubleClick += new EventHandler(txt_DoubleClick);
|
||||
ableEdit.CControl.TextChanged -= new EventHandler(txt_Leave);
|
||||
ableEdit.CControl.TextChanged += new EventHandler(txt_Leave);
|
||||
}
|
||||
else if (ableEdit.ControlType == EControlType.CheckBox)
|
||||
{
|
||||
Panel pan = ableEdit.CControl as Panel;
|
||||
if (pan != null)
|
||||
{
|
||||
foreach (Control conl in pan.Controls)
|
||||
{
|
||||
CheckBox chBox = conl as CheckBox;
|
||||
if (chBox != null)
|
||||
{
|
||||
chBox.CheckedChanged -= new EventHandler(txt_Leave);
|
||||
chBox.CheckedChanged += new EventHandler(txt_Leave);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (ableEdit.ControlType == EControlType.RadioButtonList)
|
||||
{
|
||||
Panel pan = ableEdit.CControl as Panel;
|
||||
if (pan != null)
|
||||
{
|
||||
foreach (Control conl in pan.Controls)
|
||||
{
|
||||
RadioButton chBox = conl as RadioButton;
|
||||
if (chBox != null)
|
||||
{
|
||||
chBox.CheckedChanged -= new EventHandler(txt_Leave);
|
||||
chBox.CheckedChanged += new EventHandler(txt_Leave);
|
||||
chBox.Click -= new EventHandler(radio_click);
|
||||
chBox.Click += new EventHandler(radio_click);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ableEdit.ControlType == EControlType.TextBox)
|
||||
{
|
||||
ableEdit.CControl.KeyDown -= new KeyEventHandler(text_keyDown);
|
||||
ableEdit.CControl.KeyDown += new KeyEventHandler(text_keyDown);
|
||||
ableEdit.CControl.GotFocus -= new EventHandler(txt_Focus);
|
||||
ableEdit.CControl.GotFocus += new EventHandler(txt_Focus);
|
||||
}
|
||||
ableEdit.CControl.Leave -= new EventHandler(txt_Leave);
|
||||
ableEdit.CControl.Leave += new EventHandler(txt_Leave);
|
||||
}
|
||||
SetAbleEditView(ableEdit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void txt_Focus(object sender, EventArgs e)
|
||||
{
|
||||
TextBox control = (TextBox)sender;
|
||||
if (control == null) return;
|
||||
AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj;
|
||||
if (ableEdit == null) return;
|
||||
if (control.Focused == true && (ableEdit.PackValue == ableEdit.DefaultValue || ableEdit.PackValue == ""))
|
||||
control.Clear();
|
||||
}
|
||||
private void text_keyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.Modifiers.CompareTo(Keys.Control) == 0 && e.KeyCode == Keys.V)
|
||||
{
|
||||
string val = Clipboard.GetText();
|
||||
val = val.Replace("\r", "").Replace("\n", "");
|
||||
Clipboard.SetText(val);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 在画完表单后,显示多选单选的默认项
|
||||
/// </summary>
|
||||
public override void FollowUpMethod()
|
||||
{
|
||||
base.FollowUpMethod();
|
||||
List<PackObjBase> ables = PackManage.ListPob.Where<PackObjBase>(s => s is AbleEditPackObj).ToList<PackObjBase>();
|
||||
foreach (PackObjBase pack in ables)
|
||||
{
|
||||
AbleEditPackObj ableEdit = pack as AbleEditPackObj;
|
||||
SetAbleEditView(ableEdit);
|
||||
}
|
||||
}
|
||||
|
||||
public override void BindTempData()
|
||||
{
|
||||
if (myOpeRecord != null && myOpeRecord.Id != null)
|
||||
{
|
||||
GraphObj gos = ZedControl.MasterPane.GraphObjList[TextPrefix.IM + "InstrumentListTagPicturePanel"];
|
||||
if (gos != null)
|
||||
{
|
||||
ZedControl.MasterPane.GraphObjList.Remove(gos);
|
||||
}
|
||||
if (myOpeRecord.InstrumentList != null && ableEdit2 != null && myOpeRecord.InstrumentList.TagPicture != null && myOpeRecord.InstrumentList.TagPicture != "")
|
||||
{
|
||||
MemoryStream ms = new MemoryStream(Convert.FromBase64String(myOpeRecord.InstrumentList.TagPicture));
|
||||
System.Drawing.Image image = System.Drawing.Image.FromStream(ms);
|
||||
ZUtil.DrawImage(image, ableEdit2.RealX, ableEdit2.RealY, (ableEdit2.RealEndX - ableEdit2.RealX), (ableEdit2.RealEndY - ableEdit2.RealY), ZedControl, TextPrefix.IM + "InstrumentListTagPicturePanel");
|
||||
}
|
||||
}
|
||||
List<PackObjBase> ables = PackManage.ListPob.Where<PackObjBase>(s => s is AbleEditPackObj).ToList<PackObjBase>();
|
||||
foreach (PackObjBase pack in ables)
|
||||
{
|
||||
pack.Draw();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 公共验证方法
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool Verification()
|
||||
{
|
||||
List<PackObjBase> editPack = PackManage.ListPob.Where<PackObjBase>(s => s is AbleEditPackObj).ToList<PackObjBase>();
|
||||
foreach (PackObjBase pack in editPack)
|
||||
{
|
||||
AbleEditPackObj ablePack = pack as AbleEditPackObj;
|
||||
if (ablePack != null)
|
||||
{
|
||||
if (ablePack.ValidType == EValidType.IsRequired)
|
||||
{
|
||||
if (ablePack.PackValue.Trim() == "")
|
||||
{
|
||||
MessageBox.Show(pack.Descript + "不能为空");
|
||||
return false;
|
||||
}
|
||||
};
|
||||
if (ablePack.PackValue != "" && ablePack.ValidType == EValidType.IsNumber)
|
||||
{
|
||||
try
|
||||
{
|
||||
int.Parse(ablePack.PackValue);
|
||||
}
|
||||
catch (Exception exp)
|
||||
{
|
||||
MessageBox.Show(pack.Descript + "不能为空且必须是数值型");
|
||||
return false;
|
||||
}
|
||||
};
|
||||
if (ablePack.TextLength != 0)
|
||||
{
|
||||
if (ablePack.PackValue.Length >= ablePack.TextLength)
|
||||
{
|
||||
MessageBox.Show(ablePack.Descript + "长度不能超过" + ablePack.TextLength + "字");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
#endregion 重写的事件结束
|
||||
|
||||
/// <summary>
|
||||
/// 设置可编辑组件的显示样式
|
||||
/// </summary>
|
||||
/// <param name="ableEdit"></param>
|
||||
private void SetAbleEditView(AbleEditPackObj ableEdit)
|
||||
{
|
||||
string span = "";
|
||||
double spanSum = Math.Round((float)(ableEdit.OneUnitCount / 18));
|
||||
for (int i = 0; i < spanSum; i++)
|
||||
{
|
||||
if (ableEdit.IsHorizontal == ELineType.Horizontal)
|
||||
{
|
||||
span += " ";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
span += "\n";
|
||||
}
|
||||
}
|
||||
string text = "", value = "";
|
||||
if (ableEdit != null && ableEdit.CControl != null)
|
||||
{
|
||||
switch (ableEdit.ControlType)
|
||||
{
|
||||
case EControlType.RadioButtonList:
|
||||
foreach (Control conl in ableEdit.CControl.Controls)
|
||||
{
|
||||
string spanT = span.Clone().ToString();
|
||||
if (ableEdit.DfArrangement == EIsBool.True)
|
||||
{
|
||||
if (spanT.Length - conl.Text.Length >= conl.Text.Length)
|
||||
{
|
||||
spanT = spanT.Remove(spanT.Length - conl.Text.Length, conl.Text.Length);
|
||||
}
|
||||
}
|
||||
RadioButton radio = conl as RadioButton;
|
||||
if (radio.Checked)
|
||||
{
|
||||
text += "☑" + conl.Text + spanT;
|
||||
value = conl.Text;
|
||||
}
|
||||
else
|
||||
{
|
||||
text += "□" + conl.Text + spanT;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case EControlType.CheckBox:
|
||||
foreach (Control conl in ableEdit.CControl.Controls)
|
||||
{
|
||||
string spanT = span.Clone().ToString();
|
||||
if (ableEdit.DfArrangement == EIsBool.True)
|
||||
{
|
||||
if (spanT.Length - conl.Text.Length >= conl.Text.Length)
|
||||
{
|
||||
spanT = spanT.Remove(spanT.Length - conl.Text.Length, conl.Text.Length);
|
||||
}
|
||||
}
|
||||
CheckBox radio = conl as CheckBox;
|
||||
if (radio.Checked)
|
||||
{
|
||||
text += "☑" + conl.Text + spanT;
|
||||
value += conl.Text + ",";
|
||||
}
|
||||
else
|
||||
{
|
||||
text += "□" + conl.Text + spanT;
|
||||
}
|
||||
}
|
||||
value = value.TrimEnd(',');
|
||||
break;
|
||||
case EControlType.Directory:
|
||||
if (ableEdit.ControlTitleText.Contains("模板"))
|
||||
{
|
||||
text = ableEdit.CControl.Text;
|
||||
value = ableEdit.CControl.Text;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = ableEdit.PackValue;
|
||||
string typeName = ableEdit.ControlTitleText;
|
||||
//如果是“人员,2”这种需要把人员取出来
|
||||
if (ableEdit.ControlTitleText.Contains(",") || ableEdit.ControlTitleText.Contains(","))
|
||||
{
|
||||
string[] strs = ableEdit.ControlTitleText.Replace(",", ",").Split(',');
|
||||
typeName = strs[0];
|
||||
}
|
||||
text = DocumentEntityMethod.GetDictionaryValuesById(ableEdit.PackValue, typeName);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
text = ableEdit.CControl.Text;
|
||||
value = ableEdit.CControl.Text;
|
||||
break;
|
||||
}
|
||||
|
||||
//设置属性的值
|
||||
template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value);
|
||||
//如果有逻辑区域,则区域进行更新。
|
||||
template.NotificationAreaBindingUpdate(template.ProjectName + "逻辑");
|
||||
}
|
||||
}
|
||||
|
||||
private void setDefaultDateTime(object sender)
|
||||
{
|
||||
Control control = (Control)sender;
|
||||
if (control == null) return;
|
||||
AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj;
|
||||
if (ableEdit == null) return;
|
||||
string DataSourceName = ableEdit.ClassDataSourceName;
|
||||
if (ableEdit.ControlTitleText != "")
|
||||
{
|
||||
((DateTimePicker)control).Format = DateTimePickerFormat.Custom;
|
||||
((DateTimePicker)control).CustomFormat = ableEdit.ControlTitleText;
|
||||
}
|
||||
if (ableEdit.PackText == "")
|
||||
{
|
||||
//control.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:00");//ToShortDateString
|
||||
}
|
||||
}
|
||||
|
||||
private void txt_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
Control control = (Control)sender;
|
||||
if (control == null) return;
|
||||
AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj;
|
||||
if (ableEdit == null) return;
|
||||
string DataSourceName = ableEdit.ClassDataSourceName;
|
||||
try
|
||||
{
|
||||
string text = "", value = "";
|
||||
switch (ableEdit.ControlType)
|
||||
{
|
||||
case EControlType.DateTimePicker:
|
||||
text = DateTime.Now.ToString();
|
||||
value = DateTime.Now.ToString();
|
||||
control.Text = text;
|
||||
break;
|
||||
default:
|
||||
text = ableEdit.CControl.Text;
|
||||
value = ableEdit.CControl.Text;
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
finally
|
||||
{
|
||||
template.ZedControl.Refresh();
|
||||
}
|
||||
}
|
||||
|
||||
private void radio_click(object sender, EventArgs e)
|
||||
{
|
||||
RadioButton control = (RadioButton)sender;
|
||||
if (control == null) return;
|
||||
|
||||
if (!valChang)
|
||||
{
|
||||
control.Checked = false;
|
||||
}
|
||||
|
||||
valChang = false;
|
||||
|
||||
}
|
||||
|
||||
private void txt_Leave(object sender, EventArgs e)
|
||||
{
|
||||
Control control = (Control)sender;
|
||||
if (control == null) return;
|
||||
AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj;
|
||||
if (ableEdit == null) return;
|
||||
//拿到数据源(格式:OperationRecord.PatientRef.Bed)
|
||||
bool updateOk = true;
|
||||
try
|
||||
{
|
||||
SetAbleEditView(ableEdit);
|
||||
if (ableEdit.ControlType == EControlType.RadioButtonList)
|
||||
{
|
||||
RadioButton rb = (RadioButton)sender;
|
||||
|
||||
if (control == null) return;
|
||||
AbleEditPackObj ableEdit1 = control.Tag as AbleEditPackObj;
|
||||
AbleEditPackObj selectAbleEdit = null;
|
||||
|
||||
//值变了
|
||||
valChang = true;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
//写日志
|
||||
updateOk = false;
|
||||
}
|
||||
finally
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
//设置打印模式,组件不显示
|
||||
public override void setPrint(bool isVisible)
|
||||
{
|
||||
//预览状态时所可编辑组件的组件隐藏
|
||||
List<PackObjBase> ables = PackManage.ListPob.Where<PackObjBase>(s => s is AbleEditPackObj).ToList<PackObjBase>();
|
||||
foreach (PackObjBase pack1 in ables)
|
||||
{
|
||||
AbleEditPackObj ableEdit = pack1 as AbleEditPackObj;
|
||||
|
||||
if (ableEdit != null)
|
||||
{
|
||||
ableEdit.IsVisible = isVisible;
|
||||
if (isVisible == true)
|
||||
ableEdit.IsViewBoard = EIsBool.True;
|
||||
else
|
||||
ableEdit.IsViewBoard = EIsBool.False;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -420,6 +420,13 @@ namespace DrawGraph
|
||||
area.KeyUp(sender, e);
|
||||
}
|
||||
}
|
||||
public void BindTempData()
|
||||
{
|
||||
foreach (AreaManageBase area in manageList)
|
||||
{
|
||||
area.BindTempData();
|
||||
}
|
||||
}
|
||||
#endregion 事件结束
|
||||
|
||||
/// <summary>
|
||||
@ -486,14 +493,8 @@ namespace DrawGraph
|
||||
AreaManageBase manageTemp = ManageList[i];
|
||||
if (manageTemp != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
pack = (T)manageTemp.GetPackObjectOTag(tagName);
|
||||
if (pack != null) break;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
pack = (T)manageTemp.GetPackObjectOTag(tagName);
|
||||
if (pack != null) break;
|
||||
}
|
||||
}
|
||||
return pack;
|
||||
|
||||
@ -57,6 +57,7 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="AreaManage\AdverseEvent.cs" />
|
||||
<Compile Include="AreaManage\AnaseDataQualityRecord.cs" />
|
||||
<Compile Include="AreaManage\ApplianceRecord.cs" />
|
||||
<Compile Include="AreaManage\BloodGasAnalysisDict.cs" />
|
||||
<Compile Include="AreaManage\DBManage.cs" />
|
||||
<Compile Include="AreaManage\DistinctFactOutputLiquids.cs" />
|
||||
@ -66,12 +67,12 @@
|
||||
<Compile Include="AreaManage\DeletePhysios.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="AreaManage\DeletePhysios.designer.cs">
|
||||
<DependentUpon>DeletePhysios.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="AreaManage\TempDataManage.cs" />
|
||||
<Compile Include="AreaManage\OperationRecordInfo.cs" />
|
||||
<Compile Include="AreaManage\OperationRecordInstrumentList.cs" />
|
||||
<Compile Include="AreaManage\OperationRecoverInInfo.cs" />
|
||||
<Compile Include="AreaManage\OperationRecoverOutInfo.cs" />
|
||||
<Compile Include="AreaManage\InstrumentDataManage.cs" />
|
||||
<Compile Include="AreaManage\PhysioDataService.cs" />
|
||||
<Compile Include="AreaManage\PhysioDataConfig.cs" />
|
||||
<Compile Include="AreaManage\AreaManageBase.cs" />
|
||||
@ -236,9 +237,6 @@
|
||||
<Compile Include="Graph\ZException.cs" />
|
||||
<Compile Include="Graph\ZoomState.cs" />
|
||||
<Compile Include="Graph\ZoomStateStack.cs" />
|
||||
<EmbeddedResource Include="AreaManage\DeletePhysios.resx">
|
||||
<DependentUpon>DeletePhysios.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
@ -323,5 +321,8 @@
|
||||
<EmbeddedResource Include="Resources\sy4.png" />
|
||||
<EmbeddedResource Include="Resources\sy5.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Resources\bjtp.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@ -246,6 +246,19 @@ namespace DrawGraph
|
||||
imgObj.Tag = tag;
|
||||
zedGraph.MasterPane.GraphObjList.Add(imgObj);
|
||||
}
|
||||
public static void DrawImage(Image imageResName, double left, double top, double width, double height, ZedGraphControl zedGraph, string tag)
|
||||
{
|
||||
ImageObj imgObj = new ImageObj(imageResName, left, top, width, height);
|
||||
imgObj.IsVisible = true;
|
||||
imgObj.ZOrder = ZOrder.A_InFront;
|
||||
imgObj.Location.CoordinateFrame = CoordType.PaneFraction;
|
||||
imgObj.Location.AlignH = AlignH.Left;
|
||||
imgObj.Location.AlignV = AlignV.Top;
|
||||
imgObj.IsVisible = true;
|
||||
imgObj.ZOrder = ZOrder.A_InFront;
|
||||
imgObj.Tag = tag;
|
||||
zedGraph.MasterPane.GraphObjList.Add(imgObj);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 绘制矩形
|
||||
@ -306,7 +319,8 @@ namespace DrawGraph
|
||||
}
|
||||
}
|
||||
return image;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
BIN
DrawGraph/Resources/bjtp.png
Normal file
BIN
DrawGraph/Resources/bjtp.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
@ -1574,19 +1574,19 @@ namespace DrawGraphManagement
|
||||
TreeNode selNode = treePropertyList.SelectedNode;
|
||||
if (rootNode != null && selNode != null)
|
||||
{
|
||||
//只有要根结点下的所有数据对象可以生成可编辑组件
|
||||
if (selNode.Parent == rootNode)
|
||||
{
|
||||
////只有要根结点下的所有数据对象可以生成可编辑组件
|
||||
//if (selNode.Parent == rootNode)
|
||||
//{
|
||||
toolStripMenuItem1.Enabled = true;
|
||||
生成可编辑区域ToolStripMenuItem.Enabled = true;
|
||||
生成可编辑区域不带前标签ToolStripMenuItem.Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
toolStripMenuItem1.Enabled = true;
|
||||
生成可编辑区域ToolStripMenuItem.Enabled = false;
|
||||
生成可编辑区域不带前标签ToolStripMenuItem.Enabled = false;
|
||||
}
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// toolStripMenuItem1.Enabled = true;
|
||||
// 生成可编辑区域ToolStripMenuItem.Enabled = false;
|
||||
// 生成可编辑区域不带前标签ToolStripMenuItem.Enabled = false;
|
||||
//}
|
||||
}
|
||||
|
||||
if (selNode != null && selNode.Nodes.Count > 0)
|
||||
|
||||
122
DrawGraphManagement/Main.Designer.cs
generated
122
DrawGraphManagement/Main.Designer.cs
generated
@ -37,8 +37,6 @@
|
||||
this.btnCreate = new System.Windows.Forms.Button();
|
||||
this.btnSave = new System.Windows.Forms.Button();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.txtHospitalName = new System.Windows.Forms.TextBox();
|
||||
this.panel4 = new System.Windows.Forms.Panel();
|
||||
this.button5 = new System.Windows.Forms.Button();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
@ -48,9 +46,15 @@
|
||||
this.BtnBind = new System.Windows.Forms.Button();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.button9 = new System.Windows.Forms.Button();
|
||||
this.button8 = new System.Windows.Forms.Button();
|
||||
this.button7 = new System.Windows.Forms.Button();
|
||||
this.button6 = new System.Windows.Forms.Button();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.txtProjectName = new System.Windows.Forms.TextBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.txtHospitalName = new System.Windows.Forms.TextBox();
|
||||
this.pnlManageList = new System.Windows.Forms.Panel();
|
||||
this.treeView1 = new System.Windows.Forms.TreeView();
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
@ -67,8 +71,6 @@
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.myPanel1 = new DrawGraphManagement.MyPanel();
|
||||
this.zedGraphMain = new DrawGraph.ZedGraphControl();
|
||||
this.button6 = new System.Windows.Forms.Button();
|
||||
this.button7 = new System.Windows.Forms.Button();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel4.SuspendLayout();
|
||||
this.pnlManageList.SuspendLayout();
|
||||
@ -129,7 +131,7 @@
|
||||
//
|
||||
// btnSave
|
||||
//
|
||||
this.btnSave.Location = new System.Drawing.Point(753, 7);
|
||||
this.btnSave.Location = new System.Drawing.Point(846, 7);
|
||||
this.btnSave.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnSave.TabIndex = 5;
|
||||
@ -154,22 +156,6 @@
|
||||
this.panel1.Size = new System.Drawing.Size(1356, 46);
|
||||
this.panel1.TabIndex = 6;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(28, 14);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(65, 12);
|
||||
this.label7.TabIndex = 10;
|
||||
this.label7.Text = "医院名称:";
|
||||
//
|
||||
// txtHospitalName
|
||||
//
|
||||
this.txtHospitalName.Location = new System.Drawing.Point(99, 10);
|
||||
this.txtHospitalName.Name = "txtHospitalName";
|
||||
this.txtHospitalName.Size = new System.Drawing.Size(213, 21);
|
||||
this.txtHospitalName.TabIndex = 11;
|
||||
//
|
||||
// panel4
|
||||
//
|
||||
this.panel4.Controls.Add(this.button5);
|
||||
@ -180,6 +166,8 @@
|
||||
this.panel4.Controls.Add(this.BtnBind);
|
||||
this.panel4.Controls.Add(this.label6);
|
||||
this.panel4.Controls.Add(this.textBox1);
|
||||
this.panel4.Controls.Add(this.button9);
|
||||
this.panel4.Controls.Add(this.button8);
|
||||
this.panel4.Controls.Add(this.button7);
|
||||
this.panel4.Controls.Add(this.button6);
|
||||
this.panel4.Controls.Add(this.button2);
|
||||
@ -215,7 +203,7 @@
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.Location = new System.Drawing.Point(958, 6);
|
||||
this.button3.Location = new System.Drawing.Point(1026, 4);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(112, 23);
|
||||
this.button3.TabIndex = 14;
|
||||
@ -226,7 +214,7 @@
|
||||
//
|
||||
// txtFontSize
|
||||
//
|
||||
this.txtFontSize.Location = new System.Drawing.Point(890, 7);
|
||||
this.txtFontSize.Location = new System.Drawing.Point(958, 5);
|
||||
this.txtFontSize.Name = "txtFontSize";
|
||||
this.txtFontSize.Size = new System.Drawing.Size(62, 21);
|
||||
this.txtFontSize.TabIndex = 13;
|
||||
@ -245,7 +233,7 @@
|
||||
//
|
||||
// BtnBind
|
||||
//
|
||||
this.BtnBind.Location = new System.Drawing.Point(670, 7);
|
||||
this.BtnBind.Location = new System.Drawing.Point(763, 8);
|
||||
this.BtnBind.Name = "BtnBind";
|
||||
this.BtnBind.Size = new System.Drawing.Size(75, 23);
|
||||
this.BtnBind.TabIndex = 11;
|
||||
@ -256,7 +244,7 @@
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(12, 12);
|
||||
this.label6.Location = new System.Drawing.Point(20, 13);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(53, 12);
|
||||
this.label6.TabIndex = 9;
|
||||
@ -264,14 +252,54 @@
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Location = new System.Drawing.Point(83, 8);
|
||||
this.textBox1.Location = new System.Drawing.Point(81, 9);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(213, 21);
|
||||
this.textBox1.Size = new System.Drawing.Size(87, 21);
|
||||
this.textBox1.TabIndex = 10;
|
||||
//
|
||||
// button9
|
||||
//
|
||||
this.button9.Location = new System.Drawing.Point(289, 8);
|
||||
this.button9.Name = "button9";
|
||||
this.button9.Size = new System.Drawing.Size(122, 23);
|
||||
this.button9.TabIndex = 6;
|
||||
this.button9.Text = "加载麻醉记录单背面";
|
||||
this.button9.UseVisualStyleBackColor = true;
|
||||
this.button9.Click += new System.EventHandler(this.button9_Click);
|
||||
//
|
||||
// button8
|
||||
//
|
||||
this.button8.Location = new System.Drawing.Point(633, 8);
|
||||
this.button8.Name = "button8";
|
||||
this.button8.Size = new System.Drawing.Size(122, 23);
|
||||
this.button8.TabIndex = 6;
|
||||
this.button8.Text = "加载器械清点单背面";
|
||||
this.button8.UseVisualStyleBackColor = true;
|
||||
this.button8.Click += new System.EventHandler(this.button8_Click);
|
||||
//
|
||||
// button7
|
||||
//
|
||||
this.button7.Location = new System.Drawing.Point(526, 8);
|
||||
this.button7.Name = "button7";
|
||||
this.button7.Size = new System.Drawing.Size(99, 23);
|
||||
this.button7.TabIndex = 6;
|
||||
this.button7.Text = "加载器械清点单";
|
||||
this.button7.UseVisualStyleBackColor = true;
|
||||
this.button7.Click += new System.EventHandler(this.button7_Click);
|
||||
//
|
||||
// button6
|
||||
//
|
||||
this.button6.Location = new System.Drawing.Point(419, 8);
|
||||
this.button6.Name = "button6";
|
||||
this.button6.Size = new System.Drawing.Size(99, 23);
|
||||
this.button6.TabIndex = 6;
|
||||
this.button6.Text = "加载恢复记录单";
|
||||
this.button6.UseVisualStyleBackColor = true;
|
||||
this.button6.Click += new System.EventHandler(this.button6_Click);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Location = new System.Drawing.Point(349, 7);
|
||||
this.button2.Location = new System.Drawing.Point(182, 8);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(99, 23);
|
||||
this.button2.TabIndex = 6;
|
||||
@ -297,6 +325,22 @@
|
||||
this.txtProjectName.TabIndex = 8;
|
||||
this.txtProjectName.Visible = false;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(28, 14);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(65, 12);
|
||||
this.label7.TabIndex = 10;
|
||||
this.label7.Text = "医院名称:";
|
||||
//
|
||||
// txtHospitalName
|
||||
//
|
||||
this.txtHospitalName.Location = new System.Drawing.Point(99, 10);
|
||||
this.txtHospitalName.Name = "txtHospitalName";
|
||||
this.txtHospitalName.Size = new System.Drawing.Size(213, 21);
|
||||
this.txtHospitalName.TabIndex = 11;
|
||||
//
|
||||
// pnlManageList
|
||||
//
|
||||
this.pnlManageList.Controls.Add(this.treeView1);
|
||||
@ -463,26 +507,6 @@
|
||||
this.zedGraphMain.KeyUp += new System.Windows.Forms.KeyEventHandler(this.zedGraphMain_KeyUp);
|
||||
this.zedGraphMain.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.zedGraphMain_MouseDoubleClick);
|
||||
//
|
||||
// button6
|
||||
//
|
||||
this.button6.Location = new System.Drawing.Point(456, 7);
|
||||
this.button6.Name = "button6";
|
||||
this.button6.Size = new System.Drawing.Size(99, 23);
|
||||
this.button6.TabIndex = 6;
|
||||
this.button6.Text = "加载恢复记录单";
|
||||
this.button6.UseVisualStyleBackColor = true;
|
||||
this.button6.Click += new System.EventHandler(this.button6_Click);
|
||||
//
|
||||
// button7
|
||||
//
|
||||
this.button7.Location = new System.Drawing.Point(563, 7);
|
||||
this.button7.Name = "button7";
|
||||
this.button7.Size = new System.Drawing.Size(99, 23);
|
||||
this.button7.TabIndex = 6;
|
||||
this.button7.Text = "加载器械清点单";
|
||||
this.button7.UseVisualStyleBackColor = true;
|
||||
this.button7.Click += new System.EventHandler(this.button7_Click);
|
||||
//
|
||||
// Main
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
@ -552,5 +576,7 @@
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Button button6;
|
||||
private System.Windows.Forms.Button button7;
|
||||
private System.Windows.Forms.Button button8;
|
||||
private System.Windows.Forms.Button button9;
|
||||
}
|
||||
}
|
||||
@ -533,13 +533,13 @@ namespace DrawGraphManagement
|
||||
try
|
||||
{
|
||||
|
||||
string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=19").ToString();
|
||||
string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=20").ToString();
|
||||
if (jsonStr != null && jsonStr != "")
|
||||
{
|
||||
templateManage = JsonConvert.DeserializeObject<TemplateManage>(jsonStr);
|
||||
templateManage.ZedControl = zedGraphMain;
|
||||
templateManage.OpeRecord = operationRecor;
|
||||
templateManage.Id = 19;
|
||||
templateManage.Id = 20;
|
||||
bool reVal = templateManage.Load();
|
||||
if (reVal)
|
||||
{
|
||||
@ -577,5 +577,114 @@ namespace DrawGraphManagement
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
private void button9_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (templateManage != null)
|
||||
{
|
||||
templateManage.ControlClear();
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=40").ToString();
|
||||
if (jsonStr != null && jsonStr != "")
|
||||
{
|
||||
templateManage = JsonConvert.DeserializeObject<TemplateManage>(jsonStr);
|
||||
templateManage.ZedControl = zedGraphMain;
|
||||
templateManage.OpeRecord = operationRecor;
|
||||
templateManage.Id = 40;
|
||||
bool reVal = templateManage.Load();
|
||||
if (reVal)
|
||||
{
|
||||
AllRefresh();
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show(templateManage.MsgStr);
|
||||
}
|
||||
AutoSizeF();
|
||||
|
||||
}
|
||||
|
||||
//设置排版值
|
||||
if (templateManage.Typesetting == TypesettingEnum.Vertical)
|
||||
{
|
||||
cmbTypesetting.Text = "竖向";
|
||||
}
|
||||
else
|
||||
{
|
||||
cmbTypesetting.Text = "横向";
|
||||
}
|
||||
//设置纸张类型
|
||||
if (templateManage.PageType == PageTypeEnum.A4)
|
||||
{
|
||||
cmbPageType.Text = "A4";
|
||||
}
|
||||
else
|
||||
{
|
||||
cmbPageType.Text = "A3";
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
private void button8_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (templateManage != null)
|
||||
{
|
||||
templateManage.ControlClear();
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=30").ToString();
|
||||
if (jsonStr != null && jsonStr != "")
|
||||
{
|
||||
templateManage = JsonConvert.DeserializeObject<TemplateManage>(jsonStr);
|
||||
templateManage.ZedControl = zedGraphMain;
|
||||
templateManage.OpeRecord = operationRecor;
|
||||
templateManage.Id = 30;
|
||||
bool reVal = templateManage.Load();
|
||||
if (reVal)
|
||||
{
|
||||
AllRefresh();
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show(templateManage.MsgStr);
|
||||
}
|
||||
AutoSizeF();
|
||||
|
||||
}
|
||||
|
||||
//设置排版值
|
||||
if (templateManage.Typesetting == TypesettingEnum.Vertical)
|
||||
{
|
||||
cmbTypesetting.Text = "竖向";
|
||||
}
|
||||
else
|
||||
{
|
||||
cmbTypesetting.Text = "横向";
|
||||
}
|
||||
//设置纸张类型
|
||||
if (templateManage.PageType == PageTypeEnum.A4)
|
||||
{
|
||||
cmbPageType.Text = "A4";
|
||||
}
|
||||
else
|
||||
{
|
||||
cmbPageType.Text = "A3";
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user