private static string GetDyncFieldValueByRow(string name, SQLDynamicRow row) { if (row.IsNull()) { return(null); } var item = row.Row.Where(t => t.Name.Equals(name)).FirstOrDefault(); return(item?.Value); }
public int UpdateDyncTableData(SQLDynamicRow sQLDynamicRow, string tableName, int id) { return(_sQLDynamic.UpdateDyncForm(sQLDynamicRow, tableName, id)); }
public int AddDyncTableData(SQLDynamicRow sQLDynamicRow, string tableName) { return(_sQLDynamic.AddDyncForm(sQLDynamicRow, tableName)); }
public static IHtmlString BuliderFormView(this HtmlHelper htmlHelper, IEnumerable <DyncField> dyncField, SQLDynamicRow row) { if (dyncField.IsNull() && !dyncField.Any()) { return(htmlHelper.Raw(string.Empty)); } var content = string.Empty; foreach (var item in dyncField) { var vaule = GetDyncFieldValueByRow(item.Name, row); content += BuliderFormView(item, vaule); } var html = FormTemp.GetTempByKey("form", content); return(htmlHelper.Raw(html)); }