/// <summary> /// /// </summary> /// <param name="AFieldList"></param> /// <param name="ASection"></param> /// <returns></returns> public static Boolean RetrieveInfo(List <String>AFieldList, TFormDataRetrievalSection ASection) { //string name = ReflectionUtility.GetPropertyName(() => formData.BankName); return false; }
/// <summary> /// Add retrieval section flag if tag list contains tags for given Template object /// </summary> /// <param name="AFormDataTemplate"></param> /// <param name="ASection"></param> private void BuildRetrievalSection(TFormData AFormDataTemplate, TFormDataRetrievalSection ASection) { Boolean AddSection = false; foreach (var prop in AFormDataTemplate.GetType().GetProperties()) { if (TagList.Contains(prop.Name)) { AddSection = true; } } if (AddSection) { AddRetrievalSection(ASection); } }
/// <summary> /// check if retrieval of data is requested for a certain section /// </summary> /// <param name="ASection"></param> /// <returns></returns> public Boolean IsRetrievalRequested(TFormDataRetrievalSection ASection) { return RetrievalList.Contains(ASection); }
/// <summary> /// Add retrieval section flag if not there yet /// </summary> /// <param name="ASection"></param> private void AddRetrievalSection(TFormDataRetrievalSection ASection) { if (!RetrievalList.Contains(ASection)) { RetrievalList.Add(ASection); } }