コード例 #1
0
 /// <summary>
 /// Takes the specified c a payment detail parallel entity.
 /// </summary>
 /// <param name="cAPaymentDetailParallelEntity">The c a payment detail parallel entity.</param>
 /// <returns>System.Object[].</returns>
 private static object[] Take(INInwardOutwardDetailParallelEntity iNInwardOutwardDetailParallelEntity)
 {
     return(new object[]
     {
         "@RefDetailID", iNInwardOutwardDetailParallelEntity.RefDetailId,
         "@RefID", iNInwardOutwardDetailParallelEntity.RefId,
         "@Description", iNInwardOutwardDetailParallelEntity.Description,
         "@DebitAccount", iNInwardOutwardDetailParallelEntity.DebitAccount,
         "@CreditAccount", iNInwardOutwardDetailParallelEntity.CreditAccount,
         "@Amount", iNInwardOutwardDetailParallelEntity.Amount,
         "@AmountOC", iNInwardOutwardDetailParallelEntity.AmountOC,
         "@BudgetSourceID", iNInwardOutwardDetailParallelEntity.BudgetSourceId,
         "@BudgetChapterCode", iNInwardOutwardDetailParallelEntity.BudgetChapterCode,
         "@BudgetKindItemCode", iNInwardOutwardDetailParallelEntity.BudgetKindItemCode,
         "@BudgetSubKindItemCode", iNInwardOutwardDetailParallelEntity.BudgetSubKindItemCode,
         "@BudgetItemCode", iNInwardOutwardDetailParallelEntity.BudgetItemCode,
         "@BudgetSubItemCode", iNInwardOutwardDetailParallelEntity.BudgetSubItemCode,
         "@BudgetDetailItemCode", iNInwardOutwardDetailParallelEntity.BudgetDetailItemCode,
         "@MethodDistributeID", iNInwardOutwardDetailParallelEntity.MethodDistributeId,
         "@CashWithdrawTypeID", iNInwardOutwardDetailParallelEntity.CashWithdrawTypeId,
         "@AccountingObjectID", iNInwardOutwardDetailParallelEntity.AccountingObjectId,
         "@ActivityID", iNInwardOutwardDetailParallelEntity.ActivityId,
         "@ProjectID", iNInwardOutwardDetailParallelEntity.ProjectId,
         "@TaskID", iNInwardOutwardDetailParallelEntity.TaskId,
         "@ListItemID", iNInwardOutwardDetailParallelEntity.ListItemId,
         "@Approved", iNInwardOutwardDetailParallelEntity.Approved,
         "@SortOrder", iNInwardOutwardDetailParallelEntity.SortOrder,
         "@OrgRefNo", iNInwardOutwardDetailParallelEntity.OrgRefNo,
         "@OrgRefDate", iNInwardOutwardDetailParallelEntity.OrgRefDate,
         "@FundStructureID", iNInwardOutwardDetailParallelEntity.FundStructureId,
         "@BankID", iNInwardOutwardDetailParallelEntity.BankId,
         "@BudgetExpenseID", iNInwardOutwardDetailParallelEntity.BudgetExpenseId,
         "@BudgetProvideCode", iNInwardOutwardDetailParallelEntity.BudgetProvideCode,
         "@ContractID", iNInwardOutwardDetailParallelEntity.ContractId,
         "@CapitalPlanID", iNInwardOutwardDetailParallelEntity.CapitalPlanId,
         "@AutoBusinessID", iNInwardOutwardDetailParallelEntity.AutoBusinessId,
         "@Quantity", iNInwardOutwardDetailParallelEntity.Quantity,
         "@UnitPrice", iNInwardOutwardDetailParallelEntity.UnitPrice,
         "@InventoryItemId", iNInwardOutwardDetailParallelEntity.InventoryItemId,
     });
 }
コード例 #2
0
 /// <summary>
 /// Update the InInwardOutwardDetailParallel.
 /// </summary>
 /// <param name="InwardOutwardDetail">The InInwardOutwardDetailParallel.</param>
 /// <returns>System.string</returns>
 public string UpdateINInwardOutwardDetailParallel(INInwardOutwardDetailParallelEntity InwardOutwardDetail)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
        /// <summary>
        /// Insert the InInwardOutwardDetailParallel.
        /// </summary>
        /// <param name="InwardOutwardDetail">The InInwardOutwardDetailParallel.</param>
        /// <returns>System.string</returns>
        public string InsertINInwardOutwardDetailParallel(INInwardOutwardDetailParallelEntity InwardOutwardDetail)
        {
            const string procedures = @"uspInsert_INInwardOutwardDetailParallel";

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