/// <summary> /// 判断给入的参数是否是界面相关选中时间 /// /// </summary> /// <param name="admissExit"></param> /// <returns></returns> private bool isData(AdmissionExit admissExit) { if (checkBox1.Checked) { return(admissExit.Model.Equals(AdmissionExit.ADMISSION)); } else if (checkBox2.Checked) { return(admissExit.Model.Equals(AdmissionExit.EXIT)); } else { return(false); } }
/// <summary> /// 将二进制数据转换成AdmissionExit数据 /// </summary> /// <returns></returns> public List <AdmissionExit> getHisAdmissionExitFormByte() { if (bt == null) { return(null); } List <byte[]> admissionExits = getAdmissionExitBt(bt); List <AdmissionExit> hisAdmissionExits = new List <AdmissionExit>(); for (int i = 0; i < admissionExits.Count; i++) { AdmissionExit hisAexit = new AdmissionExit(AdmissionExit.ADMISSION); hisAexit.setHisAdminssionExit(admissionExits[i]); hisAdmissionExits.Add(hisAexit); } return(hisAdmissionExits); }