StableVersion4.3/HL_FristAidPlatform_Trauma/Form_EMR.cs

60 lines
1.7 KiB
C#

using DevExpress.XtraEditors;
using HL_FristAidPlatform_Public;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HL_FristAidPlatform_Trauma
{
public partial class Form_EMR : XtraForm
{
public string Guid;
public Form_EMR(string guid)
{
InitializeComponent();
Guid = guid;
}
private void Form_EMR_Load(object sender, EventArgs e)
{
BindPathogeny();
txt_Informant.Text = Information.User.FullName;
txt_TransportAddress.Text = Information.Hospital.Name;
radioGroup_BrainType.SelectedIndex = -1;
radioGroup_MaxillofacialType.SelectedIndex = -1;
radioGroup_ChestType.SelectedIndex = -1;
radioGroup_AbdomenType.SelectedIndex = -1;
radioGroup_BackType.SelectedIndex = -1;
radioGroup_SpineType.SelectedIndex = -1;
radioGroup_limbType.SelectedIndex = -1;
}
/// <summary>
/// 绑定病因
/// </summary>
private void BindPathogeny()
{
try
{
DataTable dt = DBHelpClass.Get("/api/base/T_Base_Pathogeny/GetList");
PublicClass.SetLookUpList(ref lookUpEdit_Pathogeny, dt, 1, 2, true, "请选择");
}
catch (Exception ex)
{
PublicClass.WriteErrorLog(this.Text, "绑定民族:\r\n" + ex);
}
}
private void simpleButton1_Click(object sender, EventArgs e)
{
this.Close();
}
}
}