浏览代码

解决手机流程表单含子表情况下报from附近语法错误

怀来职教中心中职
liangkun 1年前
父节点
当前提交
146caf1178
共有 1 个文件被更改,包括 15 次插入12 次删除
  1. +15
    -12
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Form/Scheme/FormSchemeBLL.cs

+ 15
- 12
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Form/Scheme/FormSchemeBLL.cs 查看文件

@@ -1070,22 +1070,25 @@ namespace Learun.Application.Form
string querySql = " SELECT ";
if (tableComponts.ContainsKey(tableItem.data.name) && !res.ContainsKey(tableItem.data.name))
{
foreach (var compont in tableComponts[tableItem.data.name])
DataTable dt = null;
if (tableComponts[tableItem.data.name].Count > 0)
{
querySql += compont.field + " , ";
}

if (string.IsNullOrEmpty(keyValue))
{
keyValue = pData[tableItem.data.relationField];
}
foreach (var compont in tableComponts[tableItem.data.name])
{
querySql += compont.field + " , ";
}

querySql = querySql.Remove(querySql.Length - 2, 2);
querySql += " FROM " + tableItem.data.name + " WHERE " + tableItem.data.field + " = @keyValue";
if (string.IsNullOrEmpty(keyValue))
{
keyValue = pData[tableItem.data.relationField];
}

DataTable dt = databaseLinkIBLL.FindTable(dbId, querySql, new { keyValue = keyValue });
res.Add(tableItem.data.name, dt);
querySql = querySql.Remove(querySql.Length - 2, 2);
querySql += " FROM " + tableItem.data.name + " WHERE " + tableItem.data.field + " = @keyValue";

dt = databaseLinkIBLL.FindTable(dbId, querySql, new { keyValue = keyValue });
res.Add(tableItem.data.name, dt);
}
// 获取它的从表数据
if (tableItem.ChildNodes.Count > 0 && dt.Rows.Count > 0)
{


正在加载...
取消
保存