示例#1
0
        public PrintQRVM GetInfoForPrintQR(string pid)
        {
            var data = repoOnSite.GetTestRegisInfoForPrintQR(pid);

            var result = new PrintQRVM
            {
                TestRegistrations = new TestRegistration
                {
                    _id           = data._id,
                    Title         = data.Title,
                    FirstName     = data.FirstName,
                    LastName      = data.LastName,
                    SubjectCode   = data.SubjectCode,
                    SubjectName   = data.SubjectName,
                    ExamLanguage  = data.ExamLanguage,
                    VoiceLanguage = data.VoiceLanguage,
                    RegDate       = data.RegDate,
                    RegDateString = data.RegDateString,
                    ExpriedDate   = data.ExpriedDate,
                    SiteId        = data.SiteId,
                    CenterId      = data.CenterId,
                    ForPractice   = data.ForPractice,
                    ForTestSystem = data.ForTestSystem,
                    Status        = data.Status,
                    PID           = data.PID,
                    ExamNumber    = data.ExamNumber,
                    ExamPeriod    = data.ExamPeriod,
                    AppointDate   = data.AppointDate,
                    Address       = data.Address,
                    MaxCount      = data.MaxCount,
                    CertData      = new CertData
                    {
                        CertNo   = data.CertData.CertNo,
                        CertYear = data.CertData.CertYear,
                        UserCode = data.CertData.UserCode
                    }
                },
            };

            return(result);
        }