示例#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));
 }