Esempio n. 1
0
 private static object[] Take(FADecrementDetailParallelEntity detail)
 {
     return(new object[]
     {
         "@RefDetailID", detail.RefDetailId,
         "@RefID", detail.RefId,
         "@RefTypeID", detail.RefTypeId,
         "@Description", detail.Description,
         "@AccountNumber", detail.AccountNumber,
         "@CorrespondingAccountNumber", detail.CorrespondingAccountNumber,
         "@Quantity", detail.Quantity,
         "@Price", detail.Price,
         "@PriceExchange", detail.PriceExchange,
         "@AmountOc", detail.AmountOc,
         "@AmountExchange", detail.AmountExchange,
         "@BudgetSourceCode", detail.BudgetSourceCode,
         "@BudgetItemCode", detail.BudgetItemCode,
         "@VoucherTypeID", detail.VoucherTypeId,
         "@DepartmentID", detail.DepartmentId,
         "@ProjectID", detail.ProjectId,
         "@FixedAssetID", detail.FixedAssetId,
         "@InventoryItemID", detail.InventoryItemId,
         "@MergerFundID", detail.MergerFundId,
         "@AccountingObjectID", detail.AccountingObjectId,
         "@EmployeeID", detail.EmployeeId,
         "@CustomerID", detail.CustomerId,
         "@VendorID", detail.VendorId,
         "@AutoBusinessID", detail.AutoBusinessId,
     });
 }
Esempio n. 2
0
 internal static FixedAssetDecrementDetailParallelModel FromDataTransferObject(FADecrementDetailParallelEntity entity)
 {
     return(entity == null ? null : AutoMapper.Mapper.Map <FADecrementDetailParallelEntity, FixedAssetDecrementDetailParallelModel>(entity));
 }
Esempio n. 3
0
        public string UpdateFixedAssetDecrementDetailParallel(FADecrementDetailParallelEntity detail)
        {
            const string procedures = @"uspUpdate_FixedAssetDecrementDetailParallel";

            return(Db.Update(procedures, true, Take(detail)));
        }
Esempio n. 4
0
        public int InsertFixedAssetDecrementDetailParallel(FADecrementDetailParallelEntity detail)
        {
            const string procedures = @"uspInsert_FixedAssetDecrementDetailParallel";

            return(Db.Insert(procedures, true, Take(detail)));
        }