private void ValidateAttatchFiles(DTO.ReceiveLicenseDetail detail, List <DTO.AttachFileDetail> attachFiles) { try { int iCount = attachFiles.Where(w => w.FileName.Split('_')[0] == detail.CITIZEN_ID).Count(); //.ID_CARD_NO).Count(); if (iCount == 0) { //detail.ERR_DESC += "\nไม่พบเอกสารแนบ"; } } catch (Exception ex) { //detail.ERR_DESC += ex.Message; } }
/// <summary> /// ส่งข้อมูลการขอรับใบอนุญาตแบบเดี่ยว /// </summary> /// <param name="header">ส่วน header</param> /// <param name="detail">ส่วน detail</param> /// <param name="attachs">รายการเอกสารแนบ</param> /// <param name="userProfile">user profile</param> /// <returns></returns> public DTO.ResponseMessage <bool> InsertSingleReceiveLicense(DTO.ReceiveLicenseHeader header, DTO.ReceiveLicenseDetail detail, DTO.UserProfile userProfile) { return(svc.InsertSingleReceiveLicense(header, detail, userProfile)); }