예제 #1
0
        /// <summary>
        /// 向此入库单中添加行。
        /// </summary>
        /// <param name="line"></param>
        public virtual void AddLine(InboundLine line)
        {
            if (line.InboundOrder != null)
            {
                throw new InvalidOperationException("入库行已属于其他入库单。");
            }

            line.InboundOrder = this;
            this._lines.Add(line);
        }
예제 #2
0
 public virtual void RemoveLine(InboundLine line)
 {
     line.InboundOrder = null;
     this._lines.Remove(line);
 }