예제 #1
0
        public ApiResult DeleteDoctorSchdule(string ID)
        {
            doctSchduleService = new DoctorSchduleService(CurrentOperatorUserID);
            var result = new ApiResult()
            {
                Status = EnumApiStatus.BizError, Msg = "删除失败"
            };

            if (doctSchduleService.DeleteDoctorSchdule(ID))
            {
                result.Status = 0;
                result.Msg    = "删除成功";
            }
            return(result);
        }
예제 #2
0
        public ApiResult GetDoctorSchedule(string ID)
        {
            var result = new ApiResult()
            {
                Status = 0, Msg = "暂无数据"
            };

            doctSchduleService = new DoctorSchduleService(CurrentOperatorUserID);
            DoctorSchedule data = doctSchduleService.GetDoctorSchedule(ID);

            if (data != null)
            {
                ObjectsMapper <DoctorSchedule, DoctorScheduleSingleDto> mapper = ObjectMapperManager.DefaultInstance.GetMapper <DoctorSchedule, DoctorScheduleSingleDto>();
                DoctorScheduleSingleDto model = mapper.Map(data);
                result.Status = 0;
                result.Msg    = "成功";
                result.Data   = data;
            }
            return(result);
        }
예제 #3
0
 public DoctorScheduleController()
 {
     doctSchduleService = new DoctorSchduleService(CurrentOperatorUserID);
 }