private void 修改病历ToolStripMenuItem_Click(object sender, EventArgs e) { EMR.Controls.Entity.EmrWriteRecord record = treeT.SelectedNode.Tag as EMR.Controls.Entity.EmrWriteRecord; string title = record.RecordText; if (DialogTitle.Show("修改病历名称", ref title) == DialogResult.OK) { selectRecordId = record.ID; record.RecordText = title; controller.SaveEmrWriteRecord(record); } }
private void 修改模板ToolStripMenuItem_Click(object sender, EventArgs e) { EMR.Controls.Entity.EmrTemplateTree clg = treeT.SelectedNode.Tag as EMR.Controls.Entity.EmrTemplateTree; string title = clg.TemplateText; if (DialogTitle.Show("修改模板名称", ref title) == DialogResult.OK) { selectRecordId = clg.ID; clg.TemplateText = title; controller.SaveEmrTemplateTree(clg); } }
private void 新增模板ToolStripMenuItem_Click(object sender, EventArgs e) { string title = ""; if (DialogTitle.Show("输入模板名称", ref title) == DialogResult.OK) { EmrCatalogue clg = treeT.SelectedNode.Tag as EmrCatalogue; EMR.Controls.Entity.EmrTemplateTree template = new EMR.Controls.Entity.EmrTemplateTree(); template.CatalogueCode = clg.NodeCode; template.DeptCode = cbDept.SelectedValue.ToString(); template.DeptName = cbDept.SelectedText; template.UserCode = controller.emrView.CurrBindKeyData.DoctorCode; template.UserName = controller.emrView.CurrBindKeyData.DoctorName; template.LevelCode = ckh.Checked ? (int)ckh.Tag : (ckd.Checked ? (int)ckd.Tag : (int)ckp.Tag); template.TemplateText = title; controller.SaveEmrTemplateTree(template); selectRecordId = template.ID; } }
private void 新增病历ToolStripMenuItem_Click(object sender, EventArgs e) { string title = treeT.SelectedNode.Text; if (DialogTitle.Show("输入病历名称", ref title) == DialogResult.OK) { EMR.Controls.Entity.EmrCatalogue clg = treeT.SelectedNode.Tag as EMR.Controls.Entity.EmrCatalogue; EMR.Controls.Entity.EmrWriteRecord record = new EMR.Controls.Entity.EmrWriteRecord(); record.CatalogueCode = clg.NodeCode; record.RecordText = title; record.DeptCode = controller.emrView.CurrBindKeyData.CurrDeptCode; record.DeptName = controller.emrView.CurrBindKeyData.CurrDeptName; record.UserCode = controller.emrView.CurrBindKeyData.UserCode; record.UserName = controller.emrView.CurrBindKeyData.UserName; record.PatientId = controller.emrView.CurrBindKeyData.PatientId; record.OrderNum = treeT.SelectedNode.Nodes.Count + 1; record.HosptialId = controller.emrView.CurrBindKeyData.HosptialId; controller.SaveEmrWriteRecord(record); selectRecordId = record.ID; } }