Ejemplo n.º 1
0
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        public int Delete(IEnumerable <string> list)
        {
            FinanceBillEntity entity = new FinanceBillEntity();

            entity.IsDelete = (int)EIsDelete.Deleted;
            entity.IncludeIsDelete(true);
            entity.Where <FinanceBillEntity>("SnNum", ECondition.In, list.ToArray())
            .And(a => a.CompanyID == this.CompanyID);
            int line = this.FinanceBill.Update(entity);

            return(line);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 删除应收应付
        /// </summary>
        /// <param name="SnNum"></param>
        /// <returns></returns>
        public int Delete(string SnNum)
        {
            FinanceBillEntity entity = new FinanceBillEntity();

            entity.IsDelete = (int)EIsDelete.Deleted;
            entity.IncludeIsDelete(true);
            entity.Where(a => a.SnNum == SnNum)
            .And(a => a.CompanyID == this.CompanyID)
            ;
            int line = this.FinanceBill.Update(entity);

            return(line);
        }