Procházet zdrojové kódy

解决手机端编辑多表表单出现from附近语法错误问题

长阳分支推送专用
liangkun před 2 roky
rodič
revize
f670a58d95
1 změnil soubory, kde provedl 8 přidání a 1 odebrání
  1. +8
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Form/Scheme/FormSchemeBLL.cs

+ 8
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Form/Scheme/FormSchemeBLL.cs Zobrazit soubor

@@ -577,6 +577,7 @@ namespace Learun.Application.Form
TableTree.Add(treeone); TableTree.Add(treeone);
} }
TableTree = TableTree.ToTree(); TableTree = TableTree.ToTree();
bool hasupload = false;


// 确定表与组件之间的关系 // 确定表与组件之间的关系
Dictionary<string, List<FormCompontModel>> tableComponts = new Dictionary<string, List<FormCompontModel>>(); Dictionary<string, List<FormCompontModel>> tableComponts = new Dictionary<string, List<FormCompontModel>>();
@@ -592,6 +593,7 @@ namespace Learun.Application.Form
} }
if (compont.type == "upload") if (compont.type == "upload")
{ {
hasupload = true;
tableComponts[compont.table].Add(compont); tableComponts[compont.table].Add(compont);
} }
if (compont.type == "guid") if (compont.type == "guid")
@@ -602,8 +604,13 @@ namespace Learun.Application.Form
} }
} }
} }
Dictionary<string, string> uploadfieldkeyvalue = new Dictionary<string, string>();

if (!hasupload)
{
return uploadfieldkeyvalue;
}
GetInstanceTableData(TableTree, tableComponts, formSchemeModel.dbId, keyValue, processIdName, null, res); GetInstanceTableData(TableTree, tableComponts, formSchemeModel.dbId, keyValue, processIdName, null, res);
Dictionary < string,string> uploadfieldkeyvalue=new Dictionary<string, string>();
foreach (var itemCompont in tableComponts) foreach (var itemCompont in tableComponts)
{ {
foreach (FormCompontModel formitem in itemCompont.Value) foreach (FormCompontModel formitem in itemCompont.Value)


Načítá se…
Zrušit
Uložit