예제 #1
0
        public bool Add(Book.Model.T_STOCK_OutHead head, List <Book.Model.T_STOCK_OutBody> lst)
        {
            Book.DAL.T_STOCK_OutHead bllHead = new Book.DAL.T_STOCK_OutHead();
            int headid = bllHead.Add(head);

            Book.DAL.T_STOCK_OutBody bllBody = new Book.DAL.T_STOCK_OutBody();
            foreach (var item in lst)
            {
                item.InHeadID = headid;
                bllBody.Add(item);
            }
            return(true);
        }
예제 #2
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(Book.Model.T_STOCK_OutHead model)
 {
     return(dal.Add(model));
 }