示例#1
0
        public static DTO.ResponseService <ExamFileHeader> ConcreateApplicantFileRequest(IAS.DAL.IASPersonEntities ctx, DTO.ApplicantUploadRequest request)
        {
            DTO.ResponseService <ExamFileHeader> response = new DTO.ResponseService <ExamFileHeader>();

            ExamFileHeader header = CreateExamFileHeader(ctx, request);
            Int32          row    = 0;

            foreach (String record in request.UploadData.Body)
            {
                row++;
                ExamFileDetail detail = CreateExamFileDetail(ctx, record, row);
                header.AddDetail(detail);
            }
            response.DataResponse = header;

            return(response);
        }
示例#2
0
        private static ExamFileHeader CreateExamFileHeader(IAS.DAL.IASPersonEntities ctx, DTO.ApplicantUploadRequest request)
        {
            String header = request.UploadData.Header;

            ExamFileHeaderRequest headRequest = new ExamFileHeaderRequest()
            {
                Context  = ctx,
                FileName = request.FileName,

                UserProfile = request.UserProfile,
                LineData    = request.UploadData.Header
            };
            ExamFileHeader headerFile = new ExamFileHeader(headRequest);


            return(headerFile);
        }
示例#3
0
 public void SetHeader(ExamFileHeader header)
 {
     this.UPLOAD_GROUP_NO = header.UPLOAD_GROUP_NO;
     _examFileHeader      = header;
 }