예제 #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);
 }