示例#1
0
        GetApplicantInfo(string applicantCode, string testingNo, string examPlaceCode, int RowPerPage, int num_page, Boolean Count)
        {
            var res = new DTO.ResponseService <DTO.ApplicantInfo>();

            try
            {
                res = svc.GetApplicantInfo(applicantCode, testingNo, examPlaceCode, RowPerPage, num_page, Count);

                //res.DataResponse = new ApplicantInfo
                //{
                //    Absent = false,
                //    AcceptOfficeName = "สำนักงานทดสอบ",
                //    ApplicantCode = "1",
                //    ApplyDate = DateTime.Now.Date,
                //    ExamForce = false,
                //    ExamPlace = "ธนาคารไทยณิชย์",
                //    ExamResult = "result",
                //    ExpireDate = DateTime.Now.Date,
                //    FirstName = "ปรมะ",
                //    IdCard = "1100400363191",
                //    InsuranceCompanyName = "ทริป เมเนจเม้นท์ โบรกเกอร์ จำกัด",
                //    LastName = "พงษ์คณาธร",
                //    LicenseApprove = false,
                //    PaymentNo = "11/22",
                //    Subjects = new List<ExamScoreResult> { new ExamScoreResult { LicenseType = "licenseType", Score = 50, SubjectCode = "วิชา 1" } },
                //    TestingDate = DateTime.Now.Date,
                //    TestingNo = "561449",
                //    Title = "นาย"
                //};
            }
            catch (Exception ex)
            {
                res.ErrorMsg = "กรุณาติดต่อผู้ดูแลระบบ";
            }
            return(res);
        }