/// <summary>
 /// Takes the specified information.
 /// </summary>
 /// <param name="info">The information.</param>
 /// <returns></returns>
 private object[] TakeParalell(GeneralParalellDetailEntity info)
 {
     return(new object[]
     {
         "@RefDetailID", info.RefDetailId,
         "@AccountNumber", info.AccountNumber,
         "@CorrespondingAccountNumber", info.CorrespondingAccountNumber,
         "@Description", info.Description,
         "@AmountOC", info.AmountOc,
         "@AmountExchange", info.AmountExchange,
         "@VoucherTypeID", info.VoucherTypeId,
         "@BudgetSourceCode", info.BudgetSourceCode,
         "@BudgetItemCode", info.BudgetItemCode,
         "@AccountingObjectID", info.AccountingObjectId,
         "@RefID", info.RefId,
         "@VendorID", info.VendorId,
         "@ProjectID", info.ProjectId,
         "@CurrencyCode", info.CurrencyCode,
         "@DepartmentID", info.DepartmentId,
         "@CustomerID", info.CustomerId,
         "@EmployeeID", info.EmployeeId,
         "@ExchangeRate", info.ExchangeRate,
         "@BankID", info.BankId,
         "@InventoryItemID", info.InventoryItemId
     });
 }
Exemplo n.º 2
0
 internal static GeneralParalellDetailModel FromDataTransferObject(GeneralParalellDetailEntity entity)
 {
     return(entity == null ? null : AutoMapper.Mapper.Map <GeneralParalellDetailEntity, GeneralParalellDetailModel>(entity));
 }
        /// <summary>
        /// Inserts the general detail.
        /// </summary>
        /// <param name="generalDetail">The general detail.</param>
        /// <returns></returns>
        public int InsertGeneralParalellDetail(GeneralParalellDetailEntity generalDetail)
        {
            const string procedures = @"uspInsert_GeneralParalellDetailVoucher";

            return(Db.Insert(procedures, true, TakeParalell(generalDetail)));
        }