Beispiel #1
0
        public static MatPersonOnHands rebuildMatPersonOnHand(MatPersonOnHands inMatPersonOnHands, List <string> excludeProperty)
        {
            MatPersonOnHands person = null;

            if (inMatPersonOnHands != null)
            {
                person = new MatPersonOnHands();
                if (!isExclude(excludeProperty, "MatPersonCardHead"))
                {
                    person.MatPersonCardHead = rebuildMatPerson(inMatPersonOnHands.MatPersonCardHead, rebuildExcludeProperty(excludeProperty, "MatPersonCardHead"));
                }

                if (!isExclude(excludeProperty, "Nomenclature"))
                {
                    person.Nomenclature = rebuildNomenclature(inMatPersonOnHands.Nomenclature, rebuildExcludeProperty(excludeProperty, "Nomenclature"));
                }
                person.Wear           = inMatPersonOnHands.Wear;
                person.Quantity       = inMatPersonOnHands.Quantity;
                person.LastDocNumber  = inMatPersonOnHands.LastDocNumber;
                person.LastDocDate    = inMatPersonOnHands.LastDocDate;
                person.LastOperTypeId = inMatPersonOnHands.LastOperTypeId;
            }
            return(person);
        }
Beispiel #2
0
 public static MatPersonOnHands rebuildMatPersonOnHand(MatPersonOnHands inMatPersonOnHands)
 {
     return(rebuildMatPersonOnHand(inMatPersonOnHands, null));
 }