禁食水28 营养中等
评估时间默认入室加一小时 麻醉已转入的情况下 护士再转入判断 门诊床号- 金州登记表
This commit is contained in:
parent
7ff33d156b
commit
ca639ee117
@ -291,6 +291,12 @@
|
||||
<Compile Include="OperationAfter\frmOperationCharg2.designer.cs">
|
||||
<DependentUpon>frmOperationCharg2.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="OperationAfter\frmNotesRecordExport.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="OperationAfter\frmNotesRecordExport.designer.cs">
|
||||
<DependentUpon>frmNotesRecordExport.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="OperationAfter\frmReportExport.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@ -966,6 +972,9 @@
|
||||
<EmbeddedResource Include="OperationAfter\frmOperationCharg2.resx">
|
||||
<DependentUpon>frmOperationCharg2.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="OperationAfter\frmNotesRecordExport.resx">
|
||||
<DependentUpon>frmNotesRecordExport.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="OperationAfter\frmReportExport.resx">
|
||||
<DependentUpon>frmReportExport.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
@ -1261,19 +1270,18 @@
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<None Include="Template\手术排程模板.xlt">
|
||||
<None Include="Template\冰箱监测.xlt">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="Template\护士收费单.xlt">
|
||||
<None Include="Template\手术排程模板.xlt" />
|
||||
<None Include="Template\护士收费单.xlt" />
|
||||
<None Include="Template\排班按月.xlt" />
|
||||
<None Include="Template\职工出缺勤表.xlt" />
|
||||
<None Include="Template\麻醉收费单.xlt" />
|
||||
<None Include="Template\麻醉机及心电监护仪使用消毒记录.xlt">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="Template\排班按月.xlt">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="Template\职工出缺勤表.xlt">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="Template\麻醉收费单.xlt">
|
||||
<None Include="Template\麻醉贵重物品清点本.xlt">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
@ -166,6 +166,8 @@ namespace AIMS
|
||||
sideNavItem.Symbol = "\uf044";
|
||||
if (menuSec.Name == "内镜麻醉")
|
||||
sideNavItem.Symbol = "\uf044";
|
||||
if (menuSec.Name == "科室登记")
|
||||
sideNavItem.Symbol = "\uf044";
|
||||
if (menuSec.Name == "复苏记录")
|
||||
sideNavItem.Symbol = "\uf15c";
|
||||
if (menuSec.Name == "查询管理")
|
||||
|
||||
@ -2259,8 +2259,8 @@ namespace AIMS.OperationAanesthesia
|
||||
{
|
||||
if (_record.AnalgesiaRecord != null)
|
||||
{
|
||||
_record.AnalgesiaRecord.ProhibitedDrinkingTime = "4";
|
||||
_record.AnalgesiaRecord.ProhibitedEatingTime = "14";
|
||||
_record.AnalgesiaRecord.ProhibitedDrinkingTime = "2";
|
||||
_record.AnalgesiaRecord.ProhibitedEatingTime = "8";
|
||||
_record.AnalgesiaRecord.MouthOpeningDegree = "Ⅲ指";
|
||||
_record.AnalgesiaRecord.AirwayAssessment = "Ⅰ级";
|
||||
_record.AnalgesiaRecord.ASAClassification = "Ⅰ级";
|
||||
@ -2268,7 +2268,7 @@ namespace AIMS.OperationAanesthesia
|
||||
_record.AnalgesiaRecord.HeartFunction = "Ⅰ级";
|
||||
|
||||
_record.AnalgesiaRecord.Consciousness = "清醒";
|
||||
_record.AnalgesiaRecord.NutritionalDevelopment = "良";
|
||||
_record.AnalgesiaRecord.NutritionalDevelopment = "中";
|
||||
_record.AnalgesiaRecord.Pregnancy = "无";
|
||||
_record.AnalgesiaRecord.LooseDenture = "无";
|
||||
_record.AnalgesiaRecord.DifficultyOpeningMouth = "无";
|
||||
@ -2286,7 +2286,7 @@ namespace AIMS.OperationAanesthesia
|
||||
string Doctor = DBManage.GetDictionaryValuesById(_record.AnesthesiaDoctor, "人员");
|
||||
_record.AnalgesiaRecord.PostoperativeMonitoringDoctor = Doctor ;//评估者麻醉师
|
||||
_record.AnalgesiaRecord.Evaluator = Doctor ;//评估者麻醉师
|
||||
_record.AnalgesiaRecord.AssessmentTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm");
|
||||
_record.AnalgesiaRecord.AssessmentTime = DateTime.Now.AddHours(1).ToString("yyyy-MM-dd HH:mm");
|
||||
BOperationRecordAnalgesia.Update(_record.AnalgesiaRecord);
|
||||
ReviewEvent();
|
||||
}
|
||||
|
||||
@ -10,6 +10,7 @@ using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using AIMSBLL;
|
||||
using AIMSModel;
|
||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement.TaskbarClock;
|
||||
|
||||
namespace AIMS.OperationAanesthesia
|
||||
{
|
||||
@ -112,7 +113,7 @@ namespace AIMS.OperationAanesthesia
|
||||
{
|
||||
dgv2.Rows.Clear();
|
||||
DataTable dtt = SelectPatient.GetRecoverPatientOutDataTable
|
||||
(DateTime.Parse(dtpBeginTime.Value.ToString("yyyy-MM-dd 00:00:00").ToString()),DateTime.Parse(dtpEndTime.Value.ToString("yyyy-MM-dd 23:59:59").ToString()));
|
||||
(DateTime.Parse(dtpBeginTime.Value.ToString("yyyy-MM-dd 00:00:00").ToString()), DateTime.Parse(dtpEndTime.Value.ToString("yyyy-MM-dd 23:59:59").ToString()));
|
||||
foreach (DataRow dr in dtt.Rows)
|
||||
{
|
||||
dgv2.Rows.Add(dr["Id"].ToString(),
|
||||
@ -162,10 +163,16 @@ namespace AIMS.OperationAanesthesia
|
||||
Events EventsObj = BEvents.GetModelByName("入室");
|
||||
if (EventsObj.Name != null)
|
||||
{
|
||||
OperationRecord _record = null;
|
||||
DateTime Time = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd HH:mm:00"));
|
||||
BOperationRecord.SelectSingle(frmAnasRecord.PatientId , 1, ref _record);
|
||||
if (_record != null && _record.OutRoomTime != null)
|
||||
Time = DateTime.Parse(_record.OutRoomTime.Value.AddMinutes(1).ToString("yyyy-MM-dd HH:mm:00"));
|
||||
|
||||
FactEvents FactEventsObj = new FactEvents();
|
||||
FactEventsObj.EventId = EventsObj.Id;
|
||||
FactEventsObj.EventTypeId = 2;
|
||||
FactEventsObj.EventBeginTime = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd HH:mm:00"));
|
||||
FactEventsObj.EventBeginTime = Time;
|
||||
FactEventsObj.EventEndTime = FactEventsObj.EventBeginTime;
|
||||
FactEventsObj.IsContinue = 0;
|
||||
FactEventsObj.PatientId = frmAnasRecord.PatientId;
|
||||
|
||||
@ -274,6 +274,13 @@ namespace AIMS.OperationAanesthesia
|
||||
MessageBox.Show("当前手术已停止 ,请确认后重新选择!", "系统提示");
|
||||
return;
|
||||
}
|
||||
if (operA.State == 5 || operA.State == 6)
|
||||
{
|
||||
MessageBox.Show("当前手术已开始 ,请确认后重新选择!", "系统提示");
|
||||
FillDgv();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (uc.lblAnesDoctors.Text != "麻醉医生:" && uc.lblAnesDoctors.Text.Trim() != "麻醉医生")
|
||||
{
|
||||
|
||||
@ -284,12 +284,20 @@ namespace AIMS.OperationAanesthesia
|
||||
return;
|
||||
}
|
||||
|
||||
if (operA.State == 5 || operA.State == 6)
|
||||
{
|
||||
MessageBox.Show("当前手术已开始 ,请确认后重新选择!", "系统提示");
|
||||
FillDgv();
|
||||
return;
|
||||
}
|
||||
|
||||
if (uc.lblAnesDoctors.Text != "麻醉医生:" && uc.lblAnesDoctors.Text.Trim() != "麻醉医生")
|
||||
{
|
||||
MessageBox.Show("当前手术已安排麻醉师,请于麻醉师转入后操作", "系统提示");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
//DataTable dtOperationRecord = SelectPatient.GetTodayDoOpePatientDataTable(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()));
|
||||
//foreach (DataRow row in dtOperationRecord.Rows)
|
||||
//{
|
||||
|
||||
@ -255,8 +255,16 @@ namespace AIMS.OperationAanesthesia
|
||||
if (operA.State == 11)
|
||||
{
|
||||
MessageBox.Show("当前手术已停止 ,请确认后重新选择!", "系统提示");
|
||||
FillDgv();
|
||||
return;
|
||||
}
|
||||
if (operA.State == 5 || operA.State == 6)
|
||||
{
|
||||
MessageBox.Show("当前手术已开始 ,请确认后重新选择!", "系统提示");
|
||||
FillDgv();
|
||||
return;
|
||||
}
|
||||
|
||||
if (operA.OrderOperationTime.Value.Date != DateTime.Now.Date)// && operA.OrderOperationTime.Value.Hour < 20)
|
||||
{
|
||||
MessageBox.Show("该手术预约时间不是当前日期 ,请确认后重新选择!", "系统提示");
|
||||
|
||||
@ -263,6 +263,14 @@ namespace AIMS.OperationAanesthesia
|
||||
if (operA.State == 11)
|
||||
{
|
||||
MessageBox.Show("当前手术已停止 ,请确认后重新选择!", "系统提示");
|
||||
FillDgv();
|
||||
return;
|
||||
}
|
||||
|
||||
if (operA.State == 5 || operA.State == 6)
|
||||
{
|
||||
MessageBox.Show("当前手术已开始 ,请确认后重新选择!", "系统提示");
|
||||
FillDgv();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
243
AIMS/OperationAfter/frmNotesRecordExport.cs
Normal file
243
AIMS/OperationAfter/frmNotesRecordExport.cs
Normal file
@ -0,0 +1,243 @@
|
||||
using AIMS.OperationAanesthesia;
|
||||
using AIMS.OperationAfter.UI;
|
||||
using AIMSBLL;
|
||||
using AIMSExtension;
|
||||
using AIMSModel;
|
||||
using DocumentManagement;
|
||||
using DrawGraph;
|
||||
using Microsoft.Office.Interop.Excel;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace AIMS
|
||||
{
|
||||
public partial class frmNotesRecordExport : Form
|
||||
{
|
||||
public SysConfig exportConfig;
|
||||
public string DataGridViewPath = "";
|
||||
public DataGridView selectdgv;
|
||||
public frmNotesRecordExport()
|
||||
{
|
||||
InitializeComponent();
|
||||
dgvtReport.AutoGenerateColumns = false;
|
||||
dgvtReport2.AutoGenerateColumns = false;
|
||||
dgvtReport3.AutoGenerateColumns = false;
|
||||
}
|
||||
|
||||
private void frmOperationDruggCheck_Load(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
dtpOpeTime.Value = DateTime.Now;
|
||||
dtpEnd.Value = dtpOpeTime.Value;
|
||||
|
||||
dtpOpeTime2.Value = DateTime.Now;
|
||||
dtpEnd2.Value = dtpOpeTime.Value;
|
||||
|
||||
dtpOpeTime3.Value = DateTime.Now;
|
||||
dtpEnd3.Value = dtpOpeTime.Value;
|
||||
}
|
||||
catch (Exception exp)
|
||||
{
|
||||
PublicMethod.WriteLog(exp);
|
||||
}
|
||||
}
|
||||
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
string fileName = superTabControl1.SelectedTab.Text;
|
||||
GoldPrinter.ExcelAccess excel = new GoldPrinter.ExcelAccess();
|
||||
string strFileName = fileName + ".xlt"; //模板文件名
|
||||
string strExcelTemplateFile = System.Windows.Forms.Application.StartupPath;
|
||||
strExcelTemplateFile += @"\Template\" + strFileName;
|
||||
excel.Open(strExcelTemplateFile); //用模板文件
|
||||
|
||||
int rowNum = 6;
|
||||
if (selectdgv.Columns.Count == 8)
|
||||
{
|
||||
for (int i = 0; i < selectdgv.Rows.Count; i++)
|
||||
{
|
||||
DataGridViewRow dr = selectdgv.Rows[i];
|
||||
excel.GetRange(rowNum, "A", rowNum, "G").Value = new string[]{
|
||||
( dr.Cells[1].EditedFormattedValue.ToString()),
|
||||
( dr.Cells[2].EditedFormattedValue.ToString()),
|
||||
dr.Cells[3].EditedFormattedValue.ToString(),
|
||||
( dr.Cells[4].EditedFormattedValue.ToString() ) ,
|
||||
(dr.Cells[5].EditedFormattedValue.ToString() ),
|
||||
(dr.Cells[6].EditedFormattedValue.ToString() ),
|
||||
(dr.Cells[7].EditedFormattedValue.ToString() ) };
|
||||
rowNum++;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
rowNum = 7;
|
||||
for (int i = 0; i < selectdgv.Rows.Count; i++)
|
||||
{
|
||||
DataGridViewRow dr = selectdgv.Rows[i];
|
||||
excel.GetRange(rowNum, "A", rowNum, "H").Value = new string[]{
|
||||
( dr.Cells[1].EditedFormattedValue.ToString()),
|
||||
( dr.Cells[2].EditedFormattedValue.ToString()),
|
||||
dr.Cells[3].EditedFormattedValue.ToString(),
|
||||
( dr.Cells[4].EditedFormattedValue.ToString() ) ,
|
||||
(dr.Cells[5].EditedFormattedValue.ToString() ),
|
||||
(dr.Cells[6].EditedFormattedValue.ToString() ),
|
||||
(dr.Cells[7].EditedFormattedValue.ToString() ) ,
|
||||
(dr.Cells[8].EditedFormattedValue.ToString() ) };
|
||||
rowNum++;
|
||||
}
|
||||
|
||||
}
|
||||
excel.PrintPreview();
|
||||
excel.Close();
|
||||
this.Focus();
|
||||
}
|
||||
|
||||
private void LoadNoteData(string beginTime, string endTime, string notename)
|
||||
{
|
||||
System.Data.DataTable dataResult = BNotesRecords.GetMonthDayTable(beginTime, endTime);
|
||||
List<NotesRecord> nrecords = BNotesRecord.Select(" NoteName = '" + notename + "' and RecordTime>='" + beginTime + "' and RecordTime<'" + endTime + "' ", null);
|
||||
List<NotesRecord> records = new List<NotesRecord>();
|
||||
for (int i = 0; i < dataResult.Rows.Count; i++)
|
||||
{
|
||||
DateTime RecordTime = Convert.ToDateTime(dataResult.Rows[i][0]);
|
||||
NotesRecord record = new NotesRecord();
|
||||
record.RecordTime = RecordTime;
|
||||
foreach (var item in nrecords)
|
||||
{
|
||||
if (item.RecordTime == RecordTime)
|
||||
{
|
||||
record = item;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
records.Add(record);
|
||||
}
|
||||
selectdgv.DataSource = records;
|
||||
}
|
||||
|
||||
private void NewMethod(string notename)
|
||||
{
|
||||
for (int i = 0; i < selectdgv.Rows.Count; i++)
|
||||
{
|
||||
DataGridViewRow dr = selectdgv.Rows[i];
|
||||
NotesRecord record = new NotesRecord();
|
||||
record.NoteName = notename;
|
||||
record.RecordTime = Convert.ToDateTime(dr.Cells[1].EditedFormattedValue.ToString());
|
||||
record.Content1 = dr.Cells[2].EditedFormattedValue.ToString();
|
||||
record.Content2 = dr.Cells[3].EditedFormattedValue.ToString();
|
||||
record.Content3 = dr.Cells[4].EditedFormattedValue.ToString();
|
||||
record.Content4 = dr.Cells[5].EditedFormattedValue.ToString();
|
||||
record.Content5 = dr.Cells[6].EditedFormattedValue.ToString();
|
||||
record.ExecWork = dr.Cells[7].EditedFormattedValue.ToString();
|
||||
record.OperatorId = PublicMethod.OperatorId;
|
||||
record.OperatorTime = DateTime.Now;
|
||||
record.Remark = "";
|
||||
BNotesRecord.Delete(" NoteName = '" + notename + "' and RecordTime='" + record.RecordTime + "'", null);
|
||||
BNotesRecord.Insert(record);
|
||||
}
|
||||
MessageBox.Show("保存成功!");
|
||||
}
|
||||
private void btn冰箱监测_Click(object sender, EventArgs e)
|
||||
{
|
||||
selectdgv = dgvtReport2;
|
||||
string beginTime = Convert.ToDateTime(dtpOpeTime2.Value).ToString("yyyy-MM-dd 00:00:00");
|
||||
string endTime = Convert.ToDateTime(dtpEnd2.Value).AddDays(1).ToString("yyyy-MM-dd 00:00:00");
|
||||
|
||||
LoadNoteData(beginTime, endTime, "冰箱监测");
|
||||
}
|
||||
private void btn冰箱监测Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
NewMethod("冰箱监测");
|
||||
}
|
||||
private void dgvtReport2_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
DialogResult dialog = MessageBox.Show("是否批量填写数据?", "系统提示", MessageBoxButtons.YesNo);
|
||||
if (dialog == DialogResult.Yes)
|
||||
{
|
||||
string batchNo = dgvtReport2.Rows[e.RowIndex].Cells[e.ColumnIndex].EditedFormattedValue.ToString();
|
||||
for (int i = 0; i < dgvtReport2.Rows.Count; i++)
|
||||
{
|
||||
dgvtReport2.Rows[i].Cells[e.ColumnIndex].Value = batchNo;
|
||||
}
|
||||
}
|
||||
}
|
||||
private void dgvtReport2_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
|
||||
{
|
||||
//隔行换色
|
||||
this.dgvtReport2.RowsDefaultCellStyle.BackColor = System.Drawing.Color.White;//设置背景为白色
|
||||
this.dgvtReport2.AlternatingRowsDefaultCellStyle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(212)))), ((int)(((byte)(242)))), (((int)(((byte)242)))));//青色
|
||||
}
|
||||
|
||||
private void btn麻醉贵重物品清点本_Click(object sender, EventArgs e)
|
||||
{
|
||||
selectdgv = dgvtReport3;
|
||||
string beginTime = Convert.ToDateTime(dtpOpeTime3.Value).ToString("yyyy-MM-dd 00:00:00");
|
||||
string endTime = Convert.ToDateTime(dtpEnd3.Value).AddDays(1).ToString("yyyy-MM-dd 00:00:00");
|
||||
|
||||
LoadNoteData(beginTime, endTime, "麻醉贵重物品清点本");
|
||||
}
|
||||
|
||||
private void btn麻醉贵重物品清点本Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
NewMethod("麻醉贵重物品清点本");
|
||||
}
|
||||
private void dgvtReport3_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
DialogResult dialog = MessageBox.Show("是否批量填写数据?", "系统提示", MessageBoxButtons.YesNo);
|
||||
if (dialog == DialogResult.Yes)
|
||||
{
|
||||
string batchNo = dgvtReport3.Rows[e.RowIndex].Cells[e.ColumnIndex].EditedFormattedValue.ToString();
|
||||
for (int i = 0; i < dgvtReport3.Rows.Count; i++)
|
||||
{
|
||||
dgvtReport3.Rows[i].Cells[e.ColumnIndex].Value = batchNo;
|
||||
}
|
||||
}
|
||||
}
|
||||
private void dgvtReport3_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
|
||||
{
|
||||
//隔行换色
|
||||
this.dgvtReport3.RowsDefaultCellStyle.BackColor = System.Drawing.Color.White;//设置背景为白色
|
||||
this.dgvtReport3.AlternatingRowsDefaultCellStyle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(212)))), ((int)(((byte)(242)))), (((int)(((byte)242)))));//青色
|
||||
}
|
||||
|
||||
private void btn手术例数按月统计_Click(object sender, EventArgs e)
|
||||
{
|
||||
selectdgv = dgvtReport;
|
||||
string beginTime = Convert.ToDateTime(dtpOpeTime.Value).ToString("yyyy-MM-dd 00:00:00");
|
||||
string endTime = Convert.ToDateTime(dtpEnd.Value).AddDays(1).ToString("yyyy-MM-dd 00:00:00");
|
||||
|
||||
LoadNoteData(beginTime, endTime, "麻醉机及心电监护仪使用消毒记录");
|
||||
}
|
||||
|
||||
private void buttonX1_Click(object sender, EventArgs e)
|
||||
{
|
||||
NewMethod("麻醉机及心电监护仪使用消毒记录");
|
||||
}
|
||||
private void dgvtReport_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
DialogResult dialog = MessageBox.Show("是否批量填写数据?", "系统提示", MessageBoxButtons.YesNo);
|
||||
if (dialog == DialogResult.Yes)
|
||||
{
|
||||
string batchNo = dgvtReport.Rows[e.RowIndex].Cells[e.ColumnIndex].EditedFormattedValue.ToString();
|
||||
for (int i = 0; i < dgvtReport.Rows.Count; i++)
|
||||
{
|
||||
dgvtReport.Rows[i].Cells[e.ColumnIndex].Value = batchNo;
|
||||
}
|
||||
}
|
||||
}
|
||||
private void dgvtReport_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
|
||||
{
|
||||
//隔行换色
|
||||
this.dgvtReport.RowsDefaultCellStyle.BackColor = System.Drawing.Color.White;//设置背景为白色
|
||||
this.dgvtReport.AlternatingRowsDefaultCellStyle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(212)))), ((int)(((byte)(242)))), (((int)(((byte)242)))));//青色
|
||||
}
|
||||
}
|
||||
}
|
||||
1128
AIMS/OperationAfter/frmNotesRecordExport.designer.cs
generated
Normal file
1128
AIMS/OperationAfter/frmNotesRecordExport.designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
198
AIMS/OperationAfter/frmNotesRecordExport.resx
Normal file
198
AIMS/OperationAfter/frmNotesRecordExport.resx
Normal file
@ -0,0 +1,198 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn17.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn18.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn19.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn20.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn21.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn22.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn23.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn24.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn9.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn10.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn11.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn12.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn13.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn14.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn15.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Content6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn16.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="RecordTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Content1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Content2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Content3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Content4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Content5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="ExecWork.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
BIN
AIMS/Template/冰箱监测.xlt
Normal file
BIN
AIMS/Template/冰箱监测.xlt
Normal file
Binary file not shown.
BIN
AIMS/Template/麻醉机及心电监护仪使用消毒记录.xlt
Normal file
BIN
AIMS/Template/麻醉机及心电监护仪使用消毒记录.xlt
Normal file
Binary file not shown.
BIN
AIMS/Template/麻醉贵重物品清点本.xlt
Normal file
BIN
AIMS/Template/麻醉贵重物品清点本.xlt
Normal file
Binary file not shown.
@ -53,14 +53,19 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="BLL\AutoGenerate\BFeesRecord.cs" />
|
||||
<Compile Include="BLL\AutoGenerate\BFeesRecordReport.cs" />
|
||||
<Compile Include="BLL\AutoGenerate\BNotesRecord.cs" />
|
||||
<Compile Include="BLL\AutoGenerate\BOperationRecordAnalgesia.cs" />
|
||||
<Compile Include="BLL\Extension\BFeesRecord.cs" />
|
||||
<Compile Include="BLL\Extension\BFeesRecordReport.cs" />
|
||||
<Compile Include="BLL\Extension\BNotesRecord.cs" />
|
||||
<Compile Include="DAL\AutoGenerate\DFeesRecord.cs" />
|
||||
<Compile Include="DAL\AutoGenerate\DFeesRecordReport.cs" />
|
||||
<Compile Include="DAL\AutoGenerate\DNotesRecord.cs" />
|
||||
<Compile Include="DAL\AutoGenerate\DOperationRecordAnalgesia.cs" />
|
||||
<Compile Include="DAL\Extension\DFeesRecord.cs" />
|
||||
<Compile Include="DAL\Extension\DFeesRecordReport.cs" />
|
||||
<Compile Include="DAL\Extension\DNotesRecord.cs" />
|
||||
<Compile Include="Extensions\BNotesRecords.cs" />
|
||||
<Compile Include="Extensions\BOperationReport.cs" />
|
||||
<Compile Include="Model\AutoGenerate\FeesRecord.cs" />
|
||||
<Compile Include="BLL\AutoGenerate\BAdverseEvent.cs" />
|
||||
@ -340,6 +345,7 @@
|
||||
<Compile Include="DAL\Extension\DSysConfig.cs" />
|
||||
<Compile Include="DAL\Extension\DUserPurview.cs" />
|
||||
<Compile Include="Model\AutoGenerate\FeesRecordReport.cs" />
|
||||
<Compile Include="Model\AutoGenerate\NotesRecord.cs" />
|
||||
<Compile Include="Model\Extension\FeesRecord.cs" />
|
||||
<Compile Include="Model\AutoGenerate\AnaesthesiaEvents.cs" />
|
||||
<Compile Include="Model\AutoGenerate\AnaesthesiaMethod.cs" />
|
||||
@ -433,6 +439,7 @@
|
||||
<Compile Include="Model\Extension\KBLIST.cs" />
|
||||
<Compile Include="Model\Extension\MedicamentPrice.cs" />
|
||||
<Compile Include="Model\Extension\Menu.cs" />
|
||||
<Compile Include="Model\Extension\NotesRecord.cs" />
|
||||
<Compile Include="Model\Extension\Notice.cs" />
|
||||
<Compile Include="Model\Extension\NoticeTemplate.cs" />
|
||||
<Compile Include="Model\Extension\Operation.cs" />
|
||||
@ -506,6 +513,7 @@
|
||||
<Compile Include="ObjectQuery\KnowledgeBaseMap.cs" />
|
||||
<Compile Include="ObjectQuery\MedicamentPriceMap.cs" />
|
||||
<Compile Include="ObjectQuery\MenuMap.cs" />
|
||||
<Compile Include="ObjectQuery\NotesRecordMap.cs" />
|
||||
<Compile Include="ObjectQuery\NoticeContentMap.cs" />
|
||||
<Compile Include="ObjectQuery\NoticeMap.cs" />
|
||||
<Compile Include="ObjectQuery\NoticeTemplateMap.cs" />
|
||||
|
||||
160
AIMSEntity/BLL/AutoGenerate/BNotesRecord.cs
Normal file
160
AIMSEntity/BLL/AutoGenerate/BNotesRecord.cs
Normal file
@ -0,0 +1,160 @@
|
||||
using System;
|
||||
using AIMSDAL;
|
||||
using AIMSModel;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AIMSBLL
|
||||
{
|
||||
public partial class BNotesRecord
|
||||
{
|
||||
#region 插入实体操作部份
|
||||
/// <summary>
|
||||
/// 插入实体
|
||||
/// </summary>
|
||||
/// <param name="notesRecord">实体类对象</param>
|
||||
/// <returns>标识列值或影响的记录行数</returns>
|
||||
public static int Insert(NotesRecord notesRecord)
|
||||
{
|
||||
return DNotesRecord.Insert(notesRecord);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 删除实体操作
|
||||
/// <summary>
|
||||
/// 删除实体
|
||||
/// </summary>
|
||||
/// <param name="notesRecord">实体类对象</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int Delete(NotesRecord notesRecord)
|
||||
{
|
||||
return DNotesRecord.Delete(notesRecord);
|
||||
}
|
||||
/// <summary>
|
||||
/// 根据对象查询语句删除
|
||||
/// </summary>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int Delete(string oql, ParameterList parameters)
|
||||
{
|
||||
return DNotesRecord.Delete(oql,parameters);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 更新实体操作
|
||||
|
||||
/// <summary>
|
||||
/// 更新实体
|
||||
/// </summary>
|
||||
/// <param name="notesRecord">实体类对象</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int Update(NotesRecord notesRecord)
|
||||
{
|
||||
return DNotesRecord.Update(notesRecord);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据对象查询语句更新实体
|
||||
/// </summary>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
public static int Update(string oql, ParameterList parameters)
|
||||
{
|
||||
return DNotesRecord.Update(oql,parameters);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查询实体集合
|
||||
/// <summary>
|
||||
/// \查询实体集合
|
||||
/// </summary>
|
||||
/// <returns>实体类对象集合</returns>
|
||||
public static List<NotesRecord> Select()
|
||||
{
|
||||
return DNotesRecord.Select();
|
||||
}
|
||||
/// <summary>
|
||||
/// 递归查询实体集合
|
||||
/// </summary>
|
||||
/// <param name="recursiveType">递归类型</param>
|
||||
/// <param name="recursiveDepth">递归深度</param>
|
||||
/// <returns>实体类对象集合</returns>
|
||||
public static List<NotesRecord> Select(RecursiveType recursiveType, int recursiveDepth)
|
||||
{
|
||||
return DNotesRecord.Select(recursiveType, recursiveDepth);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据对象查询语句查询实体集合
|
||||
/// </summary>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>实体类对象集合</returns>
|
||||
public static List<NotesRecord> Select(string oql, ParameterList parameters)
|
||||
{
|
||||
return DNotesRecord.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<NotesRecord> Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth)
|
||||
{
|
||||
return DNotesRecord.Select(oql, parameters, recursiveType, recursiveDepth);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查询单个实体
|
||||
/// <summary>
|
||||
/// 更据对象查询语句查询单个实体
|
||||
/// </summary>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>实体对象</returns>
|
||||
public static NotesRecord SelectSingle(string oql, ParameterList parameters)
|
||||
{
|
||||
return DNotesRecord.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 NotesRecord SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
|
||||
{
|
||||
return DNotesRecord.SelectSingle(oql, parameters, recursiveType, recursiveDepth);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 按主键字段查询特定实体
|
||||
/// </summary>
|
||||
/// <param name="id">主键值</param>
|
||||
/// <returns>实体类对象</returns>
|
||||
public static NotesRecord SelectSingle(int? id)
|
||||
{
|
||||
return DNotesRecord.SelectSingle(id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更据主键递归查询单个实体
|
||||
/// </summary>
|
||||
/// <param name="recursiveType">递归类型</param>
|
||||
/// <param name="recursiveDepth">递归深度</param>
|
||||
/// <returns>实体对象</returns>
|
||||
public static NotesRecord SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth)
|
||||
{
|
||||
return DNotesRecord.SelectSingle(id, recursiveType, recursiveDepth);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
12
AIMSEntity/BLL/Extension/BNotesRecord.cs
Normal file
12
AIMSEntity/BLL/Extension/BNotesRecord.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using AIMSDAL;
|
||||
using AIMSModel;
|
||||
using AIMSObjectQuery;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
namespace AIMSBLL
|
||||
{
|
||||
public partial class BNotesRecord
|
||||
{
|
||||
}
|
||||
}
|
||||
@ -170,32 +170,42 @@ namespace AIMSBLL
|
||||
DataRow[] Eventdr = dt.Select("ItemKindName='事件'");
|
||||
foreach (DataRow dr in Eventdr)
|
||||
{
|
||||
bool istrue = false;
|
||||
int EventId = int.Parse(dr["ItemId"].ToString());
|
||||
if (BFactEvents.IsValid(EventId))
|
||||
foreach (var item in _record.FactEventsList)
|
||||
{
|
||||
FactEvents FactEventObj = new FactEvents();
|
||||
FactEventObj.PatientId = PatientId;
|
||||
FactEventObj.EventId = EventId;
|
||||
TimeSpan BeginTimets = DateTime.Parse(dr["BeginTime"].ToString()).Subtract(drugMinTime);
|
||||
TimeSpan EndTimets = DateTime.Parse(dr["EndTime"].ToString()).Subtract(drugMinTime);
|
||||
|
||||
FactEventObj.EventBeginTime = InRoomTime.AddSeconds(BeginTimets.TotalSeconds);
|
||||
FactEventObj.EventEndTime = InRoomTime.AddSeconds(EndTimets.TotalSeconds);
|
||||
if (dr["BeginTime"].ToString() == dr["EndTime"].ToString())
|
||||
if (item.EventId == EventId)
|
||||
{
|
||||
FactEventObj.IsContinue = 0;
|
||||
istrue = true;
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
FactEventObj.IsContinue = 1;
|
||||
}
|
||||
FactEventObj.EventTypeId = TypeId;
|
||||
|
||||
FactEventObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
|
||||
FactEventObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
|
||||
FactEventObj.OperateDate = NewInRoomTime;
|
||||
BFactEvents.Add(FactEventObj);
|
||||
}
|
||||
if (istrue == true) continue;
|
||||
//if (BFactEvents.IsValid(EventId))
|
||||
//{
|
||||
FactEvents FactEventObj = new FactEvents();
|
||||
FactEventObj.PatientId = PatientId;
|
||||
FactEventObj.EventId = EventId;
|
||||
TimeSpan BeginTimets = DateTime.Parse(dr["BeginTime"].ToString()).Subtract(drugMinTime);
|
||||
TimeSpan EndTimets = DateTime.Parse(dr["EndTime"].ToString()).Subtract(drugMinTime);
|
||||
|
||||
FactEventObj.EventBeginTime = InRoomTime.AddSeconds(BeginTimets.TotalSeconds);
|
||||
FactEventObj.EventEndTime = InRoomTime.AddSeconds(EndTimets.TotalSeconds);
|
||||
if (dr["BeginTime"].ToString() == dr["EndTime"].ToString())
|
||||
{
|
||||
FactEventObj.IsContinue = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
FactEventObj.IsContinue = 1;
|
||||
}
|
||||
FactEventObj.EventTypeId = TypeId;
|
||||
|
||||
FactEventObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
|
||||
FactEventObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
|
||||
FactEventObj.OperateDate = NewInRoomTime;
|
||||
BFactEvents.Add(FactEventObj);
|
||||
//}
|
||||
}
|
||||
|
||||
DataRow[] OutputLiquidsdr = dt.Select("ItemKindName='出量'");
|
||||
|
||||
669
AIMSEntity/DAL/AutoGenerate/DNotesRecord.cs
Normal file
669
AIMSEntity/DAL/AutoGenerate/DNotesRecord.cs
Normal file
@ -0,0 +1,669 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Collections;
|
||||
using AIMSModel;
|
||||
using AIMSObjectQuery;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AIMSDAL
|
||||
{
|
||||
internal partial class DNotesRecord
|
||||
{
|
||||
#region 插入实体操作部份
|
||||
/// <summary>
|
||||
/// 插入
|
||||
/// </summary>
|
||||
/// <param name="cmd">Command对象</param>
|
||||
/// <param name="notesRecord">实体类对象</param>
|
||||
/// <returns>标识列值或影响的记录行数</returns>
|
||||
internal static int Insert(SqlCommand cmd, NotesRecord notesRecord)
|
||||
{
|
||||
cmd.Parameters.Clear();
|
||||
cmd.CommandText = "insert into NotesRecord (NoteName,RecordTime,Content1,Content2,Content3,Content4,Content5,Content6,Content7,Content8,Content9,ExecWork,OperatorId,OperatorTime,Remark) values (@NoteName,@RecordTime,@Content1,@Content2,@Content3,@Content4,@Content5,@Content6,@Content7,@Content8,@Content9,@ExecWork,@OperatorId,@OperatorTime,@Remark);select @@identity";
|
||||
//从实体中取出值放入Command的参数列表
|
||||
cmd.Parameters.Add(new SqlParameter("@NoteName",notesRecord.NoteName==null?(object)DBNull.Value:(object)notesRecord.NoteName));
|
||||
cmd.Parameters.Add(new SqlParameter("@RecordTime",notesRecord.RecordTime.HasValue?(object)notesRecord.RecordTime.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@Content1",notesRecord.Content1==null?(object)DBNull.Value:(object)notesRecord.Content1));
|
||||
cmd.Parameters.Add(new SqlParameter("@Content2",notesRecord.Content2==null?(object)DBNull.Value:(object)notesRecord.Content2));
|
||||
cmd.Parameters.Add(new SqlParameter("@Content3",notesRecord.Content3==null?(object)DBNull.Value:(object)notesRecord.Content3));
|
||||
cmd.Parameters.Add(new SqlParameter("@Content4",notesRecord.Content4==null?(object)DBNull.Value:(object)notesRecord.Content4));
|
||||
cmd.Parameters.Add(new SqlParameter("@Content5",notesRecord.Content5==null?(object)DBNull.Value:(object)notesRecord.Content5));
|
||||
cmd.Parameters.Add(new SqlParameter("@Content6",notesRecord.Content6==null?(object)DBNull.Value:(object)notesRecord.Content6));
|
||||
cmd.Parameters.Add(new SqlParameter("@Content7",notesRecord.Content7==null?(object)DBNull.Value:(object)notesRecord.Content7));
|
||||
cmd.Parameters.Add(new SqlParameter("@Content8",notesRecord.Content8==null?(object)DBNull.Value:(object)notesRecord.Content8));
|
||||
cmd.Parameters.Add(new SqlParameter("@Content9",notesRecord.Content9==null?(object)DBNull.Value:(object)notesRecord.Content9));
|
||||
cmd.Parameters.Add(new SqlParameter("@ExecWork",notesRecord.ExecWork==null?(object)DBNull.Value:(object)notesRecord.ExecWork));
|
||||
cmd.Parameters.Add(new SqlParameter("@OperatorId",notesRecord.OperatorId.HasValue?(object)notesRecord.OperatorId.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@OperatorTime",notesRecord.OperatorTime.HasValue?(object)notesRecord.OperatorTime.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@Remark",notesRecord.Remark==null?(object)DBNull.Value:(object)notesRecord.Remark));
|
||||
return Convert.ToInt32(cmd.ExecuteScalar());
|
||||
}
|
||||
/// <summary>
|
||||
/// 不使用事务的插入方法
|
||||
/// </summary>
|
||||
/// <param name="notesRecord">实体类对象</param>
|
||||
/// <returns>标识列值或影响的记录行数</returns>
|
||||
internal static int Insert(NotesRecord notesRecord)
|
||||
{
|
||||
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
using (SqlCommand cmd = conn.CreateCommand())
|
||||
{
|
||||
return Insert(cmd, notesRecord);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 使用事务的插入方法
|
||||
/// </summary>
|
||||
/// <param name="connection">实现共享Connection的对象</param>
|
||||
/// <param name="notesRecord">实体类对象</param>
|
||||
/// <returns>标识列值或影响的记录行数</returns>
|
||||
internal static int Insert(Connection connection,NotesRecord notesRecord)
|
||||
{
|
||||
return Insert(connection.Command, notesRecord);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 删除实体操作
|
||||
|
||||
/// <summary>
|
||||
/// 删除
|
||||
/// </summary>
|
||||
/// <param name="cmd">Command对象</param>
|
||||
/// <param name="notesRecord">实体类对象</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
internal static int ExcuteDeleteCommand(SqlCommand cmd, NotesRecord notesRecord)
|
||||
{
|
||||
cmd.Parameters.Clear();
|
||||
cmd.CommandText = "delete from NotesRecord where Id=@Id";
|
||||
//从实体中取出值放入Command的参数列表
|
||||
cmd.Parameters.Add(new SqlParameter("@Id", notesRecord.Id));
|
||||
return cmd.ExecuteNonQuery();
|
||||
}
|
||||
/// <summary>
|
||||
/// 不使用事务的删除方法
|
||||
/// </summary>
|
||||
/// <param name="notesRecord">实体类对象</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
internal static int Delete(NotesRecord notesRecord)
|
||||
{
|
||||
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
using (SqlCommand cmd = conn.CreateCommand())
|
||||
{
|
||||
return ExcuteDeleteCommand(cmd, notesRecord);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 使用事务的删除方法
|
||||
/// </summary>
|
||||
/// <param name="connection">实现共享Connection的对象</param>
|
||||
/// <param name="notesRecord">实体类对象</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
internal static int Delete(Connection connection,NotesRecord notesRecord)
|
||||
{
|
||||
return ExcuteDeleteCommand(connection.Command, notesRecord);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 执行删除命令
|
||||
/// </summary>
|
||||
/// <param name="cmd">Command对象</param>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
internal static int ExcuteDeleteCommand(SqlCommand cmd, string oql, ParameterList parameters)
|
||||
{
|
||||
//解析过滤部份Sql语句
|
||||
string filterString = oql;// SyntaxAnalyzer.ParseSql(oql, new NotesRecordMap());
|
||||
if (filterString != string.Empty)
|
||||
{
|
||||
filterString = " where " + filterString;
|
||||
}
|
||||
cmd.Parameters.Clear();
|
||||
cmd.CommandText = "delete from NotesRecord " + 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>
|
||||
internal 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>
|
||||
internal 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="notesRecord">实体类对象</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
internal static int ExcuteUpdateCommand(SqlCommand cmd, NotesRecord notesRecord)
|
||||
{
|
||||
cmd.CommandText = "update NotesRecord set NoteName=@NoteName,RecordTime=@RecordTime,Content1=@Content1,Content2=@Content2,Content3=@Content3,Content4=@Content4,Content5=@Content5,Content6=@Content6,Content7=@Content7,Content8=@Content8,Content9=@Content9,ExecWork=@ExecWork,OperatorId=@OperatorId,OperatorTime=@OperatorTime,Remark=@Remark where Id=@Id";
|
||||
//从实体中取出值放入Command的参数列表
|
||||
cmd.Parameters.Add(new SqlParameter("@NoteName",notesRecord.NoteName==null?(object)DBNull.Value:(object)notesRecord.NoteName));
|
||||
cmd.Parameters.Add(new SqlParameter("@RecordTime",notesRecord.RecordTime.HasValue?(object)notesRecord.RecordTime.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@Content1",notesRecord.Content1==null?(object)DBNull.Value:(object)notesRecord.Content1));
|
||||
cmd.Parameters.Add(new SqlParameter("@Content2",notesRecord.Content2==null?(object)DBNull.Value:(object)notesRecord.Content2));
|
||||
cmd.Parameters.Add(new SqlParameter("@Content3",notesRecord.Content3==null?(object)DBNull.Value:(object)notesRecord.Content3));
|
||||
cmd.Parameters.Add(new SqlParameter("@Content4",notesRecord.Content4==null?(object)DBNull.Value:(object)notesRecord.Content4));
|
||||
cmd.Parameters.Add(new SqlParameter("@Content5",notesRecord.Content5==null?(object)DBNull.Value:(object)notesRecord.Content5));
|
||||
cmd.Parameters.Add(new SqlParameter("@Content6",notesRecord.Content6==null?(object)DBNull.Value:(object)notesRecord.Content6));
|
||||
cmd.Parameters.Add(new SqlParameter("@Content7",notesRecord.Content7==null?(object)DBNull.Value:(object)notesRecord.Content7));
|
||||
cmd.Parameters.Add(new SqlParameter("@Content8",notesRecord.Content8==null?(object)DBNull.Value:(object)notesRecord.Content8));
|
||||
cmd.Parameters.Add(new SqlParameter("@Content9",notesRecord.Content9==null?(object)DBNull.Value:(object)notesRecord.Content9));
|
||||
cmd.Parameters.Add(new SqlParameter("@ExecWork",notesRecord.ExecWork==null?(object)DBNull.Value:(object)notesRecord.ExecWork));
|
||||
cmd.Parameters.Add(new SqlParameter("@OperatorId",notesRecord.OperatorId.HasValue?(object)notesRecord.OperatorId.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@OperatorTime",notesRecord.OperatorTime.HasValue?(object)notesRecord.OperatorTime.Value:(object)DBNull.Value));
|
||||
cmd.Parameters.Add(new SqlParameter("@Remark",notesRecord.Remark==null?(object)DBNull.Value:(object)notesRecord.Remark));
|
||||
cmd.Parameters.Add(new SqlParameter("@Id", notesRecord.Id));
|
||||
return cmd.ExecuteNonQuery();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 不使用事务的更新方法
|
||||
/// </summary>
|
||||
/// <param name="notesRecord">实体类对象</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
internal static int Update(NotesRecord notesRecord)
|
||||
{
|
||||
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
using (SqlCommand cmd = conn.CreateCommand())
|
||||
{
|
||||
return ExcuteUpdateCommand(cmd, notesRecord);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 使用事务的更新方法
|
||||
/// </summary>
|
||||
/// <param name="connection">实现共享Connection的对象</param>
|
||||
/// <param name="notesRecord">实体类对象</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
internal static int Update(Connection connection,NotesRecord notesRecord)
|
||||
{
|
||||
return ExcuteUpdateCommand(connection.Command, notesRecord);
|
||||
}
|
||||
/// <summary>
|
||||
/// 执行更新命令
|
||||
/// </summary>
|
||||
/// <param name="cmd">Command对象</param>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>影响的记录行数</returns>
|
||||
internal static int ExcuteUpdateCommand(SqlCommand cmd, string oql, ParameterList parameters)
|
||||
{
|
||||
//解析过滤部份Sql语句
|
||||
string updateString = SyntaxAnalyzer.ParseSql(oql, new NotesRecordMap());
|
||||
cmd.CommandText = "update NotesRecord 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>
|
||||
internal 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>
|
||||
internal 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>
|
||||
internal static List<NotesRecord> ExcuteSelectCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth)
|
||||
{
|
||||
List<NotesRecord> notesRecordList = new List<NotesRecord>();
|
||||
using (SqlDataReader dr = cmd.ExecuteReader())
|
||||
{
|
||||
while (dr.Read())
|
||||
{
|
||||
NotesRecord notesRecord = DataReaderToEntity(dr);
|
||||
notesRecordList.Add(notesRecord);
|
||||
}
|
||||
}
|
||||
return notesRecordList;
|
||||
}
|
||||
/// <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>
|
||||
internal static List<NotesRecord> ExcuteSelectCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth)
|
||||
{
|
||||
//解析过滤部份Sql语句
|
||||
string filterString = SyntaxAnalyzer.ParseSql(oql, new NotesRecordMap());
|
||||
if (filterString != string.Empty)
|
||||
{
|
||||
if(filterString.Trim().ToLower().IndexOf("order ")!=0)
|
||||
filterString = " where " + filterString;
|
||||
}
|
||||
cmd.Parameters.Clear();
|
||||
cmd.CommandText = "select * from NotesRecord " + 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>
|
||||
internal static List<NotesRecord> Select()
|
||||
{
|
||||
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
using (SqlCommand cmd = conn.CreateCommand())
|
||||
{
|
||||
cmd.CommandText = "select * from NotesRecord";
|
||||
return ExcuteSelectCommand(cmd, RecursiveType.Parent, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 根据对象查询语句查询实体集合
|
||||
/// </summary>
|
||||
/// <param name="recursiveType">递归类型</param>
|
||||
/// <param name="recursiveDepth">递归深度</param>
|
||||
/// <returns>实体类对象集合</returns>
|
||||
internal static List<NotesRecord> Select(RecursiveType recursiveType, int recursiveDepth)
|
||||
{
|
||||
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
using (SqlCommand cmd = conn.CreateCommand())
|
||||
{
|
||||
cmd.CommandText = "select * from NotesRecord";
|
||||
return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据对象查询语句查询实体集合
|
||||
/// </summary>
|
||||
/// <param name="oql">对象查询语句</param>
|
||||
/// <param name="parameters">参数列表</param>
|
||||
/// <returns>实体类对象集合</returns>
|
||||
internal static List<NotesRecord> 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>
|
||||
internal static List<NotesRecord> 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>
|
||||
internal static List<NotesRecord> 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>
|
||||
internal static NotesRecord ExcuteSelectSingleCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth)
|
||||
{
|
||||
NotesRecord notesRecord=null;
|
||||
using (SqlDataReader dr = cmd.ExecuteReader())
|
||||
{
|
||||
if(dr.Read())
|
||||
notesRecord = DataReaderToEntity(dr);
|
||||
}
|
||||
if(notesRecord==null)
|
||||
return notesRecord;
|
||||
return notesRecord;
|
||||
}
|
||||
/// <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>
|
||||
internal static NotesRecord ExcuteSelectSingleCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth)
|
||||
{
|
||||
//解析过滤部份Sql语句
|
||||
string filterString = SyntaxAnalyzer.ParseSql(oql, new NotesRecordMap());
|
||||
if(filterString!=string.Empty)
|
||||
{
|
||||
filterString=" where "+filterString;
|
||||
}
|
||||
cmd.CommandText = "select * from NotesRecord " + 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>
|
||||
internal static NotesRecord 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>
|
||||
internal static NotesRecord 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>
|
||||
internal static NotesRecord 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>
|
||||
internal static NotesRecord SelectSingle(SqlCommand cmd, int? id,RecursiveType recursiveType,int recursiveDepth)
|
||||
{
|
||||
cmd.Parameters.Clear();
|
||||
if(id.HasValue)
|
||||
{
|
||||
cmd.CommandText = "select * from NotesRecord where Id=@pk";
|
||||
cmd.Parameters.Add(new SqlParameter("@pk",id.Value));
|
||||
}
|
||||
else
|
||||
{
|
||||
cmd.CommandText = "select * from NotesRecord where Id is null";
|
||||
}
|
||||
return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 按主键字段查询特定实体
|
||||
/// </summary>
|
||||
/// <param name="id">主键值</param>
|
||||
/// <returns>实体类对象</returns>
|
||||
internal static NotesRecord 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>
|
||||
internal static NotesRecord 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>
|
||||
internal static NotesRecord 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 NotesRecord DataReaderToEntity(SqlDataReader dr)
|
||||
{
|
||||
NotesRecord entity = new NotesRecord ();
|
||||
if(dr["Id"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Id=Convert.ToInt32(dr["Id"]);
|
||||
}
|
||||
if(dr["NoteName"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.NoteName=dr["NoteName"].ToString();
|
||||
}
|
||||
if(dr["RecordTime"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.RecordTime=Convert.ToDateTime(dr["RecordTime"]);
|
||||
}
|
||||
if(dr["Content1"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Content1=dr["Content1"].ToString();
|
||||
}
|
||||
if(dr["Content2"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Content2=dr["Content2"].ToString();
|
||||
}
|
||||
if(dr["Content3"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Content3=dr["Content3"].ToString();
|
||||
}
|
||||
if(dr["Content4"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Content4=dr["Content4"].ToString();
|
||||
}
|
||||
if(dr["Content5"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Content5=dr["Content5"].ToString();
|
||||
}
|
||||
if(dr["Content6"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Content6=dr["Content6"].ToString();
|
||||
}
|
||||
if(dr["Content7"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Content7=dr["Content7"].ToString();
|
||||
}
|
||||
if(dr["Content8"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Content8=dr["Content8"].ToString();
|
||||
}
|
||||
if(dr["Content9"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Content9=dr["Content9"].ToString();
|
||||
}
|
||||
if(dr["ExecWork"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.ExecWork=dr["ExecWork"].ToString();
|
||||
}
|
||||
if(dr["OperatorId"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.OperatorId=Convert.ToInt32(dr["OperatorId"]);
|
||||
}
|
||||
if(dr["OperatorTime"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.OperatorTime=Convert.ToDateTime(dr["OperatorTime"]);
|
||||
}
|
||||
if(dr["Remark"]!=System.DBNull.Value)
|
||||
{
|
||||
entity.Remark=dr["Remark"].ToString();
|
||||
}
|
||||
return entity;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
13
AIMSEntity/DAL/Extension/DNotesRecord.cs
Normal file
13
AIMSEntity/DAL/Extension/DNotesRecord.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using AIMSModel;
|
||||
using AIMSObjectQuery;
|
||||
namespace AIMSDAL
|
||||
{
|
||||
internal partial class DNotesRecord
|
||||
{
|
||||
}
|
||||
}
|
||||
23
AIMSEntity/Extensions/BNotesRecords.cs
Normal file
23
AIMSEntity/Extensions/BNotesRecords.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
using System.Xml;
|
||||
using AIMSModel;
|
||||
using HelperDB;
|
||||
using DrawGraph;
|
||||
using AIMSExtension;
|
||||
|
||||
namespace AIMSBLL
|
||||
{
|
||||
public class BNotesRecords
|
||||
{
|
||||
public static DataTable GetMonthDayTable(string beginTime, string endTime)
|
||||
{
|
||||
string strSql = " select DATEADD(dd,number,'" + beginTime + "') [RecordTime] from master..spt_values where type='p' and DATEDIFF(dd,DATEADD(dd,number,'" + beginTime + "'),CONVERT(varchar(10),'" + endTime + "',120))>0";
|
||||
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -61,6 +61,8 @@ namespace AIMSBLL
|
||||
_record.FareType = OperationFrontdt.Rows[0]["PatientKind"].ToString();
|
||||
_record.BloodType = OperationFrontdt.Rows[0]["BloodType"].ToString();
|
||||
_record.RHBloodType = OperationFrontdt.Rows[0]["RHBloodType"].ToString();
|
||||
_record.OperationSite = OperationFrontdt.Rows[0]["OperationSite"].ToString();
|
||||
if (_record.OperationSite == "内镜室" && _record.Bed == "") _record.Bed = "-";
|
||||
ASALevel = OperationFrontdt.Rows[0]["ASA"].ToString();
|
||||
if (OperationFrontdt.Rows[0]["Height"].ToString() != "")
|
||||
{
|
||||
|
||||
158
AIMSEntity/Model/AutoGenerate/NotesRecord.cs
Normal file
158
AIMSEntity/Model/AutoGenerate/NotesRecord.cs
Normal file
@ -0,0 +1,158 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using AIMSDAL;
|
||||
|
||||
namespace AIMSModel
|
||||
{
|
||||
[Serializable]
|
||||
public partial class NotesRecord
|
||||
{
|
||||
private int? id;
|
||||
private string noteName;
|
||||
private DateTime? recordTime;
|
||||
private string content1;
|
||||
private string content2;
|
||||
private string content3;
|
||||
private string content4;
|
||||
private string content5;
|
||||
private string content6;
|
||||
private string content7;
|
||||
private string content8;
|
||||
private string content9;
|
||||
private string execWork;
|
||||
private int? operatorId;
|
||||
private DateTime? operatorTime;
|
||||
private string remark;
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int? Id
|
||||
{
|
||||
get{ return id; }
|
||||
set{ id=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string NoteName
|
||||
{
|
||||
get{ return noteName; }
|
||||
set{ noteName=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime? RecordTime
|
||||
{
|
||||
get{ return recordTime; }
|
||||
set{ recordTime=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Content1
|
||||
{
|
||||
get{ return content1; }
|
||||
set{ content1=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Content2
|
||||
{
|
||||
get{ return content2; }
|
||||
set{ content2=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Content3
|
||||
{
|
||||
get{ return content3; }
|
||||
set{ content3=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Content4
|
||||
{
|
||||
get{ return content4; }
|
||||
set{ content4=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Content5
|
||||
{
|
||||
get{ return content5; }
|
||||
set{ content5=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Content6
|
||||
{
|
||||
get{ return content6; }
|
||||
set{ content6=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Content7
|
||||
{
|
||||
get{ return content7; }
|
||||
set{ content7=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Content8
|
||||
{
|
||||
get{ return content8; }
|
||||
set{ content8=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Content9
|
||||
{
|
||||
get{ return content9; }
|
||||
set{ content9=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ExecWork
|
||||
{
|
||||
get{ return execWork; }
|
||||
set{ execWork=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int? OperatorId
|
||||
{
|
||||
get{ return operatorId; }
|
||||
set{ operatorId=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime? OperatorTime
|
||||
{
|
||||
get{ return operatorTime; }
|
||||
set{ operatorTime=value; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remark
|
||||
{
|
||||
get{ return remark; }
|
||||
set{ remark=value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
10
AIMSEntity/Model/Extension/NotesRecord.cs
Normal file
10
AIMSEntity/Model/Extension/NotesRecord.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using AIMSDAL;
|
||||
namespace AIMSModel
|
||||
{
|
||||
public partial class NotesRecord
|
||||
{
|
||||
}
|
||||
}
|
||||
49
AIMSEntity/ObjectQuery/NotesRecordMap.cs
Normal file
49
AIMSEntity/ObjectQuery/NotesRecordMap.cs
Normal file
@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AIMSObjectQuery
|
||||
{
|
||||
internal partial class NotesRecordMap:IMap
|
||||
{
|
||||
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
public NotesRecordMap()
|
||||
{
|
||||
dictionary.Add("id", "Id");
|
||||
dictionary.Add("notename", "NoteName");
|
||||
dictionary.Add("recordtime", "RecordTime");
|
||||
dictionary.Add("content1", "Content1");
|
||||
dictionary.Add("content2", "Content2");
|
||||
dictionary.Add("content3", "Content3");
|
||||
dictionary.Add("content4", "Content4");
|
||||
dictionary.Add("content5", "Content5");
|
||||
dictionary.Add("content6", "Content6");
|
||||
dictionary.Add("content7", "Content7");
|
||||
dictionary.Add("content8", "Content8");
|
||||
dictionary.Add("content9", "Content9");
|
||||
dictionary.Add("execwork", "ExecWork");
|
||||
dictionary.Add("operatorid", "OperatorId");
|
||||
dictionary.Add("operatortime", "OperatorTime");
|
||||
dictionary.Add("remark", "Remark");
|
||||
}
|
||||
|
||||
#region IMap 成员
|
||||
|
||||
public string this[string propertyName]
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
return dictionary[propertyName.ToLower()];
|
||||
}
|
||||
catch (KeyNotFoundException)
|
||||
{
|
||||
throw new Exception(propertyName + "属性不存在");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@ -276,6 +276,8 @@ namespace DrawGraph
|
||||
{
|
||||
tokenEditor.ValidateToken -= new DevComponents.DotNetBar.Controls.ValidateTokenEventHandler(this.tokenEditor_ValidateToken);
|
||||
tokenEditor.ValidateToken += new DevComponents.DotNetBar.Controls.ValidateTokenEventHandler(this.tokenEditor_ValidateToken);
|
||||
tokenEditor.DoubleClick -= EditTextBox2_DoubleClick;
|
||||
tokenEditor.DoubleClick += EditTextBox2_DoubleClick;
|
||||
}
|
||||
|
||||
}
|
||||
@ -937,5 +939,19 @@ namespace DrawGraph
|
||||
TokenEditorManage.SaveDictItem(template, OpeRecord as OperationRecord, tokenEditor, aEdit);
|
||||
}
|
||||
|
||||
private void EditTextBox2_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
DevComponents.DotNetBar.Controls.TokenEditor tokenEditor = ((DevComponents.DotNetBar.Controls.TokenEditor)sender);
|
||||
string text = tokenEditor.Text;
|
||||
if (text.Trim() != "")
|
||||
{
|
||||
tokenEditor.SelectedTokens.Clear();
|
||||
tokenEditor.EditTextBox.TextChanged -= EditTextBox_TextChanged;
|
||||
tokenEditor.EditTextBox.Text = text;
|
||||
tokenEditor.IsPopupOpen = false;
|
||||
tokenEditor.EditTextBox.TextChanged += EditTextBox_TextChanged;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -291,7 +291,14 @@ namespace DrawGraph
|
||||
//取消滚轮事件
|
||||
public void numericUpDown1_MouseWheel(object sender, MouseEventArgs e)
|
||||
{
|
||||
MouseWheelParam(sender, e);
|
||||
try
|
||||
{
|
||||
if (MouseWheelParam != null)
|
||||
MouseWheelParam(sender, e);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 把OperationRecord 里的数据绑定到到画板上
|
||||
|
||||
@ -199,6 +199,7 @@ namespace DrawGraph
|
||||
private string ortherDoctorId;
|
||||
private string operationSiteId;
|
||||
private string operationPositionId;
|
||||
private string operationSite;
|
||||
|
||||
[ClassAttributs(Description = "住院门诊类型")]
|
||||
public string PatientType
|
||||
@ -378,6 +379,15 @@ namespace DrawGraph
|
||||
get { return operationPositionId; }
|
||||
set { operationPositionId = value; }
|
||||
}
|
||||
[ClassAttributs(Description = "手术地点")]
|
||||
/// <summary>
|
||||
/// 手术地点
|
||||
/// </summary>
|
||||
public string OperationSite
|
||||
{
|
||||
get { return operationSite; }
|
||||
set { operationSite = value; }
|
||||
}
|
||||
|
||||
|
||||
//术中信息
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user