Exemple #1
0
 /// <summary>
 /// 生成记账流水信息
 /// </summary>
 public void NoteFlowInformation()
 {
     #region 生成记账流水信息
     var dateNow = DateTime.Now;
     T_PartnerCapitalPoolEntity payDetailsEntity = new T_PartnerCapitalPoolEntity()
     {
         PartnerCapitalPoolID       = Guid.NewGuid().ToString(),
         EcommerceProjectRelationID = EcommerceProjectMoneyCapacity.EcommerceProjectRelationID,
         T_P_PartnerCapitalPoolID   = "0",
         OperationTitle             = "【" + inputPayEntity.Pay_Info_Code + "】消费支出",
         OperationType   = (int)OperationTypeNoteEnum.PayConsumption,
         OperationMoney  = this.operationAmount,
         CurrentMoney    = EcommerceProjectMoneyCapacity.ControlTotalAmount + this.operationAmount,             // CurrentBalance
         AccountingType  = (int)AccountingTypeEnum.Expenditure,
         CurrentBalance  = EcommerceProjectMoneyCapacity.ControlTotalAmount,
         DeleteMark      = 0,
         CreateDate      = dateNow,
         ModifyDate      = dateNow,
         CreateUserId    = "System",
         CreateUserName  = "******",
         ObjectID        = inputPayEntity.Pay_Info_Id,
         StatisticalDate = dateNow
     };
     Transdb.Insert(payDetailsEntity);
     #endregion
 }
Exemple #2
0
 /// <summary>
 /// 生成流水信息,并更新付款单的最新流水信息号
 /// </summary>
 public void GenerateFlowOrders()
 {
     try
     {
         #region 生成流水信息
         T_Pay_Info_DetailsEntity payDetailsEntity = new T_Pay_Info_DetailsEntity()
         {
             Amount                    = this.operationAmount,
             Createtime                = DateTime.Now,
             PayInfoDetailsCode        = CodeNumber,
             Details_Name              = EnumHelper.ToDescription(PayDetailsTypeEnum.Consumption),
             Details_Type              = (int)PayDetailsTypeEnum.Consumption,
             EcommerceGroupID          = inputPayEntity.EcommerceGroupID,
             EcommerceGroupName        = this.EcommerceProjectMoneyCapacity.EcommerceGroupName,
             Electricity_Supplier_Code = inputPayEntity.Electricity_Supplier_Code,
             Electricity_Supplier_Id   = inputPayEntity.EcommerceID,
             Electricity_Supplier_Name = inputPayEntity.Electricity_Supplier_Name,
             Pay_Info_Code             = inputPayEntity.Pay_Info_Code,
             Pay_Info_Details_ID       = Guid.NewGuid().ToString(),
             Pay_Info_ID               = inputPayEntity.Pay_Info_Id,
             Project_Code              = inputPayEntity.Project_Code,
             Project_ID                = inputPayEntity.Project_Id,
             Project_Name              = inputPayEntity.Project_Name,
         };
         Transdb.Insert(payDetailsEntity);
         inputPayEntity.LastPayInfoDetailsCode = CodeNumber;
         Transdb.Update(inputPayEntity);
         #endregion
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }