private string GetFormNameByCode(string code) { var form = _dynamicDataservices.GetDyncFormByCode(code); if (form.IsNull()) { throw new FormatException("表单不存在"); } return(form.Name); }
public IEnumerable <SQLDynamicItem> GetDyncExpValue(DyncExp exp) { var dyncTable = _dynamicDataservices.GetDyncFormByCode(exp.Table); if (dyncTable == null) { throw new Exception($"不能找到code 为{exp.Table}的数据表"); } return(_dynamicDataservices.GetDyncValueByDyncParam(dyncTable.Name, exp.FiledName, exp.Param)); }