diff --git a/AIMS/AIMS.csproj b/AIMS/AIMS.csproj
index bd30411..04a57ff 100644
--- a/AIMS/AIMS.csproj
+++ b/AIMS/AIMS.csproj
@@ -239,6 +239,24 @@
frmExportConfig.cs
+
+ Form
+
+
+ frmOperationCharg.cs
+
+
+ Form
+
+
+ frmOperationCharg2.cs
+
+
+ Form
+
+
+ frmOperationCharg3.cs
+
Form
@@ -828,6 +846,7 @@
frmPatientKind.cs
+ Designer
frmSysConfig.cs
@@ -850,9 +869,11 @@
frmDosageUnit.cs
+ Designer
frmPharmaCology.cs
+ Designer
FormMainManage.cs
@@ -870,6 +891,15 @@
frmExportConfig.cs
+
+ frmOperationCharg.cs
+
+
+ frmOperationCharg2.cs
+
+
+ frmOperationCharg3.cs
+
frmOperationManage.cs
diff --git a/AIMS/OperationAanesthesia/frmFactDrugNew.cs b/AIMS/OperationAanesthesia/frmFactDrugNew.cs
index 6f5719a..ff0b85d 100644
--- a/AIMS/OperationAanesthesia/frmFactDrugNew.cs
+++ b/AIMS/OperationAanesthesia/frmFactDrugNew.cs
@@ -1329,10 +1329,10 @@ namespace AIMS.PublicUI.UI
SuperTabControlPanel superTabControlPanel = new SuperTabControlPanel();
superTabControlPanel.Dock = System.Windows.Forms.DockStyle.Fill;
superTabControlPanel.CanvasColor = Color.White;
- TabSelDrugs.Controls.Add(superTabControlPanel);
- TabSelDrugs.Tabs.Add(spt);
superTabControlPanel.TabItem = spt;
spt.AttachedControl = superTabControlPanel;
+ TabSelDrugs.Controls.Add(superTabControlPanel);
+ TabSelDrugs.Tabs.Add(spt);
}
this.TabSelDrugs.SelectedTabChanged += new System.EventHandler(this.superTabControl1_SelectedTabChanged);
TabSelDrugs.SelectedTab = TabSelDrugs.Tabs[0] as SuperTabItem;
diff --git a/AIMS/OperationAanesthesia/frmFeesRecord.cs b/AIMS/OperationAanesthesia/frmFeesRecord.cs
index 413c4e4..4fbb3e8 100644
--- a/AIMS/OperationAanesthesia/frmFeesRecord.cs
+++ b/AIMS/OperationAanesthesia/frmFeesRecord.cs
@@ -193,14 +193,7 @@ namespace AIMS.PublicUI.UI
{
decimal XMSL = 1;
List drugsRecords = _record.FactDrugList.Where(a => a.DrugId == drug.Id).ToList();
- decimal DOSEPER = 0;
- //最小剂量
- if (drug.Dosage != null && drug.Dosage != "")
- DOSEPER = decimal.Parse(drug.Dosage);
- //最小单位
- string DOSEPERUNIT = "";
- if (drug.DosageUnit != null && drug.DosageUnit != "")
- DOSEPERUNIT = drug.DosageUnit;
+
if (drug.Name == "吸入用七氟烷")
{
decimal dose = 0;
@@ -222,9 +215,32 @@ namespace AIMS.PublicUI.UI
}
else
{
+ //最小剂量
+ decimal DOSEPER = 0;
+ //最小单位
+ string DOSEPERUNIT = "";
decimal dose = 0;
foreach (var item in drugsRecords)
{
+ if (drug.Dosage != null && drug.Dosage != "")
+ DOSEPER = decimal.Parse(drug.Dosage);
+ if (drug.DosageUnit != null && drug.DosageUnit != "")
+ DOSEPERUNIT = drug.DosageUnit;
+ //3.根据表达式划算 37.5mg/5ml
+ if (drug.Comment != null && drug.Comment != "")
+ {
+ List strings = drug.Comment.Split('|').ToList();
+ foreach (var items in strings)
+ {
+ List units = items.Split('=').ToList();
+ if (units[0] == item.DosageUnit.Trim() || units[0] + "/h" == item.VelocityUnit.Trim() || units[0] + "/min" == item.VelocityUnit.Trim())
+ {
+ DOSEPERUNIT = units[0];
+ DOSEPER = Convert.ToDecimal(units[1]);
+ break;
+ }
+ }
+ }
//1.当使用单位等于规格单位 总量增加实际用量
if (item.Dosage > 0 && drug.DosageUnit != null && drug.DosageUnit != "")
dose += GetConvertedValue(item.Dosage, item.DosageUnit, DOSEPERUNIT);
@@ -292,7 +308,7 @@ namespace AIMS.PublicUI.UI
{
value = drugValue;
}
- else if ((drugUnit == "ml/h" || drugUnit == "ml/min") && ConUnit == "ug")
+ else if ((drugUnit == "ml/h" || drugUnit == "ml/min") && ConUnit == "ml")
{
value = drugValue;
}
@@ -317,87 +333,6 @@ namespace AIMS.PublicUI.UI
return value;
}
- decimal CalculateDrugDose(Drugs drug)
- {
- decimal dosePer = 0;
- if (decimal.TryParse(drug.Dosage, out decimal parsedDosePer))
- {
- dosePer = parsedDosePer;
- }
- string dosePerUnit = string.IsNullOrEmpty(drug.DosageUnit) ? "" : drug.DosageUnit;
-
- List drugsRecords = _record.FactDrugList.Where(a => a.DrugId == drug.Id).ToList();
-
- switch (drug.Name)
- {
- case "吸入用七氟烷":
- decimal dose = 0;
- foreach (var item in drugsRecords.Where(item => item.DrugName == "吸入用七氟烷" && item.Density > 0 && !string.IsNullOrEmpty(item.DensityUnit)))
- {
- TimeSpan timeSpan = item.DrugEndTime - item.DrugBeginTime;
- decimal yndden = 0;
- _record.FactDrugList.ForEach(a => { if (a.DrugName == "氧气" && a.Velocity > 0) yndden = a.Velocity; });
- if (yndden > 0)
- {
- dose += ((decimal)3.6) * yndden * item.Density * (decimal)Math.Round(timeSpan.TotalHours, 2) + (decimal)5.3;
- }
- }
- return Math.Max(1, Math.Ceiling(dose));
-
- default:
- decimal totalDose = drugsRecords.Sum(item =>
- {
- if (item.Dosage > 0 && !string.IsNullOrEmpty(item.DosageUnit) && dosePerUnit != "")
- {
- decimal convertedDose = GetConvertValue(item.Dosage, item.DosageUnit, dosePerUnit);
- return convertedDose;
- }
- else if (item.Velocity > 0 && !string.IsNullOrEmpty(item.VelocityUnit))
- {
- TimeSpan timeSpan = item.DrugEndTime - item.DrugBeginTime;
- if (item.VelocityUnit.Contains("/h"))
- {
- return GetConvertValue(item.Velocity, item.VelocityUnit, dosePerUnit) * (decimal)Math.Round(timeSpan.TotalHours, 2);
- }
- else if (item.VelocityUnit.Contains("/min"))
- {
- return GetConvertValue(item.Velocity, item.VelocityUnit, dosePerUnit) * (decimal)Math.Round(timeSpan.TotalMinutes, 2);
- }
- }
- return 0;
- });
-
- decimal calculatedDose = totalDose / dosePer;
- return Math.Max(1, Math.Ceiling(calculatedDose));
- }
- }
- public decimal GetConvertValue(decimal drugValue, string drugUnit, string ConUnit)
- {
- Dictionary conversionFactors = new Dictionary()
- {
- {"g", 1},
- {"mg", 0.001m},
- {"ug", 0.000001m},
- {"l", 1000},
- {"ml", 1}
- };
-
- string drugUnitKey = drugUnit.EndsWith("/h") || drugUnit.EndsWith("/min") ? drugUnit.Substring(0, drugUnit.Length - 3) : drugUnit;
- string ConUnitKey = ConUnit.EndsWith("/h") || ConUnit.EndsWith("/min") ? ConUnit.Substring(0, ConUnit.Length - 3) : ConUnit;
-
- if (drugUnitKey == ConUnitKey)
- {
- return drugValue;
- }
-
- if (conversionFactors.TryGetValue(drugUnitKey, out decimal drugFactor) && conversionFactors.TryGetValue(ConUnitKey, out decimal conFactor))
- {
- return drugValue * drugFactor / conFactor;
- }
-
- return 1;
- }
-
private void SetChargDrugPrice()
{
int chargCount = 0;
@@ -658,6 +593,8 @@ namespace AIMS.PublicUI.UI
}
feesR.FeeCode = dr.Cells[2].EditedFormattedValue.ToString();
feesR.FeeSerial = dr.Cells[2].EditedFormattedValue.ToString();
+ feesR.ChargName = dr.Cells[3].EditedFormattedValue.ToString();
+ feesR.ChargSpec = dr.Cells[4].EditedFormattedValue.ToString();
feesR.Unit = dr.Cells[6].EditedFormattedValue.ToString();
feesR.FeeNum = dr.Cells[7].EditedFormattedValue.ToString();
feesR.FeeClass = dr.Cells[1].EditedFormattedValue.ToString();
@@ -679,8 +616,8 @@ namespace AIMS.PublicUI.UI
feesR.ExecWorkId = _worker.Id.ToString();
feesR.ExecWork = _worker.Name;
feesR.ExecState = "";
- feesR.ExecTime = DateTime.Now.ToString();
}
+ feesR.ExecTime = DateTime.Now;
feesR.IsUpLoad = "0";
feesR.OperatorId = PublicMethod.OperatorId;
feesR.OperatorNo = PublicMethod.OperatorNo;
@@ -948,7 +885,7 @@ namespace AIMS.PublicUI.UI
dgvTxt = (DataGridViewTextBoxEditingControl)e.Control; // 得到单元格
dgvTxt.KeyPress -= new KeyPressEventHandler(dgvTxt_KeyPress); // 绑定事件
dgvTxt.KeyPress += new KeyPressEventHandler(dgvTxt_KeyPress); // 绑定事件
- //SetChargDrugPrice();
+ //SetChargDrugPrice();
}
}
@@ -976,7 +913,7 @@ namespace AIMS.PublicUI.UI
if (n > 0) e.Handled = true;
}
}
- #endregion
+ #endregion
#region 收费类型加载
private void btnTypeManager_Click(object sender, EventArgs e)
diff --git a/AIMS/OperationAanesthesia/frmSelectPatientNew2.cs b/AIMS/OperationAanesthesia/frmSelectPatientNew2.cs
index e2fb9cf..c9986b9 100644
--- a/AIMS/OperationAanesthesia/frmSelectPatientNew2.cs
+++ b/AIMS/OperationAanesthesia/frmSelectPatientNew2.cs
@@ -104,73 +104,87 @@ namespace AIMS.OperationAanesthesia
}
}
}
- //for (int i = 0; i < list.Count; i++)
- //{
- // int j = 0;
- // foreach (DataRow dr in dt.Rows)
- // {
- // if (dr["OperationRoom"].ToString() != list[i]) continue;
- // ucPatientCard uc = new ucPatientCard(dr);
- // uc.InRoom += Uc_InRoom;
- // uc.QxRoom += Uc_QxRoom;
- // uc.Clicks += Uc_Clicks;
- // uc.Location = new Point((uc.Width + 9) * j, (uc.Height + 10) * i + 30);
- // panel3.Controls.Add(uc);
- // j++;
- // }
-
- // foreach (DataRow dr in dt2.Rows)
- // {
- // if (dr["OperationRoom"].ToString() != list[i]) continue;
- // ucPatientCard uc = new ucPatientCard(dr);
- // uc.InRoom += Uc_InRoom;
- // uc.QxRoom += Uc_QxRoom;
- // uc.Clicks += Uc_Clicks;
- // uc.Location = new Point((uc.Width + 9) * j, (uc.Height + 10) * i + 30);
- // panel3.Controls.Add(uc);
- // j++;
- // }
- //}
- for (int i = 0; i < list.Count; i++)
+ if (cboRoom.Text != "")
{
- int j = 0;
- int Pointx = 0;
+ int i = 0, j = 0;
foreach (DataRow dr in dt.Rows)
{
- if (dr["OperationRoom"].ToString() != list[i]) continue;
+ if (dr["OperationRoom"].ToString() != cboRoom.Text) continue;
ucPatientCard uc = new ucPatientCard(dr);
uc.InRoom += Uc_InRoom;
uc.QxRoom += Uc_QxRoom;
uc.Clicks += Uc_Clicks;
- uc.Location = new Point((uc.Width + 9) * i, (uc.Height + 10) * j + 30);
+ uc.Location = new Point((uc.Width + 9) * j, (uc.Height + 10) * i + 30);
panel3.Controls.Add(uc);
- j++; Pointx = (uc.Width + 9) * i;
+ j++;
+ if (j == 5)
+ {
+ i++;
+ j = 0;
+ }
}
foreach (DataRow dr in dt2.Rows)
{
- if (dr["OperationRoom"].ToString() != list[i]) continue;
+ if (dr["OperationRoom"].ToString() != cboRoom.Text) continue;
ucPatientCard uc = new ucPatientCard(dr);
uc.InRoom += Uc_InRoom;
uc.QxRoom += Uc_QxRoom;
uc.Clicks += Uc_Clicks;
- uc.Location = new Point((uc.Width + 9) * i, (uc.Height + 10) * j + 30);
+ uc.Location = new Point((uc.Width + 9) * j, (uc.Height + 10) * i + 30);
panel3.Controls.Add(uc);
j++;
- Pointx = (uc.Width + 9) * i;
- }
-
- if (Pointx > 0)
- {
- DevComponents.DotNetBar.Controls.Line line1 = new DevComponents.DotNetBar.Controls.Line();
- line1.Location = new System.Drawing.Point(Pointx - 10, 0);
- line1.DashStyle = System.Drawing.Drawing2D.DashStyle.DashDotDot;
- line1.Size = new System.Drawing.Size(10, panel3.Height);
- line1.ForeColor = Color.DarkGray;
- line1.VerticalLine = true;
- panel3.Controls.Add(line1);
+ if (j == 5)
+ {
+ i++;
+ j = 0;
+ }
}
}
+ else
+ {
+ for (int i = 0; i < list.Count; i++)
+ {
+ int j = 0;
+ int Pointx = 0;
+ foreach (DataRow dr in dt.Rows)
+ {
+ if (dr["OperationRoom"].ToString() != list[i]) continue;
+ ucPatientCard uc = new ucPatientCard(dr);
+ uc.InRoom += Uc_InRoom;
+ uc.QxRoom += Uc_QxRoom;
+ uc.Clicks += Uc_Clicks;
+ uc.Location = new Point((uc.Width + 9) * i, (uc.Height + 10) * j + 30);
+ panel3.Controls.Add(uc);
+ j++; Pointx = (uc.Width + 9) * i;
+ }
+
+ foreach (DataRow dr in dt2.Rows)
+ {
+ if (dr["OperationRoom"].ToString() != list[i]) continue;
+ ucPatientCard uc = new ucPatientCard(dr);
+ uc.InRoom += Uc_InRoom;
+ uc.QxRoom += Uc_QxRoom;
+ uc.Clicks += Uc_Clicks;
+ uc.Location = new Point((uc.Width + 9) * i, (uc.Height + 10) * j + 30);
+ panel3.Controls.Add(uc);
+ j++;
+ Pointx = (uc.Width + 9) * i;
+ }
+
+ if (Pointx > 0)
+ {
+ DevComponents.DotNetBar.Controls.Line line1 = new DevComponents.DotNetBar.Controls.Line();
+ line1.Location = new System.Drawing.Point(Pointx - 10, 0);
+ line1.DashStyle = System.Drawing.Drawing2D.DashStyle.DashDotDot;
+ line1.Size = new System.Drawing.Size(10, panel3.Height);
+ line1.ForeColor = Color.DarkGray;
+ line1.VerticalLine = true;
+ panel3.Controls.Add(line1);
+ }
+ }
+ }
+
}
@@ -271,7 +285,7 @@ namespace AIMS.OperationAanesthesia
if (tempfrmAnasRecord != null && tempfrmAnasRecord._record != null)
{
frmAnasRecord = tempfrmAnasRecord;
- frmAnasRecord.ClearRecordDate();
+ frmAnasRecord.ClearRecordDate();
}
else
{
@@ -297,7 +311,7 @@ namespace AIMS.OperationAanesthesia
FillDgv();
}
else
- {
+ {
this.Close();
}
@@ -308,7 +322,7 @@ namespace AIMS.OperationAanesthesia
if (tempfrmAnasRecord != null && tempfrmAnasRecord._record != null)
{
frmAnasRecord = tempfrmAnasRecord;
- frmAnasRecord.ClearRecordDate();
+ frmAnasRecord.ClearRecordDate();
}
else
{
@@ -332,7 +346,7 @@ namespace AIMS.OperationAanesthesia
FillDgv();
}
else
- {
+ {
this.Close();
}
}
@@ -515,7 +529,7 @@ namespace AIMS.OperationAanesthesia
}
private void buttonX2_Click(object sender, EventArgs e)
- {
+ {
string RoomStr = txtRoom.Tag.ToString();
if (RoomStr != "")
{
diff --git a/AIMS/OperationAfter/frmExportConfig.cs b/AIMS/OperationAfter/frmExportConfig.cs
index 65fb20a..e835432 100644
--- a/AIMS/OperationAfter/frmExportConfig.cs
+++ b/AIMS/OperationAfter/frmExportConfig.cs
@@ -10,7 +10,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
-namespace KHD_OREMR.UserControls
+namespace AIMS.OperationAfter.UI
{
public partial class frmExportConfig : Form
{
diff --git a/AIMS/OperationAfter/frmExportConfig.designer.cs b/AIMS/OperationAfter/frmExportConfig.designer.cs
index 0e3af09..9dab6e8 100644
--- a/AIMS/OperationAfter/frmExportConfig.designer.cs
+++ b/AIMS/OperationAfter/frmExportConfig.designer.cs
@@ -1,4 +1,4 @@
-namespace KHD_OREMR.UserControls
+namespace AIMS.OperationAfter.UI
{
partial class frmExportConfig
{
diff --git a/AIMS/OperationAfter/frmOperationCharg.cs b/AIMS/OperationAfter/frmOperationCharg.cs
new file mode 100644
index 0000000..72fda51
--- /dev/null
+++ b/AIMS/OperationAfter/frmOperationCharg.cs
@@ -0,0 +1,402 @@
+using AIMSBLL;
+using AIMSExtension;
+using AIMSModel;
+using DrawGraph;
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Drawing;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace AIMS.OperationAfter.UI
+{
+ public partial class frmOperationCharg : Form
+ {
+
+ public string FeeType = "麻醉";
+ public frmOperationCharg()
+ {
+ InitializeComponent();
+ }
+
+ private void frmOperationChargCheck2_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ dgvYP.AutoGenerateColumns = false;
+ //DataGridViewSettingManager.GetInstance().AttachDataGridView(dgvtEMPOperationInfos);
+ //if (PublicMethod.Operator.RoleRef.Name != "系统管理员")
+ //{
+ // tsbSettingDGV.Visible = false;
+ // label2.Visible = false;
+ //}
+ this.txtPatName.TextChanged += new System.EventHandler(this.txtPatName_TextChanged);
+ this.txtPatName.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.dgvTextYP_PreviewKeyDownEvent);
+ this.txtPatCaseNO.TextChanged += new System.EventHandler(this.txtPatCaseNO_TextChanged);
+ this.txtPatCaseNO.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.dgvTextYP_PreviewKeyDownEvent);
+
+ //rdoZQ.Checked = true;
+ Role role = BRole.SelectSingle(PublicMethod.RoleId);
+ if (role.RoleName.Contains("麻") || role.Id == 1)
+ {
+ radioButton1.Checked = true;
+ }
+ else
+ {
+ radioButton1.Checked = false;
+ }
+ }
+ catch (Exception exp)
+ {
+ PublicMethod.WriteLog(exp);
+ }
+ }
+
+ private void btnOK_Click(object sender, EventArgs e)
+ {
+ if (txtPatCaseNO.Text != "" || txtPatName.Text != "")
+ {
+ DataTable dt = BOperationRecord.GetOpeIdByNoName(txtPatCaseNO.Text.Trim(), txtPatName.Text.Trim());
+ if (dt != null && dt.Rows.Count > 0)
+ {
+ int OpeID = int.Parse(dt.Rows[0]["id"].ToString());
+ dgvYP.Visible = false;
+ dgvtEMPOperationInfos.Rows.Clear();
+ lblName.Text = "";
+ lblInHospitalNo.Text = "";
+ label1.Text = "";
+ label4.Text = "";
+
+ lblName.Text = dt.Rows[0]["PatientName"].ToString();
+ lblInHospitalNo.Text = dt.Rows[0]["MdrecNo"].ToString();
+ if (dt.Rows[0]["OperationBeginTime"].ToString() != "")
+ {
+ label1.Text = dt.Rows[0]["OperationBeginTime"].ToString();
+ }
+ SetChargDetalie(OpeID.ToString());
+
+ SetChargDrugLbl();
+ }
+ }
+ }
+
+ private void LoadSelectDate(DataGridViewRow dr)
+ {
+ int OpeID = int.Parse(dr.Cells["id"].EditedFormattedValue.ToString());
+ dgvYP.Visible = false;
+ dgvtEMPOperationInfos.Rows.Clear();
+ lblName.Text = "";
+ lblInHospitalNo.Text = "";
+ label1.Text = "";
+ label4.Text = "";
+
+ lblName.Text = dr.Cells["DrugName"].EditedFormattedValue.ToString();
+ lblInHospitalNo.Text = dr.Cells["TypeName"].EditedFormattedValue.ToString();
+ label1.Text = dr.Cells["InRoomTime"].EditedFormattedValue.ToString();
+ SetChargDetalie(OpeID.ToString());
+
+ //if (FeeType == "麻醉")
+ //{
+ // OperationRecord _pauoperationRecord = BOperationRecord.SelectSingle(" ParentId=" + OpeID, null, RecursiveType.None, 0);
+ // if (_pauoperationRecord != null)
+ // {
+ // SetChargDetalie(_pauoperationRecord);
+ // }
+ //}
+
+ SetChargDrugLbl();
+ }
+
+ private void toolStripButton10_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+
+ ///
+ /// 表格配置
+ ///
+ ///
+ ///
+ private void tsbSettingDGV_Click(object sender, EventArgs e)
+ {
+ //DataGridViewSettingManager.GetInstance().ShowConfigUI(dgvtEMPOperationInfos);
+ //dgvtEMPOperationInfos.AllowUserToAddRows = false;
+ }
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+ if (dgvtEMPOperationInfos.Rows.Count < 0 || dgvtEMPOperationInfos.Rows.Count < 1)
+ {
+ MessageBox.Show("没有记录,请查询到数据后再导出数据到Excel");
+ return;
+ }
+ //DataGridViewToExcel.DataToExcel(dgvtEMPOperationInfos);
+ }
+
+ private void SetChargDetalie(string _operationRecordId)
+ {
+ try
+ {
+ IList frees = BFeesRecord.Select("FeeType='" + FeeType + "' and OperationRecordId=" + _operationRecordId, null);
+ foreach (var item in frees)
+ {
+ int index = dgvtEMPOperationInfos.Rows.Add();
+ dgvtEMPOperationInfos.Rows[index].Cells["DId"].Value = item.Id;// 编号
+ dgvtEMPOperationInfos.Rows[index].Cells["code"].Value = item.BillCode;
+ dgvtEMPOperationInfos.Rows[index].Cells["type"].Value = item.FeeTypeId;
+ dgvtEMPOperationInfos.Rows[index].Cells["Doctor"].Value = item.BillingWork;
+ dgvtEMPOperationInfos.Rows[index].Cells["name"].Value = item.ChargName;
+ dgvtEMPOperationInfos.Rows[index].Cells["spec"].Value = item.ChargSpec;
+ dgvtEMPOperationInfos.Rows[index].Cells["unit"].Value = item.Unit;
+ dgvtEMPOperationInfos.Rows[index].Cells["qty"].Value = item.FeeNum;
+ dgvtEMPOperationInfos.Rows[index].Cells["price"].Value = item.UnitPrice;
+ dgvtEMPOperationInfos.Rows[index].Cells["pageno"].Value = item.ChargePrice;
+ dgvtEMPOperationInfos.Rows[index].Cells["ordersn"].Value = item.ExecWork;
+ dgvtEMPOperationInfos.Rows[index].Cells["coftime"].Value = item.ExecTime;
+
+ }
+ }
+ catch (Exception ex)
+ {
+ PublicMethod.WriteLog(ex);
+ }
+ }
+ private void SetChargDrugLbl()
+ {
+ int chargCount = 0;
+ double chargValue = 0;
+ foreach (DataGridViewRow item in dgvtEMPOperationInfos.Rows)
+ {
+ if (item.Cells["qty"].EditedFormattedValue.ToString() != "" && item.Cells["price"].EditedFormattedValue.ToString() != "" && item.Cells["name"].EditedFormattedValue.ToString() != "")
+ {
+ double res = 0;
+ if (double.TryParse(item.Cells["qty"].EditedFormattedValue.ToString(), out res))
+ {
+ double price = double.Parse(item.Cells["price"].Value.ToString());
+ chargCount++;
+ double rowprice = res * price;
+ chargValue += rowprice;
+ }
+ }
+ }
+ if (chargCount > 0)
+ {
+ label4.Text = string.Format(" {0}元 项目:{1}条", chargValue, chargCount);
+ }
+ else
+ {
+ label4.Text = "";
+ }
+ }
+
+ public int maxOrder = 0;
+ private void dgvtEMPOperationInfos_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
+ {
+ SolidBrush b = new SolidBrush(dgvtEMPOperationInfos.RowHeadersDefaultCellStyle.ForeColor);
+ e.Graphics.DrawString((maxOrder + e.RowIndex + 1).ToString(System.Globalization.CultureInfo.CurrentUICulture), this.dgvtEMPOperationInfos.DefaultCellStyle.Font, b, e.RowBounds.Location.X + 20, e.RowBounds.Location.Y + 4);
+ }
+ private void rdoZQ_CheckedChanged(object sender, EventArgs e)
+ {
+ if (radioButton1.Checked == true)
+ {
+ FeeType = "麻醉";
+ }
+ else
+ {
+ FeeType = "护士";
+ }
+ }
+
+ private void txtPatCaseNO_KeyDown(object sender, KeyEventArgs e)
+ {
+ if (e.KeyCode == Keys.Enter)
+ {
+ if (dgvYP.Visible == false)
+ {
+ //btnOK_Click(null, null);
+ }
+ else
+ {
+ LoadSelectDate(dgvYP.Rows[0]);
+ txtPatCaseNO.Text = dgvYP.Rows[0].Cells[1].EditedFormattedValue.ToString();
+ dgvYP.Visible = false;
+ }
+ }
+ }
+
+ private void txtPatCaseNO_TextChanged(object sender, EventArgs e)
+ {
+ //显示并定位药品选择列表
+ if (dgvYP.Visible == false)
+ {
+ dgvYP.Visible = true;
+ }
+ //药品名称单元格为空时,隐藏选择药品列表,否则为选择药品列表加载数据
+ if (txtPatCaseNO.Text == "")
+ {
+ dgvYP.Visible = false;
+ }
+ else
+ {
+ string str = txtPatCaseNO.Text.Trim();
+ DataTable dt = BOperationRecord.GetOpesByNo(txtPatCaseNO.Text.Trim());
+ dgvYP.DataSource = dt;
+ }
+ }
+
+ private void txtPatName_TextChanged(object sender, EventArgs e)
+ {
+ //显示并定位药品选择列表
+ if (dgvYP.Visible == false)
+ {
+ dgvYP.Visible = true;
+ }
+ //药品名称单元格为空时,隐藏选择药品列表,否则为选择药品列表加载数据
+ if (txtPatName.Text == "")
+ {
+ dgvYP.Visible = false;
+ }
+ else
+ {
+ string str = txtPatName.Text.Trim();
+ DataTable dt = BOperationRecord.GetOpesByName(txtPatName.Text.Trim());
+ dgvYP.DataSource = dt;
+ }
+ }
+
+ ///
+ /// 药品名称单元格按键事件(判断输入上下箭头并处理)
+ ///
+ ///
+ ///
+ void dgvTextYP_PreviewKeyDownEvent(object sender, PreviewKeyDownEventArgs e)
+ {
+ //药品名称单元格为空时,返回
+ //显示并定位选择药品列表
+ if (dgvYP.Visible == false)
+ {
+ dgvYP.Visible = true;
+ }
+ //判断按下上下键时,选择药品列表获得焦点并定位光标
+ if (e.KeyCode == Keys.Up)
+ {
+ dgvYP.Focus();
+ dgvYP.Rows[dgvYP.Rows.Count - 1].Selected = true;
+ dgvYP.CurrentCell = dgvYP.Rows[dgvYP.Rows.Count - 1].Cells[2];
+ }
+ if (e.KeyCode == Keys.Down)
+ {
+ if (dgvYP.Rows.Count > 0)
+ {
+ dgvYP.Focus();
+ dgvYP.Rows[1].Selected = true;
+ dgvYP.CurrentCell = dgvYP.Rows[1].Cells[2];
+ }
+ }
+ }
+
+ //定位当前行索引
+ int index = 0;
+
+ ///
+ /// 向药品表添加数据
+ ///
+ ///
+ private void SetYPContent(DataGridViewCellEventArgs e)
+ {
+ if (e != null)
+ {
+ index = e.RowIndex;
+ }
+ if (dgvYP.Rows[index].Cells["DrugName"].EditedFormattedValue.ToString() != "")
+ {
+ this.txtPatName.TextChanged -= new System.EventHandler(this.txtPatName_TextChanged);
+ this.txtPatName.PreviewKeyDown -= new System.Windows.Forms.PreviewKeyDownEventHandler(this.dgvTextYP_PreviewKeyDownEvent);
+ this.txtPatCaseNO.TextChanged -= new System.EventHandler(this.txtPatCaseNO_TextChanged);
+ this.txtPatCaseNO.PreviewKeyDown -= new System.Windows.Forms.PreviewKeyDownEventHandler(this.dgvTextYP_PreviewKeyDownEvent);
+
+ LoadSelectDate(dgvYP.Rows[index]);
+ txtPatCaseNO.Text = dgvYP.Rows[index].Cells[1].EditedFormattedValue.ToString();
+ dgvYP.Visible = false;
+
+ this.txtPatName.TextChanged += new System.EventHandler(this.txtPatName_TextChanged);
+ this.txtPatName.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.dgvTextYP_PreviewKeyDownEvent);
+ this.txtPatCaseNO.TextChanged += new System.EventHandler(this.txtPatCaseNO_TextChanged);
+ this.txtPatCaseNO.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.dgvTextYP_PreviewKeyDownEvent);
+ }
+ }
+ ///
+ /// 鼠标点击选择药品列表时,向使用药品表添加数据
+ ///
+ ///
+ ///
+ private void dgvYP_CellClick(object sender, DataGridViewCellEventArgs e)
+ {
+ if (e.RowIndex >= 0)
+ {
+ SetYPContent(e);
+ }
+ }
+ ///
+ /// 选择药品列表上点击上下键定位并移动光标
+ ///
+ ///
+ ///
+ private void dgvYP_KeyDown(object sender, KeyEventArgs e)
+ {
+ if (e.KeyCode == Keys.Down)
+ {
+ if (dgvYP.CurrentRow.Index == dgvYP.Rows.Count - 1)
+ {
+ e.Handled = true;
+ dgvYP.CurrentCell = dgvYP.Rows[0].Cells[3];
+ dgvYP.Rows[0].Selected = true;
+ }
+ }
+ if (e.KeyCode == Keys.Up)
+ {
+ if (dgvYP.CurrentRow.Index == 0)
+ {
+ e.Handled = true;
+ dgvYP.CurrentCell = dgvYP.Rows[dgvYP.Rows.Count - 1].Cells[3];
+ dgvYP.Rows[dgvYP.Rows.Count - 1].Selected = true;
+ }
+ }
+ }
+ ///
+ /// 选择药品列表点击回车键向使用药品列表添加数据
+ ///
+ ///
+ ///
+ private void dgvYP_KeyPress(object sender, KeyPressEventArgs e)
+ {
+ if (e.KeyChar.ToString() == "\r")
+ {
+ if (dgvYP.SelectedRows.Count > 0)
+ {
+ SetYPContent(null);
+ }
+ }
+ }
+ ///
+ /// 选择药品列表点击回车时先定位当前行的索引
+ ///
+ ///
+ ///
+ private void dgvYP_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
+ {
+ if (e.KeyCode == Keys.Enter)
+ {
+ index = dgvYP.CurrentRow.Index;
+ }
+ }
+
+ private void txtPatCaseNO_Click(object sender, EventArgs e)
+ {
+ txtPatCaseNO.Text = "";
+ txtPatName.Text = "";
+ }
+ }
+}
diff --git a/AIMS/OperationAfter/frmOperationCharg.designer.cs b/AIMS/OperationAfter/frmOperationCharg.designer.cs
new file mode 100644
index 0000000..1b852a5
--- /dev/null
+++ b/AIMS/OperationAfter/frmOperationCharg.designer.cs
@@ -0,0 +1,1059 @@
+namespace AIMS.OperationAfter.UI
+{
+ partial class frmOperationCharg
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.button1 = new System.Windows.Forms.Button();
+ this.tsbSettingDGV = new System.Windows.Forms.Button();
+ this.toolStripButton10 = new System.Windows.Forms.Button();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.lblInHospitalNo = new System.Windows.Forms.Label();
+ this.lblName = new System.Windows.Forms.Label();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.panel3 = new System.Windows.Forms.Panel();
+ this.buttonX1 = new DevComponents.DotNetBar.ButtonX();
+ this.txtPatName = new System.Windows.Forms.TextBox();
+ this.label52 = new System.Windows.Forms.Label();
+ this.label53 = new System.Windows.Forms.Label();
+ this.txtPatCaseNO = new System.Windows.Forms.TextBox();
+ this.dgvtEMPOperationInfos = new System.Windows.Forms.DataGridView();
+ this.dgvYP = new System.Windows.Forms.DataGridView();
+ this.id = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.TypeName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.DrugName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dept = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.deic = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.bed = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Inroomtime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.state = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn16 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn17 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn18 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn19 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn20 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn21 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn22 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn23 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn24 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn25 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn26 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn27 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn28 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn29 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn30 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn31 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.DId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.code = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.type = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.doctor = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.name = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.spec = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.unit = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.qty = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.price = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.pageno = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.ordersn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.coftime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.hcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.hisOrdersn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Hiscount = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.hisState = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.drugsstate = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.radioButton1 = new System.Windows.Forms.RadioButton();
+ this.radioButton2 = new System.Windows.Forms.RadioButton();
+ this.panel1.SuspendLayout();
+ this.panel2.SuspendLayout();
+ this.panel3.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvtEMPOperationInfos)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvYP)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panel1
+ //
+ this.panel1.BackColor = System.Drawing.Color.Transparent;
+ this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.panel1.Controls.Add(this.button1);
+ this.panel1.Controls.Add(this.tsbSettingDGV);
+ this.panel1.Controls.Add(this.toolStripButton10);
+ this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.panel1.Location = new System.Drawing.Point(0, 0);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(1428, 45);
+ this.panel1.TabIndex = 0;
+ //
+ // button1
+ //
+ this.button1.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.button1.Dock = System.Windows.Forms.DockStyle.Left;
+ this.button1.FlatAppearance.BorderSize = 0;
+ this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.button1.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.button1.Location = new System.Drawing.Point(0, 0);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(100, 45);
+ this.button1.TabIndex = 16;
+ this.button1.Text = "导出Excel";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.button1_Click);
+ //
+ // tsbSettingDGV
+ //
+ this.tsbSettingDGV.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tsbSettingDGV.BackColor = System.Drawing.Color.Transparent;
+ this.tsbSettingDGV.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.tsbSettingDGV.FlatAppearance.BorderSize = 0;
+ this.tsbSettingDGV.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.tsbSettingDGV.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.tsbSettingDGV.Location = new System.Drawing.Point(1228, 8);
+ this.tsbSettingDGV.Name = "tsbSettingDGV";
+ this.tsbSettingDGV.Size = new System.Drawing.Size(85, 30);
+ this.tsbSettingDGV.TabIndex = 4;
+ this.tsbSettingDGV.Text = "表格设置";
+ this.tsbSettingDGV.UseVisualStyleBackColor = false;
+ this.tsbSettingDGV.Visible = false;
+ this.tsbSettingDGV.Click += new System.EventHandler(this.tsbSettingDGV_Click);
+ //
+ // toolStripButton10
+ //
+ this.toolStripButton10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.toolStripButton10.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.toolStripButton10.FlatAppearance.BorderSize = 0;
+ this.toolStripButton10.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.toolStripButton10.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.toolStripButton10.Location = new System.Drawing.Point(1335, 8);
+ this.toolStripButton10.Name = "toolStripButton10";
+ this.toolStripButton10.Size = new System.Drawing.Size(90, 30);
+ this.toolStripButton10.TabIndex = 0;
+ this.toolStripButton10.Text = "关闭";
+ this.toolStripButton10.UseVisualStyleBackColor = true;
+ this.toolStripButton10.Click += new System.EventHandler(this.toolStripButton10_Click);
+ //
+ // panel2
+ //
+ this.panel2.BackColor = System.Drawing.Color.WhiteSmoke;
+ this.panel2.Controls.Add(this.label4);
+ this.panel2.Controls.Add(this.label1);
+ this.panel2.Controls.Add(this.lblInHospitalNo);
+ this.panel2.Controls.Add(this.lblName);
+ this.panel2.Controls.Add(this.label5);
+ this.panel2.Controls.Add(this.label3);
+ this.panel2.Controls.Add(this.label8);
+ this.panel2.Controls.Add(this.label7);
+ this.panel2.Controls.Add(this.panel3);
+ this.panel2.Controls.Add(this.buttonX1);
+ this.panel2.Controls.Add(this.txtPatName);
+ this.panel2.Controls.Add(this.label52);
+ this.panel2.Controls.Add(this.label53);
+ this.panel2.Controls.Add(this.txtPatCaseNO);
+ this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
+ this.panel2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.panel2.Location = new System.Drawing.Point(0, 45);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(1428, 65);
+ this.panel2.TabIndex = 387;
+ //
+ // label4
+ //
+ this.label4.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.label4.AutoSize = true;
+ this.label4.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label4.ForeColor = System.Drawing.Color.Blue;
+ this.label4.Location = new System.Drawing.Point(1143, 25);
+ this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(0, 19);
+ this.label4.TabIndex = 475;
+ //
+ // label1
+ //
+ this.label1.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.label1.AutoSize = true;
+ this.label1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label1.ForeColor = System.Drawing.Color.Blue;
+ this.label1.Location = new System.Drawing.Point(964, 25);
+ this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(0, 19);
+ this.label1.TabIndex = 475;
+ //
+ // lblInHospitalNo
+ //
+ this.lblInHospitalNo.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.lblInHospitalNo.AutoSize = true;
+ this.lblInHospitalNo.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lblInHospitalNo.ForeColor = System.Drawing.Color.Blue;
+ this.lblInHospitalNo.Location = new System.Drawing.Point(814, 25);
+ this.lblInHospitalNo.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.lblInHospitalNo.Name = "lblInHospitalNo";
+ this.lblInHospitalNo.Size = new System.Drawing.Size(0, 19);
+ this.lblInHospitalNo.TabIndex = 477;
+ //
+ // lblName
+ //
+ this.lblName.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.lblName.AutoSize = true;
+ this.lblName.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lblName.ForeColor = System.Drawing.Color.Blue;
+ this.lblName.Location = new System.Drawing.Point(710, 25);
+ this.lblName.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.lblName.Name = "lblName";
+ this.lblName.Size = new System.Drawing.Size(0, 19);
+ this.lblName.TabIndex = 479;
+ //
+ // label5
+ //
+ this.label5.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.label5.AutoSize = true;
+ this.label5.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label5.Location = new System.Drawing.Point(1103, 25);
+ this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 19);
+ this.label5.TabIndex = 474;
+ this.label5.Text = "费用:";
+ //
+ // label3
+ //
+ this.label3.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.label3.AutoSize = true;
+ this.label3.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label3.Location = new System.Drawing.Point(896, 25);
+ this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(69, 19);
+ this.label3.TabIndex = 474;
+ this.label3.Text = "手术日期:";
+ //
+ // label8
+ //
+ this.label8.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.label8.AutoSize = true;
+ this.label8.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label8.Location = new System.Drawing.Point(763, 25);
+ this.label8.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(55, 19);
+ this.label8.TabIndex = 476;
+ this.label8.Text = "住院号:";
+ //
+ // label7
+ //
+ this.label7.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.label7.AutoSize = true;
+ this.label7.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label7.Location = new System.Drawing.Point(671, 25);
+ this.label7.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(41, 19);
+ this.label7.TabIndex = 478;
+ this.label7.Text = "患者:";
+ //
+ // panel3
+ //
+ this.panel3.BackColor = System.Drawing.Color.White;
+ this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel3.Controls.Add(this.radioButton2);
+ this.panel3.Controls.Add(this.radioButton1);
+ this.panel3.Location = new System.Drawing.Point(11, 15);
+ this.panel3.Name = "panel3";
+ this.panel3.Size = new System.Drawing.Size(181, 33);
+ this.panel3.TabIndex = 473;
+ //
+ // buttonX1
+ //
+ this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
+ this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
+ this.buttonX1.Font = new System.Drawing.Font("微软雅黑", 11.5F);
+ this.buttonX1.Location = new System.Drawing.Point(543, 19);
+ this.buttonX1.Name = "buttonX1";
+ this.buttonX1.Size = new System.Drawing.Size(90, 29);
+ this.buttonX1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.buttonX1.TabIndex = 467;
+ this.buttonX1.Text = "查询";
+ this.buttonX1.Click += new System.EventHandler(this.btnOK_Click);
+ //
+ // txtPatName
+ //
+ this.txtPatName.Location = new System.Drawing.Point(441, 19);
+ this.txtPatName.Name = "txtPatName";
+ this.txtPatName.Size = new System.Drawing.Size(86, 26);
+ this.txtPatName.TabIndex = 48;
+ this.txtPatName.Click += new System.EventHandler(this.txtPatCaseNO_Click);
+ this.txtPatName.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtPatCaseNO_KeyDown);
+ //
+ // label52
+ //
+ this.label52.AutoSize = true;
+ this.label52.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label52.Location = new System.Drawing.Point(202, 23);
+ this.label52.Name = "label52";
+ this.label52.Size = new System.Drawing.Size(54, 20);
+ this.label52.TabIndex = 45;
+ this.label52.Text = "住院号:";
+ //
+ // label53
+ //
+ this.label53.AutoSize = true;
+ this.label53.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label53.Location = new System.Drawing.Point(368, 23);
+ this.label53.Name = "label53";
+ this.label53.Size = new System.Drawing.Size(68, 20);
+ this.label53.TabIndex = 47;
+ this.label53.Text = "患者姓名:";
+ //
+ // txtPatCaseNO
+ //
+ this.txtPatCaseNO.Location = new System.Drawing.Point(261, 19);
+ this.txtPatCaseNO.Name = "txtPatCaseNO";
+ this.txtPatCaseNO.Size = new System.Drawing.Size(102, 26);
+ this.txtPatCaseNO.TabIndex = 46;
+ this.txtPatCaseNO.Click += new System.EventHandler(this.txtPatCaseNO_Click);
+ this.txtPatCaseNO.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtPatCaseNO_KeyDown);
+ //
+ // dgvtEMPOperationInfos
+ //
+ this.dgvtEMPOperationInfos.AllowUserToAddRows = false;
+ this.dgvtEMPOperationInfos.AllowUserToDeleteRows = false;
+ this.dgvtEMPOperationInfos.AllowUserToResizeColumns = false;
+ this.dgvtEMPOperationInfos.AllowUserToResizeRows = false;
+ this.dgvtEMPOperationInfos.BackgroundColor = System.Drawing.Color.White;
+ this.dgvtEMPOperationInfos.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ this.dgvtEMPOperationInfos.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvtEMPOperationInfos.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.DId,
+ this.code,
+ this.type,
+ this.doctor,
+ this.name,
+ this.spec,
+ this.unit,
+ this.qty,
+ this.price,
+ this.pageno,
+ this.ordersn,
+ this.coftime,
+ this.hcode,
+ this.hisOrdersn,
+ this.Hiscount,
+ this.hisState,
+ this.drugsstate});
+ dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle15.Font = new System.Drawing.Font("微软雅黑", 10.5F);
+ dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.dgvtEMPOperationInfos.DefaultCellStyle = dataGridViewCellStyle15;
+ this.dgvtEMPOperationInfos.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.dgvtEMPOperationInfos.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
+ this.dgvtEMPOperationInfos.GridColor = System.Drawing.Color.Silver;
+ this.dgvtEMPOperationInfos.Location = new System.Drawing.Point(0, 110);
+ this.dgvtEMPOperationInfos.MultiSelect = false;
+ this.dgvtEMPOperationInfos.Name = "dgvtEMPOperationInfos";
+ this.dgvtEMPOperationInfos.ReadOnly = true;
+ this.dgvtEMPOperationInfos.RowTemplate.Height = 23;
+ this.dgvtEMPOperationInfos.ShowCellErrors = false;
+ this.dgvtEMPOperationInfos.ShowCellToolTips = false;
+ this.dgvtEMPOperationInfos.Size = new System.Drawing.Size(1428, 431);
+ this.dgvtEMPOperationInfos.TabIndex = 389;
+ this.dgvtEMPOperationInfos.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgvtEMPOperationInfos_RowPostPaint);
+ //
+ // dgvYP
+ //
+ this.dgvYP.AllowUserToAddRows = false;
+ this.dgvYP.AllowUserToDeleteRows = false;
+ this.dgvYP.BackgroundColor = System.Drawing.Color.White;
+ dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle16.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle16.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle16.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle16.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle16.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.dgvYP.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle16;
+ this.dgvYP.ColumnHeadersHeight = 30;
+ this.dgvYP.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.id,
+ this.TypeName,
+ this.DrugName,
+ this.dept,
+ this.deic,
+ this.bed,
+ this.Inroomtime,
+ this.state});
+ this.dgvYP.EnableHeadersVisualStyles = false;
+ this.dgvYP.Location = new System.Drawing.Point(261, 92);
+ this.dgvYP.Name = "dgvYP";
+ this.dgvYP.ReadOnly = true;
+ this.dgvYP.RowHeadersVisible = false;
+ this.dgvYP.RowTemplate.Height = 30;
+ this.dgvYP.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dgvYP.Size = new System.Drawing.Size(871, 210);
+ this.dgvYP.TabIndex = 390;
+ this.dgvYP.Visible = false;
+ this.dgvYP.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvYP_CellClick);
+ this.dgvYP.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvYP_KeyDown);
+ this.dgvYP.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.dgvYP_KeyPress);
+ this.dgvYP.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.dgvYP_PreviewKeyDown);
+ //
+ // id
+ //
+ this.id.DataPropertyName = "RecoredId";
+ this.id.HeaderText = "id";
+ this.id.Name = "id";
+ this.id.ReadOnly = true;
+ this.id.Visible = false;
+ //
+ // TypeName
+ //
+ this.TypeName.DataPropertyName = "MdrecNo";
+ this.TypeName.HeaderText = "住院号";
+ this.TypeName.Name = "TypeName";
+ this.TypeName.ReadOnly = true;
+ //
+ // DrugName
+ //
+ this.DrugName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.DrugName.DataPropertyName = "PatientName";
+ this.DrugName.HeaderText = "患者名称";
+ this.DrugName.Name = "DrugName";
+ this.DrugName.ReadOnly = true;
+ //
+ // dept
+ //
+ this.dept.DataPropertyName = "PatientDept";
+ this.dept.HeaderText = "科室";
+ this.dept.Name = "dept";
+ this.dept.ReadOnly = true;
+ //
+ // deic
+ //
+ this.deic.DataPropertyName = "EndemicArea";
+ this.deic.HeaderText = "病区";
+ this.deic.Name = "deic";
+ this.deic.ReadOnly = true;
+ this.deic.Visible = false;
+ //
+ // bed
+ //
+ this.bed.DataPropertyName = "SickBed";
+ this.bed.HeaderText = "床号";
+ this.bed.Name = "bed";
+ this.bed.ReadOnly = true;
+ //
+ // Inroomtime
+ //
+ this.Inroomtime.DataPropertyName = "InRoomTime";
+ this.Inroomtime.HeaderText = "手术日期";
+ this.Inroomtime.Name = "Inroomtime";
+ this.Inroomtime.ReadOnly = true;
+ //
+ // state
+ //
+ this.state.DataPropertyName = "State";
+ this.state.HeaderText = "状态";
+ this.state.Name = "state";
+ this.state.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn1
+ //
+ this.dataGridViewTextBoxColumn1.DataPropertyName = "OperationRecordId";
+ this.dataGridViewTextBoxColumn1.HeaderText = "手术ID";
+ this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
+ this.dataGridViewTextBoxColumn1.ReadOnly = true;
+ this.dataGridViewTextBoxColumn1.Visible = false;
+ this.dataGridViewTextBoxColumn1.Width = 60;
+ //
+ // dataGridViewTextBoxColumn2
+ //
+ this.dataGridViewTextBoxColumn2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn2.DataPropertyName = "OperationApplyId";
+ this.dataGridViewTextBoxColumn2.HeaderText = "申请ID";
+ this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
+ this.dataGridViewTextBoxColumn2.ReadOnly = true;
+ this.dataGridViewTextBoxColumn2.Visible = false;
+ this.dataGridViewTextBoxColumn2.Width = 75;
+ //
+ // dataGridViewTextBoxColumn3
+ //
+ this.dataGridViewTextBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.dataGridViewTextBoxColumn3.DataPropertyName = "PatientId";
+ this.dataGridViewTextBoxColumn3.HeaderText = "病人ID";
+ this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
+ this.dataGridViewTextBoxColumn3.ReadOnly = true;
+ this.dataGridViewTextBoxColumn3.Visible = false;
+ //
+ // dataGridViewTextBoxColumn4
+ //
+ this.dataGridViewTextBoxColumn4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn4.HeaderText = "序号";
+ this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
+ this.dataGridViewTextBoxColumn4.ReadOnly = true;
+ this.dataGridViewTextBoxColumn4.Visible = false;
+ this.dataGridViewTextBoxColumn4.Width = 150;
+ //
+ // dataGridViewTextBoxColumn5
+ //
+ this.dataGridViewTextBoxColumn5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn5.DataPropertyName = "OperationPriority";
+ this.dataGridViewTextBoxColumn5.FillWeight = 137.1497F;
+ this.dataGridViewTextBoxColumn5.HeaderText = "手术分类";
+ this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
+ this.dataGridViewTextBoxColumn5.ReadOnly = true;
+ this.dataGridViewTextBoxColumn5.Visible = false;
+ this.dataGridViewTextBoxColumn5.Width = 112;
+ //
+ // dataGridViewTextBoxColumn6
+ //
+ this.dataGridViewTextBoxColumn6.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn6.DataPropertyName = "DepartmentName";
+ this.dataGridViewTextBoxColumn6.FillWeight = 80.11563F;
+ this.dataGridViewTextBoxColumn6.HeaderText = "科室";
+ this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
+ this.dataGridViewTextBoxColumn6.ReadOnly = true;
+ this.dataGridViewTextBoxColumn6.Visible = false;
+ this.dataGridViewTextBoxColumn6.Width = 66;
+ //
+ // dataGridViewTextBoxColumn7
+ //
+ this.dataGridViewTextBoxColumn7.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn7.DataPropertyName = "SZOperationRoom";
+ this.dataGridViewTextBoxColumn7.FillWeight = 65.36763F;
+ this.dataGridViewTextBoxColumn7.HeaderText = "手术间";
+ this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
+ this.dataGridViewTextBoxColumn7.ReadOnly = true;
+ this.dataGridViewTextBoxColumn7.Visible = false;
+ this.dataGridViewTextBoxColumn7.Width = 82;
+ //
+ // dataGridViewTextBoxColumn8
+ //
+ this.dataGridViewTextBoxColumn8.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn8.DataPropertyName = "InHospitalNo";
+ dataGridViewCellStyle17.BackColor = System.Drawing.Color.Blue;
+ this.dataGridViewTextBoxColumn8.DefaultCellStyle = dataGridViewCellStyle17;
+ this.dataGridViewTextBoxColumn8.FillWeight = 93.9558F;
+ this.dataGridViewTextBoxColumn8.HeaderText = "住院号";
+ this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
+ this.dataGridViewTextBoxColumn8.ReadOnly = true;
+ this.dataGridViewTextBoxColumn8.Width = 77;
+ //
+ // dataGridViewTextBoxColumn9
+ //
+ this.dataGridViewTextBoxColumn9.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn9.DataPropertyName = "MedicalHistoryNo";
+ dataGridViewCellStyle18.BackColor = System.Drawing.Color.Red;
+ this.dataGridViewTextBoxColumn9.DefaultCellStyle = dataGridViewCellStyle18;
+ this.dataGridViewTextBoxColumn9.FillWeight = 92.42704F;
+ this.dataGridViewTextBoxColumn9.HeaderText = "病历号";
+ this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
+ this.dataGridViewTextBoxColumn9.ReadOnly = true;
+ this.dataGridViewTextBoxColumn9.Width = 76;
+ //
+ // dataGridViewTextBoxColumn10
+ //
+ this.dataGridViewTextBoxColumn10.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn10.DataPropertyName = "PatientName";
+ this.dataGridViewTextBoxColumn10.FillWeight = 73.51968F;
+ this.dataGridViewTextBoxColumn10.HeaderText = "姓名";
+ this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
+ this.dataGridViewTextBoxColumn10.ReadOnly = true;
+ this.dataGridViewTextBoxColumn10.Visible = false;
+ this.dataGridViewTextBoxColumn10.Width = 60;
+ //
+ // dataGridViewTextBoxColumn11
+ //
+ this.dataGridViewTextBoxColumn11.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn11.DataPropertyName = "Sex";
+ this.dataGridViewTextBoxColumn11.FillWeight = 73.70361F;
+ this.dataGridViewTextBoxColumn11.HeaderText = "性别";
+ this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11";
+ this.dataGridViewTextBoxColumn11.ReadOnly = true;
+ this.dataGridViewTextBoxColumn11.Visible = false;
+ this.dataGridViewTextBoxColumn11.Width = 61;
+ //
+ // dataGridViewTextBoxColumn12
+ //
+ this.dataGridViewTextBoxColumn12.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn12.DataPropertyName = "Bed";
+ this.dataGridViewTextBoxColumn12.FillWeight = 73.20498F;
+ this.dataGridViewTextBoxColumn12.HeaderText = "床号";
+ this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12";
+ this.dataGridViewTextBoxColumn12.ReadOnly = true;
+ this.dataGridViewTextBoxColumn12.Visible = false;
+ this.dataGridViewTextBoxColumn12.Width = 60;
+ //
+ // dataGridViewTextBoxColumn13
+ //
+ this.dataGridViewTextBoxColumn13.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn13.DataPropertyName = "SZDiagnose";
+ this.dataGridViewTextBoxColumn13.FillWeight = 134.5945F;
+ this.dataGridViewTextBoxColumn13.HeaderText = "术后诊断";
+ this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13";
+ this.dataGridViewTextBoxColumn13.ReadOnly = true;
+ this.dataGridViewTextBoxColumn13.Visible = false;
+ this.dataGridViewTextBoxColumn13.Width = 110;
+ //
+ // dataGridViewTextBoxColumn14
+ //
+ this.dataGridViewTextBoxColumn14.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn14.DataPropertyName = "SZOperation";
+ this.dataGridViewTextBoxColumn14.FillWeight = 131.7017F;
+ this.dataGridViewTextBoxColumn14.HeaderText = "实施手术";
+ this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14";
+ this.dataGridViewTextBoxColumn14.ReadOnly = true;
+ this.dataGridViewTextBoxColumn14.Visible = false;
+ this.dataGridViewTextBoxColumn14.Width = 108;
+ //
+ // dataGridViewTextBoxColumn15
+ //
+ this.dataGridViewTextBoxColumn15.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn15.DataPropertyName = "SZAnaesthesiaMethod";
+ this.dataGridViewTextBoxColumn15.FillWeight = 128.4264F;
+ this.dataGridViewTextBoxColumn15.HeaderText = "麻醉方式";
+ this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15";
+ this.dataGridViewTextBoxColumn15.ReadOnly = true;
+ this.dataGridViewTextBoxColumn15.Width = 106;
+ //
+ // dataGridViewTextBoxColumn16
+ //
+ this.dataGridViewTextBoxColumn16.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn16.DataPropertyName = "SZOperationDoctor";
+ this.dataGridViewTextBoxColumn16.FillWeight = 81.201F;
+ this.dataGridViewTextBoxColumn16.HeaderText = "术者";
+ this.dataGridViewTextBoxColumn16.Name = "dataGridViewTextBoxColumn16";
+ this.dataGridViewTextBoxColumn16.ReadOnly = true;
+ this.dataGridViewTextBoxColumn16.Visible = false;
+ this.dataGridViewTextBoxColumn16.Width = 67;
+ //
+ // dataGridViewTextBoxColumn17
+ //
+ this.dataGridViewTextBoxColumn17.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn17.DataPropertyName = "SZAnesthesiaDoctor";
+ this.dataGridViewTextBoxColumn17.HeaderText = "麻醉医生";
+ this.dataGridViewTextBoxColumn17.Name = "dataGridViewTextBoxColumn17";
+ this.dataGridViewTextBoxColumn17.ReadOnly = true;
+ this.dataGridViewTextBoxColumn17.Visible = false;
+ this.dataGridViewTextBoxColumn17.Width = 82;
+ //
+ // dataGridViewTextBoxColumn18
+ //
+ this.dataGridViewTextBoxColumn18.DataPropertyName = "AnesthesiaEndTime";
+ this.dataGridViewTextBoxColumn18.HeaderText = "麻醉结束";
+ this.dataGridViewTextBoxColumn18.Name = "dataGridViewTextBoxColumn18";
+ this.dataGridViewTextBoxColumn18.ReadOnly = true;
+ this.dataGridViewTextBoxColumn18.Visible = false;
+ this.dataGridViewTextBoxColumn18.Width = 96;
+ //
+ // dataGridViewTextBoxColumn19
+ //
+ this.dataGridViewTextBoxColumn19.DataPropertyName = "OutRoomTime";
+ this.dataGridViewTextBoxColumn19.HeaderText = "出室时间";
+ this.dataGridViewTextBoxColumn19.Name = "dataGridViewTextBoxColumn19";
+ this.dataGridViewTextBoxColumn19.ReadOnly = true;
+ this.dataGridViewTextBoxColumn19.Visible = false;
+ this.dataGridViewTextBoxColumn19.Width = 96;
+ //
+ // dataGridViewTextBoxColumn20
+ //
+ this.dataGridViewTextBoxColumn20.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.dataGridViewTextBoxColumn20.DataPropertyName = "chagestate";
+ this.dataGridViewTextBoxColumn20.FillWeight = 65.36763F;
+ this.dataGridViewTextBoxColumn20.HeaderText = "收费状态";
+ this.dataGridViewTextBoxColumn20.Name = "dataGridViewTextBoxColumn20";
+ this.dataGridViewTextBoxColumn20.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn21
+ //
+ this.dataGridViewTextBoxColumn21.DataPropertyName = "DepartmentName";
+ this.dataGridViewTextBoxColumn21.HeaderText = "科室";
+ this.dataGridViewTextBoxColumn21.Name = "dataGridViewTextBoxColumn21";
+ this.dataGridViewTextBoxColumn21.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn22
+ //
+ this.dataGridViewTextBoxColumn22.DataPropertyName = "EndemicArea";
+ this.dataGridViewTextBoxColumn22.HeaderText = "病区";
+ this.dataGridViewTextBoxColumn22.Name = "dataGridViewTextBoxColumn22";
+ this.dataGridViewTextBoxColumn22.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn23
+ //
+ this.dataGridViewTextBoxColumn23.DataPropertyName = "Bed";
+ this.dataGridViewTextBoxColumn23.HeaderText = "床号";
+ this.dataGridViewTextBoxColumn23.Name = "dataGridViewTextBoxColumn23";
+ this.dataGridViewTextBoxColumn23.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn24
+ //
+ this.dataGridViewTextBoxColumn24.DataPropertyName = "InRoomTime";
+ this.dataGridViewTextBoxColumn24.HeaderText = "手术日期";
+ this.dataGridViewTextBoxColumn24.Name = "dataGridViewTextBoxColumn24";
+ this.dataGridViewTextBoxColumn24.ReadOnly = true;
+ //
+ // dataGridViewTextBoxColumn25
+ //
+ this.dataGridViewTextBoxColumn25.DataPropertyName = "CATALOGUEName";
+ this.dataGridViewTextBoxColumn25.HeaderText = "单位";
+ this.dataGridViewTextBoxColumn25.Name = "dataGridViewTextBoxColumn25";
+ this.dataGridViewTextBoxColumn25.ReadOnly = true;
+ this.dataGridViewTextBoxColumn25.Width = 60;
+ //
+ // dataGridViewTextBoxColumn26
+ //
+ this.dataGridViewTextBoxColumn26.DataPropertyName = "DrugPrice";
+ this.dataGridViewTextBoxColumn26.HeaderText = "单价";
+ this.dataGridViewTextBoxColumn26.Name = "dataGridViewTextBoxColumn26";
+ this.dataGridViewTextBoxColumn26.ReadOnly = true;
+ this.dataGridViewTextBoxColumn26.Width = 70;
+ //
+ // dataGridViewTextBoxColumn27
+ //
+ this.dataGridViewTextBoxColumn27.HeaderText = "单号";
+ this.dataGridViewTextBoxColumn27.Name = "dataGridViewTextBoxColumn27";
+ this.dataGridViewTextBoxColumn27.Width = 80;
+ //
+ // dataGridViewTextBoxColumn28
+ //
+ this.dataGridViewTextBoxColumn28.HeaderText = "医嘱号";
+ this.dataGridViewTextBoxColumn28.Name = "dataGridViewTextBoxColumn28";
+ //
+ // dataGridViewTextBoxColumn29
+ //
+ this.dataGridViewTextBoxColumn29.HeaderText = "His医嘱号";
+ this.dataGridViewTextBoxColumn29.Name = "dataGridViewTextBoxColumn29";
+ //
+ // dataGridViewTextBoxColumn30
+ //
+ this.dataGridViewTextBoxColumn30.HeaderText = "His数量";
+ this.dataGridViewTextBoxColumn30.Name = "dataGridViewTextBoxColumn30";
+ //
+ // dataGridViewTextBoxColumn31
+ //
+ this.dataGridViewTextBoxColumn31.HeaderText = "收费状态";
+ this.dataGridViewTextBoxColumn31.Name = "dataGridViewTextBoxColumn31";
+ //
+ // DId
+ //
+ this.DId.HeaderText = "id";
+ this.DId.Name = "DId";
+ this.DId.ReadOnly = true;
+ this.DId.Visible = false;
+ this.DId.Width = 60;
+ //
+ // code
+ //
+ this.code.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.code.HeaderText = "编码";
+ this.code.Name = "code";
+ this.code.ReadOnly = true;
+ this.code.Visible = false;
+ this.code.Width = 75;
+ //
+ // type
+ //
+ this.type.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.type.HeaderText = "分类";
+ this.type.Name = "type";
+ this.type.ReadOnly = true;
+ this.type.Width = 80;
+ //
+ // doctor
+ //
+ this.doctor.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.doctor.HeaderText = "医生";
+ this.doctor.Name = "doctor";
+ this.doctor.ReadOnly = true;
+ this.doctor.Width = 80;
+ //
+ // name
+ //
+ this.name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.name.DataPropertyName = "DrugName";
+ this.name.HeaderText = "项目名称";
+ this.name.Name = "name";
+ this.name.ReadOnly = true;
+ //
+ // spec
+ //
+ this.spec.HeaderText = "规格";
+ this.spec.Name = "spec";
+ this.spec.ReadOnly = true;
+ this.spec.Width = 150;
+ //
+ // unit
+ //
+ this.unit.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.unit.HeaderText = "单位";
+ this.unit.Name = "unit";
+ this.unit.ReadOnly = true;
+ this.unit.Visible = false;
+ this.unit.Width = 40;
+ //
+ // qty
+ //
+ this.qty.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ dataGridViewCellStyle13.ForeColor = System.Drawing.Color.Blue;
+ this.qty.DefaultCellStyle = dataGridViewCellStyle13;
+ this.qty.HeaderText = "数量";
+ this.qty.Name = "qty";
+ this.qty.ReadOnly = true;
+ this.qty.Width = 40;
+ //
+ // price
+ //
+ this.price.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ dataGridViewCellStyle14.ForeColor = System.Drawing.Color.Red;
+ this.price.DefaultCellStyle = dataGridViewCellStyle14;
+ this.price.HeaderText = "单价";
+ this.price.Name = "price";
+ this.price.ReadOnly = true;
+ this.price.Width = 70;
+ //
+ // pageno
+ //
+ this.pageno.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.pageno.HeaderText = "总价";
+ this.pageno.Name = "pageno";
+ this.pageno.ReadOnly = true;
+ this.pageno.Width = 80;
+ //
+ // ordersn
+ //
+ this.ordersn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.ordersn.HeaderText = "确认人";
+ this.ordersn.Name = "ordersn";
+ this.ordersn.ReadOnly = true;
+ this.ordersn.Width = 80;
+ //
+ // coftime
+ //
+ this.coftime.HeaderText = "确认时间";
+ this.coftime.Name = "coftime";
+ this.coftime.ReadOnly = true;
+ //
+ // hcode
+ //
+ this.hcode.HeaderText = "拼音码";
+ this.hcode.Name = "hcode";
+ this.hcode.ReadOnly = true;
+ this.hcode.Visible = false;
+ //
+ // hisOrdersn
+ //
+ this.hisOrdersn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.hisOrdersn.HeaderText = "His医嘱号";
+ this.hisOrdersn.Name = "hisOrdersn";
+ this.hisOrdersn.ReadOnly = true;
+ this.hisOrdersn.Visible = false;
+ this.hisOrdersn.Width = 90;
+ //
+ // Hiscount
+ //
+ this.Hiscount.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.Hiscount.HeaderText = "His数量";
+ this.Hiscount.Name = "Hiscount";
+ this.Hiscount.ReadOnly = true;
+ this.Hiscount.Visible = false;
+ this.Hiscount.Width = 40;
+ //
+ // hisState
+ //
+ this.hisState.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.hisState.HeaderText = "状态";
+ this.hisState.Name = "hisState";
+ this.hisState.ReadOnly = true;
+ this.hisState.Visible = false;
+ this.hisState.Width = 70;
+ //
+ // drugsstate
+ //
+ this.drugsstate.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.drugsstate.HeaderText = "药单";
+ this.drugsstate.Name = "drugsstate";
+ this.drugsstate.ReadOnly = true;
+ this.drugsstate.Visible = false;
+ this.drugsstate.Width = 70;
+ //
+ // radioButton1
+ //
+ this.radioButton1.AutoSize = true;
+ this.radioButton1.Location = new System.Drawing.Point(12, 5);
+ this.radioButton1.Name = "radioButton1";
+ this.radioButton1.Size = new System.Drawing.Size(55, 24);
+ this.radioButton1.TabIndex = 0;
+ this.radioButton1.TabStop = true;
+ this.radioButton1.Text = "麻醉";
+ this.radioButton1.UseVisualStyleBackColor = true;
+ this.radioButton1.CheckedChanged += new System.EventHandler(this.rdoZQ_CheckedChanged);
+ //
+ // radioButton2
+ //
+ this.radioButton2.AutoSize = true;
+ this.radioButton2.Location = new System.Drawing.Point(90, 5);
+ this.radioButton2.Name = "radioButton2";
+ this.radioButton2.Size = new System.Drawing.Size(55, 24);
+ this.radioButton2.TabIndex = 0;
+ this.radioButton2.TabStop = true;
+ this.radioButton2.Text = "护士";
+ this.radioButton2.UseVisualStyleBackColor = true;
+ this.radioButton2.CheckedChanged += new System.EventHandler(this.rdoZQ_CheckedChanged);
+ //
+ // frmOperationCharg
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1428, 541);
+ this.Controls.Add(this.dgvYP);
+ this.Controls.Add(this.dgvtEMPOperationInfos);
+ this.Controls.Add(this.panel2);
+ this.Controls.Add(this.panel1);
+ this.Name = "frmOperationCharg";
+ this.Text = "上传明细";
+ this.Load += new System.EventHandler(this.frmOperationChargCheck2_Load);
+ this.panel1.ResumeLayout(false);
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
+ this.panel3.ResumeLayout(false);
+ this.panel3.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvtEMPOperationInfos)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvYP)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Button toolStripButton10;
+ private System.Windows.Forms.Panel panel2;
+ private System.Windows.Forms.TextBox txtPatName;
+ private System.Windows.Forms.Label label52;
+ private System.Windows.Forms.Label label53;
+ private System.Windows.Forms.TextBox txtPatCaseNO;
+ private System.Windows.Forms.Button tsbSettingDGV;
+ private DevComponents.DotNetBar.ButtonX buttonX1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn12;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn13;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn14;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn15;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn16;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn17;
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn18;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn19;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn20;
+ private System.Windows.Forms.DataGridView dgvtEMPOperationInfos;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn25;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn26;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn27;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn28;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn29;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn30;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn31;
+ private System.Windows.Forms.Panel panel3;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label lblInHospitalNo;
+ private System.Windows.Forms.Label label7;
+ private System.Windows.Forms.Label lblName;
+ private System.Windows.Forms.DataGridView dgvYP;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn21;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn22;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn23;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn24;
+ private System.Windows.Forms.DataGridViewTextBoxColumn id;
+ private System.Windows.Forms.DataGridViewTextBoxColumn TypeName;
+ private System.Windows.Forms.DataGridViewTextBoxColumn DrugName;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dept;
+ private System.Windows.Forms.DataGridViewTextBoxColumn deic;
+ private System.Windows.Forms.DataGridViewTextBoxColumn bed;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Inroomtime;
+ private System.Windows.Forms.DataGridViewTextBoxColumn state;
+ private System.Windows.Forms.DataGridViewTextBoxColumn DId;
+ private System.Windows.Forms.DataGridViewTextBoxColumn code;
+ private System.Windows.Forms.DataGridViewTextBoxColumn type;
+ private System.Windows.Forms.DataGridViewTextBoxColumn doctor;
+ private System.Windows.Forms.DataGridViewTextBoxColumn name;
+ private System.Windows.Forms.DataGridViewTextBoxColumn spec;
+ private System.Windows.Forms.DataGridViewTextBoxColumn unit;
+ private System.Windows.Forms.DataGridViewTextBoxColumn qty;
+ private System.Windows.Forms.DataGridViewTextBoxColumn price;
+ private System.Windows.Forms.DataGridViewTextBoxColumn pageno;
+ private System.Windows.Forms.DataGridViewTextBoxColumn ordersn;
+ private System.Windows.Forms.DataGridViewTextBoxColumn coftime;
+ private System.Windows.Forms.DataGridViewTextBoxColumn hcode;
+ private System.Windows.Forms.DataGridViewTextBoxColumn hisOrdersn;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Hiscount;
+ private System.Windows.Forms.DataGridViewTextBoxColumn hisState;
+ private System.Windows.Forms.DataGridViewTextBoxColumn drugsstate;
+ private System.Windows.Forms.RadioButton radioButton2;
+ private System.Windows.Forms.RadioButton radioButton1;
+ }
+}
\ No newline at end of file
diff --git a/AIMS/OperationAfter/frmOperationCharg.resx b/AIMS/OperationAfter/frmOperationCharg.resx
new file mode 100644
index 0000000..7d387c4
--- /dev/null
+++ b/AIMS/OperationAfter/frmOperationCharg.resx
@@ -0,0 +1,195 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/AIMS/OperationAfter/frmOperationCharg2.cs b/AIMS/OperationAfter/frmOperationCharg2.cs
new file mode 100644
index 0000000..9401775
--- /dev/null
+++ b/AIMS/OperationAfter/frmOperationCharg2.cs
@@ -0,0 +1,292 @@
+using AIMSBLL;
+using AIMSExtension;
+using AIMSModel;
+using DrawGraph;
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace AIMS.OperationAfter.UI
+{
+ public partial class frmOperationCharg2 : Form
+ {
+
+ DataTable operationApplys;
+ public string TemplateType = "麻醉";
+ public frmOperationCharg2()
+ {
+ InitializeComponent();
+
+ }
+
+ private void frmOperationChargCheck_Load(object sender, EventArgs e)
+ {
+ dgvOperation.AutoGenerateColumns = false;
+ dtpOpeTime.Value = DateTime.Now;
+ dtpEnd.Value = dtpOpeTime.Value;
+
+ Initial();
+ }
+
+ private void btnOK_Click(object sender, EventArgs e)
+ {
+ DateTime beginTime = Convert.ToDateTime(dtpOpeTime.Value.ToShortDateString() + " 00:00:00");
+ DateTime endTime = Convert.ToDateTime(dtpEnd.Value.ToShortDateString() + " 23:59:59");
+ string sql = string.Empty;
+ if (!txtPatCaseNO.Text.Trim().Equals(""))
+ {
+ sql = " [StateId] in(6,8,9) and RecoverId=1 and MdrecNo like '%" + txtPatCaseNO.Text.Trim() + "%'";
+ }
+ else if (!txtPatName.Text.Trim().Equals(""))
+ {
+ sql = " [StateId] in(6,8,9) and RecoverId=1 and PatientName like'%" + txtPatName.Text.Trim() + "%'";
+ }
+ else
+ {
+ sql = string.Format(" [StateId] in(6,8,9) and RecoverId=1 and InRoomTime>'{0}' and InRoomTime<'{1}'", beginTime, endTime);
+ }
+ //sql += " order by RoomOrderBy asc";
+ operationApplys = BOperationRecord.GetAllOperationRecordInfo(sql);
+ LoadSelectDate();
+ dgvtEMPOperationInfos.Rows.Clear();
+
+ //Task.Factory.StartNew(() =>
+ //{
+ // BindtHisDrugOrdersSDYToDgv(sql);
+ //});
+ }
+
+ //private void BindtHisDrugOrdersSDYToDgv(string sql)
+ //{
+ // try
+ // {
+ // DataTable data = BOperationRecord.GetAllOperationRecordInfoChagesState(sql);
+ // for (int i = 0; i < dgvOperation.Rows.Count; i++)
+ // {
+ // DataGridViewRow item = dgvOperation.Rows[i];
+ // int OpeID = 0;
+ // OpeID = Convert.ToInt32(item.Cells[0].Value.ToString());
+ // if (OpeID == 0) return;
+ // foreach (DataRow item1 in data.Rows)
+ // {
+ // if (item1[0] != null && item1[0].ToString() != "")
+ // {
+ // if (item1[0].ToString() == OpeID.ToString())
+ // {
+ // item.Cells["chagestate"].Value = item1["chagestate"].ToString();
+ // item.Cells["chargstatenurse"].Value = item1["chargstatenurse"].ToString();
+ // break;
+ // }
+ // }
+ // }
+ // }
+ // }
+ // catch (Exception ex)
+ // {
+ // PublicMethod.WriteLog(ex);
+ // }
+ //}
+ private void Initial()
+ {
+ btnOK_Click(null, null);
+ }
+ ///
+ /// 点击查询加载DGV数据
+ ///
+ public void LoadSelectDate()
+ {
+ dgvOperation.DataSource = operationApplys;
+ lblMessage.Text = "符合当前条件的记录数:" + operationApplys.Rows.Count;
+ }
+
+ private void tsbChangeOpe_Click(object sender, EventArgs e)
+ {
+ int OpeID = 0;
+ if (dgvOperation.SelectedRows.Count > 0)
+ {
+ OpeID = Convert.ToInt32(dgvOperation.SelectedRows[0].Cells[0].Value.ToString());
+ }
+ if (OpeID == 0) return;
+ }
+
+ private void tsbChangeRecoveOpe_Click(object sender, EventArgs e)
+ {
+ int OpeID = 0;
+ if (dgvOperation.SelectedRows.Count > 0)
+ {
+ OpeID = Convert.ToInt32(dgvOperation.SelectedRows[0].Cells[0].Value.ToString());
+ }
+ if (OpeID == 0)
+ {
+ return;
+ }
+ OperationRecord _operationRecord = BOperationRecord.SelectSingle(OpeID, RecursiveType.None, 0);
+
+
+ //frmChargRecordPrintSDY frmchargRecord = new frmChargRecordPrintSDY(_operationRecord);
+ //frmchargRecord.TemplateType = "麻醉";
+ //frmchargRecord.Show();
+
+ }
+
+ private void toolStripButton10_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+
+ private bool compareTime(DateTime time1, DateTime time2)
+ {
+ int y1 = time1.Year;
+ int y2 = time2.Year;
+ int M1 = time1.Month;
+ int M2 = time2.Month;
+ int d1 = time1.Day;
+ int d2 = time2.Day;
+ if (y1 == y2 && M1 == M2 && d1 == d2)
+ {
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
+ ///
+ /// 表格配置
+ ///
+ ///
+ ///
+ private void tsbSettingDGV_Click(object sender, EventArgs e)
+ {
+ //DataGridViewSettingManager.GetInstance().ShowConfigUI(dgvOperation);
+ //dgvOperation.AllowUserToAddRows = false;
+ }
+
+ private void dgvOperation_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
+ {
+ Rectangle rectangle = new Rectangle(e.RowBounds.Location.X, e.RowBounds.Location.Y, dgvOperation.RowHeadersWidth - 4, e.RowBounds.Height);
+
+ TextRenderer.DrawText(e.Graphics, (e.RowIndex + 1).ToString(),
+ dgvOperation.RowHeadersDefaultCellStyle.Font,
+ rectangle,
+ dgvOperation.RowHeadersDefaultCellStyle.ForeColor,
+ TextFormatFlags.VerticalCenter | TextFormatFlags.Right);
+ }
+
+ private void btnBeforeDay_Click(object sender, EventArgs e)
+ {
+ dtpOpeTime.Value = dtpOpeTime.Value.AddDays(-1);
+ dtpEnd.Value = dtpEnd.Value.AddDays(-1);
+ btnOK_Click(null, null);
+ }
+
+ private void btnAfterDay_Click(object sender, EventArgs e)
+ {
+ dtpOpeTime.Value = dtpOpeTime.Value.AddDays(1);
+ dtpEnd.Value = dtpEnd.Value.AddDays(1);
+ btnOK_Click(null, null);
+
+ }
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+ if (dgvOperation.Rows.Count < 0 || dgvOperation.Rows.Count < 1)
+ {
+ MessageBox.Show("没有记录,请查询到数据后再导出数据到Excel");
+ return;
+ }
+ //DataGridViewToExcel.DataToExcel(dgvOperation);
+ }
+
+ private void cboRoom_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ btnOK_Click(null, null);
+ }
+
+ private void dgvOperation_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
+ {
+ int OpeID = 0;
+ if (dgvOperation.SelectedRows.Count > 0)
+ {
+ OpeID = Convert.ToInt32(dgvOperation.SelectedRows[0].Cells[0].Value.ToString());
+ }
+ if (OpeID == 0)
+ {
+ return;
+ }
+ dgvtEMPOperationInfos.Rows.Clear();
+ OperationRecord _operationRecord = BOperationRecord.SelectSingle(OpeID, RecursiveType.None, 0);
+ SetChargDetalie(_operationRecord);
+
+ }
+
+ private void SetChargDetalie(OperationRecord _operationRecord)
+ {
+ List tEMPOperationInfoBackupss = BFeesRecord.Select("OperationRecordId='" + _operationRecord.Id + "' and FeeType='" + TemplateType + "' ", null);
+ if (tEMPOperationInfoBackupss != null && tEMPOperationInfoBackupss.Count > 0)
+ {
+ foreach (var item in tEMPOperationInfoBackupss)
+ {
+ int index = dgvtEMPOperationInfos.Rows.Add();
+ dgvtEMPOperationInfos.Rows[index].Cells[0].Value = item.Id;// 编号
+ dgvtEMPOperationInfos.Rows[index].Cells[1].Value = item.BillCode;
+ dgvtEMPOperationInfos.Rows[index].Cells[2].Value = item.ChargName += " " + item.ChargSpec;
+ dgvtEMPOperationInfos.Rows[index].Cells[3].Value = item.Unit;
+ dgvtEMPOperationInfos.Rows[index].Cells[4].Value = item.FeeNum;
+ dgvtEMPOperationInfos.Rows[index].Cells[5].Value = item.UnitPrice;
+ dgvtEMPOperationInfos.Rows[index].Cells[6].Value = item.ChargePrice;
+ dgvtEMPOperationInfos.Rows[index].Cells[7].Value = item.ExecWork;
+ dgvtEMPOperationInfos.Rows[index].Cells[8].Value = item.ExecTime;
+ //dgvtEMPOperationInfos.Rows[index].Cells["type"].Value = item.FeeTypeId;
+
+ }
+ }
+
+ }
+
+ private void rdoZQ_CheckedChanged(object sender, EventArgs e)
+ {
+ if (rdoZQ.Checked == true)
+ {
+ TemplateType = "麻醉";
+ dgvOperation.Columns["chagestate"].Visible = true;
+ dgvOperation.Columns["chargstatenurse"].Visible = false;
+ }
+ else
+ {
+ TemplateType = "护士";
+ dgvOperation.Columns["chargstatenurse"].Visible = true;
+ dgvOperation.Columns["chagestate"].Visible = false;
+ }
+ }
+
+ public int maxOrder = 0;
+ private void dgvtEMPOperationInfos_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
+ {
+ SolidBrush b = new SolidBrush(dgvtEMPOperationInfos.RowHeadersDefaultCellStyle.ForeColor);
+ e.Graphics.DrawString((maxOrder + e.RowIndex + 1).ToString(System.Globalization.CultureInfo.CurrentUICulture), this.dgvtEMPOperationInfos.DefaultCellStyle.Font, b, e.RowBounds.Location.X + 20, e.RowBounds.Location.Y + 4);
+
+ //隔行换色
+ this.dgvtEMPOperationInfos.RowsDefaultCellStyle.BackColor = Color.White;//设置背景为白色
+ this.dgvtEMPOperationInfos.AlternatingRowsDefaultCellStyle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(212)))), ((int)(((byte)(242)))), (((int)(((byte)242)))));//青色
+ }
+ private bool CheckFormIsOpen(string Forms)
+ {
+ bool bResult = false;
+ foreach (Form frm in Application.OpenForms)
+ {
+ if (frm.Name == Forms)
+ {
+ bResult = true;
+ break;
+ }
+ }
+ return bResult;
+ }
+ }
+}
diff --git a/AIMS/OperationAfter/frmOperationCharg2.designer.cs b/AIMS/OperationAfter/frmOperationCharg2.designer.cs
new file mode 100644
index 0000000..0e3362f
--- /dev/null
+++ b/AIMS/OperationAfter/frmOperationCharg2.designer.cs
@@ -0,0 +1,1185 @@
+namespace AIMS.OperationAfter.UI
+{
+ partial class frmOperationCharg2
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.cboRoom = new DevComponents.DotNetBar.Controls.ComboBoxEx();
+ this.label22 = new System.Windows.Forms.Label();
+ this.button1 = new System.Windows.Forms.Button();
+ this.label2 = new System.Windows.Forms.Label();
+ this.tsbSettingDGV = new System.Windows.Forms.Button();
+ this.toolStripButton10 = new System.Windows.Forms.Button();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.panel3 = new System.Windows.Forms.Panel();
+ this.rdoJZ = new System.Windows.Forms.RadioButton();
+ this.rdoZQ = new System.Windows.Forms.RadioButton();
+ this.dtpEnd = new DevComponents.Editors.DateTimeAdv.DateTimeInput();
+ this.dtpOpeTime = new DevComponents.Editors.DateTimeAdv.DateTimeInput();
+ this.label24 = new System.Windows.Forms.Label();
+ this.btnBeforeDay = new DevComponents.DotNetBar.ButtonX();
+ this.btnAfterDay = new DevComponents.DotNetBar.ButtonX();
+ this.buttonX1 = new DevComponents.DotNetBar.ButtonX();
+ this.lblMessage = new System.Windows.Forms.Label();
+ this.labDate = new System.Windows.Forms.Label();
+ this.txtPatName = new System.Windows.Forms.TextBox();
+ this.label52 = new System.Windows.Forms.Label();
+ this.label53 = new System.Windows.Forms.Label();
+ this.txtPatCaseNO = new System.Windows.Forms.TextBox();
+ this.groupBox1 = new System.Windows.Forms.GroupBox();
+ this.dgvOperation = new System.Windows.Forms.DataGridView();
+ this.OpeationId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.OperationApplyId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.PatientId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Index = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.OperationType = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.PatientDept = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.OperationRoom = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.InHospitalNo = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.PatientName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Sex = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.FullBed = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.OperationName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.AnaesthesiaMethodName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.OperationDoctor = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.AnesthesiaDoctor = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Inroomtime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.anesBegintime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Anesendtime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.outroomtime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.chagestate = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.chargstatenurse = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dgvtEMPOperationInfos = new System.Windows.Forms.DataGridView();
+ this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn16 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn17 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn18 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn19 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn20 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn25 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn26 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn27 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn28 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn29 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn30 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn31 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.DId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn21 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn22 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.DUnit = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn23 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn24 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.groupno = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.execwork = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.exectime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.ordersn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.hisOrdersn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Hiscount = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.hisState = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.drugsstate = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panel1.SuspendLayout();
+ this.panel2.SuspendLayout();
+ this.panel3.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dtpEnd)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dtpOpeTime)).BeginInit();
+ this.groupBox1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvOperation)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvtEMPOperationInfos)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panel1
+ //
+ this.panel1.BackColor = System.Drawing.Color.Transparent;
+ this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.panel1.Controls.Add(this.cboRoom);
+ this.panel1.Controls.Add(this.label22);
+ this.panel1.Controls.Add(this.button1);
+ this.panel1.Controls.Add(this.label2);
+ this.panel1.Controls.Add(this.tsbSettingDGV);
+ this.panel1.Controls.Add(this.toolStripButton10);
+ this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.panel1.Location = new System.Drawing.Point(0, 0);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(1428, 45);
+ this.panel1.TabIndex = 0;
+ //
+ // cboRoom
+ //
+ this.cboRoom.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.cboRoom.DisplayMember = "Text";
+ this.cboRoom.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
+ this.cboRoom.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.cboRoom.FormattingEnabled = true;
+ this.cboRoom.ItemHeight = 17;
+ this.cboRoom.Location = new System.Drawing.Point(1072, 12);
+ this.cboRoom.Name = "cboRoom";
+ this.cboRoom.Size = new System.Drawing.Size(150, 23);
+ this.cboRoom.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.cboRoom.TabIndex = 32;
+ this.cboRoom.Visible = false;
+ this.cboRoom.SelectedIndexChanged += new System.EventHandler(this.cboRoom_SelectedIndexChanged);
+ //
+ // label22
+ //
+ this.label22.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label22.AutoSize = true;
+ this.label22.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label22.Location = new System.Drawing.Point(1015, 13);
+ this.label22.Name = "label22";
+ this.label22.Size = new System.Drawing.Size(51, 20);
+ this.label22.TabIndex = 31;
+ this.label22.Text = "手术间";
+ this.label22.Visible = false;
+ //
+ // button1
+ //
+ this.button1.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.button1.Dock = System.Windows.Forms.DockStyle.Left;
+ this.button1.FlatAppearance.BorderSize = 0;
+ this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.button1.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.button1.Location = new System.Drawing.Point(0, 0);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(100, 45);
+ this.button1.TabIndex = 16;
+ this.button1.Text = "导出Excel";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.button1_Click);
+ //
+ // label2
+ //
+ this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label2.AutoSize = true;
+ this.label2.BackColor = System.Drawing.Color.Transparent;
+ this.label2.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.label2.Location = new System.Drawing.Point(1316, 13);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(13, 20);
+ this.label2.TabIndex = 5;
+ this.label2.Text = "|";
+ this.label2.Visible = false;
+ //
+ // tsbSettingDGV
+ //
+ this.tsbSettingDGV.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tsbSettingDGV.BackColor = System.Drawing.Color.Transparent;
+ this.tsbSettingDGV.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.tsbSettingDGV.FlatAppearance.BorderSize = 0;
+ this.tsbSettingDGV.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.tsbSettingDGV.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.tsbSettingDGV.Location = new System.Drawing.Point(1228, 8);
+ this.tsbSettingDGV.Name = "tsbSettingDGV";
+ this.tsbSettingDGV.Size = new System.Drawing.Size(85, 30);
+ this.tsbSettingDGV.TabIndex = 4;
+ this.tsbSettingDGV.Text = "表格设置";
+ this.tsbSettingDGV.UseVisualStyleBackColor = false;
+ this.tsbSettingDGV.Visible = false;
+ this.tsbSettingDGV.Click += new System.EventHandler(this.tsbSettingDGV_Click);
+ //
+ // toolStripButton10
+ //
+ this.toolStripButton10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.toolStripButton10.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.toolStripButton10.FlatAppearance.BorderSize = 0;
+ this.toolStripButton10.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.toolStripButton10.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.toolStripButton10.Location = new System.Drawing.Point(1335, 8);
+ this.toolStripButton10.Name = "toolStripButton10";
+ this.toolStripButton10.Size = new System.Drawing.Size(90, 30);
+ this.toolStripButton10.TabIndex = 0;
+ this.toolStripButton10.Text = "关闭";
+ this.toolStripButton10.UseVisualStyleBackColor = true;
+ this.toolStripButton10.Click += new System.EventHandler(this.toolStripButton10_Click);
+ //
+ // panel2
+ //
+ this.panel2.BackColor = System.Drawing.Color.WhiteSmoke;
+ this.panel2.Controls.Add(this.panel3);
+ this.panel2.Controls.Add(this.dtpEnd);
+ this.panel2.Controls.Add(this.dtpOpeTime);
+ this.panel2.Controls.Add(this.label24);
+ this.panel2.Controls.Add(this.btnBeforeDay);
+ this.panel2.Controls.Add(this.btnAfterDay);
+ this.panel2.Controls.Add(this.buttonX1);
+ this.panel2.Controls.Add(this.lblMessage);
+ this.panel2.Controls.Add(this.labDate);
+ this.panel2.Controls.Add(this.txtPatName);
+ this.panel2.Controls.Add(this.label52);
+ this.panel2.Controls.Add(this.label53);
+ this.panel2.Controls.Add(this.txtPatCaseNO);
+ this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
+ this.panel2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.panel2.Location = new System.Drawing.Point(0, 45);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(1428, 65);
+ this.panel2.TabIndex = 387;
+ //
+ // panel3
+ //
+ this.panel3.Controls.Add(this.rdoJZ);
+ this.panel3.Controls.Add(this.rdoZQ);
+ this.panel3.Location = new System.Drawing.Point(11, 15);
+ this.panel3.Name = "panel3";
+ this.panel3.Size = new System.Drawing.Size(172, 33);
+ this.panel3.TabIndex = 473;
+ //
+ // rdoJZ
+ //
+ this.rdoJZ.AutoSize = true;
+ this.rdoJZ.Location = new System.Drawing.Point(93, 5);
+ this.rdoJZ.Name = "rdoJZ";
+ this.rdoJZ.Size = new System.Drawing.Size(83, 24);
+ this.rdoJZ.TabIndex = 0;
+ this.rdoJZ.Text = "护士收费";
+ this.rdoJZ.UseVisualStyleBackColor = true;
+ this.rdoJZ.CheckedChanged += new System.EventHandler(this.rdoZQ_CheckedChanged);
+ //
+ // rdoZQ
+ //
+ this.rdoZQ.AutoSize = true;
+ this.rdoZQ.Checked = true;
+ this.rdoZQ.Location = new System.Drawing.Point(2, 5);
+ this.rdoZQ.Name = "rdoZQ";
+ this.rdoZQ.Size = new System.Drawing.Size(83, 24);
+ this.rdoZQ.TabIndex = 0;
+ this.rdoZQ.TabStop = true;
+ this.rdoZQ.Text = "麻醉收费";
+ this.rdoZQ.UseVisualStyleBackColor = true;
+ this.rdoZQ.CheckedChanged += new System.EventHandler(this.rdoZQ_CheckedChanged);
+ //
+ // dtpEnd
+ //
+ //
+ //
+ //
+ this.dtpEnd.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dtpEnd.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown;
+ this.dtpEnd.ButtonDropDown.Visible = true;
+ this.dtpEnd.FocusHighlightColor = System.Drawing.Color.FromArgb(((int)(((byte)(46)))), ((int)(((byte)(186)))), ((int)(((byte)(179)))));
+ this.dtpEnd.IsPopupCalendarOpen = false;
+ this.dtpEnd.Location = new System.Drawing.Point(731, 20);
+ //
+ //
+ //
+ //
+ //
+ //
+ this.dtpEnd.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.dtpEnd.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dtpEnd.MonthCalendar.DisplayMonth = new System.DateTime(2017, 11, 1, 0, 0, 0, 0);
+ //
+ //
+ //
+ this.dtpEnd.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dtpEnd.Name = "dtpEnd";
+ this.dtpEnd.Size = new System.Drawing.Size(130, 26);
+ this.dtpEnd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.dtpEnd.TabIndex = 472;
+ //
+ // dtpOpeTime
+ //
+ //
+ //
+ //
+ this.dtpOpeTime.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dtpOpeTime.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown;
+ this.dtpOpeTime.ButtonDropDown.Visible = true;
+ this.dtpOpeTime.FocusHighlightColor = System.Drawing.Color.FromArgb(((int)(((byte)(46)))), ((int)(((byte)(186)))), ((int)(((byte)(179)))));
+ this.dtpOpeTime.IsPopupCalendarOpen = false;
+ this.dtpOpeTime.Location = new System.Drawing.Point(579, 19);
+ //
+ //
+ //
+ //
+ //
+ //
+ this.dtpOpeTime.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.dtpOpeTime.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dtpOpeTime.MonthCalendar.DisplayMonth = new System.DateTime(2017, 11, 1, 0, 0, 0, 0);
+ //
+ //
+ //
+ this.dtpOpeTime.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dtpOpeTime.Name = "dtpOpeTime";
+ this.dtpOpeTime.Size = new System.Drawing.Size(130, 26);
+ this.dtpOpeTime.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.dtpOpeTime.TabIndex = 471;
+ //
+ // label24
+ //
+ this.label24.AutoSize = true;
+ this.label24.Location = new System.Drawing.Point(712, 22);
+ this.label24.Name = "label24";
+ this.label24.Size = new System.Drawing.Size(15, 20);
+ this.label24.TabIndex = 470;
+ this.label24.Text = "-";
+ //
+ // btnBeforeDay
+ //
+ this.btnBeforeDay.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
+ this.btnBeforeDay.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
+ this.btnBeforeDay.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.btnBeforeDay.Location = new System.Drawing.Point(968, 19);
+ this.btnBeforeDay.Name = "btnBeforeDay";
+ this.btnBeforeDay.Size = new System.Drawing.Size(90, 29);
+ this.btnBeforeDay.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnBeforeDay.TabIndex = 469;
+ this.btnBeforeDay.Text = "前一天";
+ this.btnBeforeDay.Click += new System.EventHandler(this.btnBeforeDay_Click);
+ //
+ // btnAfterDay
+ //
+ this.btnAfterDay.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
+ this.btnAfterDay.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
+ this.btnAfterDay.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.btnAfterDay.Location = new System.Drawing.Point(1064, 19);
+ this.btnAfterDay.Name = "btnAfterDay";
+ this.btnAfterDay.Size = new System.Drawing.Size(90, 29);
+ this.btnAfterDay.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnAfterDay.TabIndex = 468;
+ this.btnAfterDay.Text = "后一天";
+ this.btnAfterDay.Click += new System.EventHandler(this.btnAfterDay_Click);
+ //
+ // buttonX1
+ //
+ this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
+ this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
+ this.buttonX1.Font = new System.Drawing.Font("微软雅黑", 11.5F);
+ this.buttonX1.Location = new System.Drawing.Point(872, 19);
+ this.buttonX1.Name = "buttonX1";
+ this.buttonX1.Size = new System.Drawing.Size(90, 29);
+ this.buttonX1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.buttonX1.TabIndex = 467;
+ this.buttonX1.Text = "查询";
+ this.buttonX1.Click += new System.EventHandler(this.btnOK_Click);
+ //
+ // lblMessage
+ //
+ this.lblMessage.AutoSize = true;
+ this.lblMessage.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lblMessage.ForeColor = System.Drawing.Color.ForestGreen;
+ this.lblMessage.Location = new System.Drawing.Point(1160, 24);
+ this.lblMessage.Name = "lblMessage";
+ this.lblMessage.Size = new System.Drawing.Size(51, 19);
+ this.lblMessage.TabIndex = 422;
+ this.lblMessage.Text = "label2";
+ //
+ // labDate
+ //
+ this.labDate.AutoSize = true;
+ this.labDate.Location = new System.Drawing.Point(508, 23);
+ this.labDate.Name = "labDate";
+ this.labDate.Size = new System.Drawing.Size(68, 20);
+ this.labDate.TabIndex = 421;
+ this.labDate.Text = "手术时间:";
+ //
+ // txtPatName
+ //
+ this.txtPatName.Location = new System.Drawing.Point(416, 19);
+ this.txtPatName.Name = "txtPatName";
+ this.txtPatName.Size = new System.Drawing.Size(86, 26);
+ this.txtPatName.TabIndex = 48;
+ //
+ // label52
+ //
+ this.label52.AutoSize = true;
+ this.label52.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label52.Location = new System.Drawing.Point(189, 23);
+ this.label52.Name = "label52";
+ this.label52.Size = new System.Drawing.Size(54, 20);
+ this.label52.TabIndex = 45;
+ this.label52.Text = "住院号:";
+ //
+ // label53
+ //
+ this.label53.AutoSize = true;
+ this.label53.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label53.Location = new System.Drawing.Point(347, 23);
+ this.label53.Name = "label53";
+ this.label53.Size = new System.Drawing.Size(68, 20);
+ this.label53.TabIndex = 47;
+ this.label53.Text = "患者姓名:";
+ //
+ // txtPatCaseNO
+ //
+ this.txtPatCaseNO.Location = new System.Drawing.Point(244, 19);
+ this.txtPatCaseNO.Name = "txtPatCaseNO";
+ this.txtPatCaseNO.Size = new System.Drawing.Size(102, 26);
+ this.txtPatCaseNO.TabIndex = 46;
+ //
+ // groupBox1
+ //
+ this.groupBox1.Controls.Add(this.dgvOperation);
+ this.groupBox1.Dock = System.Windows.Forms.DockStyle.Left;
+ this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 10F);
+ this.groupBox1.Location = new System.Drawing.Point(0, 110);
+ this.groupBox1.Name = "groupBox1";
+ this.groupBox1.Size = new System.Drawing.Size(380, 431);
+ this.groupBox1.TabIndex = 388;
+ this.groupBox1.TabStop = false;
+ this.groupBox1.Text = "患者列表";
+ //
+ // dgvOperation
+ //
+ this.dgvOperation.AllowUserToAddRows = false;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(247)))), ((int)(((byte)(255)))));
+ this.dgvOperation.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ this.dgvOperation.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+ this.dgvOperation.BackgroundColor = System.Drawing.Color.Snow;
+ this.dgvOperation.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 10F);
+ dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.dgvOperation.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+ this.dgvOperation.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvOperation.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.OpeationId,
+ this.OperationApplyId,
+ this.PatientId,
+ this.Index,
+ this.OperationType,
+ this.PatientDept,
+ this.OperationRoom,
+ this.InHospitalNo,
+ this.PatientName,
+ this.Sex,
+ this.FullBed,
+ this.OperationName,
+ this.AnaesthesiaMethodName,
+ this.OperationDoctor,
+ this.AnesthesiaDoctor,
+ this.Inroomtime,
+ this.anesBegintime,
+ this.Anesendtime,
+ this.outroomtime,
+ this.chagestate,
+ this.chargstatenurse});
+ this.dgvOperation.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.dgvOperation.Location = new System.Drawing.Point(3, 21);
+ this.dgvOperation.Margin = new System.Windows.Forms.Padding(2);
+ this.dgvOperation.Name = "dgvOperation";
+ this.dgvOperation.ReadOnly = true;
+ this.dgvOperation.RowTemplate.Height = 27;
+ this.dgvOperation.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dgvOperation.Size = new System.Drawing.Size(374, 407);
+ this.dgvOperation.TabIndex = 386;
+ this.dgvOperation.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvOperation_CellDoubleClick);
+ this.dgvOperation.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgvOperation_RowPostPaint);
+ //
+ // OpeationId
+ //
+ this.OpeationId.DataPropertyName = "RecoredId";
+ this.OpeationId.HeaderText = "手术ID";
+ this.OpeationId.Name = "OpeationId";
+ this.OpeationId.ReadOnly = true;
+ this.OpeationId.Visible = false;
+ //
+ // OperationApplyId
+ //
+ this.OperationApplyId.DataPropertyName = "ApplyId";
+ this.OperationApplyId.HeaderText = "申请ID";
+ this.OperationApplyId.Name = "OperationApplyId";
+ this.OperationApplyId.ReadOnly = true;
+ this.OperationApplyId.Visible = false;
+ //
+ // PatientId
+ //
+ this.PatientId.DataPropertyName = "PatientId";
+ this.PatientId.HeaderText = "病人ID";
+ this.PatientId.Name = "PatientId";
+ this.PatientId.ReadOnly = true;
+ this.PatientId.Visible = false;
+ //
+ // Index
+ //
+ this.Index.HeaderText = "序号";
+ this.Index.Name = "Index";
+ this.Index.ReadOnly = true;
+ this.Index.Visible = false;
+ //
+ // OperationType
+ //
+ this.OperationType.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.OperationType.DataPropertyName = "OperationType";
+ this.OperationType.FillWeight = 609.1371F;
+ this.OperationType.HeaderText = "类别";
+ this.OperationType.Name = "OperationType";
+ this.OperationType.ReadOnly = true;
+ this.OperationType.Visible = false;
+ this.OperationType.Width = 65;
+ //
+ // PatientDept
+ //
+ this.PatientDept.DataPropertyName = "PatientDept";
+ this.PatientDept.FillWeight = 52.36969F;
+ this.PatientDept.HeaderText = "科室";
+ this.PatientDept.Name = "PatientDept";
+ this.PatientDept.ReadOnly = true;
+ this.PatientDept.Visible = false;
+ //
+ // OperationRoom
+ //
+ this.OperationRoom.DataPropertyName = "OperationRoom";
+ this.OperationRoom.FillWeight = 65.36763F;
+ this.OperationRoom.HeaderText = "手术间";
+ this.OperationRoom.Name = "OperationRoom";
+ this.OperationRoom.ReadOnly = true;
+ //
+ // InHospitalNo
+ //
+ this.InHospitalNo.DataPropertyName = "MdrecNo";
+ this.InHospitalNo.FillWeight = 61.41668F;
+ this.InHospitalNo.HeaderText = "住院号";
+ this.InHospitalNo.Name = "InHospitalNo";
+ this.InHospitalNo.ReadOnly = true;
+ //
+ // PatientName
+ //
+ this.PatientName.DataPropertyName = "PatientName";
+ this.PatientName.FillWeight = 48.05807F;
+ this.PatientName.HeaderText = "姓名";
+ this.PatientName.Name = "PatientName";
+ this.PatientName.ReadOnly = true;
+ //
+ // Sex
+ //
+ this.Sex.DataPropertyName = "Sex";
+ this.Sex.FillWeight = 48.17831F;
+ this.Sex.HeaderText = "性别";
+ this.Sex.Name = "Sex";
+ this.Sex.ReadOnly = true;
+ this.Sex.Visible = false;
+ //
+ // FullBed
+ //
+ this.FullBed.DataPropertyName = "SickBed";
+ this.FullBed.FillWeight = 47.85236F;
+ this.FullBed.HeaderText = "床号";
+ this.FullBed.Name = "FullBed";
+ this.FullBed.ReadOnly = true;
+ this.FullBed.Visible = false;
+ //
+ // OperationName
+ //
+ this.OperationName.DataPropertyName = "OperationInfoName";
+ this.OperationName.FillWeight = 86.09029F;
+ this.OperationName.HeaderText = "实施手术";
+ this.OperationName.Name = "OperationName";
+ this.OperationName.ReadOnly = true;
+ this.OperationName.Visible = false;
+ //
+ // AnaesthesiaMethodName
+ //
+ this.AnaesthesiaMethodName.DataPropertyName = "AnaesthesiaMethodName";
+ this.AnaesthesiaMethodName.FillWeight = 83.9493F;
+ this.AnaesthesiaMethodName.HeaderText = "麻醉方式";
+ this.AnaesthesiaMethodName.Name = "AnaesthesiaMethodName";
+ this.AnaesthesiaMethodName.ReadOnly = true;
+ this.AnaesthesiaMethodName.Visible = false;
+ //
+ // OperationDoctor
+ //
+ this.OperationDoctor.DataPropertyName = "OperationDoctor";
+ this.OperationDoctor.FillWeight = 53.07917F;
+ this.OperationDoctor.HeaderText = "术者";
+ this.OperationDoctor.Name = "OperationDoctor";
+ this.OperationDoctor.ReadOnly = true;
+ this.OperationDoctor.Visible = false;
+ //
+ // AnesthesiaDoctor
+ //
+ this.AnesthesiaDoctor.DataPropertyName = "AnesthesiaDoctor";
+ this.AnesthesiaDoctor.FillWeight = 65.36763F;
+ this.AnesthesiaDoctor.HeaderText = "麻醉医生";
+ this.AnesthesiaDoctor.Name = "AnesthesiaDoctor";
+ this.AnesthesiaDoctor.ReadOnly = true;
+ //
+ // Inroomtime
+ //
+ this.Inroomtime.DataPropertyName = "InRoomTime";
+ this.Inroomtime.FillWeight = 65.36763F;
+ this.Inroomtime.HeaderText = "入室时间";
+ this.Inroomtime.Name = "Inroomtime";
+ this.Inroomtime.ReadOnly = true;
+ this.Inroomtime.Visible = false;
+ //
+ // anesBegintime
+ //
+ this.anesBegintime.DataPropertyName = "AnesthesiaBeginTime";
+ this.anesBegintime.HeaderText = "麻醉开始";
+ this.anesBegintime.Name = "anesBegintime";
+ this.anesBegintime.ReadOnly = true;
+ this.anesBegintime.Visible = false;
+ //
+ // Anesendtime
+ //
+ this.Anesendtime.DataPropertyName = "AnesthesiaEndTime";
+ this.Anesendtime.HeaderText = "麻醉结束";
+ this.Anesendtime.Name = "Anesendtime";
+ this.Anesendtime.ReadOnly = true;
+ this.Anesendtime.Visible = false;
+ //
+ // outroomtime
+ //
+ this.outroomtime.DataPropertyName = "OutRoomTime";
+ this.outroomtime.HeaderText = "出室时间";
+ this.outroomtime.Name = "outroomtime";
+ this.outroomtime.ReadOnly = true;
+ this.outroomtime.Visible = false;
+ //
+ // chagestate
+ //
+ this.chagestate.DataPropertyName = "chagestate";
+ this.chagestate.FillWeight = 65.36763F;
+ this.chagestate.HeaderText = "收费状态";
+ this.chagestate.Name = "chagestate";
+ this.chagestate.ReadOnly = true;
+ this.chagestate.Visible = false;
+ //
+ // chargstatenurse
+ //
+ this.chargstatenurse.DataPropertyName = "chargstatenurse";
+ this.chargstatenurse.HeaderText = "收费状态";
+ this.chargstatenurse.Name = "chargstatenurse";
+ this.chargstatenurse.ReadOnly = true;
+ this.chargstatenurse.Visible = false;
+ //
+ // dgvtEMPOperationInfos
+ //
+ this.dgvtEMPOperationInfos.AllowUserToAddRows = false;
+ this.dgvtEMPOperationInfos.AllowUserToDeleteRows = false;
+ this.dgvtEMPOperationInfos.AllowUserToResizeColumns = false;
+ this.dgvtEMPOperationInfos.AllowUserToResizeRows = false;
+ this.dgvtEMPOperationInfos.BackgroundColor = System.Drawing.Color.White;
+ this.dgvtEMPOperationInfos.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ this.dgvtEMPOperationInfos.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvtEMPOperationInfos.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.DId,
+ this.dataGridViewTextBoxColumn21,
+ this.dataGridViewTextBoxColumn22,
+ this.DUnit,
+ this.dataGridViewTextBoxColumn23,
+ this.dataGridViewTextBoxColumn24,
+ this.groupno,
+ this.execwork,
+ this.exectime,
+ this.ordersn,
+ this.hisOrdersn,
+ this.Hiscount,
+ this.hisState,
+ this.drugsstate});
+ dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 10.5F);
+ dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.dgvtEMPOperationInfos.DefaultCellStyle = dataGridViewCellStyle3;
+ this.dgvtEMPOperationInfos.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.dgvtEMPOperationInfos.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
+ this.dgvtEMPOperationInfos.GridColor = System.Drawing.Color.Black;
+ this.dgvtEMPOperationInfos.Location = new System.Drawing.Point(380, 110);
+ this.dgvtEMPOperationInfos.MultiSelect = false;
+ this.dgvtEMPOperationInfos.Name = "dgvtEMPOperationInfos";
+ this.dgvtEMPOperationInfos.ReadOnly = true;
+ this.dgvtEMPOperationInfos.RowTemplate.Height = 23;
+ this.dgvtEMPOperationInfos.ShowCellErrors = false;
+ this.dgvtEMPOperationInfos.ShowCellToolTips = false;
+ this.dgvtEMPOperationInfos.Size = new System.Drawing.Size(1048, 431);
+ this.dgvtEMPOperationInfos.TabIndex = 389;
+ this.dgvtEMPOperationInfos.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgvtEMPOperationInfos_RowPostPaint);
+ //
+ // dataGridViewTextBoxColumn1
+ //
+ this.dataGridViewTextBoxColumn1.DataPropertyName = "OperationRecordId";
+ this.dataGridViewTextBoxColumn1.HeaderText = "手术ID";
+ this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
+ this.dataGridViewTextBoxColumn1.Visible = false;
+ //
+ // dataGridViewTextBoxColumn2
+ //
+ this.dataGridViewTextBoxColumn2.DataPropertyName = "OperationApplyId";
+ this.dataGridViewTextBoxColumn2.HeaderText = "申请ID";
+ this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
+ this.dataGridViewTextBoxColumn2.Visible = false;
+ //
+ // dataGridViewTextBoxColumn3
+ //
+ this.dataGridViewTextBoxColumn3.DataPropertyName = "PatientId";
+ this.dataGridViewTextBoxColumn3.HeaderText = "病人ID";
+ this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
+ this.dataGridViewTextBoxColumn3.Visible = false;
+ //
+ // dataGridViewTextBoxColumn4
+ //
+ this.dataGridViewTextBoxColumn4.HeaderText = "序号";
+ this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
+ this.dataGridViewTextBoxColumn4.Visible = false;
+ //
+ // dataGridViewTextBoxColumn5
+ //
+ this.dataGridViewTextBoxColumn5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn5.DataPropertyName = "OperationPriority";
+ this.dataGridViewTextBoxColumn5.FillWeight = 137.1497F;
+ this.dataGridViewTextBoxColumn5.HeaderText = "手术分类";
+ this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
+ this.dataGridViewTextBoxColumn5.Visible = false;
+ this.dataGridViewTextBoxColumn5.Width = 112;
+ //
+ // dataGridViewTextBoxColumn6
+ //
+ this.dataGridViewTextBoxColumn6.DataPropertyName = "DepartmentName";
+ this.dataGridViewTextBoxColumn6.FillWeight = 80.11563F;
+ this.dataGridViewTextBoxColumn6.HeaderText = "科室";
+ this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
+ this.dataGridViewTextBoxColumn6.Visible = false;
+ this.dataGridViewTextBoxColumn6.Width = 66;
+ //
+ // dataGridViewTextBoxColumn7
+ //
+ this.dataGridViewTextBoxColumn7.DataPropertyName = "SZOperationRoom";
+ this.dataGridViewTextBoxColumn7.FillWeight = 65.36763F;
+ this.dataGridViewTextBoxColumn7.HeaderText = "手术间";
+ this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
+ this.dataGridViewTextBoxColumn7.Width = 82;
+ //
+ // dataGridViewTextBoxColumn8
+ //
+ this.dataGridViewTextBoxColumn8.DataPropertyName = "InHospitalNo";
+ this.dataGridViewTextBoxColumn8.FillWeight = 93.9558F;
+ this.dataGridViewTextBoxColumn8.HeaderText = "住院号";
+ this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
+ this.dataGridViewTextBoxColumn8.Width = 77;
+ //
+ // dataGridViewTextBoxColumn9
+ //
+ this.dataGridViewTextBoxColumn9.DataPropertyName = "MedicalHistoryNo";
+ this.dataGridViewTextBoxColumn9.FillWeight = 92.42704F;
+ this.dataGridViewTextBoxColumn9.HeaderText = "病历号";
+ this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
+ this.dataGridViewTextBoxColumn9.Width = 76;
+ //
+ // dataGridViewTextBoxColumn10
+ //
+ this.dataGridViewTextBoxColumn10.DataPropertyName = "PatientName";
+ this.dataGridViewTextBoxColumn10.FillWeight = 73.51968F;
+ this.dataGridViewTextBoxColumn10.HeaderText = "姓名";
+ this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
+ this.dataGridViewTextBoxColumn10.Visible = false;
+ this.dataGridViewTextBoxColumn10.Width = 60;
+ //
+ // dataGridViewTextBoxColumn11
+ //
+ this.dataGridViewTextBoxColumn11.DataPropertyName = "Sex";
+ this.dataGridViewTextBoxColumn11.FillWeight = 73.70361F;
+ this.dataGridViewTextBoxColumn11.HeaderText = "性别";
+ this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11";
+ this.dataGridViewTextBoxColumn11.Visible = false;
+ this.dataGridViewTextBoxColumn11.Width = 61;
+ //
+ // dataGridViewTextBoxColumn12
+ //
+ this.dataGridViewTextBoxColumn12.DataPropertyName = "Bed";
+ this.dataGridViewTextBoxColumn12.FillWeight = 73.20498F;
+ this.dataGridViewTextBoxColumn12.HeaderText = "床号";
+ this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12";
+ this.dataGridViewTextBoxColumn12.Visible = false;
+ this.dataGridViewTextBoxColumn12.Width = 60;
+ //
+ // dataGridViewTextBoxColumn13
+ //
+ this.dataGridViewTextBoxColumn13.DataPropertyName = "SZDiagnose";
+ this.dataGridViewTextBoxColumn13.FillWeight = 134.5945F;
+ this.dataGridViewTextBoxColumn13.HeaderText = "术后诊断";
+ this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13";
+ this.dataGridViewTextBoxColumn13.Visible = false;
+ this.dataGridViewTextBoxColumn13.Width = 110;
+ //
+ // dataGridViewTextBoxColumn14
+ //
+ this.dataGridViewTextBoxColumn14.DataPropertyName = "SZOperation";
+ this.dataGridViewTextBoxColumn14.FillWeight = 131.7017F;
+ this.dataGridViewTextBoxColumn14.HeaderText = "实施手术";
+ this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14";
+ this.dataGridViewTextBoxColumn14.Visible = false;
+ this.dataGridViewTextBoxColumn14.Width = 108;
+ //
+ // dataGridViewTextBoxColumn15
+ //
+ this.dataGridViewTextBoxColumn15.DataPropertyName = "SZAnaesthesiaMethod";
+ this.dataGridViewTextBoxColumn15.FillWeight = 128.4264F;
+ this.dataGridViewTextBoxColumn15.HeaderText = "麻醉方式";
+ this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15";
+ this.dataGridViewTextBoxColumn15.Width = 106;
+ //
+ // dataGridViewTextBoxColumn16
+ //
+ this.dataGridViewTextBoxColumn16.DataPropertyName = "SZOperationDoctor";
+ this.dataGridViewTextBoxColumn16.FillWeight = 81.201F;
+ this.dataGridViewTextBoxColumn16.HeaderText = "术者";
+ this.dataGridViewTextBoxColumn16.Name = "dataGridViewTextBoxColumn16";
+ this.dataGridViewTextBoxColumn16.Visible = false;
+ this.dataGridViewTextBoxColumn16.Width = 67;
+ //
+ // dataGridViewTextBoxColumn17
+ //
+ this.dataGridViewTextBoxColumn17.DataPropertyName = "SZAnesthesiaDoctor";
+ this.dataGridViewTextBoxColumn17.HeaderText = "麻醉医生";
+ this.dataGridViewTextBoxColumn17.Name = "dataGridViewTextBoxColumn17";
+ this.dataGridViewTextBoxColumn17.Visible = false;
+ this.dataGridViewTextBoxColumn17.Width = 82;
+ //
+ // dataGridViewTextBoxColumn18
+ //
+ this.dataGridViewTextBoxColumn18.DataPropertyName = "AnesthesiaEndTime";
+ this.dataGridViewTextBoxColumn18.HeaderText = "麻醉结束";
+ this.dataGridViewTextBoxColumn18.Name = "dataGridViewTextBoxColumn18";
+ this.dataGridViewTextBoxColumn18.Visible = false;
+ this.dataGridViewTextBoxColumn18.Width = 96;
+ //
+ // dataGridViewTextBoxColumn19
+ //
+ this.dataGridViewTextBoxColumn19.DataPropertyName = "OutRoomTime";
+ this.dataGridViewTextBoxColumn19.HeaderText = "出室时间";
+ this.dataGridViewTextBoxColumn19.Name = "dataGridViewTextBoxColumn19";
+ this.dataGridViewTextBoxColumn19.Visible = false;
+ this.dataGridViewTextBoxColumn19.Width = 96;
+ //
+ // dataGridViewTextBoxColumn20
+ //
+ this.dataGridViewTextBoxColumn20.DataPropertyName = "chagestate";
+ this.dataGridViewTextBoxColumn20.FillWeight = 65.36763F;
+ this.dataGridViewTextBoxColumn20.HeaderText = "收费状态";
+ this.dataGridViewTextBoxColumn20.Name = "dataGridViewTextBoxColumn20";
+ this.dataGridViewTextBoxColumn20.Width = 63;
+ //
+ // dataGridViewTextBoxColumn25
+ //
+ this.dataGridViewTextBoxColumn25.HeaderText = "单位";
+ this.dataGridViewTextBoxColumn25.Name = "dataGridViewTextBoxColumn25";
+ this.dataGridViewTextBoxColumn25.Width = 60;
+ //
+ // dataGridViewTextBoxColumn26
+ //
+ this.dataGridViewTextBoxColumn26.DataPropertyName = "DrugPrice";
+ this.dataGridViewTextBoxColumn26.HeaderText = "单价";
+ this.dataGridViewTextBoxColumn26.Name = "dataGridViewTextBoxColumn26";
+ this.dataGridViewTextBoxColumn26.ReadOnly = true;
+ this.dataGridViewTextBoxColumn26.Width = 70;
+ //
+ // dataGridViewTextBoxColumn27
+ //
+ this.dataGridViewTextBoxColumn27.HeaderText = "单号";
+ this.dataGridViewTextBoxColumn27.Name = "dataGridViewTextBoxColumn27";
+ this.dataGridViewTextBoxColumn27.Width = 80;
+ //
+ // dataGridViewTextBoxColumn28
+ //
+ this.dataGridViewTextBoxColumn28.HeaderText = "医嘱号";
+ this.dataGridViewTextBoxColumn28.Name = "dataGridViewTextBoxColumn28";
+ //
+ // dataGridViewTextBoxColumn29
+ //
+ this.dataGridViewTextBoxColumn29.HeaderText = "His医嘱号";
+ this.dataGridViewTextBoxColumn29.Name = "dataGridViewTextBoxColumn29";
+ //
+ // dataGridViewTextBoxColumn30
+ //
+ this.dataGridViewTextBoxColumn30.HeaderText = "His数量";
+ this.dataGridViewTextBoxColumn30.Name = "dataGridViewTextBoxColumn30";
+ //
+ // dataGridViewTextBoxColumn31
+ //
+ this.dataGridViewTextBoxColumn31.HeaderText = "收费状态";
+ this.dataGridViewTextBoxColumn31.Name = "dataGridViewTextBoxColumn31";
+ //
+ // DId
+ //
+ this.DId.HeaderText = "id";
+ this.DId.Name = "DId";
+ this.DId.ReadOnly = true;
+ this.DId.Visible = false;
+ this.DId.Width = 60;
+ //
+ // dataGridViewTextBoxColumn21
+ //
+ this.dataGridViewTextBoxColumn21.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn21.DataPropertyName = "XMBH";
+ this.dataGridViewTextBoxColumn21.HeaderText = "编码";
+ this.dataGridViewTextBoxColumn21.Name = "dataGridViewTextBoxColumn21";
+ this.dataGridViewTextBoxColumn21.ReadOnly = true;
+ this.dataGridViewTextBoxColumn21.Visible = false;
+ this.dataGridViewTextBoxColumn21.Width = 75;
+ //
+ // dataGridViewTextBoxColumn22
+ //
+ this.dataGridViewTextBoxColumn22.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.dataGridViewTextBoxColumn22.DataPropertyName = "DrugName";
+ this.dataGridViewTextBoxColumn22.HeaderText = "名称";
+ this.dataGridViewTextBoxColumn22.Name = "dataGridViewTextBoxColumn22";
+ this.dataGridViewTextBoxColumn22.ReadOnly = true;
+ //
+ // DUnit
+ //
+ this.DUnit.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.DUnit.HeaderText = "单位";
+ this.DUnit.Name = "DUnit";
+ this.DUnit.ReadOnly = true;
+ this.DUnit.Width = 40;
+ //
+ // dataGridViewTextBoxColumn23
+ //
+ this.dataGridViewTextBoxColumn23.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn23.DataPropertyName = "XMSL";
+ this.dataGridViewTextBoxColumn23.HeaderText = "数量";
+ this.dataGridViewTextBoxColumn23.Name = "dataGridViewTextBoxColumn23";
+ this.dataGridViewTextBoxColumn23.ReadOnly = true;
+ this.dataGridViewTextBoxColumn23.Width = 40;
+ //
+ // dataGridViewTextBoxColumn24
+ //
+ this.dataGridViewTextBoxColumn24.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn24.DataPropertyName = "DrugPrice";
+ this.dataGridViewTextBoxColumn24.HeaderText = "单价";
+ this.dataGridViewTextBoxColumn24.Name = "dataGridViewTextBoxColumn24";
+ this.dataGridViewTextBoxColumn24.ReadOnly = true;
+ this.dataGridViewTextBoxColumn24.Width = 70;
+ //
+ // groupno
+ //
+ this.groupno.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.groupno.HeaderText = "总价";
+ this.groupno.Name = "groupno";
+ this.groupno.ReadOnly = true;
+ this.groupno.Width = 80;
+ //
+ // execwork
+ //
+ this.execwork.HeaderText = "执行人";
+ this.execwork.Name = "execwork";
+ this.execwork.ReadOnly = true;
+ //
+ // exectime
+ //
+ this.exectime.HeaderText = "执行时间";
+ this.exectime.Name = "exectime";
+ this.exectime.ReadOnly = true;
+ this.exectime.Width = 150;
+ //
+ // ordersn
+ //
+ this.ordersn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.ordersn.HeaderText = "医嘱号";
+ this.ordersn.Name = "ordersn";
+ this.ordersn.ReadOnly = true;
+ this.ordersn.Visible = false;
+ this.ordersn.Width = 80;
+ //
+ // hisOrdersn
+ //
+ this.hisOrdersn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.hisOrdersn.HeaderText = "His医嘱号";
+ this.hisOrdersn.Name = "hisOrdersn";
+ this.hisOrdersn.ReadOnly = true;
+ this.hisOrdersn.Visible = false;
+ this.hisOrdersn.Width = 90;
+ //
+ // Hiscount
+ //
+ this.Hiscount.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.Hiscount.HeaderText = "His数量";
+ this.Hiscount.Name = "Hiscount";
+ this.Hiscount.ReadOnly = true;
+ this.Hiscount.Visible = false;
+ this.Hiscount.Width = 40;
+ //
+ // hisState
+ //
+ this.hisState.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.hisState.HeaderText = "状态";
+ this.hisState.Name = "hisState";
+ this.hisState.ReadOnly = true;
+ this.hisState.Visible = false;
+ this.hisState.Width = 70;
+ //
+ // drugsstate
+ //
+ this.drugsstate.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.drugsstate.HeaderText = "药单";
+ this.drugsstate.Name = "drugsstate";
+ this.drugsstate.ReadOnly = true;
+ this.drugsstate.Visible = false;
+ this.drugsstate.Width = 70;
+ //
+ // frmOperationCharg2
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1428, 541);
+ this.Controls.Add(this.dgvtEMPOperationInfos);
+ this.Controls.Add(this.groupBox1);
+ this.Controls.Add(this.panel2);
+ this.Controls.Add(this.panel1);
+ this.Name = "frmOperationCharg2";
+ this.Text = "费用对照";
+ this.Load += new System.EventHandler(this.frmOperationChargCheck_Load);
+ this.panel1.ResumeLayout(false);
+ this.panel1.PerformLayout();
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
+ this.panel3.ResumeLayout(false);
+ this.panel3.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dtpEnd)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dtpOpeTime)).EndInit();
+ this.groupBox1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvOperation)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvtEMPOperationInfos)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Button toolStripButton10;
+ private System.Windows.Forms.Panel panel2;
+ private System.Windows.Forms.Label lblMessage;
+ public System.Windows.Forms.Label labDate;
+ private System.Windows.Forms.TextBox txtPatName;
+ private System.Windows.Forms.Label label52;
+ private System.Windows.Forms.Label label53;
+ private System.Windows.Forms.TextBox txtPatCaseNO;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Button tsbSettingDGV;
+ private DevComponents.DotNetBar.ButtonX btnBeforeDay;
+ private DevComponents.DotNetBar.ButtonX btnAfterDay;
+ private DevComponents.DotNetBar.ButtonX buttonX1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn12;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn13;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn14;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn15;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn16;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn17;
+ private DevComponents.Editors.DateTimeAdv.DateTimeInput dtpEnd;
+ private DevComponents.Editors.DateTimeAdv.DateTimeInput dtpOpeTime;
+ public System.Windows.Forms.Label label24;
+ private System.Windows.Forms.Button button1;
+ private DevComponents.DotNetBar.Controls.ComboBoxEx cboRoom;
+ private System.Windows.Forms.Label label22;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn18;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn19;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn20;
+ private System.Windows.Forms.GroupBox groupBox1;
+ private System.Windows.Forms.DataGridView dgvOperation;
+ private System.Windows.Forms.DataGridView dgvtEMPOperationInfos;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn25;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn26;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn27;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn28;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn29;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn30;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn31;
+ private System.Windows.Forms.Panel panel3;
+ private System.Windows.Forms.RadioButton rdoJZ;
+ private System.Windows.Forms.RadioButton rdoZQ;
+ private System.Windows.Forms.DataGridViewTextBoxColumn OpeationId;
+ private System.Windows.Forms.DataGridViewTextBoxColumn OperationApplyId;
+ private System.Windows.Forms.DataGridViewTextBoxColumn PatientId;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Index;
+ private System.Windows.Forms.DataGridViewTextBoxColumn OperationType;
+ private System.Windows.Forms.DataGridViewTextBoxColumn PatientDept;
+ private System.Windows.Forms.DataGridViewTextBoxColumn OperationRoom;
+ private System.Windows.Forms.DataGridViewTextBoxColumn InHospitalNo;
+ private System.Windows.Forms.DataGridViewTextBoxColumn PatientName;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Sex;
+ private System.Windows.Forms.DataGridViewTextBoxColumn FullBed;
+ private System.Windows.Forms.DataGridViewTextBoxColumn OperationName;
+ private System.Windows.Forms.DataGridViewTextBoxColumn AnaesthesiaMethodName;
+ private System.Windows.Forms.DataGridViewTextBoxColumn OperationDoctor;
+ private System.Windows.Forms.DataGridViewTextBoxColumn AnesthesiaDoctor;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Inroomtime;
+ private System.Windows.Forms.DataGridViewTextBoxColumn anesBegintime;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Anesendtime;
+ private System.Windows.Forms.DataGridViewTextBoxColumn outroomtime;
+ private System.Windows.Forms.DataGridViewTextBoxColumn chagestate;
+ private System.Windows.Forms.DataGridViewTextBoxColumn chargstatenurse;
+ private System.Windows.Forms.DataGridViewTextBoxColumn DId;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn21;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn22;
+ private System.Windows.Forms.DataGridViewTextBoxColumn DUnit;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn23;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn24;
+ private System.Windows.Forms.DataGridViewTextBoxColumn groupno;
+ private System.Windows.Forms.DataGridViewTextBoxColumn execwork;
+ private System.Windows.Forms.DataGridViewTextBoxColumn exectime;
+ private System.Windows.Forms.DataGridViewTextBoxColumn ordersn;
+ private System.Windows.Forms.DataGridViewTextBoxColumn hisOrdersn;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Hiscount;
+ private System.Windows.Forms.DataGridViewTextBoxColumn hisState;
+ private System.Windows.Forms.DataGridViewTextBoxColumn drugsstate;
+ }
+}
\ No newline at end of file
diff --git a/AIMS/OperationAfter/frmOperationCharg2.resx b/AIMS/OperationAfter/frmOperationCharg2.resx
new file mode 100644
index 0000000..2446592
--- /dev/null
+++ b/AIMS/OperationAfter/frmOperationCharg2.resx
@@ -0,0 +1,225 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/AIMS/OperationAfter/frmOperationCharg3.cs b/AIMS/OperationAfter/frmOperationCharg3.cs
new file mode 100644
index 0000000..af5a067
--- /dev/null
+++ b/AIMS/OperationAfter/frmOperationCharg3.cs
@@ -0,0 +1,212 @@
+using AIMSBLL;
+using AIMSExtension;
+using AIMSModel;
+using DevComponents.Editors;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Windows.Forms;
+
+namespace AIMS.OperationAfter.UI
+{
+ public partial class frmOperationCharg3 : Form
+ {
+
+ DataTable operationApplys;
+ public string FeeType = "麻醉";
+ public List upHisDrugs;
+
+ public frmOperationCharg3()
+ {
+ InitializeComponent();
+
+ }
+
+ private void frmOperationDruggCheck_Load(object sender, EventArgs e)
+ {
+ try
+ {
+ dtpOpeTime.Value = DateTime.Now;
+ dtpEnd.Value = dtpOpeTime.Value;
+ dgvOperation.AutoGenerateColumns = false;
+ dgvtEMPOperationInfos.AutoGenerateColumns = false;
+ dgvHZD.AutoGenerateColumns = false;
+
+ LoadSelectDate();
+ if (upHisDrugs != null && upHisDrugs.Count > 0)
+ {
+ dtpOpeTime.Value = upHisDrugs[0].EndTime.Value;
+ }
+ }
+ catch (Exception exp)
+ {
+ PublicMethod.WriteLog(exp);
+ }
+ }
+ public void LoadSelectDate()
+ {
+ string where = " ";
+ upHisDrugs = BFeesRecordReport.Select(" FeeType='" + FeeType + "' " + where + " order by endtime desc", null);
+ dgvOperation.DataSource = upHisDrugs;
+ dgvOperation.ClearSelection();
+ }
+ private void btnOK_Click(object sender, EventArgs e)
+ {
+ //if (comboBoxExType.Text == "") return;
+ string beginTime = Convert.ToDateTime(dtpOpeTime.Value).ToString("yyyy-MM-dd HH:mm:00");
+ string endTime = Convert.ToDateTime(dtpEnd.Value).ToString("yyyy-MM-dd HH:mm:00");
+ string sql = string.Format(" ExecTime>='{0}' and ExecTime<'{1}'", beginTime, endTime);
+ //if (comboBoxExType.SelectedItem != null)
+ //{
+ // ComboItem chargitem = comboBoxExType.SelectedItem as ComboItem;
+ // sql += " and (page_type = '" + chargitem.Value + "' ) ";
+ //}
+ if (FeeType != "")
+ {
+ sql += " and (FeeType = '" + FeeType + "' ) ";
+ }
+ if (rdoZQ.Checked == true)
+ {
+ operationApplys = BFeesRecordReport.GetUpListByWhere(sql);
+ dgvtEMPOperationInfos.DataSource = operationApplys;
+ }
+ else
+ {
+ operationApplys = BFeesRecordReport.GetUpListByWhere2(sql);
+ dgvHZD.DataSource = operationApplys;
+ }
+ }
+
+
+ private void toolStripButton10_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+
+ ///
+ /// 表格配置
+ ///
+ ///
+ ///
+ private void tsbSettingDGV_Click(object sender, EventArgs e)
+ {
+ //DataGridViewSettingManager.GetInstance().ShowConfigUI(dgvOperation);
+ //dgvOperation.AllowUserToAddRows = false;
+ }
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+ if (dgvOperation.Rows.Count < 0 || dgvOperation.Rows.Count < 1)
+ {
+ MessageBox.Show("没有记录,请查询到数据后再导出数据到Excel");
+ return;
+ }
+ //if (rdoZQ.Checked == true)
+ //{
+ // BLL.DataGridViewToExcel.DataToExcel(dgvtEMPOperationInfos);
+ //}
+ //else
+ //{
+ // BLL.DataGridViewToExcel.DataToExcel(dgvHZD);
+ //}
+ }
+ private void cboRoom_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ //btnOK_Click(null, null);
+ LoadSelectDate();
+ }
+
+
+ private void dgvOperation_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
+ {
+ int OpeID = 0;
+ if (dgvOperation.SelectedRows.Count > 0)
+ {
+ OpeID = Convert.ToInt32(dgvOperation.SelectedRows[0].Cells[0].Value.ToString());
+ }
+ if (OpeID == 0)
+ {
+ return;
+ }
+ FeesRecordReport upHis = BFeesRecordReport.SelectSingle(OpeID);
+ cboRoom.Text = upHis.ExecDepartmentName;
+ //comboBoxExType.Text = upHis.PageType;
+ FeeType = upHis.FeeType;
+ if (upHis.FeeType == "麻醉") rdoMz.Checked = true;
+ else rdoHs.Checked = true;
+ if (upHis.ChargType == rdoZQ.Text) rdoZQ.Checked = true;
+ else rdoJZ.Checked = true;
+ dtpOpeTime.Value = upHis.StartTime.Value;
+ dtpEnd.Value = upHis.EndTime.Value;
+ btnOK_Click(null, null);
+
+ }
+
+ private void rdoZQ_CheckedChanged(object sender, EventArgs e)
+ {
+ if (rdoZQ.Checked == true)
+ {
+ dgvtEMPOperationInfos.Visible = true;
+ dgvHZD.Visible = false;
+ }
+ else
+ {
+ dgvtEMPOperationInfos.Visible = false;
+ dgvHZD.Visible = true;
+ }
+
+ //btnOK_Click(null, null);
+ }
+
+ private void voidableRadioButton2_CheckedChanged(object sender, EventArgs e)
+ {
+ if (rdoMz.Checked == true)
+ {
+ FeeType = "麻醉";
+ }
+ else
+ {
+ FeeType = "护士";
+ }
+ LoadSelectDate();
+ }
+
+ private void btnSave_Click(object sender, EventArgs e)
+ {
+ //if (comboBoxExType.Text == "")
+ //{
+ // MessageBox.Show("请选择药品单类型!", "系统提示"); return;
+ //}
+ FeesRecordReport upHisDrugOrdersSDYSelect = new FeesRecordReport();
+ DateTime beginTime = Convert.ToDateTime(dtpOpeTime.Value);
+ DateTime endTime = Convert.ToDateTime(dtpEnd.Value);
+ upHisDrugOrdersSDYSelect.StartTime = beginTime;
+ upHisDrugOrdersSDYSelect.EndTime = endTime;
+
+ //if (comboBoxExType.SelectedItem != null)
+ //{
+ // ComboItem chargitem = comboBoxExType.SelectedItem as ComboItem;
+ // upHisDrugOrdersSDYSelect.PageType = chargitem.Text;
+ // upHisDrugOrdersSDYSelect.PageNo = chargitem.Value.ToString();
+ //}
+ if (FeeType != "")
+ {
+ upHisDrugOrdersSDYSelect.FeeType = FeeType;
+ }
+ if (rdoZQ.Checked == true)
+ {
+ upHisDrugOrdersSDYSelect.ChargType = rdoZQ.Text;
+ }
+ else
+ {
+ upHisDrugOrdersSDYSelect.ChargType = rdoJZ.Text;
+ }
+ upHisDrugOrdersSDYSelect.OperatorId = PublicMethod.OperatorId;
+ upHisDrugOrdersSDYSelect.OperatorTime = DateTime.Now;
+ BFeesRecordReport.Insert(upHisDrugOrdersSDYSelect);
+ MessageBox.Show("保存成功!", "系统提示");
+ LoadSelectDate();
+ }
+
+ }
+}
diff --git a/AIMS/OperationAfter/frmOperationCharg3.designer.cs b/AIMS/OperationAfter/frmOperationCharg3.designer.cs
new file mode 100644
index 0000000..08b8b3c
--- /dev/null
+++ b/AIMS/OperationAfter/frmOperationCharg3.designer.cs
@@ -0,0 +1,1218 @@
+namespace AIMS.OperationAfter.UI
+{
+ partial class frmOperationCharg3
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.cboRoom = new DevComponents.DotNetBar.Controls.ComboBoxEx();
+ this.label22 = new System.Windows.Forms.Label();
+ this.button1 = new System.Windows.Forms.Button();
+ this.label2 = new System.Windows.Forms.Label();
+ this.tsbSettingDGV = new System.Windows.Forms.Button();
+ this.toolStripButton10 = new System.Windows.Forms.Button();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.panel4 = new System.Windows.Forms.Panel();
+ this.rdoHs = new System.Windows.Forms.RadioButton();
+ this.rdoMz = new System.Windows.Forms.RadioButton();
+ this.comboBoxExType = new DevComponents.DotNetBar.Controls.ComboBoxEx();
+ this.comboItem1 = new DevComponents.Editors.ComboItem();
+ this.comboItem2 = new DevComponents.Editors.ComboItem();
+ this.comboItem3 = new DevComponents.Editors.ComboItem();
+ this.comboItem4 = new DevComponents.Editors.ComboItem();
+ this.panel3 = new System.Windows.Forms.Panel();
+ this.rdoJZ = new System.Windows.Forms.RadioButton();
+ this.rdoZQ = new System.Windows.Forms.RadioButton();
+ this.dtpEnd = new DevComponents.Editors.DateTimeAdv.DateTimeInput();
+ this.dtpOpeTime = new DevComponents.Editors.DateTimeAdv.DateTimeInput();
+ this.label24 = new System.Windows.Forms.Label();
+ this.btnSave = new DevComponents.DotNetBar.ButtonX();
+ this.buttonX1 = new DevComponents.DotNetBar.ButtonX();
+ this.lblMessage = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.labDate = new System.Windows.Forms.Label();
+ this.groupBox1 = new System.Windows.Forms.GroupBox();
+ this.dgvOperation = new System.Windows.Forms.DataGridView();
+ this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.anesBegintime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Anesendtime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.TemplateType1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.ChargType = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.PageType = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.PageNo = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.ExecDepartmentName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dgvtEMPOperationInfos = new System.Windows.Forms.DataGridView();
+ this.dgvHZD = new System.Windows.Forms.DataGridView();
+ this.dataGridViewTextBoxColumn32 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.no = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn33 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn34 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn35 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn41 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn42 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn16 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn17 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn18 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn19 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn20 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn25 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn26 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn27 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn28 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn29 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn30 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn31 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.DId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn21 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn22 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.spec = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.execDept = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.room = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.PatName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.InNo = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.UpFreeTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn23 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.DUnit = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn24 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.ChargePrice = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panel1.SuspendLayout();
+ this.panel2.SuspendLayout();
+ this.panel4.SuspendLayout();
+ this.panel3.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dtpEnd)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dtpOpeTime)).BeginInit();
+ this.groupBox1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvOperation)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvtEMPOperationInfos)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvHZD)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panel1
+ //
+ this.panel1.BackColor = System.Drawing.Color.Transparent;
+ this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.panel1.Controls.Add(this.cboRoom);
+ this.panel1.Controls.Add(this.label22);
+ this.panel1.Controls.Add(this.button1);
+ this.panel1.Controls.Add(this.label2);
+ this.panel1.Controls.Add(this.tsbSettingDGV);
+ this.panel1.Controls.Add(this.toolStripButton10);
+ this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.panel1.Location = new System.Drawing.Point(0, 0);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(1350, 45);
+ this.panel1.TabIndex = 0;
+ //
+ // cboRoom
+ //
+ this.cboRoom.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.cboRoom.DisplayMember = "Text";
+ this.cboRoom.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
+ this.cboRoom.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.cboRoom.FormattingEnabled = true;
+ this.cboRoom.ItemHeight = 17;
+ this.cboRoom.Location = new System.Drawing.Point(994, 12);
+ this.cboRoom.Name = "cboRoom";
+ this.cboRoom.Size = new System.Drawing.Size(150, 23);
+ this.cboRoom.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.cboRoom.TabIndex = 32;
+ this.cboRoom.Visible = false;
+ //
+ // label22
+ //
+ this.label22.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label22.AutoSize = true;
+ this.label22.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label22.Location = new System.Drawing.Point(923, 13);
+ this.label22.Name = "label22";
+ this.label22.Size = new System.Drawing.Size(65, 20);
+ this.label22.TabIndex = 31;
+ this.label22.Text = "手术地点";
+ this.label22.Visible = false;
+ //
+ // button1
+ //
+ this.button1.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.button1.Dock = System.Windows.Forms.DockStyle.Left;
+ this.button1.FlatAppearance.BorderSize = 0;
+ this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.button1.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.button1.Location = new System.Drawing.Point(0, 0);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(100, 45);
+ this.button1.TabIndex = 16;
+ this.button1.Text = "导出Excel";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.button1_Click);
+ //
+ // label2
+ //
+ this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label2.AutoSize = true;
+ this.label2.BackColor = System.Drawing.Color.Transparent;
+ this.label2.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.label2.Location = new System.Drawing.Point(1238, 13);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(13, 20);
+ this.label2.TabIndex = 5;
+ this.label2.Text = "|";
+ this.label2.Visible = false;
+ //
+ // tsbSettingDGV
+ //
+ this.tsbSettingDGV.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.tsbSettingDGV.BackColor = System.Drawing.Color.Transparent;
+ this.tsbSettingDGV.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.tsbSettingDGV.FlatAppearance.BorderSize = 0;
+ this.tsbSettingDGV.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.tsbSettingDGV.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.tsbSettingDGV.Location = new System.Drawing.Point(1150, 8);
+ this.tsbSettingDGV.Name = "tsbSettingDGV";
+ this.tsbSettingDGV.Size = new System.Drawing.Size(85, 30);
+ this.tsbSettingDGV.TabIndex = 4;
+ this.tsbSettingDGV.Text = "表格设置";
+ this.tsbSettingDGV.UseVisualStyleBackColor = false;
+ this.tsbSettingDGV.Visible = false;
+ this.tsbSettingDGV.Click += new System.EventHandler(this.tsbSettingDGV_Click);
+ //
+ // toolStripButton10
+ //
+ this.toolStripButton10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.toolStripButton10.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.toolStripButton10.FlatAppearance.BorderSize = 0;
+ this.toolStripButton10.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.toolStripButton10.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.toolStripButton10.Location = new System.Drawing.Point(1257, 8);
+ this.toolStripButton10.Name = "toolStripButton10";
+ this.toolStripButton10.Size = new System.Drawing.Size(90, 30);
+ this.toolStripButton10.TabIndex = 0;
+ this.toolStripButton10.Text = "关闭";
+ this.toolStripButton10.UseVisualStyleBackColor = true;
+ this.toolStripButton10.Click += new System.EventHandler(this.toolStripButton10_Click);
+ //
+ // panel2
+ //
+ this.panel2.BackColor = System.Drawing.Color.WhiteSmoke;
+ this.panel2.Controls.Add(this.panel4);
+ this.panel2.Controls.Add(this.comboBoxExType);
+ this.panel2.Controls.Add(this.panel3);
+ this.panel2.Controls.Add(this.dtpEnd);
+ this.panel2.Controls.Add(this.dtpOpeTime);
+ this.panel2.Controls.Add(this.label24);
+ this.panel2.Controls.Add(this.btnSave);
+ this.panel2.Controls.Add(this.buttonX1);
+ this.panel2.Controls.Add(this.lblMessage);
+ this.panel2.Controls.Add(this.label1);
+ this.panel2.Controls.Add(this.labDate);
+ this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
+ this.panel2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.panel2.Location = new System.Drawing.Point(0, 45);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(1350, 81);
+ this.panel2.TabIndex = 387;
+ //
+ // panel4
+ //
+ this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel4.Controls.Add(this.rdoHs);
+ this.panel4.Controls.Add(this.rdoMz);
+ this.panel4.Location = new System.Drawing.Point(21, 6);
+ this.panel4.Name = "panel4";
+ this.panel4.Size = new System.Drawing.Size(177, 33);
+ this.panel4.TabIndex = 474;
+ //
+ // rdoHs
+ //
+ this.rdoHs.AutoSize = true;
+ this.rdoHs.Location = new System.Drawing.Point(93, 5);
+ this.rdoHs.Name = "rdoHs";
+ this.rdoHs.Size = new System.Drawing.Size(83, 24);
+ this.rdoHs.TabIndex = 0;
+ this.rdoHs.Text = "护士收费";
+ this.rdoHs.UseVisualStyleBackColor = true;
+ this.rdoHs.CheckedChanged += new System.EventHandler(this.voidableRadioButton2_CheckedChanged);
+ //
+ // rdoMz
+ //
+ this.rdoMz.AutoSize = true;
+ this.rdoMz.Checked = true;
+ this.rdoMz.Location = new System.Drawing.Point(2, 5);
+ this.rdoMz.Name = "rdoMz";
+ this.rdoMz.Size = new System.Drawing.Size(83, 24);
+ this.rdoMz.TabIndex = 0;
+ this.rdoMz.TabStop = true;
+ this.rdoMz.Text = "麻醉收费";
+ this.rdoMz.UseVisualStyleBackColor = true;
+ this.rdoMz.CheckedChanged += new System.EventHandler(this.voidableRadioButton2_CheckedChanged);
+ //
+ // comboBoxExType
+ //
+ this.comboBoxExType.DisplayMember = "Text";
+ this.comboBoxExType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
+ this.comboBoxExType.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.comboBoxExType.FormattingEnabled = true;
+ this.comboBoxExType.ItemHeight = 17;
+ this.comboBoxExType.Items.AddRange(new object[] {
+ this.comboItem1,
+ this.comboItem2,
+ this.comboItem3,
+ this.comboItem4});
+ this.comboBoxExType.Location = new System.Drawing.Point(491, 12);
+ this.comboBoxExType.Name = "comboBoxExType";
+ this.comboBoxExType.Size = new System.Drawing.Size(150, 23);
+ this.comboBoxExType.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.comboBoxExType.TabIndex = 32;
+ this.comboBoxExType.Visible = false;
+ this.comboBoxExType.SelectedIndexChanged += new System.EventHandler(this.cboRoom_SelectedIndexChanged);
+ //
+ // comboItem1
+ //
+ this.comboItem1.Text = "毒麻药品";
+ this.comboItem1.Value = "122";
+ //
+ // comboItem2
+ //
+ this.comboItem2.Text = "一类精神药品";
+ this.comboItem2.Value = "123";
+ //
+ // comboItem3
+ //
+ this.comboItem3.Text = "二类精神药品";
+ this.comboItem3.Value = "121";
+ //
+ // comboItem4
+ //
+ this.comboItem4.Text = "常规药,液";
+ this.comboItem4.Value = "64";
+ //
+ // panel3
+ //
+ this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel3.Controls.Add(this.rdoJZ);
+ this.panel3.Controls.Add(this.rdoZQ);
+ this.panel3.Location = new System.Drawing.Point(216, 6);
+ this.panel3.Name = "panel3";
+ this.panel3.Size = new System.Drawing.Size(172, 33);
+ this.panel3.TabIndex = 473;
+ //
+ // rdoJZ
+ //
+ this.rdoJZ.AutoSize = true;
+ this.rdoJZ.Location = new System.Drawing.Point(93, 5);
+ this.rdoJZ.Name = "rdoJZ";
+ this.rdoJZ.Size = new System.Drawing.Size(69, 24);
+ this.rdoJZ.TabIndex = 0;
+ this.rdoJZ.Text = "汇总单";
+ this.rdoJZ.UseVisualStyleBackColor = true;
+ this.rdoJZ.CheckedChanged += new System.EventHandler(this.rdoZQ_CheckedChanged);
+ //
+ // rdoZQ
+ //
+ this.rdoZQ.AutoSize = true;
+ this.rdoZQ.Checked = true;
+ this.rdoZQ.Location = new System.Drawing.Point(11, 5);
+ this.rdoZQ.Name = "rdoZQ";
+ this.rdoZQ.Size = new System.Drawing.Size(69, 24);
+ this.rdoZQ.TabIndex = 0;
+ this.rdoZQ.TabStop = true;
+ this.rdoZQ.Text = "明细单";
+ this.rdoZQ.UseVisualStyleBackColor = true;
+ this.rdoZQ.CheckedChanged += new System.EventHandler(this.rdoZQ_CheckedChanged);
+ //
+ // dtpEnd
+ //
+ //
+ //
+ //
+ this.dtpEnd.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dtpEnd.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown;
+ this.dtpEnd.ButtonDropDown.Visible = true;
+ this.dtpEnd.CustomFormat = "yyyy-MM-dd HH:mm";
+ this.dtpEnd.FocusHighlightColor = System.Drawing.Color.FromArgb(((int)(((byte)(46)))), ((int)(((byte)(186)))), ((int)(((byte)(179)))));
+ this.dtpEnd.Format = DevComponents.Editors.eDateTimePickerFormat.Custom;
+ this.dtpEnd.IsPopupCalendarOpen = false;
+ this.dtpEnd.Location = new System.Drawing.Point(310, 45);
+ //
+ //
+ //
+ //
+ //
+ //
+ this.dtpEnd.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.dtpEnd.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dtpEnd.MonthCalendar.DisplayMonth = new System.DateTime(2017, 11, 1, 0, 0, 0, 0);
+ //
+ //
+ //
+ this.dtpEnd.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dtpEnd.Name = "dtpEnd";
+ this.dtpEnd.Size = new System.Drawing.Size(200, 26);
+ this.dtpEnd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.dtpEnd.TabIndex = 472;
+ //
+ // dtpOpeTime
+ //
+ //
+ //
+ //
+ this.dtpOpeTime.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dtpOpeTime.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown;
+ this.dtpOpeTime.ButtonDropDown.Visible = true;
+ this.dtpOpeTime.CustomFormat = "yyyy-MM-dd HH:mm";
+ this.dtpOpeTime.FocusHighlightColor = System.Drawing.Color.FromArgb(((int)(((byte)(46)))), ((int)(((byte)(186)))), ((int)(((byte)(179)))));
+ this.dtpOpeTime.Format = DevComponents.Editors.eDateTimePickerFormat.Custom;
+ this.dtpOpeTime.IsPopupCalendarOpen = false;
+ this.dtpOpeTime.Location = new System.Drawing.Point(94, 44);
+ //
+ //
+ //
+ //
+ //
+ //
+ this.dtpOpeTime.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.dtpOpeTime.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dtpOpeTime.MonthCalendar.DisplayMonth = new System.DateTime(2017, 11, 1, 0, 0, 0, 0);
+ //
+ //
+ //
+ this.dtpOpeTime.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dtpOpeTime.Name = "dtpOpeTime";
+ this.dtpOpeTime.Size = new System.Drawing.Size(200, 26);
+ this.dtpOpeTime.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.dtpOpeTime.TabIndex = 471;
+ //
+ // label24
+ //
+ this.label24.AutoSize = true;
+ this.label24.Location = new System.Drawing.Point(294, 47);
+ this.label24.Name = "label24";
+ this.label24.Size = new System.Drawing.Size(15, 20);
+ this.label24.TabIndex = 470;
+ this.label24.Text = "-";
+ //
+ // btnSave
+ //
+ this.btnSave.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
+ this.btnSave.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
+ this.btnSave.Font = new System.Drawing.Font("微软雅黑", 11.5F);
+ this.btnSave.Location = new System.Drawing.Point(628, 44);
+ this.btnSave.Name = "btnSave";
+ this.btnSave.Size = new System.Drawing.Size(90, 29);
+ this.btnSave.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnSave.TabIndex = 467;
+ this.btnSave.Text = "保存";
+ this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
+ //
+ // buttonX1
+ //
+ this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
+ this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
+ this.buttonX1.Font = new System.Drawing.Font("微软雅黑", 11.5F);
+ this.buttonX1.Location = new System.Drawing.Point(520, 44);
+ this.buttonX1.Name = "buttonX1";
+ this.buttonX1.Size = new System.Drawing.Size(90, 29);
+ this.buttonX1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.buttonX1.TabIndex = 467;
+ this.buttonX1.Text = "查询";
+ this.buttonX1.Click += new System.EventHandler(this.btnOK_Click);
+ //
+ // lblMessage
+ //
+ this.lblMessage.AutoSize = true;
+ this.lblMessage.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lblMessage.ForeColor = System.Drawing.Color.ForestGreen;
+ this.lblMessage.Location = new System.Drawing.Point(735, 52);
+ this.lblMessage.Name = "lblMessage";
+ this.lblMessage.Size = new System.Drawing.Size(51, 19);
+ this.lblMessage.TabIndex = 422;
+ this.lblMessage.Text = "label2";
+ this.lblMessage.Visible = false;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(403, 13);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(82, 20);
+ this.label1.TabIndex = 421;
+ this.label1.Text = "药品单类型:";
+ this.label1.Visible = false;
+ //
+ // labDate
+ //
+ this.labDate.AutoSize = true;
+ this.labDate.Location = new System.Drawing.Point(20, 48);
+ this.labDate.Name = "labDate";
+ this.labDate.Size = new System.Drawing.Size(68, 20);
+ this.labDate.TabIndex = 421;
+ this.labDate.Text = "上传时间:";
+ //
+ // groupBox1
+ //
+ this.groupBox1.Controls.Add(this.dgvOperation);
+ this.groupBox1.Dock = System.Windows.Forms.DockStyle.Left;
+ this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 10F);
+ this.groupBox1.Location = new System.Drawing.Point(0, 126);
+ this.groupBox1.Name = "groupBox1";
+ this.groupBox1.Size = new System.Drawing.Size(520, 415);
+ this.groupBox1.TabIndex = 388;
+ this.groupBox1.TabStop = false;
+ this.groupBox1.Text = "查询记录";
+ //
+ // dgvOperation
+ //
+ this.dgvOperation.AllowUserToAddRows = false;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(247)))), ((int)(((byte)(255)))));
+ this.dgvOperation.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ this.dgvOperation.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+ this.dgvOperation.BackgroundColor = System.Drawing.Color.Snow;
+ this.dgvOperation.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 10F);
+ dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.dgvOperation.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+ this.dgvOperation.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvOperation.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Id,
+ this.anesBegintime,
+ this.Anesendtime,
+ this.TemplateType1,
+ this.ChargType,
+ this.PageType,
+ this.PageNo,
+ this.ExecDepartmentName});
+ this.dgvOperation.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.dgvOperation.Location = new System.Drawing.Point(3, 21);
+ this.dgvOperation.Margin = new System.Windows.Forms.Padding(2);
+ this.dgvOperation.Name = "dgvOperation";
+ this.dgvOperation.ReadOnly = true;
+ this.dgvOperation.RowTemplate.Height = 27;
+ this.dgvOperation.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dgvOperation.Size = new System.Drawing.Size(514, 391);
+ this.dgvOperation.TabIndex = 386;
+ this.dgvOperation.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvOperation_CellDoubleClick);
+ //
+ // Id
+ //
+ this.Id.DataPropertyName = "Id";
+ this.Id.HeaderText = "Id";
+ this.Id.Name = "Id";
+ this.Id.ReadOnly = true;
+ this.Id.Visible = false;
+ //
+ // anesBegintime
+ //
+ this.anesBegintime.DataPropertyName = "StartTime";
+ this.anesBegintime.HeaderText = "开始时间";
+ this.anesBegintime.Name = "anesBegintime";
+ this.anesBegintime.ReadOnly = true;
+ //
+ // Anesendtime
+ //
+ this.Anesendtime.DataPropertyName = "EndTime";
+ this.Anesendtime.HeaderText = "结束时间";
+ this.Anesendtime.Name = "Anesendtime";
+ this.Anesendtime.ReadOnly = true;
+ //
+ // TemplateType1
+ //
+ this.TemplateType1.DataPropertyName = "FeeType";
+ this.TemplateType1.HeaderText = "类别";
+ this.TemplateType1.Name = "TemplateType1";
+ this.TemplateType1.ReadOnly = true;
+ //
+ // ChargType
+ //
+ this.ChargType.DataPropertyName = "ChargType";
+ this.ChargType.HeaderText = "收费类别";
+ this.ChargType.Name = "ChargType";
+ this.ChargType.ReadOnly = true;
+ //
+ // PageType
+ //
+ this.PageType.DataPropertyName = "PageType";
+ this.PageType.HeaderText = "药品单类型";
+ this.PageType.Name = "PageType";
+ this.PageType.ReadOnly = true;
+ this.PageType.Visible = false;
+ //
+ // PageNo
+ //
+ this.PageNo.DataPropertyName = "PageNo";
+ this.PageNo.HeaderText = "药品单号";
+ this.PageNo.Name = "PageNo";
+ this.PageNo.ReadOnly = true;
+ this.PageNo.Visible = false;
+ //
+ // ExecDepartmentName
+ //
+ this.ExecDepartmentName.DataPropertyName = "ExecDepartmentName";
+ this.ExecDepartmentName.HeaderText = "执行科室";
+ this.ExecDepartmentName.Name = "ExecDepartmentName";
+ this.ExecDepartmentName.ReadOnly = true;
+ this.ExecDepartmentName.Visible = false;
+ //
+ // dgvtEMPOperationInfos
+ //
+ this.dgvtEMPOperationInfos.AllowUserToAddRows = false;
+ this.dgvtEMPOperationInfos.AllowUserToDeleteRows = false;
+ this.dgvtEMPOperationInfos.AllowUserToResizeColumns = false;
+ this.dgvtEMPOperationInfos.AllowUserToResizeRows = false;
+ this.dgvtEMPOperationInfos.BackgroundColor = System.Drawing.Color.White;
+ this.dgvtEMPOperationInfos.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ this.dgvtEMPOperationInfos.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvtEMPOperationInfos.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.DId,
+ this.dataGridViewTextBoxColumn21,
+ this.dataGridViewTextBoxColumn22,
+ this.spec,
+ this.execDept,
+ this.room,
+ this.PatName,
+ this.InNo,
+ this.UpFreeTime,
+ this.dataGridViewTextBoxColumn23,
+ this.DUnit,
+ this.dataGridViewTextBoxColumn24,
+ this.ChargePrice});
+ dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 10.5F);
+ dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.dgvtEMPOperationInfos.DefaultCellStyle = dataGridViewCellStyle3;
+ this.dgvtEMPOperationInfos.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.dgvtEMPOperationInfos.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
+ this.dgvtEMPOperationInfos.GridColor = System.Drawing.Color.Black;
+ this.dgvtEMPOperationInfos.Location = new System.Drawing.Point(520, 126);
+ this.dgvtEMPOperationInfos.MultiSelect = false;
+ this.dgvtEMPOperationInfos.Name = "dgvtEMPOperationInfos";
+ this.dgvtEMPOperationInfos.ReadOnly = true;
+ this.dgvtEMPOperationInfos.RowHeadersVisible = false;
+ this.dgvtEMPOperationInfos.RowTemplate.Height = 23;
+ this.dgvtEMPOperationInfos.ShowCellErrors = false;
+ this.dgvtEMPOperationInfos.ShowCellToolTips = false;
+ this.dgvtEMPOperationInfos.Size = new System.Drawing.Size(830, 415);
+ this.dgvtEMPOperationInfos.TabIndex = 389;
+ //
+ // dgvHZD
+ //
+ this.dgvHZD.AllowUserToAddRows = false;
+ this.dgvHZD.AllowUserToDeleteRows = false;
+ this.dgvHZD.AllowUserToResizeColumns = false;
+ this.dgvHZD.AllowUserToResizeRows = false;
+ this.dgvHZD.BackgroundColor = System.Drawing.Color.White;
+ this.dgvHZD.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ this.dgvHZD.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvHZD.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.dataGridViewTextBoxColumn32,
+ this.no,
+ this.dataGridViewTextBoxColumn33,
+ this.dataGridViewTextBoxColumn34,
+ this.dataGridViewTextBoxColumn35,
+ this.dataGridViewTextBoxColumn41,
+ this.dataGridViewTextBoxColumn42});
+ dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 10.5F);
+ dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.dgvHZD.DefaultCellStyle = dataGridViewCellStyle4;
+ this.dgvHZD.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.dgvHZD.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
+ this.dgvHZD.GridColor = System.Drawing.Color.Black;
+ this.dgvHZD.Location = new System.Drawing.Point(520, 126);
+ this.dgvHZD.MultiSelect = false;
+ this.dgvHZD.Name = "dgvHZD";
+ this.dgvHZD.ReadOnly = true;
+ this.dgvHZD.RowHeadersVisible = false;
+ this.dgvHZD.RowTemplate.Height = 23;
+ this.dgvHZD.ShowCellErrors = false;
+ this.dgvHZD.ShowCellToolTips = false;
+ this.dgvHZD.Size = new System.Drawing.Size(830, 415);
+ this.dgvHZD.TabIndex = 390;
+ this.dgvHZD.Visible = false;
+ //
+ // dataGridViewTextBoxColumn32
+ //
+ this.dataGridViewTextBoxColumn32.HeaderText = "id";
+ this.dataGridViewTextBoxColumn32.Name = "dataGridViewTextBoxColumn32";
+ this.dataGridViewTextBoxColumn32.ReadOnly = true;
+ this.dataGridViewTextBoxColumn32.Visible = false;
+ this.dataGridViewTextBoxColumn32.Width = 60;
+ //
+ // no
+ //
+ this.no.DataPropertyName = "noo";
+ this.no.HeaderText = "序号";
+ this.no.Name = "no";
+ this.no.ReadOnly = true;
+ this.no.Width = 56;
+ //
+ // dataGridViewTextBoxColumn33
+ //
+ this.dataGridViewTextBoxColumn33.DataPropertyName = "FeeCode";
+ this.dataGridViewTextBoxColumn33.HeaderText = "编码";
+ this.dataGridViewTextBoxColumn33.Name = "dataGridViewTextBoxColumn33";
+ this.dataGridViewTextBoxColumn33.ReadOnly = true;
+ this.dataGridViewTextBoxColumn33.Visible = false;
+ this.dataGridViewTextBoxColumn33.Width = 75;
+ //
+ // dataGridViewTextBoxColumn34
+ //
+ this.dataGridViewTextBoxColumn34.DataPropertyName = "ChargName";
+ this.dataGridViewTextBoxColumn34.HeaderText = "药品名称";
+ this.dataGridViewTextBoxColumn34.Name = "dataGridViewTextBoxColumn34";
+ this.dataGridViewTextBoxColumn34.ReadOnly = true;
+ this.dataGridViewTextBoxColumn34.Width = 200;
+ //
+ // dataGridViewTextBoxColumn35
+ //
+ this.dataGridViewTextBoxColumn35.DataPropertyName = "ChargSpec";
+ this.dataGridViewTextBoxColumn35.HeaderText = "规格";
+ this.dataGridViewTextBoxColumn35.Name = "dataGridViewTextBoxColumn35";
+ this.dataGridViewTextBoxColumn35.ReadOnly = true;
+ this.dataGridViewTextBoxColumn35.Width = 160;
+ //
+ // dataGridViewTextBoxColumn41
+ //
+ this.dataGridViewTextBoxColumn41.DataPropertyName = "FeeNum";
+ this.dataGridViewTextBoxColumn41.HeaderText = "数量";
+ this.dataGridViewTextBoxColumn41.Name = "dataGridViewTextBoxColumn41";
+ this.dataGridViewTextBoxColumn41.ReadOnly = true;
+ this.dataGridViewTextBoxColumn41.Width = 60;
+ //
+ // dataGridViewTextBoxColumn42
+ //
+ this.dataGridViewTextBoxColumn42.DataPropertyName = "UnitPrice";
+ this.dataGridViewTextBoxColumn42.HeaderText = "单价";
+ this.dataGridViewTextBoxColumn42.Name = "dataGridViewTextBoxColumn42";
+ this.dataGridViewTextBoxColumn42.ReadOnly = true;
+ this.dataGridViewTextBoxColumn42.Width = 60;
+ //
+ // dataGridViewTextBoxColumn1
+ //
+ this.dataGridViewTextBoxColumn1.DataPropertyName = "OperationRecordId";
+ this.dataGridViewTextBoxColumn1.HeaderText = "手术ID";
+ this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
+ this.dataGridViewTextBoxColumn1.ReadOnly = true;
+ this.dataGridViewTextBoxColumn1.Visible = false;
+ this.dataGridViewTextBoxColumn1.Width = 167;
+ //
+ // dataGridViewTextBoxColumn2
+ //
+ this.dataGridViewTextBoxColumn2.DataPropertyName = "OperationApplyId";
+ this.dataGridViewTextBoxColumn2.HeaderText = "申请ID";
+ this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
+ this.dataGridViewTextBoxColumn2.ReadOnly = true;
+ this.dataGridViewTextBoxColumn2.Visible = false;
+ this.dataGridViewTextBoxColumn2.Width = 166;
+ //
+ // dataGridViewTextBoxColumn3
+ //
+ this.dataGridViewTextBoxColumn3.DataPropertyName = "PatientId";
+ this.dataGridViewTextBoxColumn3.HeaderText = "病人ID";
+ this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
+ this.dataGridViewTextBoxColumn3.ReadOnly = true;
+ this.dataGridViewTextBoxColumn3.Visible = false;
+ this.dataGridViewTextBoxColumn3.Width = 60;
+ //
+ // dataGridViewTextBoxColumn4
+ //
+ this.dataGridViewTextBoxColumn4.DataPropertyName = "code";
+ this.dataGridViewTextBoxColumn4.HeaderText = "序号";
+ this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
+ this.dataGridViewTextBoxColumn4.ReadOnly = true;
+ this.dataGridViewTextBoxColumn4.Visible = false;
+ this.dataGridViewTextBoxColumn4.Width = 75;
+ //
+ // dataGridViewTextBoxColumn5
+ //
+ this.dataGridViewTextBoxColumn5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.dataGridViewTextBoxColumn5.DataPropertyName = "OperationPriority";
+ this.dataGridViewTextBoxColumn5.FillWeight = 137.1497F;
+ this.dataGridViewTextBoxColumn5.HeaderText = "手术分类";
+ this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
+ this.dataGridViewTextBoxColumn5.ReadOnly = true;
+ this.dataGridViewTextBoxColumn5.Visible = false;
+ this.dataGridViewTextBoxColumn5.Width = 112;
+ //
+ // dataGridViewTextBoxColumn6
+ //
+ this.dataGridViewTextBoxColumn6.DataPropertyName = "DepartmentName";
+ this.dataGridViewTextBoxColumn6.FillWeight = 80.11563F;
+ this.dataGridViewTextBoxColumn6.HeaderText = "科室";
+ this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
+ this.dataGridViewTextBoxColumn6.ReadOnly = true;
+ this.dataGridViewTextBoxColumn6.Visible = false;
+ this.dataGridViewTextBoxColumn6.Width = 66;
+ //
+ // dataGridViewTextBoxColumn7
+ //
+ this.dataGridViewTextBoxColumn7.DataPropertyName = "SZOperationRoom";
+ this.dataGridViewTextBoxColumn7.FillWeight = 65.36763F;
+ this.dataGridViewTextBoxColumn7.HeaderText = "手术间";
+ this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
+ this.dataGridViewTextBoxColumn7.ReadOnly = true;
+ this.dataGridViewTextBoxColumn7.Width = 82;
+ //
+ // dataGridViewTextBoxColumn8
+ //
+ this.dataGridViewTextBoxColumn8.DataPropertyName = "InHospitalNo";
+ this.dataGridViewTextBoxColumn8.FillWeight = 93.9558F;
+ this.dataGridViewTextBoxColumn8.HeaderText = "住院号";
+ this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
+ this.dataGridViewTextBoxColumn8.ReadOnly = true;
+ this.dataGridViewTextBoxColumn8.Width = 77;
+ //
+ // dataGridViewTextBoxColumn9
+ //
+ this.dataGridViewTextBoxColumn9.DataPropertyName = "MedicalHistoryNo";
+ this.dataGridViewTextBoxColumn9.FillWeight = 92.42704F;
+ this.dataGridViewTextBoxColumn9.HeaderText = "病历号";
+ this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
+ this.dataGridViewTextBoxColumn9.ReadOnly = true;
+ this.dataGridViewTextBoxColumn9.Visible = false;
+ this.dataGridViewTextBoxColumn9.Width = 76;
+ //
+ // dataGridViewTextBoxColumn10
+ //
+ this.dataGridViewTextBoxColumn10.DataPropertyName = "PatientName";
+ this.dataGridViewTextBoxColumn10.FillWeight = 73.51968F;
+ this.dataGridViewTextBoxColumn10.HeaderText = "姓名";
+ this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
+ this.dataGridViewTextBoxColumn10.ReadOnly = true;
+ this.dataGridViewTextBoxColumn10.Visible = false;
+ this.dataGridViewTextBoxColumn10.Width = 60;
+ //
+ // dataGridViewTextBoxColumn11
+ //
+ this.dataGridViewTextBoxColumn11.DataPropertyName = "Sex";
+ this.dataGridViewTextBoxColumn11.FillWeight = 73.70361F;
+ this.dataGridViewTextBoxColumn11.HeaderText = "性别";
+ this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11";
+ this.dataGridViewTextBoxColumn11.ReadOnly = true;
+ this.dataGridViewTextBoxColumn11.Visible = false;
+ this.dataGridViewTextBoxColumn11.Width = 61;
+ //
+ // dataGridViewTextBoxColumn12
+ //
+ this.dataGridViewTextBoxColumn12.DataPropertyName = "Bed";
+ this.dataGridViewTextBoxColumn12.FillWeight = 73.20498F;
+ this.dataGridViewTextBoxColumn12.HeaderText = "床号";
+ this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12";
+ this.dataGridViewTextBoxColumn12.ReadOnly = true;
+ this.dataGridViewTextBoxColumn12.Visible = false;
+ this.dataGridViewTextBoxColumn12.Width = 60;
+ //
+ // dataGridViewTextBoxColumn13
+ //
+ this.dataGridViewTextBoxColumn13.DataPropertyName = "SZDiagnose";
+ this.dataGridViewTextBoxColumn13.FillWeight = 134.5945F;
+ this.dataGridViewTextBoxColumn13.HeaderText = "术后诊断";
+ this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13";
+ this.dataGridViewTextBoxColumn13.ReadOnly = true;
+ this.dataGridViewTextBoxColumn13.Visible = false;
+ this.dataGridViewTextBoxColumn13.Width = 110;
+ //
+ // dataGridViewTextBoxColumn14
+ //
+ this.dataGridViewTextBoxColumn14.DataPropertyName = "SZOperation";
+ this.dataGridViewTextBoxColumn14.FillWeight = 131.7017F;
+ this.dataGridViewTextBoxColumn14.HeaderText = "实施手术";
+ this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14";
+ this.dataGridViewTextBoxColumn14.ReadOnly = true;
+ this.dataGridViewTextBoxColumn14.Visible = false;
+ this.dataGridViewTextBoxColumn14.Width = 108;
+ //
+ // dataGridViewTextBoxColumn15
+ //
+ this.dataGridViewTextBoxColumn15.DataPropertyName = "SZAnaesthesiaMethod";
+ this.dataGridViewTextBoxColumn15.FillWeight = 128.4264F;
+ this.dataGridViewTextBoxColumn15.HeaderText = "麻醉方式";
+ this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15";
+ this.dataGridViewTextBoxColumn15.ReadOnly = true;
+ this.dataGridViewTextBoxColumn15.Visible = false;
+ this.dataGridViewTextBoxColumn15.Width = 106;
+ //
+ // dataGridViewTextBoxColumn16
+ //
+ this.dataGridViewTextBoxColumn16.DataPropertyName = "SZOperationDoctor";
+ this.dataGridViewTextBoxColumn16.FillWeight = 81.201F;
+ this.dataGridViewTextBoxColumn16.HeaderText = "术者";
+ this.dataGridViewTextBoxColumn16.Name = "dataGridViewTextBoxColumn16";
+ this.dataGridViewTextBoxColumn16.ReadOnly = true;
+ this.dataGridViewTextBoxColumn16.Visible = false;
+ this.dataGridViewTextBoxColumn16.Width = 67;
+ //
+ // dataGridViewTextBoxColumn17
+ //
+ this.dataGridViewTextBoxColumn17.DataPropertyName = "SZAnesthesiaDoctor";
+ this.dataGridViewTextBoxColumn17.HeaderText = "麻醉医生";
+ this.dataGridViewTextBoxColumn17.Name = "dataGridViewTextBoxColumn17";
+ this.dataGridViewTextBoxColumn17.ReadOnly = true;
+ this.dataGridViewTextBoxColumn17.Visible = false;
+ this.dataGridViewTextBoxColumn17.Width = 82;
+ //
+ // dataGridViewTextBoxColumn18
+ //
+ this.dataGridViewTextBoxColumn18.DataPropertyName = "AnesthesiaEndTime";
+ this.dataGridViewTextBoxColumn18.HeaderText = "麻醉结束";
+ this.dataGridViewTextBoxColumn18.Name = "dataGridViewTextBoxColumn18";
+ this.dataGridViewTextBoxColumn18.ReadOnly = true;
+ this.dataGridViewTextBoxColumn18.Visible = false;
+ this.dataGridViewTextBoxColumn18.Width = 96;
+ //
+ // dataGridViewTextBoxColumn19
+ //
+ this.dataGridViewTextBoxColumn19.DataPropertyName = "OutRoomTime";
+ this.dataGridViewTextBoxColumn19.HeaderText = "出室时间";
+ this.dataGridViewTextBoxColumn19.Name = "dataGridViewTextBoxColumn19";
+ this.dataGridViewTextBoxColumn19.Visible = false;
+ this.dataGridViewTextBoxColumn19.Width = 96;
+ //
+ // dataGridViewTextBoxColumn20
+ //
+ this.dataGridViewTextBoxColumn20.DataPropertyName = "chagestate";
+ this.dataGridViewTextBoxColumn20.FillWeight = 65.36763F;
+ this.dataGridViewTextBoxColumn20.HeaderText = "收费状态";
+ this.dataGridViewTextBoxColumn20.Name = "dataGridViewTextBoxColumn20";
+ this.dataGridViewTextBoxColumn20.Visible = false;
+ this.dataGridViewTextBoxColumn20.Width = 63;
+ //
+ // dataGridViewTextBoxColumn25
+ //
+ this.dataGridViewTextBoxColumn25.HeaderText = "单位";
+ this.dataGridViewTextBoxColumn25.Name = "dataGridViewTextBoxColumn25";
+ this.dataGridViewTextBoxColumn25.Visible = false;
+ this.dataGridViewTextBoxColumn25.Width = 60;
+ //
+ // dataGridViewTextBoxColumn26
+ //
+ this.dataGridViewTextBoxColumn26.DataPropertyName = "DrugPrice";
+ this.dataGridViewTextBoxColumn26.HeaderText = "单价";
+ this.dataGridViewTextBoxColumn26.Name = "dataGridViewTextBoxColumn26";
+ this.dataGridViewTextBoxColumn26.ReadOnly = true;
+ this.dataGridViewTextBoxColumn26.Width = 70;
+ //
+ // dataGridViewTextBoxColumn27
+ //
+ this.dataGridViewTextBoxColumn27.DataPropertyName = "display_name";
+ this.dataGridViewTextBoxColumn27.HeaderText = "单号";
+ this.dataGridViewTextBoxColumn27.Name = "dataGridViewTextBoxColumn27";
+ this.dataGridViewTextBoxColumn27.Visible = false;
+ this.dataGridViewTextBoxColumn27.Width = 80;
+ //
+ // dataGridViewTextBoxColumn28
+ //
+ this.dataGridViewTextBoxColumn28.DataPropertyName = "specification";
+ this.dataGridViewTextBoxColumn28.HeaderText = "医嘱号";
+ this.dataGridViewTextBoxColumn28.Name = "dataGridViewTextBoxColumn28";
+ this.dataGridViewTextBoxColumn28.Width = 160;
+ //
+ // dataGridViewTextBoxColumn29
+ //
+ this.dataGridViewTextBoxColumn29.DataPropertyName = "qty";
+ this.dataGridViewTextBoxColumn29.HeaderText = "His医嘱号";
+ this.dataGridViewTextBoxColumn29.Name = "dataGridViewTextBoxColumn29";
+ this.dataGridViewTextBoxColumn29.Width = 60;
+ //
+ // dataGridViewTextBoxColumn30
+ //
+ this.dataGridViewTextBoxColumn30.DataPropertyName = "qty_unit";
+ this.dataGridViewTextBoxColumn30.HeaderText = "His数量";
+ this.dataGridViewTextBoxColumn30.Name = "dataGridViewTextBoxColumn30";
+ this.dataGridViewTextBoxColumn30.Visible = false;
+ this.dataGridViewTextBoxColumn30.Width = 60;
+ //
+ // dataGridViewTextBoxColumn31
+ //
+ this.dataGridViewTextBoxColumn31.DataPropertyName = "qty_unit";
+ this.dataGridViewTextBoxColumn31.HeaderText = "收费状态";
+ this.dataGridViewTextBoxColumn31.Name = "dataGridViewTextBoxColumn31";
+ this.dataGridViewTextBoxColumn31.Visible = false;
+ this.dataGridViewTextBoxColumn31.Width = 60;
+ //
+ // DId
+ //
+ this.DId.DataPropertyName = "Id";
+ this.DId.HeaderText = "id";
+ this.DId.Name = "DId";
+ this.DId.ReadOnly = true;
+ this.DId.Visible = false;
+ this.DId.Width = 60;
+ //
+ // dataGridViewTextBoxColumn21
+ //
+ this.dataGridViewTextBoxColumn21.DataPropertyName = "FeeCode";
+ this.dataGridViewTextBoxColumn21.HeaderText = "编码";
+ this.dataGridViewTextBoxColumn21.Name = "dataGridViewTextBoxColumn21";
+ this.dataGridViewTextBoxColumn21.ReadOnly = true;
+ this.dataGridViewTextBoxColumn21.Width = 75;
+ //
+ // dataGridViewTextBoxColumn22
+ //
+ this.dataGridViewTextBoxColumn22.DataPropertyName = "ChargName";
+ this.dataGridViewTextBoxColumn22.HeaderText = "药品名称";
+ this.dataGridViewTextBoxColumn22.Name = "dataGridViewTextBoxColumn22";
+ this.dataGridViewTextBoxColumn22.ReadOnly = true;
+ this.dataGridViewTextBoxColumn22.Width = 200;
+ //
+ // spec
+ //
+ this.spec.DataPropertyName = "ChargSpec";
+ this.spec.HeaderText = "规格";
+ this.spec.Name = "spec";
+ this.spec.ReadOnly = true;
+ this.spec.Width = 160;
+ //
+ // execDept
+ //
+ this.execDept.DataPropertyName = "ExecDept";
+ this.execDept.HeaderText = "执行科室";
+ this.execDept.Name = "execDept";
+ this.execDept.ReadOnly = true;
+ this.execDept.Width = 150;
+ //
+ // room
+ //
+ this.room.DataPropertyName = "OperationRoom";
+ this.room.HeaderText = "手术间";
+ this.room.Name = "room";
+ this.room.ReadOnly = true;
+ this.room.Width = 150;
+ //
+ // PatName
+ //
+ this.PatName.DataPropertyName = "PatientName";
+ this.PatName.HeaderText = "患者姓名";
+ this.PatName.Name = "PatName";
+ this.PatName.ReadOnly = true;
+ this.PatName.Width = 80;
+ //
+ // InNo
+ //
+ this.InNo.DataPropertyName = "MdrecNo";
+ this.InNo.HeaderText = "住院号";
+ this.InNo.Name = "InNo";
+ this.InNo.ReadOnly = true;
+ this.InNo.Width = 80;
+ //
+ // UpFreeTime
+ //
+ this.UpFreeTime.DataPropertyName = "ExecTime";
+ this.UpFreeTime.HeaderText = "执行时间";
+ this.UpFreeTime.Name = "UpFreeTime";
+ this.UpFreeTime.ReadOnly = true;
+ this.UpFreeTime.Width = 125;
+ //
+ // dataGridViewTextBoxColumn23
+ //
+ this.dataGridViewTextBoxColumn23.DataPropertyName = "FeeNum";
+ this.dataGridViewTextBoxColumn23.HeaderText = "数量";
+ this.dataGridViewTextBoxColumn23.Name = "dataGridViewTextBoxColumn23";
+ this.dataGridViewTextBoxColumn23.ReadOnly = true;
+ this.dataGridViewTextBoxColumn23.Width = 60;
+ //
+ // DUnit
+ //
+ this.DUnit.DataPropertyName = "Unit";
+ this.DUnit.HeaderText = "单位";
+ this.DUnit.Name = "DUnit";
+ this.DUnit.ReadOnly = true;
+ this.DUnit.Visible = false;
+ this.DUnit.Width = 60;
+ //
+ // dataGridViewTextBoxColumn24
+ //
+ this.dataGridViewTextBoxColumn24.DataPropertyName = "UnitPrice";
+ this.dataGridViewTextBoxColumn24.HeaderText = "单价";
+ this.dataGridViewTextBoxColumn24.Name = "dataGridViewTextBoxColumn24";
+ this.dataGridViewTextBoxColumn24.ReadOnly = true;
+ this.dataGridViewTextBoxColumn24.Width = 70;
+ //
+ // ChargePrice
+ //
+ this.ChargePrice.DataPropertyName = "ChargePrice";
+ this.ChargePrice.HeaderText = "总价";
+ this.ChargePrice.Name = "ChargePrice";
+ this.ChargePrice.ReadOnly = true;
+ //
+ // frmOperationCharg3
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1350, 541);
+ this.Controls.Add(this.dgvHZD);
+ this.Controls.Add(this.dgvtEMPOperationInfos);
+ this.Controls.Add(this.groupBox1);
+ this.Controls.Add(this.panel2);
+ this.Controls.Add(this.panel1);
+ this.Name = "frmOperationCharg3";
+ this.Text = "费用对照";
+ this.Load += new System.EventHandler(this.frmOperationDruggCheck_Load);
+ this.panel1.ResumeLayout(false);
+ this.panel1.PerformLayout();
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
+ this.panel4.ResumeLayout(false);
+ this.panel4.PerformLayout();
+ this.panel3.ResumeLayout(false);
+ this.panel3.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dtpEnd)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dtpOpeTime)).EndInit();
+ this.groupBox1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvOperation)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvtEMPOperationInfos)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvHZD)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Button toolStripButton10;
+ private System.Windows.Forms.Panel panel2;
+ private System.Windows.Forms.Label lblMessage;
+ public System.Windows.Forms.Label labDate;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Button tsbSettingDGV;
+ private DevComponents.DotNetBar.ButtonX buttonX1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn12;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn13;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn14;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn15;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn16;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn17;
+ private DevComponents.Editors.DateTimeAdv.DateTimeInput dtpEnd;
+ private DevComponents.Editors.DateTimeAdv.DateTimeInput dtpOpeTime;
+ public System.Windows.Forms.Label label24;
+ private System.Windows.Forms.Button button1;
+ private DevComponents.DotNetBar.Controls.ComboBoxEx cboRoom;
+ private System.Windows.Forms.Label label22;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn18;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn19;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn20;
+ private System.Windows.Forms.GroupBox groupBox1;
+ private System.Windows.Forms.DataGridView dgvOperation;
+ private System.Windows.Forms.DataGridView dgvtEMPOperationInfos;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn25;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn26;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn27;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn28;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn29;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn30;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn31;
+ private System.Windows.Forms.Panel panel3;
+ private System.Windows.Forms.RadioButton rdoJZ;
+ private System.Windows.Forms.RadioButton rdoZQ;
+ private DevComponents.DotNetBar.Controls.ComboBoxEx comboBoxExType;
+ public System.Windows.Forms.Label label1;
+ private System.Windows.Forms.DataGridView dgvHZD;
+ private DevComponents.Editors.ComboItem comboItem1;
+ private DevComponents.Editors.ComboItem comboItem2;
+ private DevComponents.Editors.ComboItem comboItem3;
+ private DevComponents.Editors.ComboItem comboItem4;
+ private System.Windows.Forms.Panel panel4;
+ private System.Windows.Forms.RadioButton rdoHs;
+ private System.Windows.Forms.RadioButton rdoMz;
+ private DevComponents.DotNetBar.ButtonX btnSave;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn32;
+ private System.Windows.Forms.DataGridViewTextBoxColumn no;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn33;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn34;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn35;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn41;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn42;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Id;
+ private System.Windows.Forms.DataGridViewTextBoxColumn anesBegintime;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Anesendtime;
+ private System.Windows.Forms.DataGridViewTextBoxColumn TemplateType1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn ChargType;
+ private System.Windows.Forms.DataGridViewTextBoxColumn PageType;
+ private System.Windows.Forms.DataGridViewTextBoxColumn PageNo;
+ private System.Windows.Forms.DataGridViewTextBoxColumn ExecDepartmentName;
+ private System.Windows.Forms.DataGridViewTextBoxColumn DId;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn21;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn22;
+ private System.Windows.Forms.DataGridViewTextBoxColumn spec;
+ private System.Windows.Forms.DataGridViewTextBoxColumn execDept;
+ private System.Windows.Forms.DataGridViewTextBoxColumn room;
+ private System.Windows.Forms.DataGridViewTextBoxColumn PatName;
+ private System.Windows.Forms.DataGridViewTextBoxColumn InNo;
+ private System.Windows.Forms.DataGridViewTextBoxColumn UpFreeTime;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn23;
+ private System.Windows.Forms.DataGridViewTextBoxColumn DUnit;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn24;
+ private System.Windows.Forms.DataGridViewTextBoxColumn ChargePrice;
+ }
+}
\ No newline at end of file
diff --git a/AIMS/OperationAfter/frmOperationCharg3.resx b/AIMS/OperationAfter/frmOperationCharg3.resx
new file mode 100644
index 0000000..6227fd8
--- /dev/null
+++ b/AIMS/OperationAfter/frmOperationCharg3.resx
@@ -0,0 +1,204 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/AIMS/OperationAfter/frmOperationManage.cs b/AIMS/OperationAfter/frmOperationManage.cs
index f1c5c58..9224991 100644
--- a/AIMS/OperationAfter/frmOperationManage.cs
+++ b/AIMS/OperationAfter/frmOperationManage.cs
@@ -1,23 +1,16 @@
using AIMSBLL;
using AIMSExtension;
-using AIMSModel;
-using DataDictionary;
-using DevComponents.DotNetBar.Controls;
-using KHD_OREMR.UserControls;
+using AIMSModel;
using Microsoft.Office.Interop.Excel;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
-using System.ComponentModel;
using System.Data;
using System.Diagnostics;
-using System.Drawing;
-using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Windows.Forms;
-using System.Windows.Forms.DataVisualization.Charting;
namespace AIMS.OperationAfter.UI
{
@@ -167,11 +160,11 @@ namespace AIMS.OperationAfter.UI
string asa = txtASALevel.Text;
System.Data.DataTable dt = BOperationApply.GetOperationDoingDataTable(dtpBegInDate.Value.ToString("yyyy-MM-dd"), dtpEndDate.Value.AddDays(1).ToString("yyyy-MM-dd"));
- string Where = "";
+ string Where = " RecoverId=1 ";
if (state == "")
- Where += " StateId >1 ";
+ Where += " and StateId >1 ";
else
- Where += " StateId IN (" + state + ") ";
+ Where += " and StateId IN (" + state + ") ";
if (Department != "")
Where += " and PatientDept LIKE '%" + Department + "%' ";
if (Room != "")
diff --git a/AIMSEntity/AIMSEntity.csproj b/AIMSEntity/AIMSEntity.csproj
index a704640..978060e 100644
--- a/AIMSEntity/AIMSEntity.csproj
+++ b/AIMSEntity/AIMSEntity.csproj
@@ -52,9 +52,13 @@
+
+
+
+
@@ -332,6 +336,7 @@
+
@@ -419,6 +424,7 @@
+
@@ -489,6 +495,7 @@
+
diff --git a/AIMSEntity/BLL/AutoGenerate/BFeesRecordReport.cs b/AIMSEntity/BLL/AutoGenerate/BFeesRecordReport.cs
new file mode 100644
index 0000000..eceb8b0
--- /dev/null
+++ b/AIMSEntity/BLL/AutoGenerate/BFeesRecordReport.cs
@@ -0,0 +1,160 @@
+using System;
+using AIMSDAL;
+using AIMSModel;
+using System.Collections;
+using System.Collections.Generic;
+
+namespace AIMSBLL
+{
+ public partial class BFeesRecordReport
+ {
+ #region 插入实体操作部份
+ ///
+ /// 插入实体
+ ///
+ /// 实体类对象
+ /// 标识列值或影响的记录行数
+ public static int Insert(FeesRecordReport feesRecordReport)
+ {
+ return DFeesRecordReport.Insert(feesRecordReport);
+ }
+ #endregion
+
+ #region 删除实体操作
+ ///
+ /// 删除实体
+ ///
+ /// 实体类对象
+ /// 影响的记录行数
+ public static int Delete(FeesRecordReport feesRecordReport)
+ {
+ return DFeesRecordReport.Delete(feesRecordReport);
+ }
+ ///
+ /// 根据对象查询语句删除
+ ///
+ /// 对象查询语句
+ /// 参数列表
+ /// 影响的记录行数
+ public static int Delete(string oql, ParameterList parameters)
+ {
+ return DFeesRecordReport.Delete(oql,parameters);
+ }
+ #endregion
+
+ #region 更新实体操作
+
+ ///
+ /// 更新实体
+ ///
+ /// 实体类对象
+ /// 影响的记录行数
+ public static int Update(FeesRecordReport feesRecordReport)
+ {
+ return DFeesRecordReport.Update(feesRecordReport);
+ }
+
+ ///
+ /// 根据对象查询语句更新实体
+ ///
+ /// 对象查询语句
+ /// 参数列表
+ /// 影响的记录行数
+ public static int Update(string oql, ParameterList parameters)
+ {
+ return DFeesRecordReport.Update(oql,parameters);
+ }
+ #endregion
+
+ #region 查询实体集合
+ ///
+ /// \查询实体集合
+ ///
+ /// 实体类对象集合
+ public static List Select()
+ {
+ return DFeesRecordReport.Select();
+ }
+ ///
+ /// 递归查询实体集合
+ ///
+ /// 递归类型
+ /// 递归深度
+ /// 实体类对象集合
+ public static List Select(RecursiveType recursiveType, int recursiveDepth)
+ {
+ return DFeesRecordReport.Select(recursiveType, recursiveDepth);
+ }
+
+ ///
+ /// 根据对象查询语句查询实体集合
+ ///
+ /// 对象查询语句
+ /// 参数列表
+ /// 实体类对象集合
+ public static List Select(string oql, ParameterList parameters)
+ {
+ return DFeesRecordReport.Select(oql, parameters);
+ }
+
+ ///
+ /// 根据对象查询语句递归查询实体集合
+ ///
+ /// 对象查询语句
+ /// 参数列表
+ /// 递归类型
+ /// 递归深度
+ /// 实体类对象集合
+ public static List Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth)
+ {
+ return DFeesRecordReport.Select(oql, parameters, recursiveType, recursiveDepth);
+ }
+ #endregion
+
+ #region 查询单个实体
+ ///
+ /// 更据对象查询语句查询单个实体
+ ///
+ /// 对象查询语句
+ /// 参数列表
+ /// 实体对象
+ public static FeesRecordReport SelectSingle(string oql, ParameterList parameters)
+ {
+ return DFeesRecordReport.SelectSingle(oql, parameters);
+ }
+ ///
+ /// 更据对象查询语句递归查询单个实体
+ ///
+ /// 对象查询语句
+ /// 参数列表
+ /// 递归类型
+ /// 递归深度
+ /// 实体对象
+ public static FeesRecordReport SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
+ {
+ return DFeesRecordReport.SelectSingle(oql, parameters, recursiveType, recursiveDepth);
+ }
+
+ ///
+ /// 按主键字段查询特定实体
+ ///
+ /// 主键值
+ /// 实体类对象
+ public static FeesRecordReport SelectSingle(int? id)
+ {
+ return DFeesRecordReport.SelectSingle(id);
+ }
+
+ ///
+ /// 更据主键递归查询单个实体
+ ///
+ /// 递归类型
+ /// 递归深度
+ /// 实体对象
+ public static FeesRecordReport SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth)
+ {
+ return DFeesRecordReport.SelectSingle(id, recursiveType, recursiveDepth);
+ }
+ #endregion
+ }
+}
diff --git a/AIMSEntity/BLL/Extension/BFeesRecordReport.cs b/AIMSEntity/BLL/Extension/BFeesRecordReport.cs
new file mode 100644
index 0000000..b3d48f5
--- /dev/null
+++ b/AIMSEntity/BLL/Extension/BFeesRecordReport.cs
@@ -0,0 +1,49 @@
+using System;
+using AIMSDAL;
+using AIMSModel;
+using AIMSObjectQuery;
+using System.Collections;
+using System.Collections.Generic;
+using System.Data;
+using HelperDB;
+
+namespace AIMSBLL
+{
+ public partial class BFeesRecordReport
+ {
+
+ public static DataTable GetUpListByWhere2(string where)
+ {
+ string sql = string.Format(@"
+ SELECT
+ROW_NUMBER() OVER (ORDER BY FeeCode ASC) AS noo,
+ FeeCode ,
+ ChargName ,
+ ChargSpec ,
+ sum(convert(float,FeeNum)) FeeNum,
+ UnitPrice
+ FROM [dbo].[FeesRecord]
+ where FeeIsDrug=1 and {0}
+ group by FeeCode , ChargName, ChargSpec ,UnitPrice
+ order by FeeCode ", where);
+ DataTable dt = DBHelper.GetDataTable(sql);
+ return dt;
+ }
+
+ public static DataTable GetUpListByWhere(string where)
+ {
+ string sql = string.Format(@"
+ SELECT *,
+ info.OperationRoom,
+ info.PatientName,
+ info.MdrecNo
+ FROM[dbo].[FeesRecord]
+ left join [dbo].[V_OperationRecordInfo] info on info.RecoredId=[FeesRecord].OperationRecordId
+ where FeeIsDrug=1 and {0}
+ order by FeeCode ", where);
+ DataTable dt = DBHelper.GetDataTable(sql);
+ return dt;
+ }
+
+ }
+}
diff --git a/AIMSEntity/BLL/Extension/BOperationRecord.cs b/AIMSEntity/BLL/Extension/BOperationRecord.cs
index dcce342..91898ad 100644
--- a/AIMSEntity/BLL/Extension/BOperationRecord.cs
+++ b/AIMSEntity/BLL/Extension/BOperationRecord.cs
@@ -11,6 +11,7 @@ using System.Data.SqlClient;
using System.Reflection;
using System.Windows.Forms;
using DrawGraph;
+using System.Text;
namespace AIMSBLL
{
@@ -673,6 +674,61 @@ namespace AIMSBLL
{
return DOperationRecord.FillOutFluid(PatientId, DrugTypeId);
}
+ public static DataTable GetOpesByNo(string no)
+ {
+ try
+ {
+ StringBuilder strSql = new StringBuilder();
+ strSql.Append("select top 10 * from [V_OperationRecordInfo] where [StateId] in(6,8,9) and RecoverId=1 and (MdrecNo like '%" + no + "%' ) order by RecoredId desc");
+ return DBHelper.GetDataTable(strSql.ToString());
+ }
+ catch (Exception)
+ {
+ return new DataTable();
+ }
+ }
+ public static DataTable GetOpesByName(string name)
+ {
+ try
+ {
+ StringBuilder strSql = new StringBuilder();
+ strSql.Append("select top 10 * from [V_OperationRecordInfo] where [StateId] in(6,8,9) and RecoverId=1 and (MdrecNo like '%" + name + "%' or PatientName like '%" + name + "%') order by RecoredId desc");
+ return DBHelper.GetDataTable(strSql.ToString());
+ }
+ catch (Exception)
+ {
+ return new DataTable();
+ }
+ }
+ public static DataTable GetOpeIdByNoName(string no, string name)
+ {
+ try
+ {
+ StringBuilder strSql = new StringBuilder();
+ strSql.Append("select * from [V_OperationRecordInfo] where [StateId] in(6,8,9) and RecoverId=1 and (MdrecNo ='" + no + "' or PatientName='" + name + "') order by RecoredId desc");
+ return DBHelper.GetDataTable(strSql.ToString());
+ }
+ catch (Exception)
+ {
+ return null;
+ }
+ }
+ public static DataTable GetAllOperationRecordInfo(string condition)
+ {
+ StringBuilder sb = new StringBuilder("select * from V_OperationRecordInfo ");
+ if (condition.Length > 0)
+ {
+ sb.Append(" where " + condition);
+ }
+ try
+ {
+ return DBHelper.GetDataTable(sb.ToString());
+ }
+ catch (SqlException ex)
+ {
+ throw new Exception(ex.Message);
+ }
+ }
}
}
diff --git a/AIMSEntity/DAL/AutoGenerate/DFeesRecord.cs b/AIMSEntity/DAL/AutoGenerate/DFeesRecord.cs
index 619f2a6..92526ba 100644
--- a/AIMSEntity/DAL/AutoGenerate/DFeesRecord.cs
+++ b/AIMSEntity/DAL/AutoGenerate/DFeesRecord.cs
@@ -9,119 +9,121 @@ using System.Collections.Generic;
namespace AIMSDAL
{
internal partial class DFeesRecord
- {
- #region 插入实体操作部份
- ///
+ {
+ #region 插入实体操作部份
+ ///
/// 插入
///
- /// Command对象
+ /// Command对象
/// 实体类对象
/// 标识列值或影响的记录行数
- internal static int Insert(SqlCommand cmd, FeesRecord feesRecord)
- {
- cmd.Parameters.Clear();
- cmd.CommandText = "insert into FeesRecord (PatientId,ApplyId,OperationRecordId,ApplyOrderNo,FeeIsDrug,FeeType,BillCode,GroupID,FeeTypeId,FeeId,FeeCode,FeeSerial,Unit,FeeNum,DrugSite,FeeId2,FeeClass,UnitPrice,ChargePrice,ActualPrice,ChargeFee,Valuer,BillingDeptId,BillingDept,BillingWorkId,BillingWork,HappenTime,EnrollTime,ExecDeptId,ExecDept,ExecWorkId,ExecWork,ExecState,ExecTime,Conclusion,IsInsure,InsureNO,LimitDrug,DrugType,IsUpLoad,Remark,EmergencyFlag,OrderNo,Extend1,Extend2,Extend3,Extend4,Extend5,OrderState,OperatorId,OperatorNo,OperatorName) values (@PatientId,@ApplyId,@OperationRecordId,@ApplyOrderNo,@FeeIsDrug,@FeeType,@BillCode,@GroupID,@FeeTypeId,@FeeId,@FeeCode,@FeeSerial,@Unit,@FeeNum,@DrugSite,@FeeId2,@FeeClass,@UnitPrice,@ChargePrice,@ActualPrice,@ChargeFee,@Valuer,@BillingDeptId,@BillingDept,@BillingWorkId,@BillingWork,@HappenTime,@EnrollTime,@ExecDeptId,@ExecDept,@ExecWorkId,@ExecWork,@ExecState,@ExecTime,@Conclusion,@IsInsure,@InsureNO,@LimitDrug,@DrugType,@IsUpLoad,@Remark,@EmergencyFlag,@OrderNo,@Extend1,@Extend2,@Extend3,@Extend4,@Extend5,@OrderState,@OperatorId,@OperatorNo,@OperatorName);select @@identity";
- //从实体中取出值放入Command的参数列表
- cmd.Parameters.Add(new SqlParameter("@PatientId",feesRecord.PatientId.HasValue?(object)feesRecord.PatientId.Value:(object)DBNull.Value));
- cmd.Parameters.Add(new SqlParameter("@ApplyId",feesRecord.ApplyId.HasValue?(object)feesRecord.ApplyId.Value:(object)DBNull.Value));
- cmd.Parameters.Add(new SqlParameter("@OperationRecordId",feesRecord.OperationRecordId.HasValue?(object)feesRecord.OperationRecordId.Value:(object)DBNull.Value));
- cmd.Parameters.Add(new SqlParameter("@ApplyOrderNo",feesRecord.ApplyOrderNo==null?(object)DBNull.Value:(object)feesRecord.ApplyOrderNo));
- cmd.Parameters.Add(new SqlParameter("@FeeIsDrug",feesRecord.FeeIsDrug==null?(object)DBNull.Value:(object)feesRecord.FeeIsDrug));
- cmd.Parameters.Add(new SqlParameter("@FeeType",feesRecord.FeeType==null?(object)DBNull.Value:(object)feesRecord.FeeType));
- cmd.Parameters.Add(new SqlParameter("@BillCode",feesRecord.BillCode==null?(object)DBNull.Value:(object)feesRecord.BillCode));
- cmd.Parameters.Add(new SqlParameter("@GroupID",feesRecord.GroupID==null?(object)DBNull.Value:(object)feesRecord.GroupID));
- cmd.Parameters.Add(new SqlParameter("@FeeTypeId",feesRecord.FeeTypeId==null?(object)DBNull.Value:(object)feesRecord.FeeTypeId));
- cmd.Parameters.Add(new SqlParameter("@FeeId",feesRecord.FeeId==null?(object)DBNull.Value:(object)feesRecord.FeeId));
- cmd.Parameters.Add(new SqlParameter("@FeeCode",feesRecord.FeeCode==null?(object)DBNull.Value:(object)feesRecord.FeeCode));
- cmd.Parameters.Add(new SqlParameter("@FeeSerial",feesRecord.FeeSerial==null?(object)DBNull.Value:(object)feesRecord.FeeSerial));
- cmd.Parameters.Add(new SqlParameter("@Unit",feesRecord.Unit==null?(object)DBNull.Value:(object)feesRecord.Unit));
- cmd.Parameters.Add(new SqlParameter("@FeeNum",feesRecord.FeeNum==null?(object)DBNull.Value:(object)feesRecord.FeeNum));
- cmd.Parameters.Add(new SqlParameter("@DrugSite",feesRecord.DrugSite==null?(object)DBNull.Value:(object)feesRecord.DrugSite));
- cmd.Parameters.Add(new SqlParameter("@FeeId2",feesRecord.FeeId2==null?(object)DBNull.Value:(object)feesRecord.FeeId2));
- cmd.Parameters.Add(new SqlParameter("@FeeClass",feesRecord.FeeClass==null?(object)DBNull.Value:(object)feesRecord.FeeClass));
- cmd.Parameters.Add(new SqlParameter("@UnitPrice",feesRecord.UnitPrice==null?(object)DBNull.Value:(object)feesRecord.UnitPrice));
- cmd.Parameters.Add(new SqlParameter("@ChargePrice",feesRecord.ChargePrice==null?(object)DBNull.Value:(object)feesRecord.ChargePrice));
- cmd.Parameters.Add(new SqlParameter("@ActualPrice",feesRecord.ActualPrice==null?(object)DBNull.Value:(object)feesRecord.ActualPrice));
- cmd.Parameters.Add(new SqlParameter("@ChargeFee",feesRecord.ChargeFee==null?(object)DBNull.Value:(object)feesRecord.ChargeFee));
- cmd.Parameters.Add(new SqlParameter("@Valuer",feesRecord.Valuer==null?(object)DBNull.Value:(object)feesRecord.Valuer));
- cmd.Parameters.Add(new SqlParameter("@BillingDeptId",feesRecord.BillingDeptId==null?(object)DBNull.Value:(object)feesRecord.BillingDeptId));
- cmd.Parameters.Add(new SqlParameter("@BillingDept",feesRecord.BillingDept==null?(object)DBNull.Value:(object)feesRecord.BillingDept));
- cmd.Parameters.Add(new SqlParameter("@BillingWorkId",feesRecord.BillingWorkId==null?(object)DBNull.Value:(object)feesRecord.BillingWorkId));
- cmd.Parameters.Add(new SqlParameter("@BillingWork",feesRecord.BillingWork==null?(object)DBNull.Value:(object)feesRecord.BillingWork));
- cmd.Parameters.Add(new SqlParameter("@HappenTime",feesRecord.HappenTime.HasValue?(object)feesRecord.HappenTime.Value:(object)DBNull.Value));
- cmd.Parameters.Add(new SqlParameter("@EnrollTime",feesRecord.EnrollTime.HasValue?(object)feesRecord.EnrollTime.Value:(object)DBNull.Value));
- cmd.Parameters.Add(new SqlParameter("@ExecDeptId",feesRecord.ExecDeptId==null?(object)DBNull.Value:(object)feesRecord.ExecDeptId));
- cmd.Parameters.Add(new SqlParameter("@ExecDept",feesRecord.ExecDept==null?(object)DBNull.Value:(object)feesRecord.ExecDept));
- cmd.Parameters.Add(new SqlParameter("@ExecWorkId",feesRecord.ExecWorkId==null?(object)DBNull.Value:(object)feesRecord.ExecWorkId));
- cmd.Parameters.Add(new SqlParameter("@ExecWork",feesRecord.ExecWork==null?(object)DBNull.Value:(object)feesRecord.ExecWork));
- cmd.Parameters.Add(new SqlParameter("@ExecState",feesRecord.ExecState==null?(object)DBNull.Value:(object)feesRecord.ExecState));
- cmd.Parameters.Add(new SqlParameter("@ExecTime",feesRecord.ExecTime==null?(object)DBNull.Value:(object)feesRecord.ExecTime));
- cmd.Parameters.Add(new SqlParameter("@Conclusion",feesRecord.Conclusion==null?(object)DBNull.Value:(object)feesRecord.Conclusion));
- cmd.Parameters.Add(new SqlParameter("@IsInsure",feesRecord.IsInsure==null?(object)DBNull.Value:(object)feesRecord.IsInsure));
- cmd.Parameters.Add(new SqlParameter("@InsureNO",feesRecord.InsureNO==null?(object)DBNull.Value:(object)feesRecord.InsureNO));
- cmd.Parameters.Add(new SqlParameter("@LimitDrug",feesRecord.LimitDrug==null?(object)DBNull.Value:(object)feesRecord.LimitDrug));
- cmd.Parameters.Add(new SqlParameter("@DrugType",feesRecord.DrugType==null?(object)DBNull.Value:(object)feesRecord.DrugType));
- cmd.Parameters.Add(new SqlParameter("@IsUpLoad",feesRecord.IsUpLoad==null?(object)DBNull.Value:(object)feesRecord.IsUpLoad));
- cmd.Parameters.Add(new SqlParameter("@Remark",feesRecord.Remark==null?(object)DBNull.Value:(object)feesRecord.Remark));
- cmd.Parameters.Add(new SqlParameter("@EmergencyFlag",feesRecord.EmergencyFlag==null?(object)DBNull.Value:(object)feesRecord.EmergencyFlag));
- cmd.Parameters.Add(new SqlParameter("@OrderNo",feesRecord.OrderNo==null?(object)DBNull.Value:(object)feesRecord.OrderNo));
- cmd.Parameters.Add(new SqlParameter("@Extend1",feesRecord.Extend1==null?(object)DBNull.Value:(object)feesRecord.Extend1));
- cmd.Parameters.Add(new SqlParameter("@Extend2",feesRecord.Extend2==null?(object)DBNull.Value:(object)feesRecord.Extend2));
- cmd.Parameters.Add(new SqlParameter("@Extend3",feesRecord.Extend3==null?(object)DBNull.Value:(object)feesRecord.Extend3));
- cmd.Parameters.Add(new SqlParameter("@Extend4",feesRecord.Extend4==null?(object)DBNull.Value:(object)feesRecord.Extend4));
- cmd.Parameters.Add(new SqlParameter("@Extend5",feesRecord.Extend5==null?(object)DBNull.Value:(object)feesRecord.Extend5));
- cmd.Parameters.Add(new SqlParameter("@OrderState",feesRecord.OrderState==null?(object)DBNull.Value:(object)feesRecord.OrderState));
- cmd.Parameters.Add(new SqlParameter("@OperatorId",feesRecord.OperatorId.HasValue?(object)feesRecord.OperatorId.Value:(object)DBNull.Value));
- cmd.Parameters.Add(new SqlParameter("@OperatorNo",feesRecord.OperatorNo==null?(object)DBNull.Value:(object)feesRecord.OperatorNo));
- cmd.Parameters.Add(new SqlParameter("@OperatorName",feesRecord.OperatorName==null?(object)DBNull.Value:(object)feesRecord.OperatorName));
- return Convert.ToInt32(cmd.ExecuteScalar());
- }
- ///
+ internal static int Insert(SqlCommand cmd, FeesRecord feesRecord)
+ {
+ cmd.Parameters.Clear();
+ cmd.CommandText = "insert into FeesRecord (PatientId,ApplyId,OperationRecordId,ApplyOrderNo,FeeIsDrug,FeeType,BillCode,GroupID,FeeTypeId,FeeId,FeeCode,FeeSerial,Unit,FeeNum,DrugSite,FeeId2,FeeClass,UnitPrice,ChargePrice,ActualPrice,ChargeFee,Valuer,BillingDeptId,BillingDept,BillingWorkId,BillingWork,HappenTime,EnrollTime,ExecDeptId,ExecDept,ExecWorkId,ExecWork,ExecState,ExecTime,Conclusion,IsInsure,InsureNO,LimitDrug,DrugType,IsUpLoad,Remark,EmergencyFlag,OrderNo,Extend1,Extend2,Extend3,Extend4,Extend5,OrderState,OperatorId,OperatorNo,OperatorName,ChargName,ChargSpec) values (@PatientId,@ApplyId,@OperationRecordId,@ApplyOrderNo,@FeeIsDrug,@FeeType,@BillCode,@GroupID,@FeeTypeId,@FeeId,@FeeCode,@FeeSerial,@Unit,@FeeNum,@DrugSite,@FeeId2,@FeeClass,@UnitPrice,@ChargePrice,@ActualPrice,@ChargeFee,@Valuer,@BillingDeptId,@BillingDept,@BillingWorkId,@BillingWork,@HappenTime,@EnrollTime,@ExecDeptId,@ExecDept,@ExecWorkId,@ExecWork,@ExecState,@ExecTime,@Conclusion,@IsInsure,@InsureNO,@LimitDrug,@DrugType,@IsUpLoad,@Remark,@EmergencyFlag,@OrderNo,@Extend1,@Extend2,@Extend3,@Extend4,@Extend5,@OrderState,@OperatorId,@OperatorNo,@OperatorName,@ChargName,@ChargSpec);select @@identity";
+ //从实体中取出值放入Command的参数列表
+ cmd.Parameters.Add(new SqlParameter("@PatientId", feesRecord.PatientId.HasValue ? (object)feesRecord.PatientId.Value : (object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@ApplyId", feesRecord.ApplyId.HasValue ? (object)feesRecord.ApplyId.Value : (object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@OperationRecordId", feesRecord.OperationRecordId.HasValue ? (object)feesRecord.OperationRecordId.Value : (object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@ApplyOrderNo", feesRecord.ApplyOrderNo == null ? (object)DBNull.Value : (object)feesRecord.ApplyOrderNo));
+ cmd.Parameters.Add(new SqlParameter("@FeeIsDrug", feesRecord.FeeIsDrug == null ? (object)DBNull.Value : (object)feesRecord.FeeIsDrug));
+ cmd.Parameters.Add(new SqlParameter("@FeeType", feesRecord.FeeType == null ? (object)DBNull.Value : (object)feesRecord.FeeType));
+ cmd.Parameters.Add(new SqlParameter("@BillCode", feesRecord.BillCode == null ? (object)DBNull.Value : (object)feesRecord.BillCode));
+ cmd.Parameters.Add(new SqlParameter("@GroupID", feesRecord.GroupID == null ? (object)DBNull.Value : (object)feesRecord.GroupID));
+ cmd.Parameters.Add(new SqlParameter("@FeeTypeId", feesRecord.FeeTypeId == null ? (object)DBNull.Value : (object)feesRecord.FeeTypeId));
+ cmd.Parameters.Add(new SqlParameter("@FeeId", feesRecord.FeeId == null ? (object)DBNull.Value : (object)feesRecord.FeeId));
+ cmd.Parameters.Add(new SqlParameter("@FeeCode", feesRecord.FeeCode == null ? (object)DBNull.Value : (object)feesRecord.FeeCode));
+ cmd.Parameters.Add(new SqlParameter("@FeeSerial", feesRecord.FeeSerial == null ? (object)DBNull.Value : (object)feesRecord.FeeSerial));
+ cmd.Parameters.Add(new SqlParameter("@Unit", feesRecord.Unit == null ? (object)DBNull.Value : (object)feesRecord.Unit));
+ cmd.Parameters.Add(new SqlParameter("@FeeNum", feesRecord.FeeNum == null ? (object)DBNull.Value : (object)feesRecord.FeeNum));
+ cmd.Parameters.Add(new SqlParameter("@DrugSite", feesRecord.DrugSite == null ? (object)DBNull.Value : (object)feesRecord.DrugSite));
+ cmd.Parameters.Add(new SqlParameter("@FeeId2", feesRecord.FeeId2 == null ? (object)DBNull.Value : (object)feesRecord.FeeId2));
+ cmd.Parameters.Add(new SqlParameter("@FeeClass", feesRecord.FeeClass == null ? (object)DBNull.Value : (object)feesRecord.FeeClass));
+ cmd.Parameters.Add(new SqlParameter("@UnitPrice", feesRecord.UnitPrice == null ? (object)DBNull.Value : (object)feesRecord.UnitPrice));
+ cmd.Parameters.Add(new SqlParameter("@ChargePrice", feesRecord.ChargePrice == null ? (object)DBNull.Value : (object)feesRecord.ChargePrice));
+ cmd.Parameters.Add(new SqlParameter("@ActualPrice", feesRecord.ActualPrice == null ? (object)DBNull.Value : (object)feesRecord.ActualPrice));
+ cmd.Parameters.Add(new SqlParameter("@ChargeFee", feesRecord.ChargeFee == null ? (object)DBNull.Value : (object)feesRecord.ChargeFee));
+ cmd.Parameters.Add(new SqlParameter("@Valuer", feesRecord.Valuer == null ? (object)DBNull.Value : (object)feesRecord.Valuer));
+ cmd.Parameters.Add(new SqlParameter("@BillingDeptId", feesRecord.BillingDeptId == null ? (object)DBNull.Value : (object)feesRecord.BillingDeptId));
+ cmd.Parameters.Add(new SqlParameter("@BillingDept", feesRecord.BillingDept == null ? (object)DBNull.Value : (object)feesRecord.BillingDept));
+ cmd.Parameters.Add(new SqlParameter("@BillingWorkId", feesRecord.BillingWorkId == null ? (object)DBNull.Value : (object)feesRecord.BillingWorkId));
+ cmd.Parameters.Add(new SqlParameter("@BillingWork", feesRecord.BillingWork == null ? (object)DBNull.Value : (object)feesRecord.BillingWork));
+ cmd.Parameters.Add(new SqlParameter("@HappenTime", feesRecord.HappenTime.HasValue ? (object)feesRecord.HappenTime.Value : (object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@EnrollTime", feesRecord.EnrollTime.HasValue ? (object)feesRecord.EnrollTime.Value : (object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@ExecDeptId", feesRecord.ExecDeptId == null ? (object)DBNull.Value : (object)feesRecord.ExecDeptId));
+ cmd.Parameters.Add(new SqlParameter("@ExecDept", feesRecord.ExecDept == null ? (object)DBNull.Value : (object)feesRecord.ExecDept));
+ cmd.Parameters.Add(new SqlParameter("@ExecWorkId", feesRecord.ExecWorkId == null ? (object)DBNull.Value : (object)feesRecord.ExecWorkId));
+ cmd.Parameters.Add(new SqlParameter("@ExecWork", feesRecord.ExecWork == null ? (object)DBNull.Value : (object)feesRecord.ExecWork));
+ cmd.Parameters.Add(new SqlParameter("@ExecState", feesRecord.ExecState == null ? (object)DBNull.Value : (object)feesRecord.ExecState));
+ cmd.Parameters.Add(new SqlParameter("@ExecTime", feesRecord.ExecTime.HasValue ? (object)feesRecord.ExecTime.Value : (object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@Conclusion", feesRecord.Conclusion == null ? (object)DBNull.Value : (object)feesRecord.Conclusion));
+ cmd.Parameters.Add(new SqlParameter("@IsInsure", feesRecord.IsInsure == null ? (object)DBNull.Value : (object)feesRecord.IsInsure));
+ cmd.Parameters.Add(new SqlParameter("@InsureNO", feesRecord.InsureNO == null ? (object)DBNull.Value : (object)feesRecord.InsureNO));
+ cmd.Parameters.Add(new SqlParameter("@LimitDrug", feesRecord.LimitDrug == null ? (object)DBNull.Value : (object)feesRecord.LimitDrug));
+ cmd.Parameters.Add(new SqlParameter("@DrugType", feesRecord.DrugType == null ? (object)DBNull.Value : (object)feesRecord.DrugType));
+ cmd.Parameters.Add(new SqlParameter("@IsUpLoad", feesRecord.IsUpLoad == null ? (object)DBNull.Value : (object)feesRecord.IsUpLoad));
+ cmd.Parameters.Add(new SqlParameter("@Remark", feesRecord.Remark == null ? (object)DBNull.Value : (object)feesRecord.Remark));
+ cmd.Parameters.Add(new SqlParameter("@EmergencyFlag", feesRecord.EmergencyFlag == null ? (object)DBNull.Value : (object)feesRecord.EmergencyFlag));
+ cmd.Parameters.Add(new SqlParameter("@OrderNo", feesRecord.OrderNo == null ? (object)DBNull.Value : (object)feesRecord.OrderNo));
+ cmd.Parameters.Add(new SqlParameter("@Extend1", feesRecord.Extend1 == null ? (object)DBNull.Value : (object)feesRecord.Extend1));
+ cmd.Parameters.Add(new SqlParameter("@Extend2", feesRecord.Extend2 == null ? (object)DBNull.Value : (object)feesRecord.Extend2));
+ cmd.Parameters.Add(new SqlParameter("@Extend3", feesRecord.Extend3 == null ? (object)DBNull.Value : (object)feesRecord.Extend3));
+ cmd.Parameters.Add(new SqlParameter("@Extend4", feesRecord.Extend4 == null ? (object)DBNull.Value : (object)feesRecord.Extend4));
+ cmd.Parameters.Add(new SqlParameter("@Extend5", feesRecord.Extend5 == null ? (object)DBNull.Value : (object)feesRecord.Extend5));
+ cmd.Parameters.Add(new SqlParameter("@OrderState", feesRecord.OrderState == null ? (object)DBNull.Value : (object)feesRecord.OrderState));
+ cmd.Parameters.Add(new SqlParameter("@OperatorId", feesRecord.OperatorId.HasValue ? (object)feesRecord.OperatorId.Value : (object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@OperatorNo", feesRecord.OperatorNo == null ? (object)DBNull.Value : (object)feesRecord.OperatorNo));
+ cmd.Parameters.Add(new SqlParameter("@OperatorName", feesRecord.OperatorName == null ? (object)DBNull.Value : (object)feesRecord.OperatorName));
+ cmd.Parameters.Add(new SqlParameter("@ChargName", feesRecord.ChargName == null ? (object)DBNull.Value : (object)feesRecord.ChargName));
+ cmd.Parameters.Add(new SqlParameter("@ChargSpec", feesRecord.ChargSpec == null ? (object)DBNull.Value : (object)feesRecord.ChargSpec));
+ return Convert.ToInt32(cmd.ExecuteScalar());
+ }
+ ///
/// 不使用事务的插入方法
///
/// 实体类对象
/// 标识列值或影响的记录行数
- internal static int Insert(FeesRecord feesRecord)
- {
- using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
- {
- conn.Open();
+ internal static int Insert(FeesRecord feesRecord)
+ {
+ using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
+ {
+ conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return Insert(cmd, feesRecord);
}
- }
- }
-
- ///
+ }
+ }
+
+ ///
/// 使用事务的插入方法
///
/// 实现共享Connection的对象
/// 实体类对象
/// 标识列值或影响的记录行数
- internal static int Insert(Connection connection,FeesRecord feesRecord)
+ internal static int Insert(Connection connection, FeesRecord feesRecord)
{
return Insert(connection.Command, feesRecord);
}
- #endregion
-
- #region 删除实体操作
-
- ///
+ #endregion
+
+ #region 删除实体操作
+
+ ///
/// 删除
///
- /// Command对象
+ /// Command对象
/// 实体类对象
/// 影响的记录行数
- internal static int ExcuteDeleteCommand(SqlCommand cmd, FeesRecord feesRecord)
+ internal static int ExcuteDeleteCommand(SqlCommand cmd, FeesRecord feesRecord)
{
- cmd.Parameters.Clear();
+ cmd.Parameters.Clear();
cmd.CommandText = "delete from FeesRecord where Id=@Id";
//从实体中取出值放入Command的参数列表
- cmd.Parameters.Add(new SqlParameter("@Id", feesRecord.Id));
+ cmd.Parameters.Add(new SqlParameter("@Id", feesRecord.Id));
return cmd.ExecuteNonQuery();
}
- ///
+ ///
/// 不使用事务的删除方法
///
/// 实体类对象
@@ -137,18 +139,18 @@ namespace AIMSDAL
}
}
}
- ///
+ ///
/// 使用事务的删除方法
///
/// 实现共享Connection的对象
/// 实体类对象
/// 影响的记录行数
- internal static int Delete(Connection connection,FeesRecord feesRecord)
+ internal static int Delete(Connection connection, FeesRecord feesRecord)
{
- return ExcuteDeleteCommand(connection.Command, feesRecord);
- }
-
- ///
+ return ExcuteDeleteCommand(connection.Command, feesRecord);
+ }
+
+ ///
/// 执行删除命令
///
/// Command对象
@@ -175,8 +177,8 @@ namespace AIMSDAL
}
return cmd.ExecuteNonQuery();
}
-
- ///
+
+ ///
/// 不使用事务的删除方法
///
/// 对象查询语句
@@ -193,8 +195,8 @@ namespace AIMSDAL
}
}
}
-
- ///
+
+ ///
/// 使用事务的删除方法
///
/// 实现共享Connection的对象
@@ -205,104 +207,106 @@ namespace AIMSDAL
{
return ExcuteDeleteCommand(connection.Command, oql, parameters);
}
-
- #endregion
-
- #region 更新实体操作
-
- ///
+
+ #endregion
+
+ #region 更新实体操作
+
+ ///
/// 更新
///
- /// Command对象
+ /// Command对象
/// 实体类对象
/// 影响的记录行数
- internal static int ExcuteUpdateCommand(SqlCommand cmd, FeesRecord feesRecord)
- {
- cmd.CommandText = "update FeesRecord set PatientId=@PatientId,ApplyId=@ApplyId,OperationRecordId=@OperationRecordId,ApplyOrderNo=@ApplyOrderNo,FeeIsDrug=@FeeIsDrug,FeeType=@FeeType,BillCode=@BillCode,GroupID=@GroupID,FeeTypeId=@FeeTypeId,FeeId=@FeeId,FeeCode=@FeeCode,FeeSerial=@FeeSerial,Unit=@Unit,FeeNum=@FeeNum,DrugSite=@DrugSite,FeeId2=@FeeId2,FeeClass=@FeeClass,UnitPrice=@UnitPrice,ChargePrice=@ChargePrice,ActualPrice=@ActualPrice,ChargeFee=@ChargeFee,Valuer=@Valuer,BillingDeptId=@BillingDeptId,BillingDept=@BillingDept,BillingWorkId=@BillingWorkId,BillingWork=@BillingWork,HappenTime=@HappenTime,EnrollTime=@EnrollTime,ExecDeptId=@ExecDeptId,ExecDept=@ExecDept,ExecWorkId=@ExecWorkId,ExecWork=@ExecWork,ExecState=@ExecState,ExecTime=@ExecTime,Conclusion=@Conclusion,IsInsure=@IsInsure,InsureNO=@InsureNO,LimitDrug=@LimitDrug,DrugType=@DrugType,IsUpLoad=@IsUpLoad,Remark=@Remark,EmergencyFlag=@EmergencyFlag,OrderNo=@OrderNo,Extend1=@Extend1,Extend2=@Extend2,Extend3=@Extend3,Extend4=@Extend4,Extend5=@Extend5,OrderState=@OrderState,OperatorId=@OperatorId,OperatorNo=@OperatorNo,OperatorName=@OperatorName where Id=@Id";
- //从实体中取出值放入Command的参数列表
- cmd.Parameters.Add(new SqlParameter("@PatientId",feesRecord.PatientId.HasValue?(object)feesRecord.PatientId.Value:(object)DBNull.Value));
- cmd.Parameters.Add(new SqlParameter("@ApplyId",feesRecord.ApplyId.HasValue?(object)feesRecord.ApplyId.Value:(object)DBNull.Value));
- cmd.Parameters.Add(new SqlParameter("@OperationRecordId",feesRecord.OperationRecordId.HasValue?(object)feesRecord.OperationRecordId.Value:(object)DBNull.Value));
- cmd.Parameters.Add(new SqlParameter("@ApplyOrderNo",feesRecord.ApplyOrderNo==null?(object)DBNull.Value:(object)feesRecord.ApplyOrderNo));
- cmd.Parameters.Add(new SqlParameter("@FeeIsDrug",feesRecord.FeeIsDrug==null?(object)DBNull.Value:(object)feesRecord.FeeIsDrug));
- cmd.Parameters.Add(new SqlParameter("@FeeType",feesRecord.FeeType==null?(object)DBNull.Value:(object)feesRecord.FeeType));
- cmd.Parameters.Add(new SqlParameter("@BillCode",feesRecord.BillCode==null?(object)DBNull.Value:(object)feesRecord.BillCode));
- cmd.Parameters.Add(new SqlParameter("@GroupID",feesRecord.GroupID==null?(object)DBNull.Value:(object)feesRecord.GroupID));
- cmd.Parameters.Add(new SqlParameter("@FeeTypeId",feesRecord.FeeTypeId==null?(object)DBNull.Value:(object)feesRecord.FeeTypeId));
- cmd.Parameters.Add(new SqlParameter("@FeeId",feesRecord.FeeId==null?(object)DBNull.Value:(object)feesRecord.FeeId));
- cmd.Parameters.Add(new SqlParameter("@FeeCode",feesRecord.FeeCode==null?(object)DBNull.Value:(object)feesRecord.FeeCode));
- cmd.Parameters.Add(new SqlParameter("@FeeSerial",feesRecord.FeeSerial==null?(object)DBNull.Value:(object)feesRecord.FeeSerial));
- cmd.Parameters.Add(new SqlParameter("@Unit",feesRecord.Unit==null?(object)DBNull.Value:(object)feesRecord.Unit));
- cmd.Parameters.Add(new SqlParameter("@FeeNum",feesRecord.FeeNum==null?(object)DBNull.Value:(object)feesRecord.FeeNum));
- cmd.Parameters.Add(new SqlParameter("@DrugSite",feesRecord.DrugSite==null?(object)DBNull.Value:(object)feesRecord.DrugSite));
- cmd.Parameters.Add(new SqlParameter("@FeeId2",feesRecord.FeeId2==null?(object)DBNull.Value:(object)feesRecord.FeeId2));
- cmd.Parameters.Add(new SqlParameter("@FeeClass",feesRecord.FeeClass==null?(object)DBNull.Value:(object)feesRecord.FeeClass));
- cmd.Parameters.Add(new SqlParameter("@UnitPrice",feesRecord.UnitPrice==null?(object)DBNull.Value:(object)feesRecord.UnitPrice));
- cmd.Parameters.Add(new SqlParameter("@ChargePrice",feesRecord.ChargePrice==null?(object)DBNull.Value:(object)feesRecord.ChargePrice));
- cmd.Parameters.Add(new SqlParameter("@ActualPrice",feesRecord.ActualPrice==null?(object)DBNull.Value:(object)feesRecord.ActualPrice));
- cmd.Parameters.Add(new SqlParameter("@ChargeFee",feesRecord.ChargeFee==null?(object)DBNull.Value:(object)feesRecord.ChargeFee));
- cmd.Parameters.Add(new SqlParameter("@Valuer",feesRecord.Valuer==null?(object)DBNull.Value:(object)feesRecord.Valuer));
- cmd.Parameters.Add(new SqlParameter("@BillingDeptId",feesRecord.BillingDeptId==null?(object)DBNull.Value:(object)feesRecord.BillingDeptId));
- cmd.Parameters.Add(new SqlParameter("@BillingDept",feesRecord.BillingDept==null?(object)DBNull.Value:(object)feesRecord.BillingDept));
- cmd.Parameters.Add(new SqlParameter("@BillingWorkId",feesRecord.BillingWorkId==null?(object)DBNull.Value:(object)feesRecord.BillingWorkId));
- cmd.Parameters.Add(new SqlParameter("@BillingWork",feesRecord.BillingWork==null?(object)DBNull.Value:(object)feesRecord.BillingWork));
- cmd.Parameters.Add(new SqlParameter("@HappenTime",feesRecord.HappenTime.HasValue?(object)feesRecord.HappenTime.Value:(object)DBNull.Value));
- cmd.Parameters.Add(new SqlParameter("@EnrollTime",feesRecord.EnrollTime.HasValue?(object)feesRecord.EnrollTime.Value:(object)DBNull.Value));
- cmd.Parameters.Add(new SqlParameter("@ExecDeptId",feesRecord.ExecDeptId==null?(object)DBNull.Value:(object)feesRecord.ExecDeptId));
- cmd.Parameters.Add(new SqlParameter("@ExecDept",feesRecord.ExecDept==null?(object)DBNull.Value:(object)feesRecord.ExecDept));
- cmd.Parameters.Add(new SqlParameter("@ExecWorkId",feesRecord.ExecWorkId==null?(object)DBNull.Value:(object)feesRecord.ExecWorkId));
- cmd.Parameters.Add(new SqlParameter("@ExecWork",feesRecord.ExecWork==null?(object)DBNull.Value:(object)feesRecord.ExecWork));
- cmd.Parameters.Add(new SqlParameter("@ExecState",feesRecord.ExecState==null?(object)DBNull.Value:(object)feesRecord.ExecState));
- cmd.Parameters.Add(new SqlParameter("@ExecTime",feesRecord.ExecTime==null?(object)DBNull.Value:(object)feesRecord.ExecTime));
- cmd.Parameters.Add(new SqlParameter("@Conclusion",feesRecord.Conclusion==null?(object)DBNull.Value:(object)feesRecord.Conclusion));
- cmd.Parameters.Add(new SqlParameter("@IsInsure",feesRecord.IsInsure==null?(object)DBNull.Value:(object)feesRecord.IsInsure));
- cmd.Parameters.Add(new SqlParameter("@InsureNO",feesRecord.InsureNO==null?(object)DBNull.Value:(object)feesRecord.InsureNO));
- cmd.Parameters.Add(new SqlParameter("@LimitDrug",feesRecord.LimitDrug==null?(object)DBNull.Value:(object)feesRecord.LimitDrug));
- cmd.Parameters.Add(new SqlParameter("@DrugType",feesRecord.DrugType==null?(object)DBNull.Value:(object)feesRecord.DrugType));
- cmd.Parameters.Add(new SqlParameter("@IsUpLoad",feesRecord.IsUpLoad==null?(object)DBNull.Value:(object)feesRecord.IsUpLoad));
- cmd.Parameters.Add(new SqlParameter("@Remark",feesRecord.Remark==null?(object)DBNull.Value:(object)feesRecord.Remark));
- cmd.Parameters.Add(new SqlParameter("@EmergencyFlag",feesRecord.EmergencyFlag==null?(object)DBNull.Value:(object)feesRecord.EmergencyFlag));
- cmd.Parameters.Add(new SqlParameter("@OrderNo",feesRecord.OrderNo==null?(object)DBNull.Value:(object)feesRecord.OrderNo));
- cmd.Parameters.Add(new SqlParameter("@Extend1",feesRecord.Extend1==null?(object)DBNull.Value:(object)feesRecord.Extend1));
- cmd.Parameters.Add(new SqlParameter("@Extend2",feesRecord.Extend2==null?(object)DBNull.Value:(object)feesRecord.Extend2));
- cmd.Parameters.Add(new SqlParameter("@Extend3",feesRecord.Extend3==null?(object)DBNull.Value:(object)feesRecord.Extend3));
- cmd.Parameters.Add(new SqlParameter("@Extend4",feesRecord.Extend4==null?(object)DBNull.Value:(object)feesRecord.Extend4));
- cmd.Parameters.Add(new SqlParameter("@Extend5",feesRecord.Extend5==null?(object)DBNull.Value:(object)feesRecord.Extend5));
- cmd.Parameters.Add(new SqlParameter("@OrderState",feesRecord.OrderState==null?(object)DBNull.Value:(object)feesRecord.OrderState));
- cmd.Parameters.Add(new SqlParameter("@OperatorId",feesRecord.OperatorId.HasValue?(object)feesRecord.OperatorId.Value:(object)DBNull.Value));
- cmd.Parameters.Add(new SqlParameter("@OperatorNo",feesRecord.OperatorNo==null?(object)DBNull.Value:(object)feesRecord.OperatorNo));
- cmd.Parameters.Add(new SqlParameter("@OperatorName",feesRecord.OperatorName==null?(object)DBNull.Value:(object)feesRecord.OperatorName));
- cmd.Parameters.Add(new SqlParameter("@Id", feesRecord.Id));
+ internal static int ExcuteUpdateCommand(SqlCommand cmd, FeesRecord feesRecord)
+ {
+ cmd.CommandText = "update FeesRecord set PatientId=@PatientId,ApplyId=@ApplyId,OperationRecordId=@OperationRecordId,ApplyOrderNo=@ApplyOrderNo,FeeIsDrug=@FeeIsDrug,FeeType=@FeeType,BillCode=@BillCode,GroupID=@GroupID,FeeTypeId=@FeeTypeId,FeeId=@FeeId,FeeCode=@FeeCode,FeeSerial=@FeeSerial,Unit=@Unit,FeeNum=@FeeNum,DrugSite=@DrugSite,FeeId2=@FeeId2,FeeClass=@FeeClass,UnitPrice=@UnitPrice,ChargePrice=@ChargePrice,ActualPrice=@ActualPrice,ChargeFee=@ChargeFee,Valuer=@Valuer,BillingDeptId=@BillingDeptId,BillingDept=@BillingDept,BillingWorkId=@BillingWorkId,BillingWork=@BillingWork,HappenTime=@HappenTime,EnrollTime=@EnrollTime,ExecDeptId=@ExecDeptId,ExecDept=@ExecDept,ExecWorkId=@ExecWorkId,ExecWork=@ExecWork,ExecState=@ExecState,ExecTime=@ExecTime,Conclusion=@Conclusion,IsInsure=@IsInsure,InsureNO=@InsureNO,LimitDrug=@LimitDrug,DrugType=@DrugType,IsUpLoad=@IsUpLoad,Remark=@Remark,EmergencyFlag=@EmergencyFlag,OrderNo=@OrderNo,Extend1=@Extend1,Extend2=@Extend2,Extend3=@Extend3,Extend4=@Extend4,Extend5=@Extend5,OrderState=@OrderState,OperatorId=@OperatorId,OperatorNo=@OperatorNo,OperatorName=@OperatorName,ChargName=@ChargName,ChargSpec=@ChargSpec where Id=@Id";
+ //从实体中取出值放入Command的参数列表
+ cmd.Parameters.Add(new SqlParameter("@PatientId", feesRecord.PatientId.HasValue ? (object)feesRecord.PatientId.Value : (object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@ApplyId", feesRecord.ApplyId.HasValue ? (object)feesRecord.ApplyId.Value : (object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@OperationRecordId", feesRecord.OperationRecordId.HasValue ? (object)feesRecord.OperationRecordId.Value : (object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@ApplyOrderNo", feesRecord.ApplyOrderNo == null ? (object)DBNull.Value : (object)feesRecord.ApplyOrderNo));
+ cmd.Parameters.Add(new SqlParameter("@FeeIsDrug", feesRecord.FeeIsDrug == null ? (object)DBNull.Value : (object)feesRecord.FeeIsDrug));
+ cmd.Parameters.Add(new SqlParameter("@FeeType", feesRecord.FeeType == null ? (object)DBNull.Value : (object)feesRecord.FeeType));
+ cmd.Parameters.Add(new SqlParameter("@BillCode", feesRecord.BillCode == null ? (object)DBNull.Value : (object)feesRecord.BillCode));
+ cmd.Parameters.Add(new SqlParameter("@GroupID", feesRecord.GroupID == null ? (object)DBNull.Value : (object)feesRecord.GroupID));
+ cmd.Parameters.Add(new SqlParameter("@FeeTypeId", feesRecord.FeeTypeId == null ? (object)DBNull.Value : (object)feesRecord.FeeTypeId));
+ cmd.Parameters.Add(new SqlParameter("@FeeId", feesRecord.FeeId == null ? (object)DBNull.Value : (object)feesRecord.FeeId));
+ cmd.Parameters.Add(new SqlParameter("@FeeCode", feesRecord.FeeCode == null ? (object)DBNull.Value : (object)feesRecord.FeeCode));
+ cmd.Parameters.Add(new SqlParameter("@FeeSerial", feesRecord.FeeSerial == null ? (object)DBNull.Value : (object)feesRecord.FeeSerial));
+ cmd.Parameters.Add(new SqlParameter("@Unit", feesRecord.Unit == null ? (object)DBNull.Value : (object)feesRecord.Unit));
+ cmd.Parameters.Add(new SqlParameter("@FeeNum", feesRecord.FeeNum == null ? (object)DBNull.Value : (object)feesRecord.FeeNum));
+ cmd.Parameters.Add(new SqlParameter("@DrugSite", feesRecord.DrugSite == null ? (object)DBNull.Value : (object)feesRecord.DrugSite));
+ cmd.Parameters.Add(new SqlParameter("@FeeId2", feesRecord.FeeId2 == null ? (object)DBNull.Value : (object)feesRecord.FeeId2));
+ cmd.Parameters.Add(new SqlParameter("@FeeClass", feesRecord.FeeClass == null ? (object)DBNull.Value : (object)feesRecord.FeeClass));
+ cmd.Parameters.Add(new SqlParameter("@UnitPrice", feesRecord.UnitPrice == null ? (object)DBNull.Value : (object)feesRecord.UnitPrice));
+ cmd.Parameters.Add(new SqlParameter("@ChargePrice", feesRecord.ChargePrice == null ? (object)DBNull.Value : (object)feesRecord.ChargePrice));
+ cmd.Parameters.Add(new SqlParameter("@ActualPrice", feesRecord.ActualPrice == null ? (object)DBNull.Value : (object)feesRecord.ActualPrice));
+ cmd.Parameters.Add(new SqlParameter("@ChargeFee", feesRecord.ChargeFee == null ? (object)DBNull.Value : (object)feesRecord.ChargeFee));
+ cmd.Parameters.Add(new SqlParameter("@Valuer", feesRecord.Valuer == null ? (object)DBNull.Value : (object)feesRecord.Valuer));
+ cmd.Parameters.Add(new SqlParameter("@BillingDeptId", feesRecord.BillingDeptId == null ? (object)DBNull.Value : (object)feesRecord.BillingDeptId));
+ cmd.Parameters.Add(new SqlParameter("@BillingDept", feesRecord.BillingDept == null ? (object)DBNull.Value : (object)feesRecord.BillingDept));
+ cmd.Parameters.Add(new SqlParameter("@BillingWorkId", feesRecord.BillingWorkId == null ? (object)DBNull.Value : (object)feesRecord.BillingWorkId));
+ cmd.Parameters.Add(new SqlParameter("@BillingWork", feesRecord.BillingWork == null ? (object)DBNull.Value : (object)feesRecord.BillingWork));
+ cmd.Parameters.Add(new SqlParameter("@HappenTime", feesRecord.HappenTime.HasValue ? (object)feesRecord.HappenTime.Value : (object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@EnrollTime", feesRecord.EnrollTime.HasValue ? (object)feesRecord.EnrollTime.Value : (object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@ExecDeptId", feesRecord.ExecDeptId == null ? (object)DBNull.Value : (object)feesRecord.ExecDeptId));
+ cmd.Parameters.Add(new SqlParameter("@ExecDept", feesRecord.ExecDept == null ? (object)DBNull.Value : (object)feesRecord.ExecDept));
+ cmd.Parameters.Add(new SqlParameter("@ExecWorkId", feesRecord.ExecWorkId == null ? (object)DBNull.Value : (object)feesRecord.ExecWorkId));
+ cmd.Parameters.Add(new SqlParameter("@ExecWork", feesRecord.ExecWork == null ? (object)DBNull.Value : (object)feesRecord.ExecWork));
+ cmd.Parameters.Add(new SqlParameter("@ExecState", feesRecord.ExecState == null ? (object)DBNull.Value : (object)feesRecord.ExecState));
+ cmd.Parameters.Add(new SqlParameter("@ExecTime", feesRecord.ExecTime.HasValue ? (object)feesRecord.ExecTime.Value : (object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@Conclusion", feesRecord.Conclusion == null ? (object)DBNull.Value : (object)feesRecord.Conclusion));
+ cmd.Parameters.Add(new SqlParameter("@IsInsure", feesRecord.IsInsure == null ? (object)DBNull.Value : (object)feesRecord.IsInsure));
+ cmd.Parameters.Add(new SqlParameter("@InsureNO", feesRecord.InsureNO == null ? (object)DBNull.Value : (object)feesRecord.InsureNO));
+ cmd.Parameters.Add(new SqlParameter("@LimitDrug", feesRecord.LimitDrug == null ? (object)DBNull.Value : (object)feesRecord.LimitDrug));
+ cmd.Parameters.Add(new SqlParameter("@DrugType", feesRecord.DrugType == null ? (object)DBNull.Value : (object)feesRecord.DrugType));
+ cmd.Parameters.Add(new SqlParameter("@IsUpLoad", feesRecord.IsUpLoad == null ? (object)DBNull.Value : (object)feesRecord.IsUpLoad));
+ cmd.Parameters.Add(new SqlParameter("@Remark", feesRecord.Remark == null ? (object)DBNull.Value : (object)feesRecord.Remark));
+ cmd.Parameters.Add(new SqlParameter("@EmergencyFlag", feesRecord.EmergencyFlag == null ? (object)DBNull.Value : (object)feesRecord.EmergencyFlag));
+ cmd.Parameters.Add(new SqlParameter("@OrderNo", feesRecord.OrderNo == null ? (object)DBNull.Value : (object)feesRecord.OrderNo));
+ cmd.Parameters.Add(new SqlParameter("@Extend1", feesRecord.Extend1 == null ? (object)DBNull.Value : (object)feesRecord.Extend1));
+ cmd.Parameters.Add(new SqlParameter("@Extend2", feesRecord.Extend2 == null ? (object)DBNull.Value : (object)feesRecord.Extend2));
+ cmd.Parameters.Add(new SqlParameter("@Extend3", feesRecord.Extend3 == null ? (object)DBNull.Value : (object)feesRecord.Extend3));
+ cmd.Parameters.Add(new SqlParameter("@Extend4", feesRecord.Extend4 == null ? (object)DBNull.Value : (object)feesRecord.Extend4));
+ cmd.Parameters.Add(new SqlParameter("@Extend5", feesRecord.Extend5 == null ? (object)DBNull.Value : (object)feesRecord.Extend5));
+ cmd.Parameters.Add(new SqlParameter("@OrderState", feesRecord.OrderState == null ? (object)DBNull.Value : (object)feesRecord.OrderState));
+ cmd.Parameters.Add(new SqlParameter("@OperatorId", feesRecord.OperatorId.HasValue ? (object)feesRecord.OperatorId.Value : (object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@OperatorNo", feesRecord.OperatorNo == null ? (object)DBNull.Value : (object)feesRecord.OperatorNo));
+ cmd.Parameters.Add(new SqlParameter("@OperatorName", feesRecord.OperatorName == null ? (object)DBNull.Value : (object)feesRecord.OperatorName));
+ cmd.Parameters.Add(new SqlParameter("@ChargName", feesRecord.ChargName == null ? (object)DBNull.Value : (object)feesRecord.ChargName));
+ cmd.Parameters.Add(new SqlParameter("@ChargSpec", feesRecord.ChargSpec == null ? (object)DBNull.Value : (object)feesRecord.ChargSpec));
+ cmd.Parameters.Add(new SqlParameter("@Id", feesRecord.Id));
return cmd.ExecuteNonQuery();
- }
-
- ///
+ }
+
+ ///
/// 不使用事务的更新方法
///
/// 实体类对象
/// 影响的记录行数
- internal static int Update(FeesRecord feesRecord)
- {
- using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
- {
- conn.Open();
+ internal static int Update(FeesRecord feesRecord)
+ {
+ using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
+ {
+ conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteUpdateCommand(cmd, feesRecord);
}
- }
- }
- ///
+ }
+ }
+ ///
/// 使用事务的更新方法
///
/// 实现共享Connection的对象
/// 实体类对象
/// 影响的记录行数
- internal static int Update(Connection connection,FeesRecord feesRecord)
+ internal static int Update(Connection connection, FeesRecord feesRecord)
{
return ExcuteUpdateCommand(connection.Command, feesRecord);
- }
- ///
+ }
+ ///
/// 执行更新命令
///
/// Command对象
@@ -314,7 +318,7 @@ namespace AIMSDAL
//解析过滤部份Sql语句
string updateString = SyntaxAnalyzer.ParseSql(oql, new FeesRecordMap());
cmd.CommandText = "update FeesRecord set " + updateString;
- cmd.Parameters.Clear();
+ cmd.Parameters.Clear();
//添加参数
if (parameters != null)
{
@@ -325,8 +329,8 @@ namespace AIMSDAL
}
return cmd.ExecuteNonQuery();
}
-
- ///
+
+ ///
/// 不使用事务的更新方法
///
/// 对象查询语句
@@ -343,8 +347,8 @@ namespace AIMSDAL
}
}
}
-
- ///
+
+ ///
/// 使用事务的更新方法
///
/// 实现共享Connection的对象
@@ -355,17 +359,17 @@ namespace AIMSDAL
{
return ExcuteUpdateCommand(connection.Command, oql, parameters);
}
- #endregion
-
- #region 查询实体集合
- ///
+ #endregion
+
+ #region 查询实体集合
+ ///
/// 执行Command获取对象列表
///
/// Command对象
- /// 递归类型
+ /// 递归类型
/// 递归深度
/// 实体类对象列表
- internal static List ExcuteSelectCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth)
+ internal static List ExcuteSelectCommand(SqlCommand cmd, RecursiveType recursiveType, int recursiveDepth)
{
List feesRecordList = new List();
using (SqlDataReader dr = cmd.ExecuteReader())
@@ -376,25 +380,25 @@ namespace AIMSDAL
feesRecordList.Add(feesRecord);
}
}
- return feesRecordList;
+ return feesRecordList;
}
- ///
+ ///
/// 执行查询命令
///
/// Command对象
/// 对象查询语句
/// 参数列表
- /// 递归类型
+ /// 递归类型
/// 递归深度
/// 实体类对象集合
- internal static List ExcuteSelectCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth)
+ internal static List ExcuteSelectCommand(SqlCommand cmd, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
//解析过滤部份Sql语句
string filterString = SyntaxAnalyzer.ParseSql(oql, new FeesRecordMap());
if (filterString != string.Empty)
{
- if(filterString.Trim().ToLower().IndexOf("order ")!=0)
- filterString = " where " + filterString;
+ if (filterString.Trim().ToLower().IndexOf("order ") != 0)
+ filterString = " where " + filterString;
}
cmd.Parameters.Clear();
cmd.CommandText = "select * from FeesRecord " + filterString;
@@ -408,14 +412,14 @@ namespace AIMSDAL
}
return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth);
}
-
- ///
+
+ ///
/// 根据对象查询语句查询实体集合
///
/// 实体类对象集合
internal static List Select()
{
- using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
+ using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
@@ -425,15 +429,15 @@ namespace AIMSDAL
}
}
}
- ///
+ ///
/// 根据对象查询语句查询实体集合
///
- /// 递归类型
+ /// 递归类型
/// 递归深度
/// 实体类对象集合
internal static List Select(RecursiveType recursiveType, int recursiveDepth)
{
- using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
+ using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
@@ -443,8 +447,8 @@ namespace AIMSDAL
}
}
}
-
- ///
+
+ ///
/// 根据对象查询语句查询实体集合
///
/// 对象查询语句
@@ -452,7 +456,7 @@ namespace AIMSDAL
/// 实体类对象集合
internal static List Select(string oql, ParameterList parameters)
{
- using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
+ using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
@@ -461,18 +465,18 @@ namespace AIMSDAL
}
}
}
-
- ///
+
+ ///
/// 根据对象查询语句查询实体集合
///
/// 对象查询语句
/// 参数列表
- /// 递归类型
+ /// 递归类型
/// 递归深度
/// 实体类对象集合
- internal static List Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth)
+ internal static List Select(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
- using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
+ using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
@@ -481,62 +485,62 @@ namespace AIMSDAL
}
}
}
-
- ///
+
+ ///
/// 根据对象查询语句查询实体集合(启用事务)
///
/// 连接对象
/// 对象查询语句
/// 参数列表
- /// 递归类型
+ /// 递归类型
/// 递归深度
/// 实体类对象集合
internal static List Select(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
- return ExcuteSelectCommand(connection.Command, oql, parameters,recursiveType, recursiveDepth);
+ return ExcuteSelectCommand(connection.Command, oql, parameters, recursiveType, recursiveDepth);
}
- #endregion
-
- #region 查询单个实体
-
- ///
+ #endregion
+
+ #region 查询单个实体
+
+ ///
/// 递归查询单个实体
///
/// Command对象
- /// 递归类型
+ /// 递归类型
/// 递归深度
/// 实体对象
- internal static FeesRecord ExcuteSelectSingleCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth)
- {
- FeesRecord feesRecord=null;
- using (SqlDataReader dr = cmd.ExecuteReader())
+ internal static FeesRecord ExcuteSelectSingleCommand(SqlCommand cmd, RecursiveType recursiveType, int recursiveDepth)
+ {
+ FeesRecord feesRecord = null;
+ using (SqlDataReader dr = cmd.ExecuteReader())
{
- if(dr.Read())
- feesRecord = DataReaderToEntity(dr);
- }
- if(feesRecord==null)
- return feesRecord;
+ if (dr.Read())
+ feesRecord = DataReaderToEntity(dr);
+ }
+ if (feesRecord == null)
+ return feesRecord;
return feesRecord;
- }
- ///
+ }
+ ///
/// 更据对象查询语句递归查询单个实体
///
/// Command对象
/// 对象查询语句
/// 参数列表
- /// 递归类型
+ /// 递归类型
/// 递归深度
/// 实体对象
- internal static FeesRecord ExcuteSelectSingleCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth)
+ internal static FeesRecord ExcuteSelectSingleCommand(SqlCommand cmd, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
//解析过滤部份Sql语句
string filterString = SyntaxAnalyzer.ParseSql(oql, new FeesRecordMap());
- if(filterString!=string.Empty)
- {
- filterString=" where "+filterString;
- }
+ if (filterString != string.Empty)
+ {
+ filterString = " where " + filterString;
+ }
cmd.CommandText = "select * from FeesRecord " + filterString;
- cmd.Parameters.Clear();
+ cmd.Parameters.Clear();
//添加参数
if (parameters != null)
{
@@ -547,29 +551,29 @@ namespace AIMSDAL
}
return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth);
}
-
- ///
+
+ ///
/// 更据对象查询语句递归查询单个实体
///
/// Command对象
/// 对象查询语句
/// 参数列表
- /// 递归类型
+ /// 递归类型
/// 递归深度
/// 实体对象
internal static FeesRecord SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
- using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
+ using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteSelectSingleCommand(cmd, oql, parameters, recursiveType, recursiveDepth);
- }
- }
+ }
+ }
}
-
- ///
+
+ ///
/// 更据对象查询语句查询单个实体
///
/// Command对象
@@ -578,10 +582,10 @@ namespace AIMSDAL
/// 实体对象
internal static FeesRecord SelectSingle(string oql, ParameterList parameters)
{
- return SelectSingle(oql,parameters,RecursiveType.Parent,1);
+ return SelectSingle(oql, parameters, RecursiveType.Parent, 1);
}
-
- ///
+
+ ///
/// 更据对象查询语句并启用事务查询单个实体
///
/// 连接对象
@@ -592,300 +596,308 @@ namespace AIMSDAL
{
return ExcuteSelectSingleCommand(connection.Command, oql, parameters, recursiveType, recursiveDepth);
}
-
- ///
+
+ ///
/// 更据主键值递归查询单个实体
///
/// Command对象
/// 主键值
- /// 递归类型
+ /// 递归类型
/// 递归深度
/// 实体对象
- internal static FeesRecord SelectSingle(SqlCommand cmd, int? id,RecursiveType recursiveType,int recursiveDepth)
- {
- cmd.Parameters.Clear();
- if(id.HasValue)
- {
- cmd.CommandText = "select * from FeesRecord where Id=@pk";
- cmd.Parameters.Add(new SqlParameter("@pk",id.Value));
- }
- else
- {
- cmd.CommandText = "select * from FeesRecord where Id is null";
- }
- return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth);
- }
-
- ///
+ internal static FeesRecord SelectSingle(SqlCommand cmd, int? id, RecursiveType recursiveType, int recursiveDepth)
+ {
+ cmd.Parameters.Clear();
+ if (id.HasValue)
+ {
+ cmd.CommandText = "select * from FeesRecord where Id=@pk";
+ cmd.Parameters.Add(new SqlParameter("@pk", id.Value));
+ }
+ else
+ {
+ cmd.CommandText = "select * from FeesRecord where Id is null";
+ }
+ return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth);
+ }
+
+ ///
/// 按主键字段查询特定实体
///
/// 主键值
/// 实体类对象
internal static FeesRecord SelectSingle(int? id)
{
- using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
+ using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
- return SelectSingle(cmd,id,RecursiveType.Parent,1);
- }
- }
+ return SelectSingle(cmd, id, RecursiveType.Parent, 1);
+ }
+ }
}
- ///
+ ///
/// 按主键字段查询特定实体
///
/// 主键值
- /// 递归类型
+ /// 递归类型
/// 递归深度
/// 实体类对象
internal static FeesRecord SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth)
{
- using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
+ using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
- return SelectSingle(cmd,id, recursiveType, recursiveDepth);
- }
- }
+ return SelectSingle(cmd, id, recursiveType, recursiveDepth);
+ }
+ }
}
-
- ///
+
+ ///
/// 使用事务并按主键字段查询特定实体
///
- /// 连接对象
+ /// 连接对象
/// 主键值
/// 实体类对象
- internal static FeesRecord SelectSingle(Connection connection,int? id, RecursiveType recursiveType, int recursiveDepth)
+ internal static FeesRecord SelectSingle(Connection connection, int? id, RecursiveType recursiveType, int recursiveDepth)
{
- return SelectSingle(connection.Command, id, recursiveType, recursiveDepth);
+ return SelectSingle(connection.Command, id, recursiveType, recursiveDepth);
}
- #endregion
-
-
- ///
+ #endregion
+
+
+ ///
/// 从DataReader中取出值生成实体对象
///
/// 查询对象
/// 过滤条件字符串
- private static FeesRecord DataReaderToEntity(SqlDataReader dr)
- {
- FeesRecord entity = new FeesRecord ();
- if(dr["Id"]!=System.DBNull.Value)
- {
- entity.Id=Convert.ToInt32(dr["Id"]);
- }
- if(dr["PatientId"]!=System.DBNull.Value)
- {
- entity.PatientId=Convert.ToInt32(dr["PatientId"]);
- }
- if(dr["ApplyId"]!=System.DBNull.Value)
- {
- entity.ApplyId=Convert.ToInt32(dr["ApplyId"]);
- }
- if(dr["OperationRecordId"]!=System.DBNull.Value)
- {
- entity.OperationRecordId=Convert.ToInt32(dr["OperationRecordId"]);
- }
- if(dr["ApplyOrderNo"]!=System.DBNull.Value)
- {
- entity.ApplyOrderNo=dr["ApplyOrderNo"].ToString();
- }
- if(dr["FeeIsDrug"]!=System.DBNull.Value)
- {
- entity.FeeIsDrug=dr["FeeIsDrug"].ToString();
- }
- if(dr["FeeType"]!=System.DBNull.Value)
- {
- entity.FeeType=dr["FeeType"].ToString();
- }
- if(dr["BillCode"]!=System.DBNull.Value)
- {
- entity.BillCode=dr["BillCode"].ToString();
- }
- if(dr["GroupID"]!=System.DBNull.Value)
- {
- entity.GroupID=dr["GroupID"].ToString();
- }
- if(dr["FeeTypeId"]!=System.DBNull.Value)
- {
- entity.FeeTypeId=dr["FeeTypeId"].ToString();
- }
- if(dr["FeeId"]!=System.DBNull.Value)
- {
- entity.FeeId=dr["FeeId"].ToString();
- }
- if(dr["FeeCode"]!=System.DBNull.Value)
- {
- entity.FeeCode=dr["FeeCode"].ToString();
- }
- if(dr["FeeSerial"]!=System.DBNull.Value)
- {
- entity.FeeSerial=dr["FeeSerial"].ToString();
- }
- if(dr["Unit"]!=System.DBNull.Value)
- {
- entity.Unit=dr["Unit"].ToString();
- }
- if(dr["FeeNum"]!=System.DBNull.Value)
- {
- entity.FeeNum=dr["FeeNum"].ToString();
- }
- if(dr["DrugSite"]!=System.DBNull.Value)
- {
- entity.DrugSite=dr["DrugSite"].ToString();
- }
- if(dr["FeeId2"]!=System.DBNull.Value)
- {
- entity.FeeId2=dr["FeeId2"].ToString();
- }
- if(dr["FeeClass"]!=System.DBNull.Value)
- {
- entity.FeeClass=dr["FeeClass"].ToString();
- }
- if(dr["UnitPrice"]!=System.DBNull.Value)
- {
- entity.UnitPrice=dr["UnitPrice"].ToString();
- }
- if(dr["ChargePrice"]!=System.DBNull.Value)
- {
- entity.ChargePrice=dr["ChargePrice"].ToString();
- }
- if(dr["ActualPrice"]!=System.DBNull.Value)
- {
- entity.ActualPrice=dr["ActualPrice"].ToString();
- }
- if(dr["ChargeFee"]!=System.DBNull.Value)
- {
- entity.ChargeFee=dr["ChargeFee"].ToString();
- }
- if(dr["Valuer"]!=System.DBNull.Value)
- {
- entity.Valuer=dr["Valuer"].ToString();
- }
- if(dr["BillingDeptId"]!=System.DBNull.Value)
- {
- entity.BillingDeptId=dr["BillingDeptId"].ToString();
- }
- if(dr["BillingDept"]!=System.DBNull.Value)
- {
- entity.BillingDept=dr["BillingDept"].ToString();
- }
- if(dr["BillingWorkId"]!=System.DBNull.Value)
- {
- entity.BillingWorkId=dr["BillingWorkId"].ToString();
- }
- if(dr["BillingWork"]!=System.DBNull.Value)
- {
- entity.BillingWork=dr["BillingWork"].ToString();
- }
- if(dr["HappenTime"]!=System.DBNull.Value)
- {
- entity.HappenTime=Convert.ToDateTime(dr["HappenTime"]);
- }
- if(dr["EnrollTime"]!=System.DBNull.Value)
- {
- entity.EnrollTime=Convert.ToDateTime(dr["EnrollTime"]);
- }
- if(dr["ExecDeptId"]!=System.DBNull.Value)
- {
- entity.ExecDeptId=dr["ExecDeptId"].ToString();
- }
- if(dr["ExecDept"]!=System.DBNull.Value)
- {
- entity.ExecDept=dr["ExecDept"].ToString();
- }
- if(dr["ExecWorkId"]!=System.DBNull.Value)
- {
- entity.ExecWorkId=dr["ExecWorkId"].ToString();
- }
- if(dr["ExecWork"]!=System.DBNull.Value)
- {
- entity.ExecWork=dr["ExecWork"].ToString();
- }
- if(dr["ExecState"]!=System.DBNull.Value)
- {
- entity.ExecState=dr["ExecState"].ToString();
- }
- if(dr["ExecTime"]!=System.DBNull.Value)
- {
- entity.ExecTime=dr["ExecTime"].ToString();
- }
- if(dr["Conclusion"]!=System.DBNull.Value)
- {
- entity.Conclusion=dr["Conclusion"].ToString();
- }
- if(dr["IsInsure"]!=System.DBNull.Value)
- {
- entity.IsInsure=dr["IsInsure"].ToString();
- }
- if(dr["InsureNO"]!=System.DBNull.Value)
- {
- entity.InsureNO=dr["InsureNO"].ToString();
- }
- if(dr["LimitDrug"]!=System.DBNull.Value)
- {
- entity.LimitDrug=dr["LimitDrug"].ToString();
- }
- if(dr["DrugType"]!=System.DBNull.Value)
- {
- entity.DrugType=dr["DrugType"].ToString();
- }
- if(dr["IsUpLoad"]!=System.DBNull.Value)
- {
- entity.IsUpLoad=dr["IsUpLoad"].ToString();
- }
- if(dr["Remark"]!=System.DBNull.Value)
- {
- entity.Remark=dr["Remark"].ToString();
- }
- if(dr["EmergencyFlag"]!=System.DBNull.Value)
- {
- entity.EmergencyFlag=dr["EmergencyFlag"].ToString();
- }
- if(dr["OrderNo"]!=System.DBNull.Value)
- {
- entity.OrderNo=dr["OrderNo"].ToString();
- }
- if(dr["Extend1"]!=System.DBNull.Value)
- {
- entity.Extend1=dr["Extend1"].ToString();
- }
- if(dr["Extend2"]!=System.DBNull.Value)
- {
- entity.Extend2=dr["Extend2"].ToString();
- }
- if(dr["Extend3"]!=System.DBNull.Value)
- {
- entity.Extend3=dr["Extend3"].ToString();
- }
- if(dr["Extend4"]!=System.DBNull.Value)
- {
- entity.Extend4=dr["Extend4"].ToString();
- }
- if(dr["Extend5"]!=System.DBNull.Value)
- {
- entity.Extend5=dr["Extend5"].ToString();
- }
- if(dr["OrderState"]!=System.DBNull.Value)
- {
- entity.OrderState=dr["OrderState"].ToString();
- }
- if(dr["OperatorId"]!=System.DBNull.Value)
- {
- entity.OperatorId=Convert.ToInt32(dr["OperatorId"]);
- }
- if(dr["OperatorNo"]!=System.DBNull.Value)
- {
- entity.OperatorNo=dr["OperatorNo"].ToString();
- }
- if(dr["OperatorName"]!=System.DBNull.Value)
- {
- entity.OperatorName=dr["OperatorName"].ToString();
- }
- return entity;
- }
- }
+ private static FeesRecord DataReaderToEntity(SqlDataReader dr)
+ {
+ FeesRecord entity = new FeesRecord();
+ if (dr["Id"] != System.DBNull.Value)
+ {
+ entity.Id = Convert.ToInt32(dr["Id"]);
+ }
+ if (dr["PatientId"] != System.DBNull.Value)
+ {
+ entity.PatientId = Convert.ToInt32(dr["PatientId"]);
+ }
+ if (dr["ApplyId"] != System.DBNull.Value)
+ {
+ entity.ApplyId = Convert.ToInt32(dr["ApplyId"]);
+ }
+ if (dr["OperationRecordId"] != System.DBNull.Value)
+ {
+ entity.OperationRecordId = Convert.ToInt32(dr["OperationRecordId"]);
+ }
+ if (dr["ApplyOrderNo"] != System.DBNull.Value)
+ {
+ entity.ApplyOrderNo = dr["ApplyOrderNo"].ToString();
+ }
+ if (dr["FeeIsDrug"] != System.DBNull.Value)
+ {
+ entity.FeeIsDrug = dr["FeeIsDrug"].ToString();
+ }
+ if (dr["FeeType"] != System.DBNull.Value)
+ {
+ entity.FeeType = dr["FeeType"].ToString();
+ }
+ if (dr["BillCode"] != System.DBNull.Value)
+ {
+ entity.BillCode = dr["BillCode"].ToString();
+ }
+ if (dr["GroupID"] != System.DBNull.Value)
+ {
+ entity.GroupID = dr["GroupID"].ToString();
+ }
+ if (dr["FeeTypeId"] != System.DBNull.Value)
+ {
+ entity.FeeTypeId = dr["FeeTypeId"].ToString();
+ }
+ if (dr["FeeId"] != System.DBNull.Value)
+ {
+ entity.FeeId = dr["FeeId"].ToString();
+ }
+ if (dr["FeeCode"] != System.DBNull.Value)
+ {
+ entity.FeeCode = dr["FeeCode"].ToString();
+ }
+ if (dr["FeeSerial"] != System.DBNull.Value)
+ {
+ entity.FeeSerial = dr["FeeSerial"].ToString();
+ }
+ if (dr["Unit"] != System.DBNull.Value)
+ {
+ entity.Unit = dr["Unit"].ToString();
+ }
+ if (dr["FeeNum"] != System.DBNull.Value)
+ {
+ entity.FeeNum = dr["FeeNum"].ToString();
+ }
+ if (dr["DrugSite"] != System.DBNull.Value)
+ {
+ entity.DrugSite = dr["DrugSite"].ToString();
+ }
+ if (dr["FeeId2"] != System.DBNull.Value)
+ {
+ entity.FeeId2 = dr["FeeId2"].ToString();
+ }
+ if (dr["FeeClass"] != System.DBNull.Value)
+ {
+ entity.FeeClass = dr["FeeClass"].ToString();
+ }
+ if (dr["UnitPrice"] != System.DBNull.Value)
+ {
+ entity.UnitPrice = dr["UnitPrice"].ToString();
+ }
+ if (dr["ChargePrice"] != System.DBNull.Value)
+ {
+ entity.ChargePrice = dr["ChargePrice"].ToString();
+ }
+ if (dr["ActualPrice"] != System.DBNull.Value)
+ {
+ entity.ActualPrice = dr["ActualPrice"].ToString();
+ }
+ if (dr["ChargeFee"] != System.DBNull.Value)
+ {
+ entity.ChargeFee = dr["ChargeFee"].ToString();
+ }
+ if (dr["Valuer"] != System.DBNull.Value)
+ {
+ entity.Valuer = dr["Valuer"].ToString();
+ }
+ if (dr["BillingDeptId"] != System.DBNull.Value)
+ {
+ entity.BillingDeptId = dr["BillingDeptId"].ToString();
+ }
+ if (dr["BillingDept"] != System.DBNull.Value)
+ {
+ entity.BillingDept = dr["BillingDept"].ToString();
+ }
+ if (dr["BillingWorkId"] != System.DBNull.Value)
+ {
+ entity.BillingWorkId = dr["BillingWorkId"].ToString();
+ }
+ if (dr["BillingWork"] != System.DBNull.Value)
+ {
+ entity.BillingWork = dr["BillingWork"].ToString();
+ }
+ if (dr["HappenTime"] != System.DBNull.Value)
+ {
+ entity.HappenTime = Convert.ToDateTime(dr["HappenTime"]);
+ }
+ if (dr["EnrollTime"] != System.DBNull.Value)
+ {
+ entity.EnrollTime = Convert.ToDateTime(dr["EnrollTime"]);
+ }
+ if (dr["ExecDeptId"] != System.DBNull.Value)
+ {
+ entity.ExecDeptId = dr["ExecDeptId"].ToString();
+ }
+ if (dr["ExecDept"] != System.DBNull.Value)
+ {
+ entity.ExecDept = dr["ExecDept"].ToString();
+ }
+ if (dr["ExecWorkId"] != System.DBNull.Value)
+ {
+ entity.ExecWorkId = dr["ExecWorkId"].ToString();
+ }
+ if (dr["ExecWork"] != System.DBNull.Value)
+ {
+ entity.ExecWork = dr["ExecWork"].ToString();
+ }
+ if (dr["ExecState"] != System.DBNull.Value)
+ {
+ entity.ExecState = dr["ExecState"].ToString();
+ }
+ if (dr["ExecTime"] != System.DBNull.Value)
+ {
+ entity.ExecTime = Convert.ToDateTime(dr["ExecTime"]);
+ }
+ if (dr["Conclusion"] != System.DBNull.Value)
+ {
+ entity.Conclusion = dr["Conclusion"].ToString();
+ }
+ if (dr["IsInsure"] != System.DBNull.Value)
+ {
+ entity.IsInsure = dr["IsInsure"].ToString();
+ }
+ if (dr["InsureNO"] != System.DBNull.Value)
+ {
+ entity.InsureNO = dr["InsureNO"].ToString();
+ }
+ if (dr["LimitDrug"] != System.DBNull.Value)
+ {
+ entity.LimitDrug = dr["LimitDrug"].ToString();
+ }
+ if (dr["DrugType"] != System.DBNull.Value)
+ {
+ entity.DrugType = dr["DrugType"].ToString();
+ }
+ if (dr["IsUpLoad"] != System.DBNull.Value)
+ {
+ entity.IsUpLoad = dr["IsUpLoad"].ToString();
+ }
+ if (dr["Remark"] != System.DBNull.Value)
+ {
+ entity.Remark = dr["Remark"].ToString();
+ }
+ if (dr["EmergencyFlag"] != System.DBNull.Value)
+ {
+ entity.EmergencyFlag = dr["EmergencyFlag"].ToString();
+ }
+ if (dr["OrderNo"] != System.DBNull.Value)
+ {
+ entity.OrderNo = dr["OrderNo"].ToString();
+ }
+ if (dr["Extend1"] != System.DBNull.Value)
+ {
+ entity.Extend1 = dr["Extend1"].ToString();
+ }
+ if (dr["Extend2"] != System.DBNull.Value)
+ {
+ entity.Extend2 = dr["Extend2"].ToString();
+ }
+ if (dr["Extend3"] != System.DBNull.Value)
+ {
+ entity.Extend3 = dr["Extend3"].ToString();
+ }
+ if (dr["Extend4"] != System.DBNull.Value)
+ {
+ entity.Extend4 = dr["Extend4"].ToString();
+ }
+ if (dr["Extend5"] != System.DBNull.Value)
+ {
+ entity.Extend5 = dr["Extend5"].ToString();
+ }
+ if (dr["OrderState"] != System.DBNull.Value)
+ {
+ entity.OrderState = dr["OrderState"].ToString();
+ }
+ if (dr["OperatorId"] != System.DBNull.Value)
+ {
+ entity.OperatorId = Convert.ToInt32(dr["OperatorId"]);
+ }
+ if (dr["OperatorNo"] != System.DBNull.Value)
+ {
+ entity.OperatorNo = dr["OperatorNo"].ToString();
+ }
+ if (dr["OperatorName"] != System.DBNull.Value)
+ {
+ entity.OperatorName = dr["OperatorName"].ToString();
+ }
+ if (dr["ChargName"] != System.DBNull.Value)
+ {
+ entity.ChargName = dr["ChargName"].ToString();
+ }
+ if (dr["ChargSpec"] != System.DBNull.Value)
+ {
+ entity.ChargSpec = dr["ChargSpec"].ToString();
+ }
+ return entity;
+ }
+ }
}
diff --git a/AIMSEntity/DAL/AutoGenerate/DFeesRecordReport.cs b/AIMSEntity/DAL/AutoGenerate/DFeesRecordReport.cs
new file mode 100644
index 0000000..139f2cc
--- /dev/null
+++ b/AIMSEntity/DAL/AutoGenerate/DFeesRecordReport.cs
@@ -0,0 +1,657 @@
+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 DFeesRecordReport
+ {
+ #region 插入实体操作部份
+ ///
+ /// 插入
+ ///
+ /// Command对象
+ /// 实体类对象
+ /// 标识列值或影响的记录行数
+ internal static int Insert(SqlCommand cmd, FeesRecordReport feesRecordReport)
+ {
+ cmd.Parameters.Clear();
+ cmd.CommandText = "insert into FeesRecordReport (StartTime,EndTime,FeeType,ChargType,PageType,PageNo,ExecDepartmentId,ExecDepartmentName,OperatorId,OperatorTime,Remark,Remark2,Remark3) values (@StartTime,@EndTime,@FeeType,@ChargType,@PageType,@PageNo,@ExecDepartmentId,@ExecDepartmentName,@OperatorId,@OperatorTime,@Remark,@Remark2,@Remark3);select @@identity";
+ //从实体中取出值放入Command的参数列表
+ cmd.Parameters.Add(new SqlParameter("@StartTime",feesRecordReport.StartTime.HasValue?(object)feesRecordReport.StartTime.Value:(object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@EndTime",feesRecordReport.EndTime.HasValue?(object)feesRecordReport.EndTime.Value:(object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@FeeType",feesRecordReport.FeeType==null?(object)DBNull.Value:(object)feesRecordReport.FeeType));
+ cmd.Parameters.Add(new SqlParameter("@ChargType",feesRecordReport.ChargType==null?(object)DBNull.Value:(object)feesRecordReport.ChargType));
+ cmd.Parameters.Add(new SqlParameter("@PageType",feesRecordReport.PageType==null?(object)DBNull.Value:(object)feesRecordReport.PageType));
+ cmd.Parameters.Add(new SqlParameter("@PageNo",feesRecordReport.PageNo==null?(object)DBNull.Value:(object)feesRecordReport.PageNo));
+ cmd.Parameters.Add(new SqlParameter("@ExecDepartmentId",feesRecordReport.ExecDepartmentId.HasValue?(object)feesRecordReport.ExecDepartmentId.Value:(object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@ExecDepartmentName",feesRecordReport.ExecDepartmentName==null?(object)DBNull.Value:(object)feesRecordReport.ExecDepartmentName));
+ cmd.Parameters.Add(new SqlParameter("@OperatorId",feesRecordReport.OperatorId.HasValue?(object)feesRecordReport.OperatorId.Value:(object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@OperatorTime",feesRecordReport.OperatorTime.HasValue?(object)feesRecordReport.OperatorTime.Value:(object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@Remark",feesRecordReport.Remark==null?(object)DBNull.Value:(object)feesRecordReport.Remark));
+ cmd.Parameters.Add(new SqlParameter("@Remark2",feesRecordReport.Remark2==null?(object)DBNull.Value:(object)feesRecordReport.Remark2));
+ cmd.Parameters.Add(new SqlParameter("@Remark3",feesRecordReport.Remark3==null?(object)DBNull.Value:(object)feesRecordReport.Remark3));
+ return Convert.ToInt32(cmd.ExecuteScalar());
+ }
+ ///
+ /// 不使用事务的插入方法
+ ///
+ /// 实体类对象
+ /// 标识列值或影响的记录行数
+ internal static int Insert(FeesRecordReport feesRecordReport)
+ {
+ using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
+ {
+ conn.Open();
+ using (SqlCommand cmd = conn.CreateCommand())
+ {
+ return Insert(cmd, feesRecordReport);
+ }
+ }
+ }
+
+ ///
+ /// 使用事务的插入方法
+ ///
+ /// 实现共享Connection的对象
+ /// 实体类对象
+ /// 标识列值或影响的记录行数
+ internal static int Insert(Connection connection,FeesRecordReport feesRecordReport)
+ {
+ return Insert(connection.Command, feesRecordReport);
+ }
+ #endregion
+
+ #region 删除实体操作
+
+ ///
+ /// 删除
+ ///
+ /// Command对象
+ /// 实体类对象
+ /// 影响的记录行数
+ internal static int ExcuteDeleteCommand(SqlCommand cmd, FeesRecordReport feesRecordReport)
+ {
+ cmd.Parameters.Clear();
+ cmd.CommandText = "delete from FeesRecordReport where Id=@Id";
+ //从实体中取出值放入Command的参数列表
+ cmd.Parameters.Add(new SqlParameter("@Id", feesRecordReport.Id));
+ return cmd.ExecuteNonQuery();
+ }
+ ///
+ /// 不使用事务的删除方法
+ ///
+ /// 实体类对象
+ /// 影响的记录行数
+ internal static int Delete(FeesRecordReport feesRecordReport)
+ {
+ using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
+ {
+ conn.Open();
+ using (SqlCommand cmd = conn.CreateCommand())
+ {
+ return ExcuteDeleteCommand(cmd, feesRecordReport);
+ }
+ }
+ }
+ ///
+ /// 使用事务的删除方法
+ ///
+ /// 实现共享Connection的对象
+ /// 实体类对象
+ /// 影响的记录行数
+ internal static int Delete(Connection connection,FeesRecordReport feesRecordReport)
+ {
+ return ExcuteDeleteCommand(connection.Command, feesRecordReport);
+ }
+
+ ///
+ /// 执行删除命令
+ ///
+ /// Command对象
+ /// 对象查询语句
+ /// 参数列表
+ /// 影响的记录行数
+ internal static int ExcuteDeleteCommand(SqlCommand cmd, string oql, ParameterList parameters)
+ {
+ //解析过滤部份Sql语句
+ string filterString = SyntaxAnalyzer.ParseSql(oql, new FeesRecordReportMap());
+ if (filterString != string.Empty)
+ {
+ filterString = " where " + filterString;
+ }
+ cmd.Parameters.Clear();
+ cmd.CommandText = "delete from FeesRecordReport " + filterString;
+ //添加参数
+ if (parameters != null)
+ {
+ foreach (string key in parameters.Keys)
+ {
+ cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
+ }
+ }
+ return cmd.ExecuteNonQuery();
+ }
+
+ ///
+ /// 不使用事务的删除方法
+ ///
+ /// 对象查询语句
+ /// 参数列表
+ /// 影响的记录行数
+ 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);
+ }
+ }
+ }
+
+ ///
+ /// 使用事务的删除方法
+ ///
+ /// 实现共享Connection的对象
+ /// 对象查询语句
+ /// 参数列表
+ /// 影响的记录行数
+ internal static int Delete(Connection connection, string oql, ParameterList parameters)
+ {
+ return ExcuteDeleteCommand(connection.Command, oql, parameters);
+ }
+
+ #endregion
+
+ #region 更新实体操作
+
+ ///
+ /// 更新
+ ///
+ /// Command对象
+ /// 实体类对象
+ /// 影响的记录行数
+ internal static int ExcuteUpdateCommand(SqlCommand cmd, FeesRecordReport feesRecordReport)
+ {
+ cmd.CommandText = "update FeesRecordReport set StartTime=@StartTime,EndTime=@EndTime,FeeType=@FeeType,ChargType=@ChargType,PageType=@PageType,PageNo=@PageNo,ExecDepartmentId=@ExecDepartmentId,ExecDepartmentName=@ExecDepartmentName,OperatorId=@OperatorId,OperatorTime=@OperatorTime,Remark=@Remark,Remark2=@Remark2,Remark3=@Remark3 where Id=@Id";
+ //从实体中取出值放入Command的参数列表
+ cmd.Parameters.Add(new SqlParameter("@StartTime",feesRecordReport.StartTime.HasValue?(object)feesRecordReport.StartTime.Value:(object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@EndTime",feesRecordReport.EndTime.HasValue?(object)feesRecordReport.EndTime.Value:(object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@FeeType",feesRecordReport.FeeType==null?(object)DBNull.Value:(object)feesRecordReport.FeeType));
+ cmd.Parameters.Add(new SqlParameter("@ChargType",feesRecordReport.ChargType==null?(object)DBNull.Value:(object)feesRecordReport.ChargType));
+ cmd.Parameters.Add(new SqlParameter("@PageType",feesRecordReport.PageType==null?(object)DBNull.Value:(object)feesRecordReport.PageType));
+ cmd.Parameters.Add(new SqlParameter("@PageNo",feesRecordReport.PageNo==null?(object)DBNull.Value:(object)feesRecordReport.PageNo));
+ cmd.Parameters.Add(new SqlParameter("@ExecDepartmentId",feesRecordReport.ExecDepartmentId.HasValue?(object)feesRecordReport.ExecDepartmentId.Value:(object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@ExecDepartmentName",feesRecordReport.ExecDepartmentName==null?(object)DBNull.Value:(object)feesRecordReport.ExecDepartmentName));
+ cmd.Parameters.Add(new SqlParameter("@OperatorId",feesRecordReport.OperatorId.HasValue?(object)feesRecordReport.OperatorId.Value:(object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@OperatorTime",feesRecordReport.OperatorTime.HasValue?(object)feesRecordReport.OperatorTime.Value:(object)DBNull.Value));
+ cmd.Parameters.Add(new SqlParameter("@Remark",feesRecordReport.Remark==null?(object)DBNull.Value:(object)feesRecordReport.Remark));
+ cmd.Parameters.Add(new SqlParameter("@Remark2",feesRecordReport.Remark2==null?(object)DBNull.Value:(object)feesRecordReport.Remark2));
+ cmd.Parameters.Add(new SqlParameter("@Remark3",feesRecordReport.Remark3==null?(object)DBNull.Value:(object)feesRecordReport.Remark3));
+ cmd.Parameters.Add(new SqlParameter("@Id", feesRecordReport.Id));
+ return cmd.ExecuteNonQuery();
+ }
+
+ ///
+ /// 不使用事务的更新方法
+ ///
+ /// 实体类对象
+ /// 影响的记录行数
+ internal static int Update(FeesRecordReport feesRecordReport)
+ {
+ using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
+ {
+ conn.Open();
+ using (SqlCommand cmd = conn.CreateCommand())
+ {
+ return ExcuteUpdateCommand(cmd, feesRecordReport);
+ }
+ }
+ }
+ ///
+ /// 使用事务的更新方法
+ ///
+ /// 实现共享Connection的对象
+ /// 实体类对象
+ /// 影响的记录行数
+ internal static int Update(Connection connection,FeesRecordReport feesRecordReport)
+ {
+ return ExcuteUpdateCommand(connection.Command, feesRecordReport);
+ }
+ ///
+ /// 执行更新命令
+ ///
+ /// Command对象
+ /// 对象查询语句
+ /// 参数列表
+ /// 影响的记录行数
+ internal static int ExcuteUpdateCommand(SqlCommand cmd, string oql, ParameterList parameters)
+ {
+ //解析过滤部份Sql语句
+ string updateString = SyntaxAnalyzer.ParseSql(oql, new FeesRecordReportMap());
+ cmd.CommandText = "update FeesRecordReport 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();
+ }
+
+ ///
+ /// 不使用事务的更新方法
+ ///
+ /// 对象查询语句
+ /// 参数列表
+ /// 影响的记录行数
+ 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);
+ }
+ }
+ }
+
+ ///
+ /// 使用事务的更新方法
+ ///
+ /// 实现共享Connection的对象
+ /// 对象查询语句
+ /// 参数列表
+ /// 影响的记录行数
+ internal static int Update(Connection connection, string oql, ParameterList parameters)
+ {
+ return ExcuteUpdateCommand(connection.Command, oql, parameters);
+ }
+ #endregion
+
+ #region 查询实体集合
+ ///
+ /// 执行Command获取对象列表
+ ///
+ /// Command对象
+ /// 递归类型
+ /// 递归深度
+ /// 实体类对象列表
+ internal static List ExcuteSelectCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth)
+ {
+ List feesRecordReportList = new List();
+ using (SqlDataReader dr = cmd.ExecuteReader())
+ {
+ while (dr.Read())
+ {
+ FeesRecordReport feesRecordReport = DataReaderToEntity(dr);
+ feesRecordReportList.Add(feesRecordReport);
+ }
+ }
+ return feesRecordReportList;
+ }
+ ///
+ /// 执行查询命令
+ ///
+ /// Command对象
+ /// 对象查询语句
+ /// 参数列表
+ /// 递归类型
+ /// 递归深度
+ /// 实体类对象集合
+ internal static List ExcuteSelectCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth)
+ {
+ //解析过滤部份Sql语句
+ string filterString = SyntaxAnalyzer.ParseSql(oql, new FeesRecordReportMap());
+ if (filterString != string.Empty)
+ {
+ if(filterString.Trim().ToLower().IndexOf("order ")!=0)
+ filterString = " where " + filterString;
+ }
+ cmd.Parameters.Clear();
+ cmd.CommandText = "select * from FeesRecordReport " + filterString;
+ //添加参数
+ if (parameters != null)
+ {
+ foreach (string key in parameters.Keys)
+ {
+ cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
+ }
+ }
+ return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth);
+ }
+
+ ///
+ /// 根据对象查询语句查询实体集合
+ ///
+ /// 实体类对象集合
+ internal static List Select()
+ {
+ using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
+ {
+ conn.Open();
+ using (SqlCommand cmd = conn.CreateCommand())
+ {
+ cmd.CommandText = "select * from FeesRecordReport";
+ return ExcuteSelectCommand(cmd, RecursiveType.Parent, 1);
+ }
+ }
+ }
+ ///
+ /// 根据对象查询语句查询实体集合
+ ///
+ /// 递归类型
+ /// 递归深度
+ /// 实体类对象集合
+ internal static List Select(RecursiveType recursiveType, int recursiveDepth)
+ {
+ using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
+ {
+ conn.Open();
+ using (SqlCommand cmd = conn.CreateCommand())
+ {
+ cmd.CommandText = "select * from FeesRecordReport";
+ return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth);
+ }
+ }
+ }
+
+ ///
+ /// 根据对象查询语句查询实体集合
+ ///
+ /// 对象查询语句
+ /// 参数列表
+ /// 实体类对象集合
+ internal static List 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);
+ }
+ }
+ }
+
+ ///
+ /// 根据对象查询语句查询实体集合
+ ///
+ /// 对象查询语句
+ /// 参数列表
+ /// 递归类型
+ /// 递归深度
+ /// 实体类对象集合
+ internal static List 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);
+ }
+ }
+ }
+
+ ///
+ /// 根据对象查询语句查询实体集合(启用事务)
+ ///
+ /// 连接对象
+ /// 对象查询语句
+ /// 参数列表
+ /// 递归类型
+ /// 递归深度
+ /// 实体类对象集合
+ internal static List Select(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
+ {
+ return ExcuteSelectCommand(connection.Command, oql, parameters,recursiveType, recursiveDepth);
+ }
+ #endregion
+
+ #region 查询单个实体
+
+ ///
+ /// 递归查询单个实体
+ ///
+ /// Command对象
+ /// 递归类型
+ /// 递归深度
+ /// 实体对象
+ internal static FeesRecordReport ExcuteSelectSingleCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth)
+ {
+ FeesRecordReport feesRecordReport=null;
+ using (SqlDataReader dr = cmd.ExecuteReader())
+ {
+ if(dr.Read())
+ feesRecordReport = DataReaderToEntity(dr);
+ }
+ if(feesRecordReport==null)
+ return feesRecordReport;
+ return feesRecordReport;
+ }
+ ///
+ /// 更据对象查询语句递归查询单个实体
+ ///
+ /// Command对象
+ /// 对象查询语句
+ /// 参数列表
+ /// 递归类型
+ /// 递归深度
+ /// 实体对象
+ internal static FeesRecordReport ExcuteSelectSingleCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth)
+ {
+ //解析过滤部份Sql语句
+ string filterString = SyntaxAnalyzer.ParseSql(oql, new FeesRecordReportMap());
+ if(filterString!=string.Empty)
+ {
+ filterString=" where "+filterString;
+ }
+ cmd.CommandText = "select * from FeesRecordReport " + 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);
+ }
+
+ ///
+ /// 更据对象查询语句递归查询单个实体
+ ///
+ /// Command对象
+ /// 对象查询语句
+ /// 参数列表
+ /// 递归类型
+ /// 递归深度
+ /// 实体对象
+ internal static FeesRecordReport 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);
+ }
+ }
+ }
+
+ ///
+ /// 更据对象查询语句查询单个实体
+ ///
+ /// Command对象
+ /// 对象查询语句
+ /// 参数列表
+ /// 实体对象
+ internal static FeesRecordReport SelectSingle(string oql, ParameterList parameters)
+ {
+ return SelectSingle(oql,parameters,RecursiveType.Parent,1);
+ }
+
+ ///
+ /// 更据对象查询语句并启用事务查询单个实体
+ ///
+ /// 连接对象
+ /// 对象查询语句
+ /// 参数列表
+ /// 实体对象
+ internal static FeesRecordReport SelectSingle(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
+ {
+ return ExcuteSelectSingleCommand(connection.Command, oql, parameters, recursiveType, recursiveDepth);
+ }
+
+ ///
+ /// 更据主键值递归查询单个实体
+ ///
+ /// Command对象
+ /// 主键值
+ /// 递归类型
+ /// 递归深度
+ /// 实体对象
+ internal static FeesRecordReport SelectSingle(SqlCommand cmd, int? id,RecursiveType recursiveType,int recursiveDepth)
+ {
+ cmd.Parameters.Clear();
+ if(id.HasValue)
+ {
+ cmd.CommandText = "select * from FeesRecordReport where Id=@pk";
+ cmd.Parameters.Add(new SqlParameter("@pk",id.Value));
+ }
+ else
+ {
+ cmd.CommandText = "select * from FeesRecordReport where Id is null";
+ }
+ return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth);
+ }
+
+ ///
+ /// 按主键字段查询特定实体
+ ///
+ /// 主键值
+ /// 实体类对象
+ internal static FeesRecordReport SelectSingle(int? id)
+ {
+ using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
+ {
+ conn.Open();
+ using (SqlCommand cmd = conn.CreateCommand())
+ {
+ return SelectSingle(cmd,id,RecursiveType.Parent,1);
+ }
+ }
+ }
+ ///
+ /// 按主键字段查询特定实体
+ ///
+ /// 主键值
+ /// 递归类型
+ /// 递归深度
+ /// 实体类对象
+ internal static FeesRecordReport 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);
+ }
+ }
+ }
+
+ ///
+ /// 使用事务并按主键字段查询特定实体
+ ///
+ /// 连接对象
+ /// 主键值
+ /// 实体类对象
+ internal static FeesRecordReport SelectSingle(Connection connection,int? id, RecursiveType recursiveType, int recursiveDepth)
+ {
+ return SelectSingle(connection.Command, id, recursiveType, recursiveDepth);
+ }
+ #endregion
+
+
+ ///
+ /// 从DataReader中取出值生成实体对象
+ ///
+ /// 查询对象
+ /// 过滤条件字符串
+ private static FeesRecordReport DataReaderToEntity(SqlDataReader dr)
+ {
+ FeesRecordReport entity = new FeesRecordReport ();
+ if(dr["Id"]!=System.DBNull.Value)
+ {
+ entity.Id=Convert.ToInt32(dr["Id"]);
+ }
+ if(dr["StartTime"]!=System.DBNull.Value)
+ {
+ entity.StartTime=Convert.ToDateTime(dr["StartTime"]);
+ }
+ if(dr["EndTime"]!=System.DBNull.Value)
+ {
+ entity.EndTime=Convert.ToDateTime(dr["EndTime"]);
+ }
+ if(dr["FeeType"]!=System.DBNull.Value)
+ {
+ entity.FeeType=dr["FeeType"].ToString();
+ }
+ if(dr["ChargType"]!=System.DBNull.Value)
+ {
+ entity.ChargType=dr["ChargType"].ToString();
+ }
+ if(dr["PageType"]!=System.DBNull.Value)
+ {
+ entity.PageType=dr["PageType"].ToString();
+ }
+ if(dr["PageNo"]!=System.DBNull.Value)
+ {
+ entity.PageNo=dr["PageNo"].ToString();
+ }
+ if(dr["ExecDepartmentId"]!=System.DBNull.Value)
+ {
+ entity.ExecDepartmentId=Convert.ToInt32(dr["ExecDepartmentId"]);
+ }
+ if(dr["ExecDepartmentName"]!=System.DBNull.Value)
+ {
+ entity.ExecDepartmentName=dr["ExecDepartmentName"].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();
+ }
+ if(dr["Remark2"]!=System.DBNull.Value)
+ {
+ entity.Remark2=dr["Remark2"].ToString();
+ }
+ if(dr["Remark3"]!=System.DBNull.Value)
+ {
+ entity.Remark3=dr["Remark3"].ToString();
+ }
+ return entity;
+ }
+ }
+}
+
diff --git a/AIMSEntity/DAL/Extension/DFeesRecordReport.cs b/AIMSEntity/DAL/Extension/DFeesRecordReport.cs
new file mode 100644
index 0000000..8a4b620
--- /dev/null
+++ b/AIMSEntity/DAL/Extension/DFeesRecordReport.cs
@@ -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 DFeesRecordReport
+ {
+ }
+}
diff --git a/AIMSEntity/Model/AutoGenerate/FeesRecord.cs b/AIMSEntity/Model/AutoGenerate/FeesRecord.cs
index 76d10f4..bd3465d 100644
--- a/AIMSEntity/Model/AutoGenerate/FeesRecord.cs
+++ b/AIMSEntity/Model/AutoGenerate/FeesRecord.cs
@@ -42,7 +42,7 @@ namespace AIMSModel
private string execWorkId;
private string execWork;
private string execState;
- private string execTime;
+ private DateTime? execTime;
private string conclusion;
private string isInsure;
private string insureNO;
@@ -61,6 +61,8 @@ namespace AIMSModel
private int? operatorId;
private string operatorNo;
private string operatorName;
+ private string chargName;
+ private string chargSpec;
///
@@ -338,7 +340,7 @@ namespace AIMSModel
///
///
///
- public string ExecTime
+ public DateTime? ExecTime
{
get{ return execTime; }
set{ execTime=value; }
@@ -487,5 +489,21 @@ namespace AIMSModel
get{ return operatorName; }
set{ operatorName=value; }
}
+ ///
+ ///
+ ///
+ public string ChargName
+ {
+ get{ return chargName; }
+ set{ chargName=value; }
+ }
+ ///
+ ///
+ ///
+ public string ChargSpec
+ {
+ get{ return chargSpec; }
+ set{ chargSpec=value; }
+ }
}
}
diff --git a/AIMSEntity/Model/AutoGenerate/FeesRecordReport.cs b/AIMSEntity/Model/AutoGenerate/FeesRecordReport.cs
new file mode 100644
index 0000000..8884cd9
--- /dev/null
+++ b/AIMSEntity/Model/AutoGenerate/FeesRecordReport.cs
@@ -0,0 +1,140 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using AIMSDAL;
+
+namespace AIMSModel
+{
+ [Serializable]
+ public partial class FeesRecordReport
+ {
+ private int? id;
+ private DateTime? startTime;
+ private DateTime? endTime;
+ private string feeType;
+ private string chargType;
+ private string pageType;
+ private string pageNo;
+ private int? execDepartmentId;
+ private string execDepartmentName;
+ private int? operatorId;
+ private DateTime? operatorTime;
+ private string remark;
+ private string remark2;
+ private string remark3;
+
+
+ ///
+ ///
+ ///
+ public int? Id
+ {
+ get{ return id; }
+ set{ id=value; }
+ }
+ ///
+ ///
+ ///
+ public DateTime? StartTime
+ {
+ get{ return startTime; }
+ set{ startTime=value; }
+ }
+ ///
+ ///
+ ///
+ public DateTime? EndTime
+ {
+ get{ return endTime; }
+ set{ endTime=value; }
+ }
+ ///
+ ///
+ ///
+ public string FeeType
+ {
+ get{ return feeType; }
+ set{ feeType=value; }
+ }
+ ///
+ ///
+ ///
+ public string ChargType
+ {
+ get{ return chargType; }
+ set{ chargType=value; }
+ }
+ ///
+ ///
+ ///
+ public string PageType
+ {
+ get{ return pageType; }
+ set{ pageType=value; }
+ }
+ ///
+ ///
+ ///
+ public string PageNo
+ {
+ get{ return pageNo; }
+ set{ pageNo=value; }
+ }
+ ///
+ ///
+ ///
+ public int? ExecDepartmentId
+ {
+ get{ return execDepartmentId; }
+ set{ execDepartmentId=value; }
+ }
+ ///
+ ///
+ ///
+ public string ExecDepartmentName
+ {
+ get{ return execDepartmentName; }
+ set{ execDepartmentName=value; }
+ }
+ ///
+ ///
+ ///
+ public int? OperatorId
+ {
+ get{ return operatorId; }
+ set{ operatorId=value; }
+ }
+ ///
+ ///
+ ///
+ public DateTime? OperatorTime
+ {
+ get{ return operatorTime; }
+ set{ operatorTime=value; }
+ }
+ ///
+ ///
+ ///
+ public string Remark
+ {
+ get{ return remark; }
+ set{ remark=value; }
+ }
+ ///
+ ///
+ ///
+ public string Remark2
+ {
+ get{ return remark2; }
+ set{ remark2=value; }
+ }
+ ///
+ ///
+ ///
+ public string Remark3
+ {
+ get{ return remark3; }
+ set{ remark3=value; }
+ }
+ }
+}
diff --git a/AIMSEntity/Model/Extension/FeesRecordReport.cs b/AIMSEntity/Model/Extension/FeesRecordReport.cs
new file mode 100644
index 0000000..ef2417a
--- /dev/null
+++ b/AIMSEntity/Model/Extension/FeesRecordReport.cs
@@ -0,0 +1,10 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using AIMSDAL;
+namespace AIMSModel
+{
+ public partial class FeesRecordReport
+ {
+ }
+}
diff --git a/AIMSEntity/ObjectQuery/FeesRecordMap.cs b/AIMSEntity/ObjectQuery/FeesRecordMap.cs
index 969b194..8aeb42d 100644
--- a/AIMSEntity/ObjectQuery/FeesRecordMap.cs
+++ b/AIMSEntity/ObjectQuery/FeesRecordMap.cs
@@ -62,6 +62,8 @@ namespace AIMSObjectQuery
dictionary.Add("operatorid", "OperatorId");
dictionary.Add("operatorno", "OperatorNo");
dictionary.Add("operatorname", "OperatorName");
+ dictionary.Add("chargname", "ChargName");
+ dictionary.Add("chargspec", "ChargSpec");
}
#region IMap 成员
diff --git a/AIMSEntity/ObjectQuery/FeesRecordReportMap.cs b/AIMSEntity/ObjectQuery/FeesRecordReportMap.cs
new file mode 100644
index 0000000..4779a4a
--- /dev/null
+++ b/AIMSEntity/ObjectQuery/FeesRecordReportMap.cs
@@ -0,0 +1,47 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+namespace AIMSObjectQuery
+{
+ internal partial class FeesRecordReportMap:IMap
+ {
+ private Dictionary dictionary = new Dictionary();
+ public FeesRecordReportMap()
+ {
+ dictionary.Add("id", "Id");
+ dictionary.Add("starttime", "StartTime");
+ dictionary.Add("endtime", "EndTime");
+ dictionary.Add("feetype", "FeeType");
+ dictionary.Add("chargtype", "ChargType");
+ dictionary.Add("pagetype", "PageType");
+ dictionary.Add("pageno", "PageNo");
+ dictionary.Add("execdepartmentid", "ExecDepartmentId");
+ dictionary.Add("execdepartmentname", "ExecDepartmentName");
+ dictionary.Add("operatorid", "OperatorId");
+ dictionary.Add("operatortime", "OperatorTime");
+ dictionary.Add("remark", "Remark");
+ dictionary.Add("remark2", "Remark2");
+ dictionary.Add("remark3", "Remark3");
+ }
+
+ #region IMap 成员
+
+ public string this[string propertyName]
+ {
+ get
+ {
+ try
+ {
+ return dictionary[propertyName.ToLower()];
+ }
+ catch (KeyNotFoundException)
+ {
+ throw new Exception(propertyName + "属性不存在");
+ }
+ }
+ }
+
+ #endregion
+ }
+}