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

            this.BarCode = data.BarCode;

            this.ItemCode = data.ItemCode;

            this.ItemName = data.ItemName;

            this.ItemSPECS = data.ItemSPECS;

            this.ActualLength = data.ActualLength;

            this.MarkingLength = data.MarkingLength;

            this.OperatorsCode = data.OperatorsCode;

            this.OperatorsName = data.OperatorsName;

            this.OperatorsID = data.OperatorsID;

            this.ItemID = data.ItemID;

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

            data.BarCode = this.BarCode;

            data.ItemCode = this.ItemCode;

            data.ItemName = this.ItemName;

            data.ItemSPECS = this.ItemSPECS;

            data.ActualLength = this.ActualLength;

            data.MarkingLength = this.MarkingLength;

            data.OperatorsCode = this.OperatorsCode;

            data.OperatorsName = this.OperatorsName;

            data.OperatorsID = this.OperatorsID;

            data.ItemID = this.ItemID;

            data.BarCodeID = this.BarCodeID;

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