Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="list"></param>
        /// <param name="healthInstId"></param>
        public static void CreateResourceScheduling(ResourceSchedulingList list, Guid healthInstId)
        {
            CreateResourceSchedulingReq req = new CreateResourceSchedulingReq();

            list.ForEach(p => p.HealthInstitutionId = healthInstId);
            req.BusinessData = list;
            req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString();
            req.ContextInformation.AppId  = Controller.CurrentHealthInstitution.HealthInstitutionId.ToString();

            CreateResourceSchedulingRes res = req.ExecuteService <CreateResourceSchedulingReq, CreateResourceSchedulingRes>(req);

            if (res.Error != null)
            {
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);
            }
        }
Пример #2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="list"></param>
        /// <param name="healthInstId"></param>
        public static void CreateResourceScheduling(ResourceSchedulingList list, Guid healthInstId)
        {
            CreateResourceSchedulingReq req = new CreateResourceSchedulingReq();
            list.ForEach(p => p.HealthInstitutionId = healthInstId);
            req.BusinessData = list;
            req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString();
            req.ContextInformation.AppId = Controller.CurrentHealthInstitution.HealthInstitutionId.ToString();

            CreateResourceSchedulingRes res = req.ExecuteService<CreateResourceSchedulingReq, CreateResourceSchedulingRes>(req);
            if (res.Error != null)
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);
        }