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

            this.ItemID = data.ItemID;

            this.ItemCode = data.ItemCode;

            this.ItemName = data.ItemName;

            this.Wh = data.Wh;

            this.Lot = data.Lot;

            this.SegLength = data.SegLength;

            this.StoreQty = data.StoreQty;

            this.UOM = data.UOM;

            this.UOM_Precision = data.UOM_Precision;

            this.UOM_RoundType = data.UOM_RoundType;

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

            data.ItemID = this.ItemID;

            data.ItemCode = this.ItemCode;

            data.ItemName = this.ItemName;

            data.Wh = this.Wh;

            data.Lot = this.Lot;

            data.SegLength = this.SegLength;

            data.StoreQty = this.StoreQty;

            data.UOM = this.UOM;

            data.UOM_Precision = this.UOM_Precision;

            data.UOM_RoundType = this.UOM_RoundType;

            data.UOM_RoundValue = this.UOM_RoundValue;

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