예제 #1
0
        private string GetFormNameByCode(string code)
        {
            var form = _dynamicDataservices.GetDyncFormByCode(code);

            if (form.IsNull())
            {
                throw new FormatException("表单不存在");
            }
            return(form.Name);
        }
예제 #2
0
        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));
        }