private object[] TakeParalell(CashParalellDetailEntity 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,
         "@MergerFundID", info.MergerFundId,
         "@ProjectID", info.ProjectId,
         "@RefID", info.RefId,
         "@AutoBusinessID", info.AutoBusinessId
     });
 }
        public int InsertReceiptDetailParalell(CashParalellDetailEntity cashParalellDetailEntity)
        {
            const string procedures = @"uspInsert_CashParalellDetail";

            return(Db.Insert(procedures, true, TakeParalell(cashParalellDetailEntity)));
        }
예제 #3
0
 internal static ReceiptVoucherParalellDetailModel FromDataTransferObject(CashParalellDetailEntity entity)
 {
     return(entity == null ? null : AutoMapper.Mapper.Map <CashParalellDetailEntity, ReceiptVoucherParalellDetailModel>(entity));
 }