|
|
|
@ -771,15 +771,15 @@ namespace PEIS.View.Enrollment |
|
|
|
|
public event EventHandler<Args<dynamic>> GetRegItems; |
|
|
|
|
public void ShowRegItems(List<EnrollmentPatient> items, int code) |
|
|
|
|
{ |
|
|
|
|
if (code == 0) { |
|
|
|
|
if (code == 0) { |
|
|
|
|
items.ForEach(a => a.Sex = a.Sex.Equals("1") ? "男" : a.Sex.Equals("2") ? "女" : ""); |
|
|
|
|
Invoke(new Action(() => _lstRegItems = items)); |
|
|
|
|
Invoke(new Action(() => DgcRegItem.DataSource = null)); |
|
|
|
|
Invoke(new Action(() => { DgcRegItem.DataSource = _lstRegItems.Where(a => a?.Name.Contains(NameSearch.Text) == true || a?.ID.ToString().Contains(NameSearch.Text) == true); })); |
|
|
|
|
Invoke(new Action(() => { DgcRegItem.DataSource = _lstRegItems.Where(a => a?.Name.Contains(NameSearch.Text) == true || a?.ID.ToString().Contains(NameSearch.Text) == true || a?.SpellCode?.Contains(NameSearch.Text) == true); })); |
|
|
|
|
|
|
|
|
|
if (_lstRegItems.Where(a => a?.Name.Contains(NameSearch.Text) == true || a?.ID.ToString().Contains(NameSearch.Text) == true).Count() != 0) |
|
|
|
|
{ |
|
|
|
|
Invoke(new Action(() => _chooseRegItem = _lstRegItems.Where(a => a?.Name.Contains(NameSearch.Text) == true || a?.ID.ToString().Contains(NameSearch.Text) == true).ToList()[0])); |
|
|
|
|
Invoke(new Action(() => _chooseRegItem = _lstRegItems.Where(a => a?.Name.Contains(NameSearch.Text) == true || a?.ID.ToString().Contains(NameSearch.Text) == true || a?.SpellCode?.Contains(NameSearch.Text) == true).ToList()[0])); |
|
|
|
|
Invoke(new Action(() => OnGetRegInfo(_chooseRegItem.ID))); |
|
|
|
|
Invoke(new Action(() => OnGetExamFeeItem(_chooseRegItem.ID, "0"))); |
|
|
|
|
Invoke(new Action(() => OnGetCheckCost(_chooseRegItem.ID))); |
|
|
|
@ -796,7 +796,7 @@ namespace PEIS.View.Enrollment |
|
|
|
|
{ |
|
|
|
|
Invoke(new Action(() => _lstRegItems2 = items)); |
|
|
|
|
Invoke(new Action(() => DgcRegItem2.DataSource = null)); |
|
|
|
|
Invoke(new Action(() => { DgcRegItem2.DataSource = _lstRegItems2.Where(a => a?.Name.Contains(NameSearch2.Text) == true || a?.ID.ToString().Contains(NameSearch2.Text) == true); })); |
|
|
|
|
Invoke(new Action(() => { DgcRegItem2.DataSource = _lstRegItems2.Where(a => a?.Name.Contains(NameSearch2.Text) == true || a?.ID.ToString().Contains(NameSearch2.Text) == true || a?.SpellCode?.Contains(NameSearch2.Text) == true); })); |
|
|
|
|
if (_lstRegItems2.Where(a => a?.Name.Contains(NameSearch2.Text) == true || a?.ID.ToString().Contains(NameSearch2.Text) == true).Count() == 0) DgcCopyItem.DataSource = _lstCopyFeeItem = null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|