diff --git a/插件库/Lskj.Model/DynamicModel.cs b/插件库/Lskj.Model/DynamicModel.cs index 50dd90c..472031f 100644 --- a/插件库/Lskj.Model/DynamicModel.cs +++ b/插件库/Lskj.Model/DynamicModel.cs @@ -418,10 +418,6 @@ namespace Lskj.Model /// true if this instance is base module; otherwise, false. public override bool IsBaseModule { get { return true; } } /// - /// 主表选中行json字符串 - /// - public string MaintabFocusedRowJson { get; private set; } - /// /// 初始化添加界面动态链接库参数 /// /// The arguments. @@ -443,7 +439,20 @@ namespace Lskj.Model // UnionKey、UnionValue 此2个值通过程序传递,外部调用无法传递 this.UnionKey = args.Length > 15 ? args[15] : string.Empty; this.UnionValue = args.Length > 16 ? args[16] : string.Empty; - this.MaintabFocusedRowJson = args.Length > 17 ? args[17] : string.Empty;//默认最后一个,非配置 + if (!string.IsNullOrEmpty(args[args.Length - 1])) + { + try + { + JObject rowObject = JsonConvert.DeserializeObject(args[args.Length - 1]); + JArray jArray = new JArray(); + jArray.Add(rowObject); + DataTable dataTable = JsonConvert.DeserializeObject(JsonConvert.SerializeObject(jArray)); + this.MaintabFocusedRow = dataTable.Rows[0]; + } + catch (Exception) + { + } + } } } ///