Exemple #1
0
        public bool Add(Book.Model.T_STOCK_InHead head, List <Book.Model.T_STOCK_InBody> lst)
        {
            Book.DAL.T_STOCK_InHead bllHead = new Book.DAL.T_STOCK_InHead();
            int headid = bllHead.Add(head);

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