/// <summary> /// 检测专业编号 /// </summary> /// <param name="model">专业的实体对象</param> public bool SeleSpeciality(SpecialityModel model) { SpecialityDAL Speciality = new SpecialityDAL(); bool b = Speciality.SeleSpeciality(model); return(b); }
/// <summary> /// 根据专业编号查询 /// </summary> /// <param name="model">专业的实体对象</param> /// <returns>DataTable数据表</returns> public DataTable GetIdSpeciality(SpecialityModel model) { SpecialityDAL Speciality = new SpecialityDAL(); DataTable dt = Speciality.GetIdSpeciality(model); return(dt); }
/// <summary> /// 查询所有专业信息的 /// </summary> /// <returns>DataTable数据表</returns> public DataTable GetAllSpeciality() { SpecialityDAL Speciality = new SpecialityDAL(); DataTable dt = Speciality.GetAllSpeciality(); return(dt); }
/// <summary> /// Initalizes DAL objects /// </summary> public HealthcareController() { visitDAL = new VisitDAL(); appointmentDAL = new AppointmentDAL(); doctorDAL = new DoctorDAL(); personDAL = new PersonDAL(); loginDAL = new LoginDAL(); patientDAL = new PatientDAL(); nurseDAL = new NurseDAL(); testDAL = new TestDAL(); specialtyDAL = new SpecialityDAL(); }
public Boolean Delete(SqlInt32 SpecialityID) { SpecialityDAL dalSpeciality = new SpecialityDAL(); if (dalSpeciality.Delete(SpecialityID)) { return(true); } else { Message = dalSpeciality.Message; return(false); } }
public Boolean Update(SpecialityENT entSpeciality) { SpecialityDAL dalSpeciality = new SpecialityDAL(); if (dalSpeciality.Update(entSpeciality)) { return(true); } else { Message = dalSpeciality.Message; return(false); } }
/// <summary> /// 修改专业信息的业务访问方法 /// </summary> /// <param name="model">专业的实体对象</param> public void UPSpeciality(SpecialityModel model) { SpecialityDAL Speciality = new SpecialityDAL(); Speciality.UPSpeciality(model); }
/// <summary> /// 删除专业信息的业务方法 /// </summary> /// <param name="model">专业的实体对象</param> public void DeleSpeciality(SpecialityModel model) { SpecialityDAL Speciality = new SpecialityDAL(); Speciality.DeleSpeciality(model); }
public SpecialityENT SelectByPK(SqlInt32 SpecialityID) { SpecialityDAL dalSpeciality = new SpecialityDAL(); return(dalSpeciality.SelectByPK(SpecialityID)); }
public DataTable SelectForDropDownList() { SpecialityDAL dalSpeciality = new SpecialityDAL(); return(dalSpeciality.SelectForDropDownList()); }
public DataTable SelectAll() { SpecialityDAL dalSpeciality = new SpecialityDAL(); return(dalSpeciality.SelectAll()); }