public void AddDetail(AG_IAS_APPLICANT_DETAIL_TEMP detial) { ApplicantFileDetail detail_A = detial as ApplicantFileDetail; detail_A.SetHeader(this); detail_A.UPLOAD_GROUP_NO = this.UPLOAD_GROUP_NO; detail_A.GetBrokenRules(); _applicantFileDetails.Add(detail_A); }
public void AddDetail(ApplicantFileDetail detail) { detail.SetHeader(this); detail.UPLOAD_GROUP_NO = this.UPLOAD_GROUP_NO; detail.TESTING_NO = TestingNumber; detail.EXAM_PLACE_CODE = this.PROVINCE_CODE + this.COMP_CODE; detail.APPLY_DATE = ApplyDate; detail.USER_ID = CreateBy.Id; detail.USER_DATE = _applyDate; IEnumerable <BusinessRule> rules = detail.GetBrokenRules(); if (rules != null && rules.Count() > 0) { StringBuilder errmsg = new StringBuilder(""); foreach (BusinessRule rule in rules) { errmsg.AppendLine(rule.Rule); } detail.ERROR_MSG = errmsg.ToString(); } _applicantFileDetails.Add(detail); }