手术清点保存术前诊断
This commit is contained in:
parent
69c9fa0278
commit
e42d535d71
@ -1623,6 +1623,12 @@ namespace AIMS.OperationAanesthesia
|
||||
_record.InstrumentList.TagPicture = "";// Convert.ToBase64String(PublicToDoument.ImageToBytes(pictureBox1.Image));
|
||||
_record.InstrumentList.JsonTextData = "";// PublicToDoument.SerializeControl(panel18, _record, new List<string> ());
|
||||
|
||||
var diagnose = myEditControl.Document.Fields.ToArray().Where(x => x.ID == "KB20180604142254986").FirstOrDefault();
|
||||
if (diagnose != null && diagnose.Text != "" && diagnose.Text != Patient.ApplyDiagnoseInfoName)
|
||||
{
|
||||
//_record.InstrumentList.Remark = diagnose.Text;
|
||||
DBManage.AddApplyDiagnose(_record, GetDiagnoseId(diagnose.Text));
|
||||
}
|
||||
var operation = myEditControl.Document.Fields.ToArray().Where(x => x.ID == "KB20180604142607822").FirstOrDefault();
|
||||
if (operation != null && operation.Text != "" && operation.Text != Patient.OperationInfoName)
|
||||
{
|
||||
@ -1708,6 +1714,45 @@ namespace AIMS.OperationAanesthesia
|
||||
}
|
||||
return string.Join(",", result.ToArray());
|
||||
}
|
||||
private string GetDiagnoseId(string namestr)
|
||||
{
|
||||
List<string> result = new List<string>();
|
||||
List<string> names = new List<string>();
|
||||
if (namestr.Contains(","))
|
||||
{
|
||||
names = namestr.Split(',').ToList();
|
||||
}
|
||||
else if (namestr.Contains(","))
|
||||
{
|
||||
names = namestr.Split(',').ToList();
|
||||
}
|
||||
else if (namestr.Contains("+"))
|
||||
{
|
||||
names = namestr.Split('+').ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
names.Add(namestr);
|
||||
}
|
||||
foreach (var name in names)
|
||||
{
|
||||
DataTable dt = DBHelper.GetDataTable("select * from Disease where Name ='" + name + "'");
|
||||
if (dt.Rows.Count == 0)
|
||||
{
|
||||
DBHelper.ExecNonQuery(string.Concat(new Object[]{
|
||||
"insert into Disease(ICDCode,Name,[HelpCode],UseRate,IsValid,[OperatorNo],[OperatorName],OperateDate) values('','"+name+"','"+PublicMethod.GetFirstLetter(name)+"',1,1,'admin','系统管理员','"+DateTime.Now+"')"}));
|
||||
}
|
||||
dt = DBHelper.GetDataTable("select * from Disease where Name ='" + name + "'");
|
||||
if (dt.Rows.Count > 0)
|
||||
{
|
||||
for (int j = 0; j < dt.Rows.Count; j++)
|
||||
{
|
||||
result.Add(dt.Rows[0]["Id"].ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
return string.Join(",", result.ToArray());
|
||||
}
|
||||
private string GetOperationSiteId(string namestr)
|
||||
{
|
||||
List<string> result = new List<string>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user