SVN-Revision: r515
This commit is contained in:
wyf
2025-04-29 08:11:14 +00:00
parent 598854470b
commit 574d784093
+14 -5
View File
@@ -418,10 +418,6 @@ namespace Lskj.Model
/// <value><c>true</c> if this instance is base module; otherwise, <c>false</c>.</value>
public override bool IsBaseModule { get { return true; } }
/// <summary>
/// 主表选中行json字符串
/// </summary>
public string MaintabFocusedRowJson { get; private set; }
/// <summary>
/// 初始化添加界面动态链接库参数
/// </summary>
/// <param name="args">The arguments.</param>
@@ -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<JObject>(args[args.Length - 1]);
JArray jArray = new JArray();
jArray.Add(rowObject);
DataTable dataTable = JsonConvert.DeserializeObject<DataTable>(JsonConvert.SerializeObject(jArray));
this.MaintabFocusedRow = dataTable.Rows[0];
}
catch (Exception)
{
}
}
}
}
/// <summary>