/// <summary> /// 获取学生卡打印信息 /// <para>作 者: Huan GaoLiang </para> /// <para>创建时间: 2019-03-06 </para> /// </summary> /// <param name="studentId">学生编号</param> /// <param name="schoolId">校区编号</param> /// <returns>返回学生证信息</returns> /// <returns>修改结果数</returns> /// <exception> /// 异常ID:1,系统不存在该学生 /// </exception> public StudentCardResponse GetStudentCard(long studentId, string schoolId) { StudentCardResponse studentCar = new StudentCardResponse(); // 1、根据学生编号查询学生信息 TblCstStudent student = _studentRepository.Value.GetCstStudentId(studentId); if (student == null) { throw new BussinessException((byte)ModelType.Customer, 1); } studentCar.StudentId = student.StudentId; studentCar.HeadFaceUrl = student.HeadFaceUrl; studentCar.StudentNo = student.StudentNo; studentCar.StudentName = student.StudentName; // 2、获取基础配置中的公司log和学生证反面信息 var companyId = SdkClient.CreateDimCommonService().GetAllSchool().FirstOrDefault(m => m.SchoolId == schoolId)?.CompanyId; var schoolSetting = new HomeSchoolSettingService().GetSettingList(companyId); studentCar.CompanyImage = schoolSetting.FirstOrDefault(m => m.FuntionId == (int)HomeSchoolBusinessType.StudentCradUp)?.DataValue; studentCar.NegativeImage = schoolSetting.FirstOrDefault(m => m.FuntionId == (int)HomeSchoolBusinessType.StudentCradDown)?.DataValue; return(studentCar); }
/// <summary> /// 根据校区Id集合获取校区公司信息 /// <para>作 者:郭伟佳</para> /// <para>创建时间:2019-03-26</para> /// </summary> /// <returns>校区公司信息列表</returns> public List <SchoolInfoResponse> GetSchoolInfoList(List <string> schoolIdList) { var result = SdkClient.CreateDimCommonService().GetSchoolInfoList(schoolIdList); return(result); }
/// <summary> /// 获取所有公司信息 /// <para>作 者:郭伟佳</para> /// <para>创建时间:2019-01-10</para> /// </summary> /// <returns>公司信息列表</returns> public List <CompanyListResponse> GetCompanyList() { var result = SdkClient.CreateDimCommonService().GetCompanyList(); return(result); }