Exemplo n.º 1
0
        public bool UpdatePOPEventConfig(MED_PERIOPERATIVE_EVENT_CONFIG POPEventConfig)
        {
            try
            {
                var flag = dapper.Set <MED_PERIOPERATIVE_EVENT_CONFIG>().Update(POPEventConfig);

                dapper.SaveChanges();

                return(flag > 0 ? true : false);
            }
            catch (Exception ex)
            {
                Logger.Error("修改围术期事件配置异常:" + ex.Message);

                return(false);
            }
        }
Exemplo n.º 2
0
        public bool AddPOPEventConfig(MED_PERIOPERATIVE_EVENT_CONFIG POPEventConfig)
        {
            try
            {
                POPEventConfig.EVENT_ID = Guid.NewGuid().ToString();

                var flag = dapper.Set <MED_PERIOPERATIVE_EVENT_CONFIG>().Insert(POPEventConfig);

                dapper.SaveChanges();

                return(flag);
            }
            catch (Exception ex)
            {
                Logger.Error("新增围术期事件配置异常:" + ex.Message);

                return(false);
            }
        }
Exemplo n.º 3
0
 public RequestResult <bool> UpdatePOPEventConfig(MED_PERIOPERATIVE_EVENT_CONFIG POPEventConfig)
 {
     return(Success(_pacuPOPEventService.UpdatePOPEventConfig(POPEventConfig)));
 }