void _selectHospitalCtl_SelectHospital(HospitalEventArgs arg) { _user.CurrentHospital = arg.Hospital; _user.CurrentOffice = arg.Office; if (_user.PreviousHospital != null && _user.CurrentHospital != null && _user.PreviousHospital.hospitalId == arg.Hospital.hospitalId && _user.PreviousOffice != null && _user.CurrentOffice != null && _user.PreviousOffice.officeId == arg.Office.officeId) {//如果上一次登录院区 与 当前选择登录的院区 一样,上次登录科室 与 当前选择登录的科室一样,则跳过设置登录院区科室接口 GetUserInfoOperateCallBack(null); } else { SetLoginHospital(arg.Hospital.hospitalId.ToString(), arg.Office.officeId.ToString()); } }
void _selectHospitalCtl_SelectHospital(HospitalEventArgs arg) { _user.CurrentHospital = arg.Hospital; _user.CurrentOffice = arg.Office; if (_user.PreviousHospital != null && _user.CurrentHospital != null && _user.PreviousHospital.hospitalId == arg.Hospital.hospitalId && _user.PreviousOffice !=null && _user.CurrentOffice !=null && _user.PreviousOffice.officeId == arg.Office.officeId ) {//如果上一次登录院区 与 当前选择登录的院区 一样,上次登录科室 与 当前选择登录的科室一样,则跳过设置登录院区科室接口 GetUserInfoOperateCallBack(null); } else { SetLoginHospital(arg.Hospital.hospitalId.ToString() , arg.Office.officeId.ToString() ); } }