提交测试
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user