Esempio n. 1
0
        /// <summary>
        /// Create EntityData From Entity - used by ubf
        /// </summary>
        public WSLogDTOData ToEntityData(WSLogDTOData data, IDictionary dict)
        {
            if (data == null)
            {
                data = new WSLogDTOData();
            }
            if (dict == null)
            {
                dict = new Hashtable();
            }
            else
            {
                if (dict.Contains(this))
                {
                    data = (WSLogDTOData)dict[this];
                    return(data);
                }
            }
            dict[this] = data;

            data.RequestUrl = this.RequestUrl;

            data.ClassName = this.ClassName;

            data.MethodName = this.MethodName;

            data.StartTime = this.StartTime;

            data.EndTime = this.EndTime;

            data.ElapsedSecond = this.ElapsedSecond;

            data.RequestContent = this.RequestContent;

            data.ResponseContent = this.ResponseContent;

            if (this.CallResult != null)
            {
                data.CallResult = this.CallResult.Value;
            }

            data.ErrorMessage = this.ErrorMessage;

            data.LogID = this.LogID;

            data.MethodDescription = this.MethodDescription;

            return(data);
        }
Esempio n. 2
0
        //used by ubf..
        public void FromEntityData(WSLogDTOData data, IDictionary dict)
        {
            if (data == null)
            {
                return;
            }
            if (dict == null)
            {
                dict = new Hashtable();
            }
            dict[data] = this;
            DeSerializeKey(data);

            this.RequestUrl = data.RequestUrl;

            this.ClassName = data.ClassName;

            this.MethodName = data.MethodName;

            this.StartTime = data.StartTime;

            this.EndTime = data.EndTime;

            this.ElapsedSecond = data.ElapsedSecond;

            this.RequestContent = data.RequestContent;

            this.ResponseContent = data.ResponseContent;

            this.CallResult = UFIDA.U9.Cust.Pub.WSLogBE.CallResultEnum.GetFromValue(data.CallResult);

            this.ErrorMessage = data.ErrorMessage;

            this.LogID = data.LogID;

            this.MethodDescription = data.MethodDescription;
        }
Esempio n. 3
0
 /// <summary>
 /// Copy Entity From EntityData
 /// </summary>
 public void FromEntityData(WSLogDTOData data)
 {
     this.FromEntityData(data, new Hashtable());
 }
Esempio n. 4
0
 //反序化Key到Data的ID中 --由FromEntityData自动调用,不处理层次关系
 private void DeSerializeKey(WSLogDTOData data)
 {
 }