Пример #1
0
        public Task <bool> MergedLog(PatientMergedLogVM log)
        {
            var userTC = new User
            {
                SSUSR_Initials = log.User.SSUSR_Initials,
                SSUSR_Password = log.User.SSUSR_Password
            };

            var logon = _cacheConnection.LogonTrakCare(userTC);


            if (logon.Item1)
            {
                var ptMLog = new PatientMergedLogVM
                {
                    BCT_HN        = log.BCT_HN,
                    SCT_HN        = log.SCT_HN,
                    User          = logon.Item2,
                    Status        = log.Status,
                    MergeDateTime = log.MergeDateTime
                };

                Task.Run(() => _mySqlConnection.MergedLog(ptMLog));
            }

            return(Task.Run(() => logon.Item1));
        }
Пример #2
0
        public bool MergedLog(PatientMergedLogVM log)
        {
            var p = new DynamicParameters();

            p.Add("@_BCT_HN", log.BCT_HN);
            p.Add("@_SCT_HN", log.SCT_HN);
            p.Add("@_UserId", log.User.SSUSR_Initials);
            p.Add("@_UserName", log.User.SSUSR_Name);
            p.Add("@_Status", log.Status);

            using (IDbConnection connection = mySqlConnection)
            {
                try
                {
                    connection.QueryAsync("MergedLog", p, commandType: CommandType.StoredProcedure);
                    return(true);
                }
                catch (Exception e)
                {
                }
            }

            return(false);
        }
Пример #3
0
 public async Task <bool> MergedLog(PatientMergedLogVM log)
 {
     return(await _patientVisitRepository.MergedLog(log));
 }
Пример #4
0
 public async Task <bool> MergedLog(PatientMergedLogVM log)
 {
     return(await _patientService.MergedLog(log));
 }