提交测试

This commit is contained in:
敏健 邱
2024-12-15 14:45:55 +08:00
parent 7f138d24c2
commit 55410bf38e
9 changed files with 83 additions and 33 deletions
@@ -8,6 +8,7 @@ using System.Text;
using System.Web.UI.WebControls;
using ADODB;
using GetComObj;
using log4net;
using MSXML2;
using Newtonsoft.Json.Linq;
using UFIDA.U8.Framework.Api.Common.Entity;
@@ -18,6 +19,10 @@ namespace UFIDA.U8.Framework.Api.ControlObject.Common
{
public static class CommonHelper
{
/// <summary>
/// 日志组件
/// </summary>
private static readonly ILog logInfo = LogManager.GetLogger("logInfo");
public static void SetPropValue(this PropertyInfo prop, object obj, object value)
{
@@ -281,6 +286,23 @@ namespace UFIDA.U8.Framework.Api.ControlObject.Common
return root;
}
public static object SetDomKeyValue(this IXMLDOMDocument2 domDocument2,string key,object value)
{
var node= domDocument2.selectSingleNode("//z:row");
if (node == null)
return null;
var attr = domDocument2.createAttribute(key);
attr.nodeValue=value;
node.attributes.setNamedItem(attr);
return value;
}
public static void ResetDictionary(this Dictionary<string, object> dictionary, string bodyKey = "body")
{
if (dictionary.ContainsKey(bodyKey))