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

            this.OrgID = data.OrgID;

            this.ItemID = data.ItemID;

            this.BarCode = data.BarCode;

            this.ActualLength = data.ActualLength;

            this.QcOperator = data.QcOperator;

            this.CompleteApplyDoc = data.CompleteApplyDoc;

            this.CompleteApplyDocLine = data.CompleteApplyDocLine;

            this.ScanBy = data.ScanBy;

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

            data.OrgID = this.OrgID;

            data.ItemID = this.ItemID;

            data.BarCode = this.BarCode;

            data.ActualLength = this.ActualLength;

            data.QcOperator = this.QcOperator;

            data.CompleteApplyDoc = this.CompleteApplyDoc;

            data.CompleteApplyDocLine = this.CompleteApplyDocLine;

            data.ScanBy = this.ScanBy;

            data.ScanOn = this.ScanOn;

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