public static OutputDeliveryLineViewModel New(OutputDeliveryLineInfo source)
        {
            OutputDeliveryLineViewModel obj = new OutputDeliveryLineViewModel();

            obj.CopyFrom(source);
            return(obj);
        }
        public static OutputDeliveryLineViewModel Get(long oid)
        {
            OutputDeliveryLineViewModel obj = new OutputDeliveryLineViewModel();

            obj.CopyFrom(OutputDeliveryLineInfo.Get(oid, false));
            return(obj);
        }
        public static OutputDeliveryLineViewModel New()
        {
            OutputDeliveryLineViewModel obj = new OutputDeliveryLineViewModel();

            obj.CopyFrom(OutputDeliveryLine.NewChild().GetInfo(false));
            return(obj);
        }
        public static void Add(OutputDeliveryLineViewModel item)
        {
            OutputDeliveryLine newItem = OutputDeliveryLine.NewChild();

            item.CopyTo(newItem);
            newItem.Save();
            item.CopyFrom(newItem);
        }