// 保存入院登记 public bool SaveInHospital(CommContracts.InHospital inHospital, CommContracts.InHospitalApply inHospitalApply = null) { if (inHospital == null) { return(false); } CommClient.InHospital myd = new CommClient.InHospital(); if (myd.SaveInHospital(inHospital)) { if (inHospitalApply == null) { return(true); } else { CommClient.InHospitalApply myd1 = new CommClient.InHospitalApply(); inHospitalApply.InHospitalApplyEnum = CommContracts.InHospitalApplyEnum.已处理; if (myd1.UpdateInHospitalApply(inHospitalApply)) { return(true); } } } return(false); }
private void UpdateAllWait() { if (this.InManageCheck.IsChecked.Value) { this.AllWaitList.View = this.Resources["inApplyColumn"] as GridView; CommClient.InHospitalApply mydApply = new CommClient.InHospitalApply(); AllWaitList.ItemsSource = mydApply.GetAllInHospitalApply(CommContracts.InHospitalApplyEnum.未处理); } else if (this.LeaveManageCheck.IsChecked.Value) { CommClient.InHospital myd = new CommClient.InHospital(); this.AllWaitList.View = this.Resources["inHospitalColumn"] as GridView; AllWaitList.ItemsSource = myd.GetAllInHospitalList(); } else if (this.RecallManageCheck.IsChecked.Value) { CommClient.LeaveHospital myd = new CommClient.LeaveHospital(); this.AllWaitList.View = this.Resources["leaveHospitalColumn"] as GridView; AllWaitList.ItemsSource = myd.GetAllLeaveHospitalList(); } }
public bool SaveInHospitalApply(CommContracts.InHospitalApply inpatient) { CommClient.InHospitalApply myd = new CommClient.InHospitalApply(); return(myd.SaveInHospitalApply(inpatient)); }