示例#1
0
 public bool InsertLedgerBookRow(VoucherBase record, BLL.Model.Entity.FixedAsset fixedAsset)
 {
     int recordId = InsertLedgerRecord(record);
     if (recordId > 0)
     {
         FixedAsset dalFixedAsset = new FixedAsset
                                     {
                                         Name = fixedAsset.Name,
                                         DepreciationRate = fixedAsset.DepreciationRate,
                                         RecordID = recordId
                                     };
         _db.AddToFixedAssets(dalFixedAsset);
         _db.SaveChanges();
         return true;
     }
     return false;
 }
示例#2
0
        public bool InsertLedgerBookRow(VoucherBase record, BLL.Model.Entity.FixedAsset fixedAsset)
        {
            int recordId = InsertLedgerRecord(record);

            if (recordId > 0)
            {
                FixedAsset dalFixedAsset = new FixedAsset
                {
                    Name             = fixedAsset.Name,
                    DepreciationRate = fixedAsset.DepreciationRate,
                    RecordID         = recordId
                };
                _db.AddToFixedAssets(dalFixedAsset);
                _db.SaveChanges();
                return(true);
            }
            return(false);
        }
示例#3
0
 public bool InsertLedgerBookRow(VoucherBase record)
 {
     return InsertLedgerRecord(record) > 0;
 }
示例#4
0
 public bool InsertLedgerBookRow(VoucherBase record)
 {
     return(InsertLedgerRecord(record) > 0);
 }